]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
extracted common code of ToLong and ToULong in a separate template helper
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCBrushChanger swig_types[37]
2504 #define SWIGTYPE_p_wxDCClipper swig_types[38]
2505 #define SWIGTYPE_p_wxDCOverlay swig_types[39]
2506 #define SWIGTYPE_p_wxDCPenChanger swig_types[40]
2507 #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41]
2508 #define SWIGTYPE_p_wxDash swig_types[42]
2509 #define SWIGTYPE_p_wxDateEvent swig_types[43]
2510 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44]
2511 #define SWIGTYPE_p_wxDropFilesEvent swig_types[45]
2512 #define SWIGTYPE_p_wxDuplexMode swig_types[46]
2513 #define SWIGTYPE_p_wxEffects swig_types[47]
2514 #define SWIGTYPE_p_wxEncodingConverter swig_types[48]
2515 #define SWIGTYPE_p_wxEraseEvent swig_types[49]
2516 #define SWIGTYPE_p_wxEvent swig_types[50]
2517 #define SWIGTYPE_p_wxEvtHandler swig_types[51]
2518 #define SWIGTYPE_p_wxFSFile swig_types[52]
2519 #define SWIGTYPE_p_wxFileSystem swig_types[53]
2520 #define SWIGTYPE_p_wxFlexGridSizer swig_types[54]
2521 #define SWIGTYPE_p_wxFocusEvent swig_types[55]
2522 #define SWIGTYPE_p_wxFont swig_types[56]
2523 #define SWIGTYPE_p_wxFontList swig_types[57]
2524 #define SWIGTYPE_p_wxFontMapper swig_types[58]
2525 #define SWIGTYPE_p_wxGBSizerItem swig_types[59]
2526 #define SWIGTYPE_p_wxGCDC swig_types[60]
2527 #define SWIGTYPE_p_wxGDIObjListBase swig_types[61]
2528 #define SWIGTYPE_p_wxGDIObject swig_types[62]
2529 #define SWIGTYPE_p_wxGIFHandler swig_types[63]
2530 #define SWIGTYPE_p_wxGraphicsBrush swig_types[64]
2531 #define SWIGTYPE_p_wxGraphicsContext swig_types[65]
2532 #define SWIGTYPE_p_wxGraphicsFont swig_types[66]
2533 #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67]
2534 #define SWIGTYPE_p_wxGraphicsObject swig_types[68]
2535 #define SWIGTYPE_p_wxGraphicsPath swig_types[69]
2536 #define SWIGTYPE_p_wxGraphicsPen swig_types[70]
2537 #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71]
2538 #define SWIGTYPE_p_wxGridBagSizer swig_types[72]
2539 #define SWIGTYPE_p_wxGridSizer swig_types[73]
2540 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74]
2541 #define SWIGTYPE_p_wxICOHandler swig_types[75]
2542 #define SWIGTYPE_p_wxIcon swig_types[76]
2543 #define SWIGTYPE_p_wxIconBundle swig_types[77]
2544 #define SWIGTYPE_p_wxIconLocation swig_types[78]
2545 #define SWIGTYPE_p_wxIconizeEvent swig_types[79]
2546 #define SWIGTYPE_p_wxIdleEvent swig_types[80]
2547 #define SWIGTYPE_p_wxImage swig_types[81]
2548 #define SWIGTYPE_p_wxImageHandler swig_types[82]
2549 #define SWIGTYPE_p_wxImageList swig_types[83]
2550 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84]
2551 #define SWIGTYPE_p_wxInitDialogEvent swig_types[85]
2552 #define SWIGTYPE_p_wxJPEGHandler swig_types[86]
2553 #define SWIGTYPE_p_wxKeyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxLanguageInfo swig_types[88]
2555 #define SWIGTYPE_p_wxLayoutConstraints swig_types[89]
2556 #define SWIGTYPE_p_wxLocale swig_types[90]
2557 #define SWIGTYPE_p_wxMask swig_types[91]
2558 #define SWIGTYPE_p_wxMaximizeEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMemoryDC swig_types[93]
2560 #define SWIGTYPE_p_wxMenu swig_types[94]
2561 #define SWIGTYPE_p_wxMenuBar swig_types[95]
2562 #define SWIGTYPE_p_wxMenuEvent swig_types[96]
2563 #define SWIGTYPE_p_wxMenuItem swig_types[97]
2564 #define SWIGTYPE_p_wxMetaFile swig_types[98]
2565 #define SWIGTYPE_p_wxMetaFileDC swig_types[99]
2566 #define SWIGTYPE_p_wxMirrorDC swig_types[100]
2567 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102]
2569 #define SWIGTYPE_p_wxMouseEvent swig_types[103]
2570 #define SWIGTYPE_p_wxMoveEvent swig_types[104]
2571 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105]
2572 #define SWIGTYPE_p_wxNativeFontInfo swig_types[106]
2573 #define SWIGTYPE_p_wxNativePixelData swig_types[107]
2574 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108]
2575 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109]
2576 #define SWIGTYPE_p_wxNcPaintEvent swig_types[110]
2577 #define SWIGTYPE_p_wxNotifyEvent swig_types[111]
2578 #define SWIGTYPE_p_wxObject swig_types[112]
2579 #define SWIGTYPE_p_wxOverlay swig_types[113]
2580 #define SWIGTYPE_p_wxPCXHandler swig_types[114]
2581 #define SWIGTYPE_p_wxPNGHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPNMHandler swig_types[116]
2583 #define SWIGTYPE_p_wxPaintDC swig_types[117]
2584 #define SWIGTYPE_p_wxPaintEvent swig_types[118]
2585 #define SWIGTYPE_p_wxPalette swig_types[119]
2586 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPaperSize swig_types[121]
2588 #define SWIGTYPE_p_wxPen swig_types[122]
2589 #define SWIGTYPE_p_wxPenList swig_types[123]
2590 #define SWIGTYPE_p_wxPixelDataBase swig_types[124]
2591 #define SWIGTYPE_p_wxPoint swig_types[125]
2592 #define SWIGTYPE_p_wxPoint2D swig_types[126]
2593 #define SWIGTYPE_p_wxPoint2DDouble swig_types[127]
2594 #define SWIGTYPE_p_wxPostScriptDC swig_types[128]
2595 #define SWIGTYPE_p_wxPrintData swig_types[129]
2596 #define SWIGTYPE_p_wxPrinterDC swig_types[130]
2597 #define SWIGTYPE_p_wxPseudoDC swig_types[131]
2598 #define SWIGTYPE_p_wxPyApp swig_types[132]
2599 #define SWIGTYPE_p_wxPyCommandEvent swig_types[133]
2600 #define SWIGTYPE_p_wxPyEvent swig_types[134]
2601 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[135]
2602 #define SWIGTYPE_p_wxPyImageHandler swig_types[136]
2603 #define SWIGTYPE_p_wxPyLocale swig_types[137]
2604 #define SWIGTYPE_p_wxPySizer swig_types[138]
2605 #define SWIGTYPE_p_wxPyValidator swig_types[139]
2606 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[140]
2607 #define SWIGTYPE_p_wxRect swig_types[141]
2608 #define SWIGTYPE_p_wxRect2DDouble swig_types[142]
2609 #define SWIGTYPE_p_wxRegion swig_types[143]
2610 #define SWIGTYPE_p_wxRegionIterator swig_types[144]
2611 #define SWIGTYPE_p_wxRendererNative swig_types[145]
2612 #define SWIGTYPE_p_wxRendererVersion swig_types[146]
2613 #define SWIGTYPE_p_wxScreenDC swig_types[147]
2614 #define SWIGTYPE_p_wxScrollEvent swig_types[148]
2615 #define SWIGTYPE_p_wxScrollWinEvent swig_types[149]
2616 #define SWIGTYPE_p_wxSetCursorEvent swig_types[150]
2617 #define SWIGTYPE_p_wxShowEvent swig_types[151]
2618 #define SWIGTYPE_p_wxSize swig_types[152]
2619 #define SWIGTYPE_p_wxSizeEvent swig_types[153]
2620 #define SWIGTYPE_p_wxSizer swig_types[154]
2621 #define SWIGTYPE_p_wxSizerItem swig_types[155]
2622 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[156]
2623 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[157]
2624 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[158]
2625 #define SWIGTYPE_p_wxStockGDI swig_types[159]
2626 #define SWIGTYPE_p_wxString swig_types[160]
2627 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[161]
2628 #define SWIGTYPE_p_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 #include <wx/image.h>
2930
2931 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2932 char** cArray = NULL;
2933 int count;
2934
2935 if (!PyList_Check(listOfStrings)) {
2936 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2937 return NULL;
2938 }
2939 count = PyList_Size(listOfStrings);
2940 cArray = new char*[count];
2941
2942 for(int x=0; x<count; x++) {
2943 // TODO: Need some validation and error checking here
2944 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2945 }
2946 return cArray;
2947 }
2948
2949
2950 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2951 char** cArray = NULL;
2952 wxBitmap* bmp;
2953
2954 cArray = ConvertListOfStrings(listOfStrings);
2955 if (! cArray)
2956 return NULL;
2957 bmp = new wxBitmap(cArray);
2958 delete [] cArray;
2959 return bmp;
2960 }
2961 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2962 char* buf;
2963 Py_ssize_t length;
2964 PyString_AsStringAndSize(bits, &buf, &length);
2965 return new wxBitmap(buf, width, height, depth);
2966 }
2967 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2968 wxSize size(self->GetWidth(), self->GetHeight());
2969 return size;
2970 }
2971 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2972 wxMask *mask = new wxMask(*self, colour);
2973 self->SetMask(mask);
2974 }
2975 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2976 self->SetWidth(size.x);
2977 self->SetHeight(size.y);
2978 }
2979 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2980 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2981
2982 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2983 // appears to me that the other platforms are already doing it, so I'll just
2984 // automatically do it for wxMSW here.
2985 #ifdef __WXMSW__
2986 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2987 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2988 #else
2989 #define wxPy_premultiply(p, a) (p)
2990 #define wxPy_unpremultiply(p, a) (p)
2991 #endif
2992
2993
2994 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2995 buffer data, int DATASIZE,
2996 buffer alpha, int ALPHASIZE)
2997 {
2998 if (DATASIZE != width*height*3) {
2999 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3000 return NULL;
3001 }
3002
3003 if (ALPHASIZE != width*height) {
3004 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3005 return NULL;
3006 }
3007
3008 wxBitmap* bmp = new wxBitmap(width, height, 32);
3009 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3010 if (! pixData) {
3011 // raise an exception...
3012 wxPyErr_SetString(PyExc_RuntimeError,
3013 "Failed to gain raw access to bitmap data.");
3014 return NULL;
3015 }
3016
3017 pixData.UseAlpha();
3018 wxAlphaPixelData::Iterator p(pixData);
3019 for (int y=0; y<height; y++) {
3020 wxAlphaPixelData::Iterator rowStart = p;
3021 for (int x=0; x<width; x++) {
3022 byte a = *(alpha++);
3023 p.Red() = wxPy_premultiply(*(data++), a);
3024 p.Green() = wxPy_premultiply(*(data++), a);
3025 p.Blue() = wxPy_premultiply(*(data++), a);
3026 p.Alpha() = a;
3027 ++p;
3028 }
3029 p = rowStart;
3030 p.OffsetY(pixData, 1);
3031 }
3032 return bmp;
3033 }
3034
3035 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3036 {
3037 if (DATASIZE != width*height*3) {
3038 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3039 return NULL;
3040 }
3041
3042 wxBitmap* bmp = new wxBitmap(width, height, 24);
3043 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3044 if (! pixData) {
3045 // raise an exception...
3046 wxPyErr_SetString(PyExc_RuntimeError,
3047 "Failed to gain raw access to bitmap data.");
3048 return NULL;
3049 }
3050
3051 wxNativePixelData::Iterator p(pixData);
3052 for (int y=0; y<height; y++) {
3053 wxNativePixelData::Iterator rowStart = p;
3054 for (int x=0; x<width; x++) {
3055 p.Red() = *(data++);
3056 p.Green() = *(data++);
3057 p.Blue() = *(data++);
3058 ++p;
3059 }
3060 p = rowStart;
3061 p.OffsetY(pixData, 1);
3062 }
3063 return bmp;
3064 }
3065
3066
3067 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3068 {
3069 if (DATASIZE != width*height*4) {
3070 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3071 return NULL;
3072 }
3073
3074 wxBitmap* bmp = new wxBitmap(width, height, 32);
3075 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3076 if (! pixData) {
3077 // raise an exception...
3078 wxPyErr_SetString(PyExc_RuntimeError,
3079 "Failed to gain raw access to bitmap data.");
3080 return NULL;
3081 }
3082
3083 pixData.UseAlpha();
3084 wxAlphaPixelData::Iterator p(pixData);
3085 for (int y=0; y<height; y++) {
3086 wxAlphaPixelData::Iterator rowStart = p;
3087 for (int x=0; x<width; x++) {
3088 byte a = data[3];
3089 p.Red() = wxPy_premultiply(*(data++), a);
3090 p.Green() = wxPy_premultiply(*(data++), a);
3091 p.Blue() = wxPy_premultiply(*(data++), a);
3092 p.Alpha() = a; data++;
3093 ++p;
3094 }
3095 p = rowStart;
3096 p.OffsetY(pixData, 1);
3097 }
3098 return bmp;
3099 }
3100
3101
3102 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3103
3104 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3105 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3106 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3107 self->Red() = red;
3108 self->Green() = green;
3109 self->Blue() = blue;
3110 }
3111 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3112 PyObject* rv = PyTuple_New(3);
3113 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3114 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3115 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3116 return rv;
3117 }
3118
3119 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3120
3121 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3122 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3123 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3124 self->Red() = wxPy_premultiply(red, alpha);
3125 self->Green() = wxPy_premultiply(green, alpha);
3126 self->Blue() = wxPy_premultiply(blue, alpha);
3127 self->Alpha() = alpha;
3128 }
3129 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3130 PyObject* rv = PyTuple_New(4);
3131 int red = self->Red();
3132 int green = self->Green();
3133 int blue = self->Blue();
3134 int alpha = self->Alpha();
3135
3136 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3137 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3138 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3139 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3140 return rv;
3141 }
3142 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3143 if ( !colour.IsOk() )
3144 return new wxMask(bitmap, *wxBLACK);
3145 else
3146 return new wxMask(bitmap, colour);
3147 }
3148
3149 #include <wx/iconbndl.h>
3150
3151 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3152 wxIcon* icon = new wxIcon();
3153 icon->CopyFromBitmap(bmp);
3154 return icon;
3155 }
3156 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3157 char** cArray = NULL;
3158 wxIcon* icon;
3159
3160 cArray = ConvertListOfStrings(listOfStrings);
3161 if (! cArray)
3162 return NULL;
3163 icon = new wxIcon(cArray);
3164 delete [] cArray;
3165 return icon;
3166 }
3167 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3168
3169
3170
3171 return new wxIconLocation(*filename);
3172
3173 }
3174 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3175
3176
3177
3178 // do nothing
3179
3180 }
3181 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3182
3183
3184
3185 return -1;
3186
3187 }
3188 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3189 #ifdef __WXGTK__
3190 wxImage img(cursorName, type);
3191 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3192 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3193 return new wxCursor(img);
3194 #else
3195 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3196 #endif
3197 }
3198
3199
3200 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3201 (*self) ++;
3202 }
3203 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3204 return self->operator bool();
3205 }
3206
3207 #include <wx/fontutil.h>
3208 #include <wx/fontmap.h>
3209 #include <wx/fontenum.h>
3210
3211 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3212 return self->ToString();
3213 }
3214
3215 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3216 static wxNativeEncodingInfo info;
3217 if ( wxGetNativeFontEncoding(encoding, &info) )
3218 return &info;
3219 else
3220 return NULL;
3221 }
3222
3223
3224 SWIGINTERNINLINE PyObject *
3225 SWIG_From_size_t (size_t value)
3226 {
3227 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3228 }
3229
3230
3231 SWIGINTERNINLINE int
3232 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3233 {
3234 unsigned long v;
3235 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3236 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3237 return res;
3238 }
3239
3240 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3241 wxFontEncoding alt_enc;
3242 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3243 return PyInt_FromLong(alt_enc);
3244 else {
3245 Py_INCREF(Py_None);
3246 return Py_None;
3247 }
3248 }
3249 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3250 wxNativeFontInfo nfi;
3251 nfi.FromString(info);
3252 return new wxFont(nfi);
3253 }
3254 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3255 return wxFont::New(pointSize, family, flags, face, encoding);
3256 }
3257 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3258 return wxFontBase::New(pixelSize, family,
3259 style, weight, underlined,
3260 face, encoding);
3261 }
3262 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3263 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3264 }
3265 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3266 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3267
3268 class wxPyFontEnumerator : public wxFontEnumerator {
3269 public:
3270 wxPyFontEnumerator() {}
3271 ~wxPyFontEnumerator() {}
3272
3273 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3274 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3275
3276 PYPRIVATE;
3277 };
3278
3279 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3280 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3281
3282
3283 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3284 PyObject* ret;
3285 wxArrayString arr = wxFontEnumerator::GetEncodings();
3286 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3287 ret = wxArrayString2PyList_helper(arr);
3288 wxPyEndBlockThreads(blocked);
3289 return ret;
3290 }
3291 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3292 PyObject* ret;
3293 wxArrayString arr = wxFontEnumerator::GetFacenames();
3294 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3295 ret = wxArrayString2PyList_helper(arr);
3296 wxPyEndBlockThreads(blocked);
3297 return ret;
3298 }
3299
3300 #include <locale.h>
3301
3302 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3303 wxLocale* loc;
3304 if (language == -1)
3305 loc = new wxLocale();
3306 else
3307 loc = new wxLocale(language, flags);
3308 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3309 // for the floating point conversions and such to work right.
3310 #if PY_VERSION_HEX < 0x02040000
3311 setlocale(LC_NUMERIC, "C");
3312 #endif
3313 return loc;
3314 }
3315 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3316 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3317 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3318 // for the floating point conversions and such to work right.
3319 #if PY_VERSION_HEX < 0x02040000
3320 setlocale(LC_NUMERIC, "C");
3321 #endif
3322 return rc;
3323 }
3324 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3325 bool rc = self->Init(language, flags);
3326 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3327 // for the floating point conversions and such to work right.
3328 #if PY_VERSION_HEX < 0x02040000
3329 setlocale(LC_NUMERIC, "C");
3330 #endif
3331 return rc;
3332 }
3333
3334 class wxPyLocale : public wxLocale
3335 {
3336 public:
3337 wxPyLocale();
3338
3339 wxPyLocale(const wxChar *szName, // name (for messages)
3340 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3341 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3342 bool bLoadDefault = true, // preload wxstd.mo?
3343 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3344
3345 wxPyLocale(int language, // wxLanguage id or custom language
3346 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3347
3348 ~wxPyLocale();
3349
3350 virtual const wxChar *GetString(const wxChar *szOrigString,
3351 const wxChar *szDomain = NULL) const;
3352 virtual const wxChar *GetString(const wxChar *szOrigString,
3353 const wxChar *szOrigString2, size_t n,
3354 const wxChar *szDomain = NULL) const;
3355
3356 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3357 const wxChar *szDomain = NULL) const;
3358 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3359 const wxChar *szOrigString2, size_t n,
3360 const wxChar *szDomain = NULL) const;
3361
3362 PYPRIVATE;
3363 private:
3364 DECLARE_NO_COPY_CLASS(wxPyLocale)
3365 };
3366
3367 wxPyLocale::wxPyLocale() : wxLocale()
3368 {
3369 }
3370
3371 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3372 const wxChar *szShort, // dir prefix (for msg files)
3373 const wxChar *szLocale, // locale (for setlocale)
3374 bool bLoadDefault, // preload wxstd.mo?
3375 bool bConvertEncoding) // convert Win<->Unix if necessary?
3376 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3377 {
3378 }
3379
3380 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3381 int flags) : wxLocale(language, flags)
3382 {
3383 }
3384
3385 wxPyLocale::~wxPyLocale()
3386 {
3387 }
3388
3389 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3390 const wxChar *szDomain) const
3391 {
3392 wxChar *str = GetSingularString(szOrigString, szDomain);
3393 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3394 }
3395
3396 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3397 const wxChar *szOrigString2, size_t n,
3398 const wxChar *szDomain) const
3399 {
3400 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3401 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3402 }
3403
3404 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3405 const wxChar *szDomain) const
3406 {
3407 bool found;
3408 static wxString str;
3409 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3410 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3411 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3412 PyObject* param1 = wx2PyString(szOrigString);
3413 PyObject* param2 = wx2PyString(szDomain);
3414 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3415 Py_DECREF(param1);
3416 Py_DECREF(param2);
3417 if (ret) {
3418 str = Py2wxString(ret);
3419 Py_DECREF(ret);
3420 }
3421 }
3422 wxPyEndBlockThreads(blocked);
3423 return (found ? (wxChar*)str.c_str() : NULL);
3424 }
3425
3426 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3427 const wxChar *szOrigString2, size_t n,
3428 const wxChar *szDomain) const
3429 {
3430 bool found;
3431 static wxString str;
3432 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3433 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3434 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3435 PyObject* param1 = wx2PyString(szOrigString);
3436 PyObject* param2 = wx2PyString(szOrigString2);
3437 PyObject* param4 = wx2PyString(szDomain);
3438 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3439 Py_DECREF(param1);
3440 Py_DECREF(param2);
3441 Py_DECREF(param4);
3442 if( ret) {
3443 str = Py2wxString(ret);
3444 Py_DECREF(ret);
3445 }
3446 }
3447 wxPyEndBlockThreads(blocked);
3448 return (found ? (wxChar*)str.c_str() : NULL);
3449 }
3450
3451 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3452 wxPyLocale* loc;
3453 if (language == -1)
3454 loc = new wxPyLocale();
3455 else
3456 loc = new wxPyLocale(language, flags);
3457 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3458 // for the floating point conversions and such to work right.
3459 #if PY_VERSION_HEX < 0x02040000
3460 setlocale(LC_NUMERIC, "C");
3461 #endif
3462 return loc;
3463 }
3464
3465 #include "wx/wxPython/pydrawxxx.h"
3466
3467 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3468 wxColour col;
3469 self->GetPixel(x, y, &col);
3470 return col;
3471 }
3472 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3473 wxColour col;
3474 self->GetPixel(pt, &col);
3475 return col;
3476 }
3477
3478 SWIGINTERN int
3479 SWIG_AsVal_double (PyObject *obj, double* val)
3480 {
3481 if (PyNumber_Check(obj)) {
3482 if (val) *val = PyFloat_AsDouble(obj);
3483 return SWIG_OK;
3484 }
3485 return SWIG_TypeError;
3486 }
3487
3488 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3489 wxRect rv;
3490 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3491 return rv;
3492 }
3493 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3494 wxRect rect;
3495 self->GetClippingBox(rect);
3496 return rect;
3497 }
3498 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3499 wxArrayInt widths;
3500 self->GetPartialTextExtents(text, widths);
3501 return widths;
3502 }
3503
3504 #define SWIG_From_double PyFloat_FromDouble
3505
3506 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3507 self->SetLogicalOrigin(point.x, point.y);
3508 }
3509 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3510 self->SetDeviceOrigin(point.x, point.y);
3511 }
3512 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3513 self->CalcBoundingBox(point.x, point.y);
3514 }
3515 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3516 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3517 }
3518 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3519 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3520 }
3521 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3522 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3523 }
3524 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3525 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3526 }
3527 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3528 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3529 }
3530 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3531 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3532 }
3533
3534 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3535 *x1 = dc->MinX();
3536 *y1 = dc->MinY();
3537 *x2 = dc->MaxX();
3538 *y2 = dc->MaxY();
3539 }
3540
3541
3542 #include <wx/dcbuffer.h>
3543
3544
3545 #include <wx/dcps.h>
3546
3547
3548 class wxMetaFile : public wxObject {
3549 public:
3550 wxMetaFile(const wxString&)
3551 { wxPyRaiseNotImplemented(); }
3552 };
3553
3554 class wxMetaFileDC : public wxClientDC {
3555 public:
3556 wxMetaFileDC(const wxString&, int, int, const wxString&)
3557 { wxPyRaiseNotImplemented(); }
3558 };
3559
3560
3561
3562 class wxPrinterDC : public wxClientDC {
3563 public:
3564 wxPrinterDC(const wxPrintData&)
3565 { wxPyRaiseNotImplemented(); }
3566
3567 };
3568
3569
3570 #include <wx/graphics.h>
3571
3572
3573 #if !wxUSE_GRAPHICS_CONTEXT
3574 // C++ stub classes for platforms or build configurations that don't have
3575 // wxGraphicsContext yet.
3576
3577
3578 class wxGraphicsObject : public wxObject
3579 {
3580 public :
3581 wxGraphicsObject( wxGraphicsRenderer* ) {
3582 PyErr_SetString(PyExc_NotImplementedError,
3583 "wx.GraphicsObject is not available on this platform.");
3584 }
3585 wxGraphicsObject( const wxGraphicsObject& ) {}
3586 virtual ~wxGraphicsObject() {}
3587 bool IsNull() const { return false; }
3588 wxGraphicsRenderer* GetRenderer() const { return NULL; }
3589 } ;
3590
3591
3592
3593 class wxGraphicsPen : public wxGraphicsObject
3594 {
3595 wxGraphicsPen() {}
3596 virtual ~wxGraphicsPen() {}
3597 } ;
3598 wxGraphicsPen wxNullGraphicsPen;
3599
3600
3601
3602 class wxGraphicsBrush : public wxGraphicsObject
3603 {
3604 public :
3605 wxGraphicsBrush() {}
3606 virtual ~wxGraphicsBrush() {}
3607 } ;
3608 wxGraphicsBrush wxNullGraphicsBrush;
3609
3610
3611
3612 class wxGraphicsFont : public wxGraphicsObject
3613 {
3614 public :
3615 wxGraphicsFont() {}
3616 virtual ~wxGraphicsFont() {}
3617 } ;
3618 wxGraphicsFont wxNullGraphicsFont;
3619
3620
3621
3622 class wxGraphicsPath : public wxGraphicsObject
3623 {
3624 public :
3625 wxGraphicsPath(wxGraphicsRenderer* ) {
3626 PyErr_SetString(PyExc_NotImplementedError,
3627 "wx.GraphicsPath is not available on this platform.");
3628 }
3629 virtual ~wxGraphicsPath() {}
3630
3631 virtual wxGraphicsPath *Clone() const { return NULL; }
3632
3633 void MoveToPoint( wxDouble, wxDouble ) {}
3634 void MoveToPoint( const wxPoint2DDouble& ) {}
3635 void AddLineToPoint( wxDouble, wxDouble ) {}
3636 void AddLineToPoint( const wxPoint2DDouble& ) {}
3637 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3638 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3639 void AddPath( const wxGraphicsPath* ) {}
3640 void CloseSubpath() {}
3641 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3642 wxPoint2DDouble GetCurrentPoint() { reutrn wxPoint2D(0,0); }
3643 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3644 void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {}
3645
3646 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3647 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3648 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3649 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3650
3651 void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3652 void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3653 void * GetNativePath() const { return NULL; }
3654 void UnGetNativePath(void *) {}
3655 void Transform( wxGraphicsMatrix* ) {}
3656 void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) {}
3657 wxRect2D GetBox() { return wxRect2D(0,0,0,0); }
3658
3659 bool Contains( wxDouble , wxDouble , int ) { return false; }
3660 bool Contains( const wxPoint2DDouble& , int ) { return false; }
3661 };
3662
3663
3664 class wxGraphicsMatrix : public wxGraphicsObject
3665 {
3666 public :
3667 wxGraphicsMatrix(wxGraphicsRenderer* ) {
3668 PyErr_SetString(PyExc_NotImplementedError,
3669 "wx.GraphicsMatrix is not available on this platform.");
3670 }
3671 virtual ~wxGraphicsMatrix() {}
3672 virtual wxGraphicsMatrix *Clone() const { return NULL; }
3673 virtual void Concat( const wxGraphicsMatrix * ) {}
3674 virtual void Copy( const wxGraphicsMatrix * ) {}
3675 virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble ,
3676 wxDouble , wxDouble ) {}
3677 virtual void Invert() {}
3678 virtual bool IsEqual( const wxGraphicsMatrix* t) const {}
3679 virtual bool IsIdentity() { return false; }
3680 virtual void Translate( wxDouble , wxDouble ) {}
3681 virtual void Scale( wxDouble , wxDouble ) {}
3682 virtual void Rotate( wxDouble ) {}
3683 virtual void TransformPoint( wxDouble *, wxDouble * ) {}
3684 virtual void TransformDistance( wxDouble *, wxDouble * ) {}
3685 virtual void * GetNativeMatrix() const { return NULL; }
3686 };
3687
3688
3689
3690 class wxGraphicsContext : public wxGraphicsObject
3691 {
3692 public:
3693
3694 wxGraphicsContext(wxGraphicsRenderer* ) {
3695 PyErr_SetString(PyExc_NotImplementedError,
3696 "wx.GraphicsContext is not available on this platform.");
3697 }
3698
3699 virtual ~wxGraphicsContext() {}
3700
3701 static wxGraphicsContext* Create( const wxWindowDC& ) {
3702 PyErr_SetString(PyExc_NotImplementedError,
3703 "wx.GraphicsContext is not available on this platform.");
3704 }
3705
3706 static wxGraphicsContext* CreateFromNative( void * ) {
3707 PyErr_SetString(PyExc_NotImplementedError,
3708 "wx.GraphicsContext is not available on this platform.");
3709 }
3710
3711 static wxGraphicsContext* CreateFromNativeWindow( void * ) {
3712 PyErr_SetString(PyExc_NotImplementedError,
3713 "wx.GraphicsContext is not available on this platform.");
3714 }
3715
3716 static wxGraphicsContext* Create( wxWindow* ) {
3717 PyErr_SetString(PyExc_NotImplementedError,
3718 "wx.GraphicsContext is not available on this platform.");
3719 }
3720
3721 wxGraphicsPath * CreatePath() { return NULL; }
3722
3723 virtual wxGraphicsPen CreatePen(const wxPen& ) { return NULL; }
3724
3725 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return NULL; }
3726
3727 virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3728 const wxColour&, const wxColour&) { return NULL; }
3729
3730 virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo,
3731 wxDouble xc, wxDouble yc, wxDouble radius,
3732 const wxColour &oColor, const wxColour &cColor) { return NULL; }
3733
3734 virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return NULL; }
3735
3736 virtual wxGraphicsMatrix* CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble,
3737 wxDouble, wxDouble) { return NULL; }
3738
3739 virtual void PushState() {}
3740 virtual void PopState() {}
3741 virtual void Clip( const wxRegion & ) {}
3742 virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3743 virtual void ResetClip() {}
3744 virtual void * GetNativeContext() { return NULL; }
3745 virtual void Translate( wxDouble , wxDouble ) {}
3746 virtual void Scale( wxDouble , wxDouble ) {}
3747 virtual void Rotate( wxDouble ) {}
3748 virtual void ConcatTransform( const wxGraphicsMatrix* ) {}
3749 virtual void SetTransform( const wxGraphicsMatrix* ) {}
3750 virtual void GetTransform( wxGraphicsMatrix* ) {}
3751
3752 virtual void SetPen( const wxGraphicsPen& ) {}
3753 void SetPen( const wxPen& ) {}
3754
3755 virtual void SetBrush( const wxGraphicsBrush& ) {}
3756 void SetBrush( const wxBrush& ) {}
3757
3758 virtual void SetFont( const wxGraphicsFont& ) {}
3759 void SetFont( const wxFont&, const wxColour& ) {}
3760
3761 virtual void StrokePath( const wxGraphicsPath * ) {}
3762 virtual void FillPath( const wxGraphicsPath *, int ) {}
3763 virtual void DrawPath( const wxGraphicsPath *, int ) {}
3764
3765 virtual void DrawText( const wxString &, wxDouble , wxDouble ) {}
3766 virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3767 virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3768 wxDouble *, wxDouble * ) const {}
3769 virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3770
3771 virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3772 virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3773
3774 virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3775 virtual void StrokeLines( size_t , const wxPoint2DDouble *) {}
3776 virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3777 virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3778 virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3779 virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3780 virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {}
3781 virtual bool ShouldOffset() const { return false; }
3782 };
3783
3784
3785 class wxGraphicsRenderer : public wxObject
3786 {
3787 public :
3788 wxGraphicsRenderer() {
3789 PyErr_SetString(PyExc_NotImplementedError,
3790 "wx.GraphicsRenderer is not available on this platform.");
3791 }
3792
3793 virtual ~wxGraphicsRenderer() {}
3794
3795 static wxGraphicsRenderer* GetDefaultRenderer(
3796 PyErr_SetString(PyExc_NotImplementedError,
3797 "wx.GraphicsRenderer is not available on this platform.");
3798 );
3799
3800 virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; }
3801 virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; }
3802 virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; }
3803 virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; }
3804
3805 virtual wxGraphicsPath * CreatePath() { return NULL; }
3806
3807 virtual wxGraphicsMatrix * CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble ,
3808 wxDouble , wxDouble ) { return NULL; }
3809
3810 virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGaphicsPen; }
3811 virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGaphicsBrush; }
3812 virtual wxGraphicsBrush CreateLinearGradientBrush(xDouble , wxDouble , wxDouble , wxDouble ,
3813 const wxColour&, const wxColour&) { return wxNullGaphicsBrush; }
3814 virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3815 const wxColour &, const wxColour &) { return wxNullGaphicsBrush; }
3816 virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGaphicsFont; }
3817 };
3818
3819
3820
3821 class wxGCDC: public wxWindowDC
3822 {
3823 public:
3824 wxGCDC(const wxWindowDC&) {
3825 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3826 PyErr_SetString(PyExc_NotImplementedError,
3827 "wxGCDC is not available on this platform.");
3828 wxPyEndBlockThreads(blocked);
3829 }
3830
3831 wxGCDC() {
3832 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3833 PyErr_SetString(PyExc_NotImplementedError,
3834 "wxGCDC is not available on this platform.");
3835 wxPyEndBlockThreads(blocked);
3836 }
3837
3838 virtual ~wxGCDC() {}
3839
3840 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3841 void SetGraphicsContext( wxGraphicsContext* ) {}
3842 };
3843
3844 #endif
3845
3846 SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){
3847 wxDouble width = 0.0,
3848 height = 0.0;
3849 self->GetTextExtent(text, &width, &height, NULL, NULL);
3850 // thread wrapers are turned off for this .i file, so no need to acquire GIL...
3851 PyObject* rv = PyTuple_New(2);
3852 PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width));
3853 PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height));
3854 return rv;
3855 }
3856 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3857 wxArrayDouble widths;
3858 self->GetPartialTextExtents(text, widths);
3859 return widths;
3860 }
3861 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3862 size_t c1, c2, count;
3863 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3864 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3865
3866 if ( beginP != NULL && endP != NULL )
3867 {
3868 count = wxMin(c1, c2);
3869 self->StrokeLines(count, beginP, endP);
3870 }
3871 delete [] beginP;
3872 delete [] endP;
3873 }
3874
3875 #include "wx/dcgraph.h"
3876
3877
3878 #include <wx/overlay.h>
3879
3880
3881
3882 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3883 self->AddColour(name, wxColour(red, green, blue));
3884 }
3885
3886 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3887 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3888 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3889 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3890
3891
3892 #include <wx/effects.h>
3893
3894
3895 #include "wx/renderer.h"
3896
3897
3898 SWIGINTERNINLINE PyObject*
3899 SWIG_From_bool (bool value)
3900 {
3901 return PyBool_FromLong(value ? 1 : 0);
3902 }
3903
3904
3905 #include "wx/wxPython/pseudodc.h"
3906
3907 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3908 wxRect rect;
3909 self->GetIdBounds(id, rect);
3910 return rect;
3911 }
3912 #ifdef __cplusplus
3913 extern "C" {
3914 #endif
3915 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3916 PyObject *resultobj = 0;
3917 wxGDIObject *result = 0 ;
3918
3919 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3920 {
3921 if (!wxPyCheckForApp()) SWIG_fail;
3922 PyThreadState* __tstate = wxPyBeginAllowThreads();
3923 result = (wxGDIObject *)new wxGDIObject();
3924 wxPyEndAllowThreads(__tstate);
3925 if (PyErr_Occurred()) SWIG_fail;
3926 }
3927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3928 return resultobj;
3929 fail:
3930 return NULL;
3931 }
3932
3933
3934 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3935 PyObject *resultobj = 0;
3936 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3937 void *argp1 = 0 ;
3938 int res1 = 0 ;
3939 PyObject *swig_obj[1] ;
3940
3941 if (!args) SWIG_fail;
3942 swig_obj[0] = args;
3943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3944 if (!SWIG_IsOK(res1)) {
3945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3946 }
3947 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3948 {
3949 PyThreadState* __tstate = wxPyBeginAllowThreads();
3950 delete arg1;
3951
3952 wxPyEndAllowThreads(__tstate);
3953 if (PyErr_Occurred()) SWIG_fail;
3954 }
3955 resultobj = SWIG_Py_Void();
3956 return resultobj;
3957 fail:
3958 return NULL;
3959 }
3960
3961
3962 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3963 PyObject *resultobj = 0;
3964 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3965 bool result;
3966 void *argp1 = 0 ;
3967 int res1 = 0 ;
3968 PyObject *swig_obj[1] ;
3969
3970 if (!args) SWIG_fail;
3971 swig_obj[0] = args;
3972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3973 if (!SWIG_IsOK(res1)) {
3974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3975 }
3976 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3977 {
3978 PyThreadState* __tstate = wxPyBeginAllowThreads();
3979 result = (bool)(arg1)->IsNull();
3980 wxPyEndAllowThreads(__tstate);
3981 if (PyErr_Occurred()) SWIG_fail;
3982 }
3983 {
3984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3985 }
3986 return resultobj;
3987 fail:
3988 return NULL;
3989 }
3990
3991
3992 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3993 PyObject *obj;
3994 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3995 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3996 return SWIG_Py_Void();
3997 }
3998
3999 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4000 return SWIG_Python_InitShadowInstance(args);
4001 }
4002
4003 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4004 PyObject *resultobj = 0;
4005 byte arg1 = (byte) 0 ;
4006 byte arg2 = (byte) 0 ;
4007 byte arg3 = (byte) 0 ;
4008 byte arg4 = (byte) wxALPHA_OPAQUE ;
4009 wxColour *result = 0 ;
4010 unsigned char val1 ;
4011 int ecode1 = 0 ;
4012 unsigned char val2 ;
4013 int ecode2 = 0 ;
4014 unsigned char val3 ;
4015 int ecode3 = 0 ;
4016 unsigned char val4 ;
4017 int ecode4 = 0 ;
4018 PyObject * obj0 = 0 ;
4019 PyObject * obj1 = 0 ;
4020 PyObject * obj2 = 0 ;
4021 PyObject * obj3 = 0 ;
4022 char * kwnames[] = {
4023 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4024 };
4025
4026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4027 if (obj0) {
4028 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
4029 if (!SWIG_IsOK(ecode1)) {
4030 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
4031 }
4032 arg1 = static_cast< byte >(val1);
4033 }
4034 if (obj1) {
4035 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4036 if (!SWIG_IsOK(ecode2)) {
4037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
4038 }
4039 arg2 = static_cast< byte >(val2);
4040 }
4041 if (obj2) {
4042 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4043 if (!SWIG_IsOK(ecode3)) {
4044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
4045 }
4046 arg3 = static_cast< byte >(val3);
4047 }
4048 if (obj3) {
4049 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4050 if (!SWIG_IsOK(ecode4)) {
4051 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
4052 }
4053 arg4 = static_cast< byte >(val4);
4054 }
4055 {
4056 PyThreadState* __tstate = wxPyBeginAllowThreads();
4057 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
4058 wxPyEndAllowThreads(__tstate);
4059 if (PyErr_Occurred()) SWIG_fail;
4060 }
4061 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
4062 return resultobj;
4063 fail:
4064 return NULL;
4065 }
4066
4067
4068 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4069 PyObject *resultobj = 0;
4070 wxString *arg1 = 0 ;
4071 wxColour *result = 0 ;
4072 bool temp1 = false ;
4073 PyObject * obj0 = 0 ;
4074 char * kwnames[] = {
4075 (char *) "colorName", NULL
4076 };
4077
4078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
4079 {
4080 arg1 = wxString_in_helper(obj0);
4081 if (arg1 == NULL) SWIG_fail;
4082 temp1 = true;
4083 }
4084 {
4085 if (!wxPyCheckForApp()) SWIG_fail;
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 result = (wxColour *)new wxColour((wxString const &)*arg1);
4088 wxPyEndAllowThreads(__tstate);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 }
4091 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4092 {
4093 if (temp1)
4094 delete arg1;
4095 }
4096 return resultobj;
4097 fail:
4098 {
4099 if (temp1)
4100 delete arg1;
4101 }
4102 return NULL;
4103 }
4104
4105
4106 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4107 PyObject *resultobj = 0;
4108 unsigned long arg1 ;
4109 wxColour *result = 0 ;
4110 unsigned long val1 ;
4111 int ecode1 = 0 ;
4112 PyObject * obj0 = 0 ;
4113 char * kwnames[] = {
4114 (char *) "colRGB", NULL
4115 };
4116
4117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
4118 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
4119 if (!SWIG_IsOK(ecode1)) {
4120 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
4121 }
4122 arg1 = static_cast< unsigned long >(val1);
4123 {
4124 PyThreadState* __tstate = wxPyBeginAllowThreads();
4125 result = (wxColour *)new wxColour(arg1);
4126 wxPyEndAllowThreads(__tstate);
4127 if (PyErr_Occurred()) SWIG_fail;
4128 }
4129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4130 return resultobj;
4131 fail:
4132 return NULL;
4133 }
4134
4135
4136 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4137 PyObject *resultobj = 0;
4138 wxColour *arg1 = (wxColour *) 0 ;
4139 void *argp1 = 0 ;
4140 int res1 = 0 ;
4141 PyObject *swig_obj[1] ;
4142
4143 if (!args) SWIG_fail;
4144 swig_obj[0] = args;
4145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
4146 if (!SWIG_IsOK(res1)) {
4147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
4148 }
4149 arg1 = reinterpret_cast< wxColour * >(argp1);
4150 {
4151 PyThreadState* __tstate = wxPyBeginAllowThreads();
4152 delete arg1;
4153
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 resultobj = SWIG_Py_Void();
4158 return resultobj;
4159 fail:
4160 return NULL;
4161 }
4162
4163
4164 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4165 PyObject *resultobj = 0;
4166 wxColour *arg1 = (wxColour *) 0 ;
4167 byte result;
4168 void *argp1 = 0 ;
4169 int res1 = 0 ;
4170 PyObject *swig_obj[1] ;
4171
4172 if (!args) SWIG_fail;
4173 swig_obj[0] = args;
4174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4175 if (!SWIG_IsOK(res1)) {
4176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
4177 }
4178 arg1 = reinterpret_cast< wxColour * >(argp1);
4179 {
4180 PyThreadState* __tstate = wxPyBeginAllowThreads();
4181 result = (byte)(arg1)->Red();
4182 wxPyEndAllowThreads(__tstate);
4183 if (PyErr_Occurred()) SWIG_fail;
4184 }
4185 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4186 return resultobj;
4187 fail:
4188 return NULL;
4189 }
4190
4191
4192 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4193 PyObject *resultobj = 0;
4194 wxColour *arg1 = (wxColour *) 0 ;
4195 byte result;
4196 void *argp1 = 0 ;
4197 int res1 = 0 ;
4198 PyObject *swig_obj[1] ;
4199
4200 if (!args) SWIG_fail;
4201 swig_obj[0] = args;
4202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4203 if (!SWIG_IsOK(res1)) {
4204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4205 }
4206 arg1 = reinterpret_cast< wxColour * >(argp1);
4207 {
4208 PyThreadState* __tstate = wxPyBeginAllowThreads();
4209 result = (byte)(arg1)->Green();
4210 wxPyEndAllowThreads(__tstate);
4211 if (PyErr_Occurred()) SWIG_fail;
4212 }
4213 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4214 return resultobj;
4215 fail:
4216 return NULL;
4217 }
4218
4219
4220 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4221 PyObject *resultobj = 0;
4222 wxColour *arg1 = (wxColour *) 0 ;
4223 byte result;
4224 void *argp1 = 0 ;
4225 int res1 = 0 ;
4226 PyObject *swig_obj[1] ;
4227
4228 if (!args) SWIG_fail;
4229 swig_obj[0] = args;
4230 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4231 if (!SWIG_IsOK(res1)) {
4232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4233 }
4234 arg1 = reinterpret_cast< wxColour * >(argp1);
4235 {
4236 PyThreadState* __tstate = wxPyBeginAllowThreads();
4237 result = (byte)(arg1)->Blue();
4238 wxPyEndAllowThreads(__tstate);
4239 if (PyErr_Occurred()) SWIG_fail;
4240 }
4241 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4242 return resultobj;
4243 fail:
4244 return NULL;
4245 }
4246
4247
4248 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4249 PyObject *resultobj = 0;
4250 wxColour *arg1 = (wxColour *) 0 ;
4251 byte result;
4252 void *argp1 = 0 ;
4253 int res1 = 0 ;
4254 PyObject *swig_obj[1] ;
4255
4256 if (!args) SWIG_fail;
4257 swig_obj[0] = args;
4258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4259 if (!SWIG_IsOK(res1)) {
4260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4261 }
4262 arg1 = reinterpret_cast< wxColour * >(argp1);
4263 {
4264 PyThreadState* __tstate = wxPyBeginAllowThreads();
4265 result = (byte)(arg1)->Alpha();
4266 wxPyEndAllowThreads(__tstate);
4267 if (PyErr_Occurred()) SWIG_fail;
4268 }
4269 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4270 return resultobj;
4271 fail:
4272 return NULL;
4273 }
4274
4275
4276 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4277 PyObject *resultobj = 0;
4278 wxColour *arg1 = (wxColour *) 0 ;
4279 bool result;
4280 void *argp1 = 0 ;
4281 int res1 = 0 ;
4282 PyObject *swig_obj[1] ;
4283
4284 if (!args) SWIG_fail;
4285 swig_obj[0] = args;
4286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4287 if (!SWIG_IsOK(res1)) {
4288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4289 }
4290 arg1 = reinterpret_cast< wxColour * >(argp1);
4291 {
4292 PyThreadState* __tstate = wxPyBeginAllowThreads();
4293 result = (bool)(arg1)->IsOk();
4294 wxPyEndAllowThreads(__tstate);
4295 if (PyErr_Occurred()) SWIG_fail;
4296 }
4297 {
4298 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4299 }
4300 return resultobj;
4301 fail:
4302 return NULL;
4303 }
4304
4305
4306 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4307 PyObject *resultobj = 0;
4308 wxColour *arg1 = (wxColour *) 0 ;
4309 byte arg2 ;
4310 byte arg3 ;
4311 byte arg4 ;
4312 byte arg5 = (byte) wxALPHA_OPAQUE ;
4313 void *argp1 = 0 ;
4314 int res1 = 0 ;
4315 unsigned char val2 ;
4316 int ecode2 = 0 ;
4317 unsigned char val3 ;
4318 int ecode3 = 0 ;
4319 unsigned char val4 ;
4320 int ecode4 = 0 ;
4321 unsigned char val5 ;
4322 int ecode5 = 0 ;
4323 PyObject * obj0 = 0 ;
4324 PyObject * obj1 = 0 ;
4325 PyObject * obj2 = 0 ;
4326 PyObject * obj3 = 0 ;
4327 PyObject * obj4 = 0 ;
4328 char * kwnames[] = {
4329 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4330 };
4331
4332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4334 if (!SWIG_IsOK(res1)) {
4335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4336 }
4337 arg1 = reinterpret_cast< wxColour * >(argp1);
4338 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4339 if (!SWIG_IsOK(ecode2)) {
4340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4341 }
4342 arg2 = static_cast< byte >(val2);
4343 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4344 if (!SWIG_IsOK(ecode3)) {
4345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4346 }
4347 arg3 = static_cast< byte >(val3);
4348 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4349 if (!SWIG_IsOK(ecode4)) {
4350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4351 }
4352 arg4 = static_cast< byte >(val4);
4353 if (obj4) {
4354 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4355 if (!SWIG_IsOK(ecode5)) {
4356 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4357 }
4358 arg5 = static_cast< byte >(val5);
4359 }
4360 {
4361 PyThreadState* __tstate = wxPyBeginAllowThreads();
4362 (arg1)->Set(arg2,arg3,arg4,arg5);
4363 wxPyEndAllowThreads(__tstate);
4364 if (PyErr_Occurred()) SWIG_fail;
4365 }
4366 resultobj = SWIG_Py_Void();
4367 return resultobj;
4368 fail:
4369 return NULL;
4370 }
4371
4372
4373 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4374 PyObject *resultobj = 0;
4375 wxColour *arg1 = (wxColour *) 0 ;
4376 unsigned long arg2 ;
4377 void *argp1 = 0 ;
4378 int res1 = 0 ;
4379 unsigned long val2 ;
4380 int ecode2 = 0 ;
4381 PyObject * obj0 = 0 ;
4382 PyObject * obj1 = 0 ;
4383 char * kwnames[] = {
4384 (char *) "self",(char *) "colRGB", NULL
4385 };
4386
4387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4389 if (!SWIG_IsOK(res1)) {
4390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4391 }
4392 arg1 = reinterpret_cast< wxColour * >(argp1);
4393 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4394 if (!SWIG_IsOK(ecode2)) {
4395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4396 }
4397 arg2 = static_cast< unsigned long >(val2);
4398 {
4399 PyThreadState* __tstate = wxPyBeginAllowThreads();
4400 (arg1)->Set(arg2);
4401 wxPyEndAllowThreads(__tstate);
4402 if (PyErr_Occurred()) SWIG_fail;
4403 }
4404 resultobj = SWIG_Py_Void();
4405 return resultobj;
4406 fail:
4407 return NULL;
4408 }
4409
4410
4411 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4412 PyObject *resultobj = 0;
4413 wxColour *arg1 = (wxColour *) 0 ;
4414 wxString *arg2 = 0 ;
4415 void *argp1 = 0 ;
4416 int res1 = 0 ;
4417 bool temp2 = false ;
4418 PyObject * obj0 = 0 ;
4419 PyObject * obj1 = 0 ;
4420 char * kwnames[] = {
4421 (char *) "self",(char *) "colourName", NULL
4422 };
4423
4424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4426 if (!SWIG_IsOK(res1)) {
4427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4428 }
4429 arg1 = reinterpret_cast< wxColour * >(argp1);
4430 {
4431 arg2 = wxString_in_helper(obj1);
4432 if (arg2 == NULL) SWIG_fail;
4433 temp2 = true;
4434 }
4435 {
4436 PyThreadState* __tstate = wxPyBeginAllowThreads();
4437 (arg1)->Set((wxString const &)*arg2);
4438 wxPyEndAllowThreads(__tstate);
4439 if (PyErr_Occurred()) SWIG_fail;
4440 }
4441 resultobj = SWIG_Py_Void();
4442 {
4443 if (temp2)
4444 delete arg2;
4445 }
4446 return resultobj;
4447 fail:
4448 {
4449 if (temp2)
4450 delete arg2;
4451 }
4452 return NULL;
4453 }
4454
4455
4456 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4457 PyObject *resultobj = 0;
4458 wxColour *arg1 = (wxColour *) 0 ;
4459 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4460 wxString result;
4461 void *argp1 = 0 ;
4462 int res1 = 0 ;
4463 long val2 ;
4464 int ecode2 = 0 ;
4465 PyObject * obj0 = 0 ;
4466 PyObject * obj1 = 0 ;
4467 char * kwnames[] = {
4468 (char *) "self",(char *) "flags", NULL
4469 };
4470
4471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4473 if (!SWIG_IsOK(res1)) {
4474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4475 }
4476 arg1 = reinterpret_cast< wxColour * >(argp1);
4477 if (obj1) {
4478 ecode2 = SWIG_AsVal_long(obj1, &val2);
4479 if (!SWIG_IsOK(ecode2)) {
4480 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4481 }
4482 arg2 = static_cast< long >(val2);
4483 }
4484 {
4485 PyThreadState* __tstate = wxPyBeginAllowThreads();
4486 result = ((wxColour const *)arg1)->GetAsString(arg2);
4487 wxPyEndAllowThreads(__tstate);
4488 if (PyErr_Occurred()) SWIG_fail;
4489 }
4490 {
4491 #if wxUSE_UNICODE
4492 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4493 #else
4494 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4495 #endif
4496 }
4497 return resultobj;
4498 fail:
4499 return NULL;
4500 }
4501
4502
4503 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4504 PyObject *resultobj = 0;
4505 wxColour *arg1 = (wxColour *) 0 ;
4506 long result;
4507 void *argp1 = 0 ;
4508 int res1 = 0 ;
4509 PyObject *swig_obj[1] ;
4510
4511 if (!args) SWIG_fail;
4512 swig_obj[0] = args;
4513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4514 if (!SWIG_IsOK(res1)) {
4515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4516 }
4517 arg1 = reinterpret_cast< wxColour * >(argp1);
4518 {
4519 PyThreadState* __tstate = wxPyBeginAllowThreads();
4520 result = (long)((wxColour const *)arg1)->GetPixel();
4521 wxPyEndAllowThreads(__tstate);
4522 if (PyErr_Occurred()) SWIG_fail;
4523 }
4524 resultobj = SWIG_From_long(static_cast< long >(result));
4525 return resultobj;
4526 fail:
4527 return NULL;
4528 }
4529
4530
4531 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4532 PyObject *resultobj = 0;
4533 wxColour *arg1 = (wxColour *) 0 ;
4534 PyObject *arg2 = (PyObject *) 0 ;
4535 bool result;
4536 void *argp1 = 0 ;
4537 int res1 = 0 ;
4538 PyObject * obj0 = 0 ;
4539 PyObject * obj1 = 0 ;
4540 char * kwnames[] = {
4541 (char *) "self",(char *) "other", NULL
4542 };
4543
4544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4546 if (!SWIG_IsOK(res1)) {
4547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4548 }
4549 arg1 = reinterpret_cast< wxColour * >(argp1);
4550 arg2 = obj1;
4551 {
4552 result = (bool)wxColour___eq__(arg1,arg2);
4553 if (PyErr_Occurred()) SWIG_fail;
4554 }
4555 {
4556 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4557 }
4558 return resultobj;
4559 fail:
4560 return NULL;
4561 }
4562
4563
4564 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4565 PyObject *resultobj = 0;
4566 wxColour *arg1 = (wxColour *) 0 ;
4567 PyObject *arg2 = (PyObject *) 0 ;
4568 bool result;
4569 void *argp1 = 0 ;
4570 int res1 = 0 ;
4571 PyObject * obj0 = 0 ;
4572 PyObject * obj1 = 0 ;
4573 char * kwnames[] = {
4574 (char *) "self",(char *) "other", NULL
4575 };
4576
4577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4579 if (!SWIG_IsOK(res1)) {
4580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4581 }
4582 arg1 = reinterpret_cast< wxColour * >(argp1);
4583 arg2 = obj1;
4584 {
4585 result = (bool)wxColour___ne__(arg1,arg2);
4586 if (PyErr_Occurred()) SWIG_fail;
4587 }
4588 {
4589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4590 }
4591 return resultobj;
4592 fail:
4593 return NULL;
4594 }
4595
4596
4597 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4598 PyObject *resultobj = 0;
4599 wxColour *arg1 = (wxColour *) 0 ;
4600 bool arg2 = (bool) false ;
4601 PyObject *result = 0 ;
4602 void *argp1 = 0 ;
4603 int res1 = 0 ;
4604 bool val2 ;
4605 int ecode2 = 0 ;
4606 PyObject * obj0 = 0 ;
4607 PyObject * obj1 = 0 ;
4608 char * kwnames[] = {
4609 (char *) "self",(char *) "includeAlpha", NULL
4610 };
4611
4612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4614 if (!SWIG_IsOK(res1)) {
4615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4616 }
4617 arg1 = reinterpret_cast< wxColour * >(argp1);
4618 if (obj1) {
4619 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4620 if (!SWIG_IsOK(ecode2)) {
4621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4622 }
4623 arg2 = static_cast< bool >(val2);
4624 }
4625 {
4626 result = (PyObject *)wxColour_Get(arg1,arg2);
4627 if (PyErr_Occurred()) SWIG_fail;
4628 }
4629 resultobj = result;
4630 return resultobj;
4631 fail:
4632 return NULL;
4633 }
4634
4635
4636 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4637 PyObject *resultobj = 0;
4638 wxColour *arg1 = (wxColour *) 0 ;
4639 unsigned long result;
4640 void *argp1 = 0 ;
4641 int res1 = 0 ;
4642 PyObject *swig_obj[1] ;
4643
4644 if (!args) SWIG_fail;
4645 swig_obj[0] = args;
4646 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4647 if (!SWIG_IsOK(res1)) {
4648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4649 }
4650 arg1 = reinterpret_cast< wxColour * >(argp1);
4651 {
4652 result = (unsigned long)wxColour_GetRGB(arg1);
4653 if (PyErr_Occurred()) SWIG_fail;
4654 }
4655 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4656 return resultobj;
4657 fail:
4658 return NULL;
4659 }
4660
4661
4662 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4663 PyObject *obj;
4664 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4665 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4666 return SWIG_Py_Void();
4667 }
4668
4669 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4670 return SWIG_Python_InitShadowInstance(args);
4671 }
4672
4673 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4674 PyObject *resultobj = 0;
4675 int arg1 ;
4676 unsigned char *arg2 = (unsigned char *) 0 ;
4677 unsigned char *arg3 = (unsigned char *) 0 ;
4678 unsigned char *arg4 = (unsigned char *) 0 ;
4679 wxPalette *result = 0 ;
4680 int val1 ;
4681 int ecode1 = 0 ;
4682 void *argp2 = 0 ;
4683 int res2 = 0 ;
4684 void *argp3 = 0 ;
4685 int res3 = 0 ;
4686 void *argp4 = 0 ;
4687 int res4 = 0 ;
4688 PyObject * obj0 = 0 ;
4689 PyObject * obj1 = 0 ;
4690 PyObject * obj2 = 0 ;
4691 PyObject * obj3 = 0 ;
4692 char * kwnames[] = {
4693 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4694 };
4695
4696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4697 ecode1 = SWIG_AsVal_int(obj0, &val1);
4698 if (!SWIG_IsOK(ecode1)) {
4699 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4700 }
4701 arg1 = static_cast< int >(val1);
4702 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4703 if (!SWIG_IsOK(res2)) {
4704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4705 }
4706 arg2 = reinterpret_cast< unsigned char * >(argp2);
4707 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4708 if (!SWIG_IsOK(res3)) {
4709 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4710 }
4711 arg3 = reinterpret_cast< unsigned char * >(argp3);
4712 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4713 if (!SWIG_IsOK(res4)) {
4714 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4715 }
4716 arg4 = reinterpret_cast< unsigned char * >(argp4);
4717 {
4718 if (!wxPyCheckForApp()) SWIG_fail;
4719 PyThreadState* __tstate = wxPyBeginAllowThreads();
4720 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4721 wxPyEndAllowThreads(__tstate);
4722 if (PyErr_Occurred()) SWIG_fail;
4723 }
4724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4725 return resultobj;
4726 fail:
4727 return NULL;
4728 }
4729
4730
4731 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4732 PyObject *resultobj = 0;
4733 wxPalette *arg1 = (wxPalette *) 0 ;
4734 void *argp1 = 0 ;
4735 int res1 = 0 ;
4736 PyObject *swig_obj[1] ;
4737
4738 if (!args) SWIG_fail;
4739 swig_obj[0] = args;
4740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4741 if (!SWIG_IsOK(res1)) {
4742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4743 }
4744 arg1 = reinterpret_cast< wxPalette * >(argp1);
4745 {
4746 PyThreadState* __tstate = wxPyBeginAllowThreads();
4747 delete arg1;
4748
4749 wxPyEndAllowThreads(__tstate);
4750 if (PyErr_Occurred()) SWIG_fail;
4751 }
4752 resultobj = SWIG_Py_Void();
4753 return resultobj;
4754 fail:
4755 return NULL;
4756 }
4757
4758
4759 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4760 PyObject *resultobj = 0;
4761 wxPalette *arg1 = (wxPalette *) 0 ;
4762 byte arg2 ;
4763 byte arg3 ;
4764 byte arg4 ;
4765 int result;
4766 void *argp1 = 0 ;
4767 int res1 = 0 ;
4768 unsigned char val2 ;
4769 int ecode2 = 0 ;
4770 unsigned char val3 ;
4771 int ecode3 = 0 ;
4772 unsigned char val4 ;
4773 int ecode4 = 0 ;
4774 PyObject * obj0 = 0 ;
4775 PyObject * obj1 = 0 ;
4776 PyObject * obj2 = 0 ;
4777 PyObject * obj3 = 0 ;
4778 char * kwnames[] = {
4779 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4780 };
4781
4782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4784 if (!SWIG_IsOK(res1)) {
4785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4786 }
4787 arg1 = reinterpret_cast< wxPalette * >(argp1);
4788 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4789 if (!SWIG_IsOK(ecode2)) {
4790 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4791 }
4792 arg2 = static_cast< byte >(val2);
4793 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4794 if (!SWIG_IsOK(ecode3)) {
4795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4796 }
4797 arg3 = static_cast< byte >(val3);
4798 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4799 if (!SWIG_IsOK(ecode4)) {
4800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4801 }
4802 arg4 = static_cast< byte >(val4);
4803 {
4804 PyThreadState* __tstate = wxPyBeginAllowThreads();
4805 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4806 wxPyEndAllowThreads(__tstate);
4807 if (PyErr_Occurred()) SWIG_fail;
4808 }
4809 resultobj = SWIG_From_int(static_cast< int >(result));
4810 return resultobj;
4811 fail:
4812 return NULL;
4813 }
4814
4815
4816 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4817 PyObject *resultobj = 0;
4818 wxPalette *arg1 = (wxPalette *) 0 ;
4819 int arg2 ;
4820 byte *arg3 = (byte *) 0 ;
4821 byte *arg4 = (byte *) 0 ;
4822 byte *arg5 = (byte *) 0 ;
4823 bool result;
4824 void *argp1 = 0 ;
4825 int res1 = 0 ;
4826 int val2 ;
4827 int ecode2 = 0 ;
4828 byte temp3 ;
4829 int res3 = SWIG_TMPOBJ ;
4830 byte temp4 ;
4831 int res4 = SWIG_TMPOBJ ;
4832 byte temp5 ;
4833 int res5 = SWIG_TMPOBJ ;
4834 PyObject * obj0 = 0 ;
4835 PyObject * obj1 = 0 ;
4836 char * kwnames[] = {
4837 (char *) "self",(char *) "pixel", NULL
4838 };
4839
4840 arg3 = &temp3;
4841 arg4 = &temp4;
4842 arg5 = &temp5;
4843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4847 }
4848 arg1 = reinterpret_cast< wxPalette * >(argp1);
4849 ecode2 = SWIG_AsVal_int(obj1, &val2);
4850 if (!SWIG_IsOK(ecode2)) {
4851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4852 }
4853 arg2 = static_cast< int >(val2);
4854 {
4855 PyThreadState* __tstate = wxPyBeginAllowThreads();
4856 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4857 wxPyEndAllowThreads(__tstate);
4858 if (PyErr_Occurred()) SWIG_fail;
4859 }
4860 {
4861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4862 }
4863 if (SWIG_IsTmpObj(res3)) {
4864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4865 } else {
4866 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4868 }
4869 if (SWIG_IsTmpObj(res4)) {
4870 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4871 } else {
4872 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4873 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4874 }
4875 if (SWIG_IsTmpObj(res5)) {
4876 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4877 } else {
4878 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4880 }
4881 return resultobj;
4882 fail:
4883 return NULL;
4884 }
4885
4886
4887 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4888 PyObject *resultobj = 0;
4889 wxPalette *arg1 = (wxPalette *) 0 ;
4890 int result;
4891 void *argp1 = 0 ;
4892 int res1 = 0 ;
4893 PyObject *swig_obj[1] ;
4894
4895 if (!args) SWIG_fail;
4896 swig_obj[0] = args;
4897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4898 if (!SWIG_IsOK(res1)) {
4899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4900 }
4901 arg1 = reinterpret_cast< wxPalette * >(argp1);
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_From_int(static_cast< int >(result));
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4916 PyObject *resultobj = 0;
4917 wxPalette *arg1 = (wxPalette *) 0 ;
4918 bool result;
4919 void *argp1 = 0 ;
4920 int res1 = 0 ;
4921 PyObject *swig_obj[1] ;
4922
4923 if (!args) SWIG_fail;
4924 swig_obj[0] = args;
4925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4926 if (!SWIG_IsOK(res1)) {
4927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4928 }
4929 arg1 = reinterpret_cast< wxPalette * >(argp1);
4930 {
4931 PyThreadState* __tstate = wxPyBeginAllowThreads();
4932 result = (bool)(arg1)->IsOk();
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 }
4936 {
4937 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4938 }
4939 return resultobj;
4940 fail:
4941 return NULL;
4942 }
4943
4944
4945 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4946 PyObject *obj;
4947 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4948 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4949 return SWIG_Py_Void();
4950 }
4951
4952 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4953 return SWIG_Python_InitShadowInstance(args);
4954 }
4955
4956 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4957 PyObject *resultobj = 0;
4958 wxColour *arg1 = 0 ;
4959 int arg2 = (int) 1 ;
4960 int arg3 = (int) wxSOLID ;
4961 wxPen *result = 0 ;
4962 wxColour temp1 ;
4963 int val2 ;
4964 int ecode2 = 0 ;
4965 int val3 ;
4966 int ecode3 = 0 ;
4967 PyObject * obj0 = 0 ;
4968 PyObject * obj1 = 0 ;
4969 PyObject * obj2 = 0 ;
4970 char * kwnames[] = {
4971 (char *) "colour",(char *) "width",(char *) "style", NULL
4972 };
4973
4974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4975 {
4976 arg1 = &temp1;
4977 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4978 }
4979 if (obj1) {
4980 ecode2 = SWIG_AsVal_int(obj1, &val2);
4981 if (!SWIG_IsOK(ecode2)) {
4982 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4983 }
4984 arg2 = static_cast< int >(val2);
4985 }
4986 if (obj2) {
4987 ecode3 = SWIG_AsVal_int(obj2, &val3);
4988 if (!SWIG_IsOK(ecode3)) {
4989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4990 }
4991 arg3 = static_cast< int >(val3);
4992 }
4993 {
4994 if (!wxPyCheckForApp()) SWIG_fail;
4995 PyThreadState* __tstate = wxPyBeginAllowThreads();
4996 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4997 wxPyEndAllowThreads(__tstate);
4998 if (PyErr_Occurred()) SWIG_fail;
4999 }
5000 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
5001 return resultobj;
5002 fail:
5003 return NULL;
5004 }
5005
5006
5007 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5008 PyObject *resultobj = 0;
5009 wxPen *arg1 = (wxPen *) 0 ;
5010 void *argp1 = 0 ;
5011 int res1 = 0 ;
5012 PyObject *swig_obj[1] ;
5013
5014 if (!args) SWIG_fail;
5015 swig_obj[0] = args;
5016 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
5017 if (!SWIG_IsOK(res1)) {
5018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
5019 }
5020 arg1 = reinterpret_cast< wxPen * >(argp1);
5021 {
5022 PyThreadState* __tstate = wxPyBeginAllowThreads();
5023 delete arg1;
5024
5025 wxPyEndAllowThreads(__tstate);
5026 if (PyErr_Occurred()) SWIG_fail;
5027 }
5028 resultobj = SWIG_Py_Void();
5029 return resultobj;
5030 fail:
5031 return NULL;
5032 }
5033
5034
5035 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5036 PyObject *resultobj = 0;
5037 wxPen *arg1 = (wxPen *) 0 ;
5038 int result;
5039 void *argp1 = 0 ;
5040 int res1 = 0 ;
5041 PyObject *swig_obj[1] ;
5042
5043 if (!args) SWIG_fail;
5044 swig_obj[0] = args;
5045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5046 if (!SWIG_IsOK(res1)) {
5047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5048 }
5049 arg1 = reinterpret_cast< wxPen * >(argp1);
5050 {
5051 PyThreadState* __tstate = wxPyBeginAllowThreads();
5052 result = (int)(arg1)->GetCap();
5053 wxPyEndAllowThreads(__tstate);
5054 if (PyErr_Occurred()) SWIG_fail;
5055 }
5056 resultobj = SWIG_From_int(static_cast< int >(result));
5057 return resultobj;
5058 fail:
5059 return NULL;
5060 }
5061
5062
5063 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5064 PyObject *resultobj = 0;
5065 wxPen *arg1 = (wxPen *) 0 ;
5066 wxColour result;
5067 void *argp1 = 0 ;
5068 int res1 = 0 ;
5069 PyObject *swig_obj[1] ;
5070
5071 if (!args) SWIG_fail;
5072 swig_obj[0] = args;
5073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5074 if (!SWIG_IsOK(res1)) {
5075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5076 }
5077 arg1 = reinterpret_cast< wxPen * >(argp1);
5078 {
5079 PyThreadState* __tstate = wxPyBeginAllowThreads();
5080 result = (arg1)->GetColour();
5081 wxPyEndAllowThreads(__tstate);
5082 if (PyErr_Occurred()) SWIG_fail;
5083 }
5084 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5085 return resultobj;
5086 fail:
5087 return NULL;
5088 }
5089
5090
5091 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5092 PyObject *resultobj = 0;
5093 wxPen *arg1 = (wxPen *) 0 ;
5094 int result;
5095 void *argp1 = 0 ;
5096 int res1 = 0 ;
5097 PyObject *swig_obj[1] ;
5098
5099 if (!args) SWIG_fail;
5100 swig_obj[0] = args;
5101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5102 if (!SWIG_IsOK(res1)) {
5103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5104 }
5105 arg1 = reinterpret_cast< wxPen * >(argp1);
5106 {
5107 PyThreadState* __tstate = wxPyBeginAllowThreads();
5108 result = (int)(arg1)->GetJoin();
5109 wxPyEndAllowThreads(__tstate);
5110 if (PyErr_Occurred()) SWIG_fail;
5111 }
5112 resultobj = SWIG_From_int(static_cast< int >(result));
5113 return resultobj;
5114 fail:
5115 return NULL;
5116 }
5117
5118
5119 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5120 PyObject *resultobj = 0;
5121 wxPen *arg1 = (wxPen *) 0 ;
5122 int result;
5123 void *argp1 = 0 ;
5124 int res1 = 0 ;
5125 PyObject *swig_obj[1] ;
5126
5127 if (!args) SWIG_fail;
5128 swig_obj[0] = args;
5129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5130 if (!SWIG_IsOK(res1)) {
5131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5132 }
5133 arg1 = reinterpret_cast< wxPen * >(argp1);
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 result = (int)(arg1)->GetStyle();
5137 wxPyEndAllowThreads(__tstate);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 }
5140 resultobj = SWIG_From_int(static_cast< int >(result));
5141 return resultobj;
5142 fail:
5143 return NULL;
5144 }
5145
5146
5147 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5148 PyObject *resultobj = 0;
5149 wxPen *arg1 = (wxPen *) 0 ;
5150 int result;
5151 void *argp1 = 0 ;
5152 int res1 = 0 ;
5153 PyObject *swig_obj[1] ;
5154
5155 if (!args) SWIG_fail;
5156 swig_obj[0] = args;
5157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5158 if (!SWIG_IsOK(res1)) {
5159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5160 }
5161 arg1 = reinterpret_cast< wxPen * >(argp1);
5162 {
5163 PyThreadState* __tstate = wxPyBeginAllowThreads();
5164 result = (int)(arg1)->GetWidth();
5165 wxPyEndAllowThreads(__tstate);
5166 if (PyErr_Occurred()) SWIG_fail;
5167 }
5168 resultobj = SWIG_From_int(static_cast< int >(result));
5169 return resultobj;
5170 fail:
5171 return NULL;
5172 }
5173
5174
5175 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5176 PyObject *resultobj = 0;
5177 wxPen *arg1 = (wxPen *) 0 ;
5178 bool result;
5179 void *argp1 = 0 ;
5180 int res1 = 0 ;
5181 PyObject *swig_obj[1] ;
5182
5183 if (!args) SWIG_fail;
5184 swig_obj[0] = args;
5185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5186 if (!SWIG_IsOK(res1)) {
5187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5188 }
5189 arg1 = reinterpret_cast< wxPen * >(argp1);
5190 {
5191 PyThreadState* __tstate = wxPyBeginAllowThreads();
5192 result = (bool)(arg1)->IsOk();
5193 wxPyEndAllowThreads(__tstate);
5194 if (PyErr_Occurred()) SWIG_fail;
5195 }
5196 {
5197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5198 }
5199 return resultobj;
5200 fail:
5201 return NULL;
5202 }
5203
5204
5205 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5206 PyObject *resultobj = 0;
5207 wxPen *arg1 = (wxPen *) 0 ;
5208 int arg2 ;
5209 void *argp1 = 0 ;
5210 int res1 = 0 ;
5211 int val2 ;
5212 int ecode2 = 0 ;
5213 PyObject * obj0 = 0 ;
5214 PyObject * obj1 = 0 ;
5215 char * kwnames[] = {
5216 (char *) "self",(char *) "cap_style", NULL
5217 };
5218
5219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5221 if (!SWIG_IsOK(res1)) {
5222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5223 }
5224 arg1 = reinterpret_cast< wxPen * >(argp1);
5225 ecode2 = SWIG_AsVal_int(obj1, &val2);
5226 if (!SWIG_IsOK(ecode2)) {
5227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5228 }
5229 arg2 = static_cast< int >(val2);
5230 {
5231 PyThreadState* __tstate = wxPyBeginAllowThreads();
5232 (arg1)->SetCap(arg2);
5233 wxPyEndAllowThreads(__tstate);
5234 if (PyErr_Occurred()) SWIG_fail;
5235 }
5236 resultobj = SWIG_Py_Void();
5237 return resultobj;
5238 fail:
5239 return NULL;
5240 }
5241
5242
5243 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5244 PyObject *resultobj = 0;
5245 wxPen *arg1 = (wxPen *) 0 ;
5246 wxColour *arg2 = 0 ;
5247 void *argp1 = 0 ;
5248 int res1 = 0 ;
5249 wxColour temp2 ;
5250 PyObject * obj0 = 0 ;
5251 PyObject * obj1 = 0 ;
5252 char * kwnames[] = {
5253 (char *) "self",(char *) "colour", NULL
5254 };
5255
5256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5258 if (!SWIG_IsOK(res1)) {
5259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5260 }
5261 arg1 = reinterpret_cast< wxPen * >(argp1);
5262 {
5263 arg2 = &temp2;
5264 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5265 }
5266 {
5267 PyThreadState* __tstate = wxPyBeginAllowThreads();
5268 (arg1)->SetColour(*arg2);
5269 wxPyEndAllowThreads(__tstate);
5270 if (PyErr_Occurred()) SWIG_fail;
5271 }
5272 resultobj = SWIG_Py_Void();
5273 return resultobj;
5274 fail:
5275 return NULL;
5276 }
5277
5278
5279 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5280 PyObject *resultobj = 0;
5281 wxPen *arg1 = (wxPen *) 0 ;
5282 int arg2 ;
5283 void *argp1 = 0 ;
5284 int res1 = 0 ;
5285 int val2 ;
5286 int ecode2 = 0 ;
5287 PyObject * obj0 = 0 ;
5288 PyObject * obj1 = 0 ;
5289 char * kwnames[] = {
5290 (char *) "self",(char *) "join_style", NULL
5291 };
5292
5293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5295 if (!SWIG_IsOK(res1)) {
5296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5297 }
5298 arg1 = reinterpret_cast< wxPen * >(argp1);
5299 ecode2 = SWIG_AsVal_int(obj1, &val2);
5300 if (!SWIG_IsOK(ecode2)) {
5301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5302 }
5303 arg2 = static_cast< int >(val2);
5304 {
5305 PyThreadState* __tstate = wxPyBeginAllowThreads();
5306 (arg1)->SetJoin(arg2);
5307 wxPyEndAllowThreads(__tstate);
5308 if (PyErr_Occurred()) SWIG_fail;
5309 }
5310 resultobj = SWIG_Py_Void();
5311 return resultobj;
5312 fail:
5313 return NULL;
5314 }
5315
5316
5317 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5318 PyObject *resultobj = 0;
5319 wxPen *arg1 = (wxPen *) 0 ;
5320 int arg2 ;
5321 void *argp1 = 0 ;
5322 int res1 = 0 ;
5323 int val2 ;
5324 int ecode2 = 0 ;
5325 PyObject * obj0 = 0 ;
5326 PyObject * obj1 = 0 ;
5327 char * kwnames[] = {
5328 (char *) "self",(char *) "style", NULL
5329 };
5330
5331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5333 if (!SWIG_IsOK(res1)) {
5334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5335 }
5336 arg1 = reinterpret_cast< wxPen * >(argp1);
5337 ecode2 = SWIG_AsVal_int(obj1, &val2);
5338 if (!SWIG_IsOK(ecode2)) {
5339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5340 }
5341 arg2 = static_cast< int >(val2);
5342 {
5343 PyThreadState* __tstate = wxPyBeginAllowThreads();
5344 (arg1)->SetStyle(arg2);
5345 wxPyEndAllowThreads(__tstate);
5346 if (PyErr_Occurred()) SWIG_fail;
5347 }
5348 resultobj = SWIG_Py_Void();
5349 return resultobj;
5350 fail:
5351 return NULL;
5352 }
5353
5354
5355 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5356 PyObject *resultobj = 0;
5357 wxPen *arg1 = (wxPen *) 0 ;
5358 int arg2 ;
5359 void *argp1 = 0 ;
5360 int res1 = 0 ;
5361 int val2 ;
5362 int ecode2 = 0 ;
5363 PyObject * obj0 = 0 ;
5364 PyObject * obj1 = 0 ;
5365 char * kwnames[] = {
5366 (char *) "self",(char *) "width", NULL
5367 };
5368
5369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5371 if (!SWIG_IsOK(res1)) {
5372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5373 }
5374 arg1 = reinterpret_cast< wxPen * >(argp1);
5375 ecode2 = SWIG_AsVal_int(obj1, &val2);
5376 if (!SWIG_IsOK(ecode2)) {
5377 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5378 }
5379 arg2 = static_cast< int >(val2);
5380 {
5381 PyThreadState* __tstate = wxPyBeginAllowThreads();
5382 (arg1)->SetWidth(arg2);
5383 wxPyEndAllowThreads(__tstate);
5384 if (PyErr_Occurred()) SWIG_fail;
5385 }
5386 resultobj = SWIG_Py_Void();
5387 return resultobj;
5388 fail:
5389 return NULL;
5390 }
5391
5392
5393 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5394 PyObject *resultobj = 0;
5395 wxPen *arg1 = (wxPen *) 0 ;
5396 int arg2 ;
5397 wxDash *arg3 = (wxDash *) 0 ;
5398 void *argp1 = 0 ;
5399 int res1 = 0 ;
5400 PyObject * obj0 = 0 ;
5401 PyObject * obj1 = 0 ;
5402 char * kwnames[] = {
5403 (char *) "self",(char *) "dashes", NULL
5404 };
5405
5406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5408 if (!SWIG_IsOK(res1)) {
5409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5410 }
5411 arg1 = reinterpret_cast< wxPen * >(argp1);
5412 {
5413 arg2 = PyList_Size(obj1);
5414 arg3 = (wxDash*)byte_LIST_helper(obj1);
5415 if (arg3 == NULL) SWIG_fail;
5416 }
5417 {
5418 PyThreadState* __tstate = wxPyBeginAllowThreads();
5419 (arg1)->SetDashes(arg2,arg3);
5420 wxPyEndAllowThreads(__tstate);
5421 if (PyErr_Occurred()) SWIG_fail;
5422 }
5423 resultobj = SWIG_Py_Void();
5424 {
5425 if (arg3) delete [] arg3;
5426 }
5427 return resultobj;
5428 fail:
5429 {
5430 if (arg3) delete [] arg3;
5431 }
5432 return NULL;
5433 }
5434
5435
5436 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5437 PyObject *resultobj = 0;
5438 wxPen *arg1 = (wxPen *) 0 ;
5439 PyObject *result = 0 ;
5440 void *argp1 = 0 ;
5441 int res1 = 0 ;
5442 PyObject *swig_obj[1] ;
5443
5444 if (!args) SWIG_fail;
5445 swig_obj[0] = args;
5446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5447 if (!SWIG_IsOK(res1)) {
5448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5449 }
5450 arg1 = reinterpret_cast< wxPen * >(argp1);
5451 {
5452 PyThreadState* __tstate = wxPyBeginAllowThreads();
5453 result = (PyObject *)wxPen_GetDashes(arg1);
5454 wxPyEndAllowThreads(__tstate);
5455 if (PyErr_Occurred()) SWIG_fail;
5456 }
5457 resultobj = result;
5458 return resultobj;
5459 fail:
5460 return NULL;
5461 }
5462
5463
5464 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5465 PyObject *resultobj = 0;
5466 wxPen *arg1 = (wxPen *) 0 ;
5467 PyObject *arg2 = (PyObject *) 0 ;
5468 PyObject *arg3 = (PyObject *) 0 ;
5469 void *argp1 = 0 ;
5470 int res1 = 0 ;
5471 PyObject * obj0 = 0 ;
5472 PyObject * obj1 = 0 ;
5473 PyObject * obj2 = 0 ;
5474 char * kwnames[] = {
5475 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5476 };
5477
5478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5480 if (!SWIG_IsOK(res1)) {
5481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5482 }
5483 arg1 = reinterpret_cast< wxPen * >(argp1);
5484 arg2 = obj1;
5485 arg3 = obj2;
5486 {
5487 PyThreadState* __tstate = wxPyBeginAllowThreads();
5488 wxPen__SetDashes(arg1,arg2,arg3);
5489 wxPyEndAllowThreads(__tstate);
5490 if (PyErr_Occurred()) SWIG_fail;
5491 }
5492 resultobj = SWIG_Py_Void();
5493 return resultobj;
5494 fail:
5495 return NULL;
5496 }
5497
5498
5499 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5500 PyObject *resultobj = 0;
5501 wxPen *arg1 = (wxPen *) 0 ;
5502 int result;
5503 void *argp1 = 0 ;
5504 int res1 = 0 ;
5505 PyObject *swig_obj[1] ;
5506
5507 if (!args) SWIG_fail;
5508 swig_obj[0] = args;
5509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5510 if (!SWIG_IsOK(res1)) {
5511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5512 }
5513 arg1 = reinterpret_cast< wxPen * >(argp1);
5514 {
5515 PyThreadState* __tstate = wxPyBeginAllowThreads();
5516 result = (int)((wxPen const *)arg1)->GetDashCount();
5517 wxPyEndAllowThreads(__tstate);
5518 if (PyErr_Occurred()) SWIG_fail;
5519 }
5520 resultobj = SWIG_From_int(static_cast< int >(result));
5521 return resultobj;
5522 fail:
5523 return NULL;
5524 }
5525
5526
5527 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5528 PyObject *resultobj = 0;
5529 wxPen *arg1 = (wxPen *) 0 ;
5530 wxPen *arg2 = (wxPen *) 0 ;
5531 bool result;
5532 void *argp1 = 0 ;
5533 int res1 = 0 ;
5534 void *argp2 = 0 ;
5535 int res2 = 0 ;
5536 PyObject * obj0 = 0 ;
5537 PyObject * obj1 = 0 ;
5538 char * kwnames[] = {
5539 (char *) "self",(char *) "other", NULL
5540 };
5541
5542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5544 if (!SWIG_IsOK(res1)) {
5545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5546 }
5547 arg1 = reinterpret_cast< wxPen * >(argp1);
5548 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5549 if (!SWIG_IsOK(res2)) {
5550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5551 }
5552 arg2 = reinterpret_cast< wxPen * >(argp2);
5553 {
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 {
5560 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5561 }
5562 return resultobj;
5563 fail:
5564 return NULL;
5565 }
5566
5567
5568 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5569 PyObject *resultobj = 0;
5570 wxPen *arg1 = (wxPen *) 0 ;
5571 wxPen *arg2 = (wxPen *) 0 ;
5572 bool result;
5573 void *argp1 = 0 ;
5574 int res1 = 0 ;
5575 void *argp2 = 0 ;
5576 int res2 = 0 ;
5577 PyObject * obj0 = 0 ;
5578 PyObject * obj1 = 0 ;
5579 char * kwnames[] = {
5580 (char *) "self",(char *) "other", NULL
5581 };
5582
5583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5585 if (!SWIG_IsOK(res1)) {
5586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5587 }
5588 arg1 = reinterpret_cast< wxPen * >(argp1);
5589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5590 if (!SWIG_IsOK(res2)) {
5591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5592 }
5593 arg2 = reinterpret_cast< wxPen * >(argp2);
5594 {
5595 PyThreadState* __tstate = wxPyBeginAllowThreads();
5596 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5597 wxPyEndAllowThreads(__tstate);
5598 if (PyErr_Occurred()) SWIG_fail;
5599 }
5600 {
5601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5602 }
5603 return resultobj;
5604 fail:
5605 return NULL;
5606 }
5607
5608
5609 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5610 PyObject *obj;
5611 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5612 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5613 return SWIG_Py_Void();
5614 }
5615
5616 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5617 return SWIG_Python_InitShadowInstance(args);
5618 }
5619
5620 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5621 PyObject *resultobj = 0;
5622 wxColour *arg1 = 0 ;
5623 int arg2 = (int) wxSOLID ;
5624 wxBrush *result = 0 ;
5625 wxColour temp1 ;
5626 int val2 ;
5627 int ecode2 = 0 ;
5628 PyObject * obj0 = 0 ;
5629 PyObject * obj1 = 0 ;
5630 char * kwnames[] = {
5631 (char *) "colour",(char *) "style", NULL
5632 };
5633
5634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5635 {
5636 arg1 = &temp1;
5637 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5638 }
5639 if (obj1) {
5640 ecode2 = SWIG_AsVal_int(obj1, &val2);
5641 if (!SWIG_IsOK(ecode2)) {
5642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5643 }
5644 arg2 = static_cast< int >(val2);
5645 }
5646 {
5647 if (!wxPyCheckForApp()) SWIG_fail;
5648 PyThreadState* __tstate = wxPyBeginAllowThreads();
5649 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5650 wxPyEndAllowThreads(__tstate);
5651 if (PyErr_Occurred()) SWIG_fail;
5652 }
5653 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5654 return resultobj;
5655 fail:
5656 return NULL;
5657 }
5658
5659
5660 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5661 PyObject *resultobj = 0;
5662 wxBitmap *arg1 = 0 ;
5663 wxBrush *result = 0 ;
5664 void *argp1 = 0 ;
5665 int res1 = 0 ;
5666 PyObject * obj0 = 0 ;
5667 char * kwnames[] = {
5668 (char *) "stippleBitmap", NULL
5669 };
5670
5671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5672 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5673 if (!SWIG_IsOK(res1)) {
5674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5675 }
5676 if (!argp1) {
5677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5678 }
5679 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5680 {
5681 if (!wxPyCheckForApp()) SWIG_fail;
5682 PyThreadState* __tstate = wxPyBeginAllowThreads();
5683 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5684 wxPyEndAllowThreads(__tstate);
5685 if (PyErr_Occurred()) SWIG_fail;
5686 }
5687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5688 return resultobj;
5689 fail:
5690 return NULL;
5691 }
5692
5693
5694 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5695 PyObject *resultobj = 0;
5696 wxBrush *arg1 = (wxBrush *) 0 ;
5697 void *argp1 = 0 ;
5698 int res1 = 0 ;
5699 PyObject *swig_obj[1] ;
5700
5701 if (!args) SWIG_fail;
5702 swig_obj[0] = args;
5703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5704 if (!SWIG_IsOK(res1)) {
5705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5706 }
5707 arg1 = reinterpret_cast< wxBrush * >(argp1);
5708 {
5709 PyThreadState* __tstate = wxPyBeginAllowThreads();
5710 delete arg1;
5711
5712 wxPyEndAllowThreads(__tstate);
5713 if (PyErr_Occurred()) SWIG_fail;
5714 }
5715 resultobj = SWIG_Py_Void();
5716 return resultobj;
5717 fail:
5718 return NULL;
5719 }
5720
5721
5722 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5723 PyObject *resultobj = 0;
5724 wxBrush *arg1 = (wxBrush *) 0 ;
5725 wxColour *arg2 = 0 ;
5726 void *argp1 = 0 ;
5727 int res1 = 0 ;
5728 wxColour temp2 ;
5729 PyObject * obj0 = 0 ;
5730 PyObject * obj1 = 0 ;
5731 char * kwnames[] = {
5732 (char *) "self",(char *) "col", NULL
5733 };
5734
5735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5737 if (!SWIG_IsOK(res1)) {
5738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5739 }
5740 arg1 = reinterpret_cast< wxBrush * >(argp1);
5741 {
5742 arg2 = &temp2;
5743 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5744 }
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 (arg1)->SetColour((wxColour const &)*arg2);
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 resultobj = SWIG_Py_Void();
5752 return resultobj;
5753 fail:
5754 return NULL;
5755 }
5756
5757
5758 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5759 PyObject *resultobj = 0;
5760 wxBrush *arg1 = (wxBrush *) 0 ;
5761 int arg2 ;
5762 void *argp1 = 0 ;
5763 int res1 = 0 ;
5764 int val2 ;
5765 int ecode2 = 0 ;
5766 PyObject * obj0 = 0 ;
5767 PyObject * obj1 = 0 ;
5768 char * kwnames[] = {
5769 (char *) "self",(char *) "style", NULL
5770 };
5771
5772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5774 if (!SWIG_IsOK(res1)) {
5775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5776 }
5777 arg1 = reinterpret_cast< wxBrush * >(argp1);
5778 ecode2 = SWIG_AsVal_int(obj1, &val2);
5779 if (!SWIG_IsOK(ecode2)) {
5780 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5781 }
5782 arg2 = static_cast< int >(val2);
5783 {
5784 PyThreadState* __tstate = wxPyBeginAllowThreads();
5785 (arg1)->SetStyle(arg2);
5786 wxPyEndAllowThreads(__tstate);
5787 if (PyErr_Occurred()) SWIG_fail;
5788 }
5789 resultobj = SWIG_Py_Void();
5790 return resultobj;
5791 fail:
5792 return NULL;
5793 }
5794
5795
5796 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5797 PyObject *resultobj = 0;
5798 wxBrush *arg1 = (wxBrush *) 0 ;
5799 wxBitmap *arg2 = 0 ;
5800 void *argp1 = 0 ;
5801 int res1 = 0 ;
5802 void *argp2 = 0 ;
5803 int res2 = 0 ;
5804 PyObject * obj0 = 0 ;
5805 PyObject * obj1 = 0 ;
5806 char * kwnames[] = {
5807 (char *) "self",(char *) "stipple", NULL
5808 };
5809
5810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5812 if (!SWIG_IsOK(res1)) {
5813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5814 }
5815 arg1 = reinterpret_cast< wxBrush * >(argp1);
5816 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5817 if (!SWIG_IsOK(res2)) {
5818 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5819 }
5820 if (!argp2) {
5821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5822 }
5823 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5824 {
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 (arg1)->SetStipple((wxBitmap const &)*arg2);
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) SWIG_fail;
5829 }
5830 resultobj = SWIG_Py_Void();
5831 return resultobj;
5832 fail:
5833 return NULL;
5834 }
5835
5836
5837 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5838 PyObject *resultobj = 0;
5839 wxBrush *arg1 = (wxBrush *) 0 ;
5840 wxColour result;
5841 void *argp1 = 0 ;
5842 int res1 = 0 ;
5843 PyObject *swig_obj[1] ;
5844
5845 if (!args) SWIG_fail;
5846 swig_obj[0] = args;
5847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5848 if (!SWIG_IsOK(res1)) {
5849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5850 }
5851 arg1 = reinterpret_cast< wxBrush * >(argp1);
5852 {
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 result = ((wxBrush const *)arg1)->GetColour();
5855 wxPyEndAllowThreads(__tstate);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 }
5858 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5859 return resultobj;
5860 fail:
5861 return NULL;
5862 }
5863
5864
5865 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5866 PyObject *resultobj = 0;
5867 wxBrush *arg1 = (wxBrush *) 0 ;
5868 int result;
5869 void *argp1 = 0 ;
5870 int res1 = 0 ;
5871 PyObject *swig_obj[1] ;
5872
5873 if (!args) SWIG_fail;
5874 swig_obj[0] = args;
5875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5876 if (!SWIG_IsOK(res1)) {
5877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5878 }
5879 arg1 = reinterpret_cast< wxBrush * >(argp1);
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (int)((wxBrush const *)arg1)->GetStyle();
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 resultobj = SWIG_From_int(static_cast< int >(result));
5887 return resultobj;
5888 fail:
5889 return NULL;
5890 }
5891
5892
5893 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5894 PyObject *resultobj = 0;
5895 wxBrush *arg1 = (wxBrush *) 0 ;
5896 wxBitmap *result = 0 ;
5897 void *argp1 = 0 ;
5898 int res1 = 0 ;
5899 PyObject *swig_obj[1] ;
5900
5901 if (!args) SWIG_fail;
5902 swig_obj[0] = args;
5903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5904 if (!SWIG_IsOK(res1)) {
5905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5906 }
5907 arg1 = reinterpret_cast< wxBrush * >(argp1);
5908 {
5909 PyThreadState* __tstate = wxPyBeginAllowThreads();
5910 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5915 return resultobj;
5916 fail:
5917 return NULL;
5918 }
5919
5920
5921 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5922 PyObject *resultobj = 0;
5923 wxBrush *arg1 = (wxBrush *) 0 ;
5924 bool result;
5925 void *argp1 = 0 ;
5926 int res1 = 0 ;
5927 PyObject *swig_obj[1] ;
5928
5929 if (!args) SWIG_fail;
5930 swig_obj[0] = args;
5931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5932 if (!SWIG_IsOK(res1)) {
5933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5934 }
5935 arg1 = reinterpret_cast< wxBrush * >(argp1);
5936 {
5937 PyThreadState* __tstate = wxPyBeginAllowThreads();
5938 result = (bool)((wxBrush const *)arg1)->IsHatch();
5939 wxPyEndAllowThreads(__tstate);
5940 if (PyErr_Occurred()) SWIG_fail;
5941 }
5942 {
5943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5944 }
5945 return resultobj;
5946 fail:
5947 return NULL;
5948 }
5949
5950
5951 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5952 PyObject *resultobj = 0;
5953 wxBrush *arg1 = (wxBrush *) 0 ;
5954 bool result;
5955 void *argp1 = 0 ;
5956 int res1 = 0 ;
5957 PyObject *swig_obj[1] ;
5958
5959 if (!args) SWIG_fail;
5960 swig_obj[0] = args;
5961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5962 if (!SWIG_IsOK(res1)) {
5963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5964 }
5965 arg1 = reinterpret_cast< wxBrush * >(argp1);
5966 {
5967 PyThreadState* __tstate = wxPyBeginAllowThreads();
5968 result = (bool)(arg1)->IsOk();
5969 wxPyEndAllowThreads(__tstate);
5970 if (PyErr_Occurred()) SWIG_fail;
5971 }
5972 {
5973 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5974 }
5975 return resultobj;
5976 fail:
5977 return NULL;
5978 }
5979
5980
5981 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5982 PyObject *obj;
5983 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5984 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5985 return SWIG_Py_Void();
5986 }
5987
5988 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5989 return SWIG_Python_InitShadowInstance(args);
5990 }
5991
5992 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5993 PyObject *resultobj = 0;
5994 wxString *arg1 = 0 ;
5995 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5996 wxBitmap *result = 0 ;
5997 bool temp1 = false ;
5998 int val2 ;
5999 int ecode2 = 0 ;
6000 PyObject * obj0 = 0 ;
6001 PyObject * obj1 = 0 ;
6002 char * kwnames[] = {
6003 (char *) "name",(char *) "type", NULL
6004 };
6005
6006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6007 {
6008 arg1 = wxString_in_helper(obj0);
6009 if (arg1 == NULL) SWIG_fail;
6010 temp1 = true;
6011 }
6012 if (obj1) {
6013 ecode2 = SWIG_AsVal_int(obj1, &val2);
6014 if (!SWIG_IsOK(ecode2)) {
6015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
6016 }
6017 arg2 = static_cast< wxBitmapType >(val2);
6018 }
6019 {
6020 if (!wxPyCheckForApp()) SWIG_fail;
6021 PyThreadState* __tstate = wxPyBeginAllowThreads();
6022 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
6023 wxPyEndAllowThreads(__tstate);
6024 if (PyErr_Occurred()) SWIG_fail;
6025 }
6026 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
6027 {
6028 if (temp1)
6029 delete arg1;
6030 }
6031 return resultobj;
6032 fail:
6033 {
6034 if (temp1)
6035 delete arg1;
6036 }
6037 return NULL;
6038 }
6039
6040
6041 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6042 PyObject *resultobj = 0;
6043 wxBitmap *arg1 = (wxBitmap *) 0 ;
6044 void *argp1 = 0 ;
6045 int res1 = 0 ;
6046 PyObject *swig_obj[1] ;
6047
6048 if (!args) SWIG_fail;
6049 swig_obj[0] = args;
6050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
6051 if (!SWIG_IsOK(res1)) {
6052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
6053 }
6054 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6055 {
6056 delete arg1;
6057
6058 if (PyErr_Occurred()) SWIG_fail;
6059 }
6060 resultobj = SWIG_Py_Void();
6061 return resultobj;
6062 fail:
6063 return NULL;
6064 }
6065
6066
6067 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6068 PyObject *resultobj = 0;
6069 int arg1 ;
6070 int arg2 ;
6071 int arg3 = (int) -1 ;
6072 wxBitmap *result = 0 ;
6073 int val1 ;
6074 int ecode1 = 0 ;
6075 int val2 ;
6076 int ecode2 = 0 ;
6077 int val3 ;
6078 int ecode3 = 0 ;
6079 PyObject * obj0 = 0 ;
6080 PyObject * obj1 = 0 ;
6081 PyObject * obj2 = 0 ;
6082 char * kwnames[] = {
6083 (char *) "width",(char *) "height",(char *) "depth", NULL
6084 };
6085
6086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6087 ecode1 = SWIG_AsVal_int(obj0, &val1);
6088 if (!SWIG_IsOK(ecode1)) {
6089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
6090 }
6091 arg1 = static_cast< int >(val1);
6092 ecode2 = SWIG_AsVal_int(obj1, &val2);
6093 if (!SWIG_IsOK(ecode2)) {
6094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
6095 }
6096 arg2 = static_cast< int >(val2);
6097 if (obj2) {
6098 ecode3 = SWIG_AsVal_int(obj2, &val3);
6099 if (!SWIG_IsOK(ecode3)) {
6100 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
6101 }
6102 arg3 = static_cast< int >(val3);
6103 }
6104 {
6105 if (!wxPyCheckForApp()) SWIG_fail;
6106 PyThreadState* __tstate = wxPyBeginAllowThreads();
6107 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
6108 wxPyEndAllowThreads(__tstate);
6109 if (PyErr_Occurred()) SWIG_fail;
6110 }
6111 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6112 return resultobj;
6113 fail:
6114 return NULL;
6115 }
6116
6117
6118 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6119 PyObject *resultobj = 0;
6120 wxIcon *arg1 = 0 ;
6121 wxBitmap *result = 0 ;
6122 void *argp1 = 0 ;
6123 int res1 = 0 ;
6124 PyObject * obj0 = 0 ;
6125 char * kwnames[] = {
6126 (char *) "icon", NULL
6127 };
6128
6129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6130 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6131 if (!SWIG_IsOK(res1)) {
6132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6133 }
6134 if (!argp1) {
6135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6136 }
6137 arg1 = reinterpret_cast< wxIcon * >(argp1);
6138 {
6139 if (!wxPyCheckForApp()) SWIG_fail;
6140 PyThreadState* __tstate = wxPyBeginAllowThreads();
6141 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6142 wxPyEndAllowThreads(__tstate);
6143 if (PyErr_Occurred()) SWIG_fail;
6144 }
6145 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6146 return resultobj;
6147 fail:
6148 return NULL;
6149 }
6150
6151
6152 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6153 PyObject *resultobj = 0;
6154 wxImage *arg1 = 0 ;
6155 int arg2 = (int) -1 ;
6156 wxBitmap *result = 0 ;
6157 void *argp1 = 0 ;
6158 int res1 = 0 ;
6159 int val2 ;
6160 int ecode2 = 0 ;
6161 PyObject * obj0 = 0 ;
6162 PyObject * obj1 = 0 ;
6163 char * kwnames[] = {
6164 (char *) "image",(char *) "depth", NULL
6165 };
6166
6167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6168 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6169 if (!SWIG_IsOK(res1)) {
6170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6171 }
6172 if (!argp1) {
6173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6174 }
6175 arg1 = reinterpret_cast< wxImage * >(argp1);
6176 if (obj1) {
6177 ecode2 = SWIG_AsVal_int(obj1, &val2);
6178 if (!SWIG_IsOK(ecode2)) {
6179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6180 }
6181 arg2 = static_cast< int >(val2);
6182 }
6183 {
6184 if (!wxPyCheckForApp()) SWIG_fail;
6185 PyThreadState* __tstate = wxPyBeginAllowThreads();
6186 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6187 wxPyEndAllowThreads(__tstate);
6188 if (PyErr_Occurred()) SWIG_fail;
6189 }
6190 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6191 return resultobj;
6192 fail:
6193 return NULL;
6194 }
6195
6196
6197 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6198 PyObject *resultobj = 0;
6199 PyObject *arg1 = (PyObject *) 0 ;
6200 wxBitmap *result = 0 ;
6201 PyObject * obj0 = 0 ;
6202 char * kwnames[] = {
6203 (char *) "listOfStrings", NULL
6204 };
6205
6206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6207 arg1 = obj0;
6208 {
6209 if (!wxPyCheckForApp()) SWIG_fail;
6210 PyThreadState* __tstate = wxPyBeginAllowThreads();
6211 result = (wxBitmap *)new_wxBitmap(arg1);
6212 wxPyEndAllowThreads(__tstate);
6213 if (PyErr_Occurred()) SWIG_fail;
6214 }
6215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6216 return resultobj;
6217 fail:
6218 return NULL;
6219 }
6220
6221
6222 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6223 PyObject *resultobj = 0;
6224 PyObject *arg1 = (PyObject *) 0 ;
6225 int arg2 ;
6226 int arg3 ;
6227 int arg4 = (int) 1 ;
6228 wxBitmap *result = 0 ;
6229 int val2 ;
6230 int ecode2 = 0 ;
6231 int val3 ;
6232 int ecode3 = 0 ;
6233 int val4 ;
6234 int ecode4 = 0 ;
6235 PyObject * obj0 = 0 ;
6236 PyObject * obj1 = 0 ;
6237 PyObject * obj2 = 0 ;
6238 PyObject * obj3 = 0 ;
6239 char * kwnames[] = {
6240 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6241 };
6242
6243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6244 arg1 = obj0;
6245 ecode2 = SWIG_AsVal_int(obj1, &val2);
6246 if (!SWIG_IsOK(ecode2)) {
6247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6248 }
6249 arg2 = static_cast< int >(val2);
6250 ecode3 = SWIG_AsVal_int(obj2, &val3);
6251 if (!SWIG_IsOK(ecode3)) {
6252 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6253 }
6254 arg3 = static_cast< int >(val3);
6255 if (obj3) {
6256 ecode4 = SWIG_AsVal_int(obj3, &val4);
6257 if (!SWIG_IsOK(ecode4)) {
6258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6259 }
6260 arg4 = static_cast< int >(val4);
6261 }
6262 {
6263 if (!wxPyCheckForApp()) SWIG_fail;
6264 PyThreadState* __tstate = wxPyBeginAllowThreads();
6265 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6266 wxPyEndAllowThreads(__tstate);
6267 if (PyErr_Occurred()) SWIG_fail;
6268 }
6269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6270 return resultobj;
6271 fail:
6272 return NULL;
6273 }
6274
6275
6276 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6277 PyObject *resultobj = 0;
6278 wxBitmap *arg1 = (wxBitmap *) 0 ;
6279 bool result;
6280 void *argp1 = 0 ;
6281 int res1 = 0 ;
6282 PyObject *swig_obj[1] ;
6283
6284 if (!args) SWIG_fail;
6285 swig_obj[0] = args;
6286 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6287 if (!SWIG_IsOK(res1)) {
6288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6289 }
6290 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6291 {
6292 result = (bool)(arg1)->IsOk();
6293 if (PyErr_Occurred()) SWIG_fail;
6294 }
6295 {
6296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6297 }
6298 return resultobj;
6299 fail:
6300 return NULL;
6301 }
6302
6303
6304 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6305 PyObject *resultobj = 0;
6306 wxBitmap *arg1 = (wxBitmap *) 0 ;
6307 int result;
6308 void *argp1 = 0 ;
6309 int res1 = 0 ;
6310 PyObject *swig_obj[1] ;
6311
6312 if (!args) SWIG_fail;
6313 swig_obj[0] = args;
6314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6315 if (!SWIG_IsOK(res1)) {
6316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6317 }
6318 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6319 {
6320 result = (int)(arg1)->GetWidth();
6321 if (PyErr_Occurred()) SWIG_fail;
6322 }
6323 resultobj = SWIG_From_int(static_cast< int >(result));
6324 return resultobj;
6325 fail:
6326 return NULL;
6327 }
6328
6329
6330 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6331 PyObject *resultobj = 0;
6332 wxBitmap *arg1 = (wxBitmap *) 0 ;
6333 int result;
6334 void *argp1 = 0 ;
6335 int res1 = 0 ;
6336 PyObject *swig_obj[1] ;
6337
6338 if (!args) SWIG_fail;
6339 swig_obj[0] = args;
6340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6341 if (!SWIG_IsOK(res1)) {
6342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6343 }
6344 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6345 {
6346 result = (int)(arg1)->GetHeight();
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 resultobj = SWIG_From_int(static_cast< int >(result));
6350 return resultobj;
6351 fail:
6352 return NULL;
6353 }
6354
6355
6356 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6357 PyObject *resultobj = 0;
6358 wxBitmap *arg1 = (wxBitmap *) 0 ;
6359 int result;
6360 void *argp1 = 0 ;
6361 int res1 = 0 ;
6362 PyObject *swig_obj[1] ;
6363
6364 if (!args) SWIG_fail;
6365 swig_obj[0] = args;
6366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6367 if (!SWIG_IsOK(res1)) {
6368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6369 }
6370 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6371 {
6372 result = (int)(arg1)->GetDepth();
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 resultobj = SWIG_From_int(static_cast< int >(result));
6376 return resultobj;
6377 fail:
6378 return NULL;
6379 }
6380
6381
6382 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6383 PyObject *resultobj = 0;
6384 wxBitmap *arg1 = (wxBitmap *) 0 ;
6385 wxSize result;
6386 void *argp1 = 0 ;
6387 int res1 = 0 ;
6388 PyObject *swig_obj[1] ;
6389
6390 if (!args) SWIG_fail;
6391 swig_obj[0] = args;
6392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6393 if (!SWIG_IsOK(res1)) {
6394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6395 }
6396 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6397 {
6398 result = wxBitmap_GetSize(arg1);
6399 if (PyErr_Occurred()) SWIG_fail;
6400 }
6401 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6402 return resultobj;
6403 fail:
6404 return NULL;
6405 }
6406
6407
6408 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6409 PyObject *resultobj = 0;
6410 wxBitmap *arg1 = (wxBitmap *) 0 ;
6411 SwigValueWrapper<wxImage > result;
6412 void *argp1 = 0 ;
6413 int res1 = 0 ;
6414 PyObject *swig_obj[1] ;
6415
6416 if (!args) SWIG_fail;
6417 swig_obj[0] = args;
6418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6419 if (!SWIG_IsOK(res1)) {
6420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6421 }
6422 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6423 {
6424 result = ((wxBitmap const *)arg1)->ConvertToImage();
6425 if (PyErr_Occurred()) SWIG_fail;
6426 }
6427 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6428 return resultobj;
6429 fail:
6430 return NULL;
6431 }
6432
6433
6434 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6435 PyObject *resultobj = 0;
6436 wxBitmap *arg1 = (wxBitmap *) 0 ;
6437 wxMask *result = 0 ;
6438 void *argp1 = 0 ;
6439 int res1 = 0 ;
6440 PyObject *swig_obj[1] ;
6441
6442 if (!args) SWIG_fail;
6443 swig_obj[0] = args;
6444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6445 if (!SWIG_IsOK(res1)) {
6446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6447 }
6448 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6449 {
6450 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6451 if (PyErr_Occurred()) SWIG_fail;
6452 }
6453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6454 return resultobj;
6455 fail:
6456 return NULL;
6457 }
6458
6459
6460 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6461 PyObject *resultobj = 0;
6462 wxBitmap *arg1 = (wxBitmap *) 0 ;
6463 wxMask *arg2 = (wxMask *) 0 ;
6464 void *argp1 = 0 ;
6465 int res1 = 0 ;
6466 int res2 = 0 ;
6467 PyObject * obj0 = 0 ;
6468 PyObject * obj1 = 0 ;
6469 char * kwnames[] = {
6470 (char *) "self",(char *) "mask", NULL
6471 };
6472
6473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",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_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6477 }
6478 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6479 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6480 if (!SWIG_IsOK(res2)) {
6481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6482 }
6483 {
6484 (arg1)->SetMask(arg2);
6485 if (PyErr_Occurred()) SWIG_fail;
6486 }
6487 resultobj = SWIG_Py_Void();
6488 return resultobj;
6489 fail:
6490 return NULL;
6491 }
6492
6493
6494 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6495 PyObject *resultobj = 0;
6496 wxBitmap *arg1 = (wxBitmap *) 0 ;
6497 wxColour *arg2 = 0 ;
6498 void *argp1 = 0 ;
6499 int res1 = 0 ;
6500 wxColour temp2 ;
6501 PyObject * obj0 = 0 ;
6502 PyObject * obj1 = 0 ;
6503 char * kwnames[] = {
6504 (char *) "self",(char *) "colour", NULL
6505 };
6506
6507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6509 if (!SWIG_IsOK(res1)) {
6510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6511 }
6512 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6513 {
6514 arg2 = &temp2;
6515 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6516 }
6517 {
6518 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6519 if (PyErr_Occurred()) SWIG_fail;
6520 }
6521 resultobj = SWIG_Py_Void();
6522 return resultobj;
6523 fail:
6524 return NULL;
6525 }
6526
6527
6528 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6529 PyObject *resultobj = 0;
6530 wxBitmap *arg1 = (wxBitmap *) 0 ;
6531 wxRect *arg2 = 0 ;
6532 SwigValueWrapper<wxBitmap > result;
6533 void *argp1 = 0 ;
6534 int res1 = 0 ;
6535 wxRect temp2 ;
6536 PyObject * obj0 = 0 ;
6537 PyObject * obj1 = 0 ;
6538 char * kwnames[] = {
6539 (char *) "self",(char *) "rect", NULL
6540 };
6541
6542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6544 if (!SWIG_IsOK(res1)) {
6545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6546 }
6547 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6548 {
6549 arg2 = &temp2;
6550 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6551 }
6552 {
6553 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6557 return resultobj;
6558 fail:
6559 return NULL;
6560 }
6561
6562
6563 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6564 PyObject *resultobj = 0;
6565 wxBitmap *arg1 = (wxBitmap *) 0 ;
6566 wxString *arg2 = 0 ;
6567 wxBitmapType arg3 ;
6568 wxPalette *arg4 = (wxPalette *) NULL ;
6569 bool result;
6570 void *argp1 = 0 ;
6571 int res1 = 0 ;
6572 bool temp2 = false ;
6573 int val3 ;
6574 int ecode3 = 0 ;
6575 void *argp4 = 0 ;
6576 int res4 = 0 ;
6577 PyObject * obj0 = 0 ;
6578 PyObject * obj1 = 0 ;
6579 PyObject * obj2 = 0 ;
6580 PyObject * obj3 = 0 ;
6581 char * kwnames[] = {
6582 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6583 };
6584
6585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6587 if (!SWIG_IsOK(res1)) {
6588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6589 }
6590 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6591 {
6592 arg2 = wxString_in_helper(obj1);
6593 if (arg2 == NULL) SWIG_fail;
6594 temp2 = true;
6595 }
6596 ecode3 = SWIG_AsVal_int(obj2, &val3);
6597 if (!SWIG_IsOK(ecode3)) {
6598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6599 }
6600 arg3 = static_cast< wxBitmapType >(val3);
6601 if (obj3) {
6602 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6603 if (!SWIG_IsOK(res4)) {
6604 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6605 }
6606 arg4 = reinterpret_cast< wxPalette * >(argp4);
6607 }
6608 {
6609 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6610 if (PyErr_Occurred()) SWIG_fail;
6611 }
6612 {
6613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6614 }
6615 {
6616 if (temp2)
6617 delete arg2;
6618 }
6619 return resultobj;
6620 fail:
6621 {
6622 if (temp2)
6623 delete arg2;
6624 }
6625 return NULL;
6626 }
6627
6628
6629 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6630 PyObject *resultobj = 0;
6631 wxBitmap *arg1 = (wxBitmap *) 0 ;
6632 wxString *arg2 = 0 ;
6633 wxBitmapType arg3 ;
6634 bool result;
6635 void *argp1 = 0 ;
6636 int res1 = 0 ;
6637 bool temp2 = false ;
6638 int val3 ;
6639 int ecode3 = 0 ;
6640 PyObject * obj0 = 0 ;
6641 PyObject * obj1 = 0 ;
6642 PyObject * obj2 = 0 ;
6643 char * kwnames[] = {
6644 (char *) "self",(char *) "name",(char *) "type", NULL
6645 };
6646
6647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6649 if (!SWIG_IsOK(res1)) {
6650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6651 }
6652 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6653 {
6654 arg2 = wxString_in_helper(obj1);
6655 if (arg2 == NULL) SWIG_fail;
6656 temp2 = true;
6657 }
6658 ecode3 = SWIG_AsVal_int(obj2, &val3);
6659 if (!SWIG_IsOK(ecode3)) {
6660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6661 }
6662 arg3 = static_cast< wxBitmapType >(val3);
6663 {
6664 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6665 if (PyErr_Occurred()) SWIG_fail;
6666 }
6667 {
6668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6669 }
6670 {
6671 if (temp2)
6672 delete arg2;
6673 }
6674 return resultobj;
6675 fail:
6676 {
6677 if (temp2)
6678 delete arg2;
6679 }
6680 return NULL;
6681 }
6682
6683
6684 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6685 PyObject *resultobj = 0;
6686 wxBitmap *arg1 = (wxBitmap *) 0 ;
6687 wxPalette *result = 0 ;
6688 void *argp1 = 0 ;
6689 int res1 = 0 ;
6690 PyObject *swig_obj[1] ;
6691
6692 if (!args) SWIG_fail;
6693 swig_obj[0] = args;
6694 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6695 if (!SWIG_IsOK(res1)) {
6696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6697 }
6698 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6699 {
6700 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6701 if (PyErr_Occurred()) SWIG_fail;
6702 }
6703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6704 return resultobj;
6705 fail:
6706 return NULL;
6707 }
6708
6709
6710 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6711 PyObject *resultobj = 0;
6712 wxBitmap *arg1 = (wxBitmap *) 0 ;
6713 wxIcon *arg2 = 0 ;
6714 bool result;
6715 void *argp1 = 0 ;
6716 int res1 = 0 ;
6717 void *argp2 = 0 ;
6718 int res2 = 0 ;
6719 PyObject * obj0 = 0 ;
6720 PyObject * obj1 = 0 ;
6721 char * kwnames[] = {
6722 (char *) "self",(char *) "icon", NULL
6723 };
6724
6725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6727 if (!SWIG_IsOK(res1)) {
6728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6729 }
6730 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6731 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6732 if (!SWIG_IsOK(res2)) {
6733 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6734 }
6735 if (!argp2) {
6736 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6737 }
6738 arg2 = reinterpret_cast< wxIcon * >(argp2);
6739 {
6740 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6741 if (PyErr_Occurred()) SWIG_fail;
6742 }
6743 {
6744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6745 }
6746 return resultobj;
6747 fail:
6748 return NULL;
6749 }
6750
6751
6752 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj = 0;
6754 wxBitmap *arg1 = (wxBitmap *) 0 ;
6755 int arg2 ;
6756 void *argp1 = 0 ;
6757 int res1 = 0 ;
6758 int val2 ;
6759 int ecode2 = 0 ;
6760 PyObject * obj0 = 0 ;
6761 PyObject * obj1 = 0 ;
6762 char * kwnames[] = {
6763 (char *) "self",(char *) "height", NULL
6764 };
6765
6766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6768 if (!SWIG_IsOK(res1)) {
6769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6770 }
6771 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6772 ecode2 = SWIG_AsVal_int(obj1, &val2);
6773 if (!SWIG_IsOK(ecode2)) {
6774 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6775 }
6776 arg2 = static_cast< int >(val2);
6777 {
6778 (arg1)->SetHeight(arg2);
6779 if (PyErr_Occurred()) SWIG_fail;
6780 }
6781 resultobj = SWIG_Py_Void();
6782 return resultobj;
6783 fail:
6784 return NULL;
6785 }
6786
6787
6788 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6789 PyObject *resultobj = 0;
6790 wxBitmap *arg1 = (wxBitmap *) 0 ;
6791 int arg2 ;
6792 void *argp1 = 0 ;
6793 int res1 = 0 ;
6794 int val2 ;
6795 int ecode2 = 0 ;
6796 PyObject * obj0 = 0 ;
6797 PyObject * obj1 = 0 ;
6798 char * kwnames[] = {
6799 (char *) "self",(char *) "width", NULL
6800 };
6801
6802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6804 if (!SWIG_IsOK(res1)) {
6805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6806 }
6807 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6808 ecode2 = SWIG_AsVal_int(obj1, &val2);
6809 if (!SWIG_IsOK(ecode2)) {
6810 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6811 }
6812 arg2 = static_cast< int >(val2);
6813 {
6814 (arg1)->SetWidth(arg2);
6815 if (PyErr_Occurred()) SWIG_fail;
6816 }
6817 resultobj = SWIG_Py_Void();
6818 return resultobj;
6819 fail:
6820 return NULL;
6821 }
6822
6823
6824 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6825 PyObject *resultobj = 0;
6826 wxBitmap *arg1 = (wxBitmap *) 0 ;
6827 int arg2 ;
6828 void *argp1 = 0 ;
6829 int res1 = 0 ;
6830 int val2 ;
6831 int ecode2 = 0 ;
6832 PyObject * obj0 = 0 ;
6833 PyObject * obj1 = 0 ;
6834 char * kwnames[] = {
6835 (char *) "self",(char *) "depth", NULL
6836 };
6837
6838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6840 if (!SWIG_IsOK(res1)) {
6841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6842 }
6843 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6844 ecode2 = SWIG_AsVal_int(obj1, &val2);
6845 if (!SWIG_IsOK(ecode2)) {
6846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6847 }
6848 arg2 = static_cast< int >(val2);
6849 {
6850 (arg1)->SetDepth(arg2);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 resultobj = SWIG_Py_Void();
6854 return resultobj;
6855 fail:
6856 return NULL;
6857 }
6858
6859
6860 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj = 0;
6862 wxBitmap *arg1 = (wxBitmap *) 0 ;
6863 wxSize *arg2 = 0 ;
6864 void *argp1 = 0 ;
6865 int res1 = 0 ;
6866 wxSize temp2 ;
6867 PyObject * obj0 = 0 ;
6868 PyObject * obj1 = 0 ;
6869 char * kwnames[] = {
6870 (char *) "self",(char *) "size", NULL
6871 };
6872
6873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6875 if (!SWIG_IsOK(res1)) {
6876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6877 }
6878 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6879 {
6880 arg2 = &temp2;
6881 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6882 }
6883 {
6884 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
6887 resultobj = SWIG_Py_Void();
6888 return resultobj;
6889 fail:
6890 return NULL;
6891 }
6892
6893
6894 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6895 PyObject *resultobj = 0;
6896 wxBitmap *arg1 = (wxBitmap *) 0 ;
6897 wxBitmap *arg2 = (wxBitmap *) 0 ;
6898 bool result;
6899 void *argp1 = 0 ;
6900 int res1 = 0 ;
6901 void *argp2 = 0 ;
6902 int res2 = 0 ;
6903 PyObject * obj0 = 0 ;
6904 PyObject * obj1 = 0 ;
6905 char * kwnames[] = {
6906 (char *) "self",(char *) "other", NULL
6907 };
6908
6909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6911 if (!SWIG_IsOK(res1)) {
6912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6913 }
6914 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6915 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6916 if (!SWIG_IsOK(res2)) {
6917 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6918 }
6919 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6920 {
6921 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6922 if (PyErr_Occurred()) SWIG_fail;
6923 }
6924 {
6925 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6926 }
6927 return resultobj;
6928 fail:
6929 return NULL;
6930 }
6931
6932
6933 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6934 PyObject *resultobj = 0;
6935 wxBitmap *arg1 = (wxBitmap *) 0 ;
6936 wxBitmap *arg2 = (wxBitmap *) 0 ;
6937 bool result;
6938 void *argp1 = 0 ;
6939 int res1 = 0 ;
6940 void *argp2 = 0 ;
6941 int res2 = 0 ;
6942 PyObject * obj0 = 0 ;
6943 PyObject * obj1 = 0 ;
6944 char * kwnames[] = {
6945 (char *) "self",(char *) "other", NULL
6946 };
6947
6948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6950 if (!SWIG_IsOK(res1)) {
6951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6952 }
6953 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6954 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6955 if (!SWIG_IsOK(res2)) {
6956 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6957 }
6958 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6959 {
6960 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6961 if (PyErr_Occurred()) SWIG_fail;
6962 }
6963 {
6964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6965 }
6966 return resultobj;
6967 fail:
6968 return NULL;
6969 }
6970
6971
6972 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6973 PyObject *obj;
6974 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6975 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6976 return SWIG_Py_Void();
6977 }
6978
6979 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6980 return SWIG_Python_InitShadowInstance(args);
6981 }
6982
6983 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6984 PyObject *resultobj = 0;
6985 int arg1 ;
6986 int arg2 ;
6987 buffer arg3 ;
6988 int arg4 ;
6989 buffer arg5 ;
6990 int arg6 ;
6991 wxBitmap *result = 0 ;
6992 int val1 ;
6993 int ecode1 = 0 ;
6994 int val2 ;
6995 int ecode2 = 0 ;
6996 Py_ssize_t temp3 ;
6997 Py_ssize_t temp5 ;
6998 PyObject * obj0 = 0 ;
6999 PyObject * obj1 = 0 ;
7000 PyObject * obj2 = 0 ;
7001 PyObject * obj3 = 0 ;
7002 char * kwnames[] = {
7003 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7004 };
7005
7006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7007 ecode1 = SWIG_AsVal_int(obj0, &val1);
7008 if (!SWIG_IsOK(ecode1)) {
7009 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7010 }
7011 arg1 = static_cast< int >(val1);
7012 ecode2 = SWIG_AsVal_int(obj1, &val2);
7013 if (!SWIG_IsOK(ecode2)) {
7014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7015 }
7016 arg2 = static_cast< int >(val2);
7017 {
7018 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7019 arg4 = (int)temp3;
7020 }
7021 {
7022 if (obj3 != Py_None) {
7023 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7024 arg6 = (int)temp5;
7025 }
7026 }
7027 {
7028 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7029 if (PyErr_Occurred()) SWIG_fail;
7030 }
7031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7032 return resultobj;
7033 fail:
7034 return NULL;
7035 }
7036
7037
7038 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7039 PyObject *resultobj = 0;
7040 int arg1 ;
7041 int arg2 ;
7042 buffer arg3 ;
7043 int arg4 ;
7044 wxBitmap *result = 0 ;
7045 int val1 ;
7046 int ecode1 = 0 ;
7047 int val2 ;
7048 int ecode2 = 0 ;
7049 Py_ssize_t temp3 ;
7050 PyObject * obj0 = 0 ;
7051 PyObject * obj1 = 0 ;
7052 PyObject * obj2 = 0 ;
7053 char * kwnames[] = {
7054 (char *) "width",(char *) "height",(char *) "data", NULL
7055 };
7056
7057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7058 ecode1 = SWIG_AsVal_int(obj0, &val1);
7059 if (!SWIG_IsOK(ecode1)) {
7060 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7061 }
7062 arg1 = static_cast< int >(val1);
7063 ecode2 = SWIG_AsVal_int(obj1, &val2);
7064 if (!SWIG_IsOK(ecode2)) {
7065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7066 }
7067 arg2 = static_cast< int >(val2);
7068 {
7069 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7070 arg4 = (int)temp3;
7071 }
7072 {
7073 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7077 return resultobj;
7078 fail:
7079 return NULL;
7080 }
7081
7082
7083 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7084 PyObject *resultobj = 0;
7085 int arg1 ;
7086 int arg2 ;
7087 buffer arg3 ;
7088 int arg4 ;
7089 wxBitmap *result = 0 ;
7090 int val1 ;
7091 int ecode1 = 0 ;
7092 int val2 ;
7093 int ecode2 = 0 ;
7094 Py_ssize_t temp3 ;
7095 PyObject * obj0 = 0 ;
7096 PyObject * obj1 = 0 ;
7097 PyObject * obj2 = 0 ;
7098 char * kwnames[] = {
7099 (char *) "width",(char *) "height",(char *) "data", NULL
7100 };
7101
7102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7103 ecode1 = SWIG_AsVal_int(obj0, &val1);
7104 if (!SWIG_IsOK(ecode1)) {
7105 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7106 }
7107 arg1 = static_cast< int >(val1);
7108 ecode2 = SWIG_AsVal_int(obj1, &val2);
7109 if (!SWIG_IsOK(ecode2)) {
7110 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7111 }
7112 arg2 = static_cast< int >(val2);
7113 {
7114 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7115 arg4 = (int)temp3;
7116 }
7117 {
7118 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7119 if (PyErr_Occurred()) SWIG_fail;
7120 }
7121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7122 return resultobj;
7123 fail:
7124 return NULL;
7125 }
7126
7127
7128 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7129 PyObject *resultobj = 0;
7130 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7131 wxPoint result;
7132 void *argp1 = 0 ;
7133 int res1 = 0 ;
7134 PyObject *swig_obj[1] ;
7135
7136 if (!args) SWIG_fail;
7137 swig_obj[0] = args;
7138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7139 if (!SWIG_IsOK(res1)) {
7140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7141 }
7142 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7143 {
7144 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7145 if (PyErr_Occurred()) SWIG_fail;
7146 }
7147 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7148 return resultobj;
7149 fail:
7150 return NULL;
7151 }
7152
7153
7154 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7155 PyObject *resultobj = 0;
7156 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7157 int result;
7158 void *argp1 = 0 ;
7159 int res1 = 0 ;
7160 PyObject *swig_obj[1] ;
7161
7162 if (!args) SWIG_fail;
7163 swig_obj[0] = args;
7164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7165 if (!SWIG_IsOK(res1)) {
7166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7167 }
7168 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7169 {
7170 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7171 if (PyErr_Occurred()) SWIG_fail;
7172 }
7173 resultobj = SWIG_From_int(static_cast< int >(result));
7174 return resultobj;
7175 fail:
7176 return NULL;
7177 }
7178
7179
7180 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7181 PyObject *resultobj = 0;
7182 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7183 int result;
7184 void *argp1 = 0 ;
7185 int res1 = 0 ;
7186 PyObject *swig_obj[1] ;
7187
7188 if (!args) SWIG_fail;
7189 swig_obj[0] = args;
7190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7191 if (!SWIG_IsOK(res1)) {
7192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7193 }
7194 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7195 {
7196 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7197 if (PyErr_Occurred()) SWIG_fail;
7198 }
7199 resultobj = SWIG_From_int(static_cast< int >(result));
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7207 PyObject *resultobj = 0;
7208 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7209 wxSize result;
7210 void *argp1 = 0 ;
7211 int res1 = 0 ;
7212 PyObject *swig_obj[1] ;
7213
7214 if (!args) SWIG_fail;
7215 swig_obj[0] = args;
7216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7217 if (!SWIG_IsOK(res1)) {
7218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7219 }
7220 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7221 {
7222 result = ((wxPixelDataBase const *)arg1)->GetSize();
7223 if (PyErr_Occurred()) SWIG_fail;
7224 }
7225 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7226 return resultobj;
7227 fail:
7228 return NULL;
7229 }
7230
7231
7232 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7233 PyObject *resultobj = 0;
7234 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7235 int result;
7236 void *argp1 = 0 ;
7237 int res1 = 0 ;
7238 PyObject *swig_obj[1] ;
7239
7240 if (!args) SWIG_fail;
7241 swig_obj[0] = args;
7242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7243 if (!SWIG_IsOK(res1)) {
7244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7245 }
7246 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7247 {
7248 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7249 if (PyErr_Occurred()) SWIG_fail;
7250 }
7251 resultobj = SWIG_From_int(static_cast< int >(result));
7252 return resultobj;
7253 fail:
7254 return NULL;
7255 }
7256
7257
7258 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7259 PyObject *obj;
7260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7261 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7262 return SWIG_Py_Void();
7263 }
7264
7265 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7266 PyObject *resultobj = 0;
7267 wxBitmap *arg1 = 0 ;
7268 wxNativePixelData *result = 0 ;
7269 void *argp1 = 0 ;
7270 int res1 = 0 ;
7271
7272 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7274 if (!SWIG_IsOK(res1)) {
7275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7276 }
7277 if (!argp1) {
7278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7279 }
7280 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7281 {
7282 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7286 return resultobj;
7287 fail:
7288 return NULL;
7289 }
7290
7291
7292 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7293 PyObject *resultobj = 0;
7294 wxBitmap *arg1 = 0 ;
7295 wxRect *arg2 = 0 ;
7296 wxNativePixelData *result = 0 ;
7297 void *argp1 = 0 ;
7298 int res1 = 0 ;
7299 wxRect temp2 ;
7300
7301 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7303 if (!SWIG_IsOK(res1)) {
7304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7305 }
7306 if (!argp1) {
7307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7308 }
7309 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7310 {
7311 arg2 = &temp2;
7312 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7313 }
7314 {
7315 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7316 if (PyErr_Occurred()) SWIG_fail;
7317 }
7318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7319 return resultobj;
7320 fail:
7321 return NULL;
7322 }
7323
7324
7325 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7326 PyObject *resultobj = 0;
7327 wxBitmap *arg1 = 0 ;
7328 wxPoint *arg2 = 0 ;
7329 wxSize *arg3 = 0 ;
7330 wxNativePixelData *result = 0 ;
7331 void *argp1 = 0 ;
7332 int res1 = 0 ;
7333 wxPoint temp2 ;
7334 wxSize temp3 ;
7335
7336 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7338 if (!SWIG_IsOK(res1)) {
7339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7340 }
7341 if (!argp1) {
7342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7343 }
7344 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7345 {
7346 arg2 = &temp2;
7347 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7348 }
7349 {
7350 arg3 = &temp3;
7351 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7352 }
7353 {
7354 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7358 return resultobj;
7359 fail:
7360 return NULL;
7361 }
7362
7363
7364 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7365 int argc;
7366 PyObject *argv[4];
7367
7368 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7369 --argc;
7370 if (argc == 1) {
7371 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7372 }
7373 if (argc == 2) {
7374 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7375 }
7376 if (argc == 3) {
7377 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7378 }
7379
7380 fail:
7381 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7382 return NULL;
7383 }
7384
7385
7386 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7387 PyObject *resultobj = 0;
7388 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7389 void *argp1 = 0 ;
7390 int res1 = 0 ;
7391 PyObject *swig_obj[1] ;
7392
7393 if (!args) SWIG_fail;
7394 swig_obj[0] = args;
7395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7396 if (!SWIG_IsOK(res1)) {
7397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7398 }
7399 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7400 {
7401 delete arg1;
7402
7403 if (PyErr_Occurred()) SWIG_fail;
7404 }
7405 resultobj = SWIG_Py_Void();
7406 return resultobj;
7407 fail:
7408 return NULL;
7409 }
7410
7411
7412 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7413 PyObject *resultobj = 0;
7414 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7415 wxNativePixelData_Accessor result;
7416 void *argp1 = 0 ;
7417 int res1 = 0 ;
7418 PyObject *swig_obj[1] ;
7419
7420 if (!args) SWIG_fail;
7421 swig_obj[0] = args;
7422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7423 if (!SWIG_IsOK(res1)) {
7424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7425 }
7426 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7427 {
7428 result = ((wxNativePixelData const *)arg1)->GetPixels();
7429 if (PyErr_Occurred()) SWIG_fail;
7430 }
7431 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7432 return resultobj;
7433 fail:
7434 return NULL;
7435 }
7436
7437
7438 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7439 PyObject *resultobj = 0;
7440 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7441 void *argp1 = 0 ;
7442 int res1 = 0 ;
7443 PyObject *swig_obj[1] ;
7444
7445 if (!args) SWIG_fail;
7446 swig_obj[0] = args;
7447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7448 if (!SWIG_IsOK(res1)) {
7449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7450 }
7451 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7452 {
7453 (arg1)->UseAlpha();
7454 if (PyErr_Occurred()) SWIG_fail;
7455 }
7456 resultobj = SWIG_Py_Void();
7457 return resultobj;
7458 fail:
7459 return NULL;
7460 }
7461
7462
7463 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7464 PyObject *resultobj = 0;
7465 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7466 bool result;
7467 void *argp1 = 0 ;
7468 int res1 = 0 ;
7469 PyObject *swig_obj[1] ;
7470
7471 if (!args) SWIG_fail;
7472 swig_obj[0] = args;
7473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7474 if (!SWIG_IsOK(res1)) {
7475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7476 }
7477 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7478 {
7479 result = (bool)wxNativePixelData___nonzero__(arg1);
7480 if (PyErr_Occurred()) SWIG_fail;
7481 }
7482 {
7483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7484 }
7485 return resultobj;
7486 fail:
7487 return NULL;
7488 }
7489
7490
7491 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7492 PyObject *obj;
7493 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7494 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7495 return SWIG_Py_Void();
7496 }
7497
7498 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7499 return SWIG_Python_InitShadowInstance(args);
7500 }
7501
7502 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7503 PyObject *resultobj = 0;
7504 wxNativePixelData *arg1 = 0 ;
7505 wxNativePixelData_Accessor *result = 0 ;
7506 void *argp1 = 0 ;
7507 int res1 = 0 ;
7508
7509 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7511 if (!SWIG_IsOK(res1)) {
7512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7513 }
7514 if (!argp1) {
7515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7516 }
7517 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7518 {
7519 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7520 if (PyErr_Occurred()) SWIG_fail;
7521 }
7522 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7523 return resultobj;
7524 fail:
7525 return NULL;
7526 }
7527
7528
7529 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7530 PyObject *resultobj = 0;
7531 wxBitmap *arg1 = 0 ;
7532 wxNativePixelData *arg2 = 0 ;
7533 wxNativePixelData_Accessor *result = 0 ;
7534 void *argp1 = 0 ;
7535 int res1 = 0 ;
7536 void *argp2 = 0 ;
7537 int res2 = 0 ;
7538
7539 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7540 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7541 if (!SWIG_IsOK(res1)) {
7542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7543 }
7544 if (!argp1) {
7545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7546 }
7547 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7548 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7549 if (!SWIG_IsOK(res2)) {
7550 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7551 }
7552 if (!argp2) {
7553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7554 }
7555 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7556 {
7557 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7558 if (PyErr_Occurred()) SWIG_fail;
7559 }
7560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7561 return resultobj;
7562 fail:
7563 return NULL;
7564 }
7565
7566
7567 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7568 PyObject *resultobj = 0;
7569 wxNativePixelData_Accessor *result = 0 ;
7570
7571 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7572 {
7573 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7574 if (PyErr_Occurred()) SWIG_fail;
7575 }
7576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7577 return resultobj;
7578 fail:
7579 return NULL;
7580 }
7581
7582
7583 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7584 int argc;
7585 PyObject *argv[3];
7586
7587 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7588 --argc;
7589 if (argc == 0) {
7590 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7591 }
7592 if (argc == 1) {
7593 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7594 }
7595 if (argc == 2) {
7596 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7597 }
7598
7599 fail:
7600 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7601 return NULL;
7602 }
7603
7604
7605 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7606 PyObject *resultobj = 0;
7607 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7608 void *argp1 = 0 ;
7609 int res1 = 0 ;
7610 PyObject *swig_obj[1] ;
7611
7612 if (!args) SWIG_fail;
7613 swig_obj[0] = args;
7614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7615 if (!SWIG_IsOK(res1)) {
7616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7617 }
7618 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7619 {
7620 delete arg1;
7621
7622 if (PyErr_Occurred()) SWIG_fail;
7623 }
7624 resultobj = SWIG_Py_Void();
7625 return resultobj;
7626 fail:
7627 return NULL;
7628 }
7629
7630
7631 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7632 PyObject *resultobj = 0;
7633 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7634 wxNativePixelData *arg2 = 0 ;
7635 void *argp1 = 0 ;
7636 int res1 = 0 ;
7637 void *argp2 = 0 ;
7638 int res2 = 0 ;
7639 PyObject * obj0 = 0 ;
7640 PyObject * obj1 = 0 ;
7641 char * kwnames[] = {
7642 (char *) "self",(char *) "data", NULL
7643 };
7644
7645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7647 if (!SWIG_IsOK(res1)) {
7648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7649 }
7650 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7652 if (!SWIG_IsOK(res2)) {
7653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7654 }
7655 if (!argp2) {
7656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7657 }
7658 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7659 {
7660 (arg1)->Reset((wxNativePixelData const &)*arg2);
7661 if (PyErr_Occurred()) SWIG_fail;
7662 }
7663 resultobj = SWIG_Py_Void();
7664 return resultobj;
7665 fail:
7666 return NULL;
7667 }
7668
7669
7670 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7671 PyObject *resultobj = 0;
7672 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7673 bool result;
7674 void *argp1 = 0 ;
7675 int res1 = 0 ;
7676 PyObject *swig_obj[1] ;
7677
7678 if (!args) SWIG_fail;
7679 swig_obj[0] = args;
7680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7681 if (!SWIG_IsOK(res1)) {
7682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7683 }
7684 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7685 {
7686 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7687 if (PyErr_Occurred()) SWIG_fail;
7688 }
7689 {
7690 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7691 }
7692 return resultobj;
7693 fail:
7694 return NULL;
7695 }
7696
7697
7698 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7699 PyObject *resultobj = 0;
7700 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7701 void *argp1 = 0 ;
7702 int res1 = 0 ;
7703 PyObject *swig_obj[1] ;
7704
7705 if (!args) SWIG_fail;
7706 swig_obj[0] = args;
7707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7708 if (!SWIG_IsOK(res1)) {
7709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7710 }
7711 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7712 {
7713 wxNativePixelData_Accessor_nextPixel(arg1);
7714 if (PyErr_Occurred()) SWIG_fail;
7715 }
7716 resultobj = SWIG_Py_Void();
7717 return resultobj;
7718 fail:
7719 return NULL;
7720 }
7721
7722
7723 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7724 PyObject *resultobj = 0;
7725 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7726 wxNativePixelData *arg2 = 0 ;
7727 int arg3 ;
7728 int arg4 ;
7729 void *argp1 = 0 ;
7730 int res1 = 0 ;
7731 void *argp2 = 0 ;
7732 int res2 = 0 ;
7733 int val3 ;
7734 int ecode3 = 0 ;
7735 int val4 ;
7736 int ecode4 = 0 ;
7737 PyObject * obj0 = 0 ;
7738 PyObject * obj1 = 0 ;
7739 PyObject * obj2 = 0 ;
7740 PyObject * obj3 = 0 ;
7741 char * kwnames[] = {
7742 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7743 };
7744
7745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7747 if (!SWIG_IsOK(res1)) {
7748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7749 }
7750 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7751 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7752 if (!SWIG_IsOK(res2)) {
7753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7754 }
7755 if (!argp2) {
7756 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7757 }
7758 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7759 ecode3 = SWIG_AsVal_int(obj2, &val3);
7760 if (!SWIG_IsOK(ecode3)) {
7761 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7762 }
7763 arg3 = static_cast< int >(val3);
7764 ecode4 = SWIG_AsVal_int(obj3, &val4);
7765 if (!SWIG_IsOK(ecode4)) {
7766 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7767 }
7768 arg4 = static_cast< int >(val4);
7769 {
7770 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7771 if (PyErr_Occurred()) SWIG_fail;
7772 }
7773 resultobj = SWIG_Py_Void();
7774 return resultobj;
7775 fail:
7776 return NULL;
7777 }
7778
7779
7780 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7781 PyObject *resultobj = 0;
7782 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7783 wxNativePixelData *arg2 = 0 ;
7784 int arg3 ;
7785 void *argp1 = 0 ;
7786 int res1 = 0 ;
7787 void *argp2 = 0 ;
7788 int res2 = 0 ;
7789 int val3 ;
7790 int ecode3 = 0 ;
7791 PyObject * obj0 = 0 ;
7792 PyObject * obj1 = 0 ;
7793 PyObject * obj2 = 0 ;
7794 char * kwnames[] = {
7795 (char *) "self",(char *) "data",(char *) "x", NULL
7796 };
7797
7798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7800 if (!SWIG_IsOK(res1)) {
7801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7802 }
7803 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7804 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7805 if (!SWIG_IsOK(res2)) {
7806 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7807 }
7808 if (!argp2) {
7809 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7810 }
7811 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7812 ecode3 = SWIG_AsVal_int(obj2, &val3);
7813 if (!SWIG_IsOK(ecode3)) {
7814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7815 }
7816 arg3 = static_cast< int >(val3);
7817 {
7818 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7819 if (PyErr_Occurred()) SWIG_fail;
7820 }
7821 resultobj = SWIG_Py_Void();
7822 return resultobj;
7823 fail:
7824 return NULL;
7825 }
7826
7827
7828 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7829 PyObject *resultobj = 0;
7830 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7831 wxNativePixelData *arg2 = 0 ;
7832 int arg3 ;
7833 void *argp1 = 0 ;
7834 int res1 = 0 ;
7835 void *argp2 = 0 ;
7836 int res2 = 0 ;
7837 int val3 ;
7838 int ecode3 = 0 ;
7839 PyObject * obj0 = 0 ;
7840 PyObject * obj1 = 0 ;
7841 PyObject * obj2 = 0 ;
7842 char * kwnames[] = {
7843 (char *) "self",(char *) "data",(char *) "y", NULL
7844 };
7845
7846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7848 if (!SWIG_IsOK(res1)) {
7849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7850 }
7851 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7852 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7853 if (!SWIG_IsOK(res2)) {
7854 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7855 }
7856 if (!argp2) {
7857 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7858 }
7859 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7860 ecode3 = SWIG_AsVal_int(obj2, &val3);
7861 if (!SWIG_IsOK(ecode3)) {
7862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7863 }
7864 arg3 = static_cast< int >(val3);
7865 {
7866 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7867 if (PyErr_Occurred()) SWIG_fail;
7868 }
7869 resultobj = SWIG_Py_Void();
7870 return resultobj;
7871 fail:
7872 return NULL;
7873 }
7874
7875
7876 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7877 PyObject *resultobj = 0;
7878 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7879 wxNativePixelData *arg2 = 0 ;
7880 int arg3 ;
7881 int arg4 ;
7882 void *argp1 = 0 ;
7883 int res1 = 0 ;
7884 void *argp2 = 0 ;
7885 int res2 = 0 ;
7886 int val3 ;
7887 int ecode3 = 0 ;
7888 int val4 ;
7889 int ecode4 = 0 ;
7890 PyObject * obj0 = 0 ;
7891 PyObject * obj1 = 0 ;
7892 PyObject * obj2 = 0 ;
7893 PyObject * obj3 = 0 ;
7894 char * kwnames[] = {
7895 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7896 };
7897
7898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7900 if (!SWIG_IsOK(res1)) {
7901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7902 }
7903 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7904 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7905 if (!SWIG_IsOK(res2)) {
7906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7907 }
7908 if (!argp2) {
7909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7910 }
7911 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7912 ecode3 = SWIG_AsVal_int(obj2, &val3);
7913 if (!SWIG_IsOK(ecode3)) {
7914 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7915 }
7916 arg3 = static_cast< int >(val3);
7917 ecode4 = SWIG_AsVal_int(obj3, &val4);
7918 if (!SWIG_IsOK(ecode4)) {
7919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7920 }
7921 arg4 = static_cast< int >(val4);
7922 {
7923 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7924 if (PyErr_Occurred()) SWIG_fail;
7925 }
7926 resultobj = SWIG_Py_Void();
7927 return resultobj;
7928 fail:
7929 return NULL;
7930 }
7931
7932
7933 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7934 PyObject *resultobj = 0;
7935 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7936 byte arg2 ;
7937 byte arg3 ;
7938 byte arg4 ;
7939 void *argp1 = 0 ;
7940 int res1 = 0 ;
7941 unsigned char val2 ;
7942 int ecode2 = 0 ;
7943 unsigned char val3 ;
7944 int ecode3 = 0 ;
7945 unsigned char val4 ;
7946 int ecode4 = 0 ;
7947 PyObject * obj0 = 0 ;
7948 PyObject * obj1 = 0 ;
7949 PyObject * obj2 = 0 ;
7950 PyObject * obj3 = 0 ;
7951 char * kwnames[] = {
7952 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7953 };
7954
7955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7957 if (!SWIG_IsOK(res1)) {
7958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7959 }
7960 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7961 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7962 if (!SWIG_IsOK(ecode2)) {
7963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7964 }
7965 arg2 = static_cast< byte >(val2);
7966 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7967 if (!SWIG_IsOK(ecode3)) {
7968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7969 }
7970 arg3 = static_cast< byte >(val3);
7971 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7972 if (!SWIG_IsOK(ecode4)) {
7973 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7974 }
7975 arg4 = static_cast< byte >(val4);
7976 {
7977 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7978 if (PyErr_Occurred()) SWIG_fail;
7979 }
7980 resultobj = SWIG_Py_Void();
7981 return resultobj;
7982 fail:
7983 return NULL;
7984 }
7985
7986
7987 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7988 PyObject *resultobj = 0;
7989 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7990 PyObject *result = 0 ;
7991 void *argp1 = 0 ;
7992 int res1 = 0 ;
7993 PyObject *swig_obj[1] ;
7994
7995 if (!args) SWIG_fail;
7996 swig_obj[0] = args;
7997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7998 if (!SWIG_IsOK(res1)) {
7999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8000 }
8001 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8002 {
8003 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8004 if (PyErr_Occurred()) SWIG_fail;
8005 }
8006 resultobj = result;
8007 return resultobj;
8008 fail:
8009 return NULL;
8010 }
8011
8012
8013 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8014 PyObject *obj;
8015 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8016 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8017 return SWIG_Py_Void();
8018 }
8019
8020 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8021 return SWIG_Python_InitShadowInstance(args);
8022 }
8023
8024 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8025 PyObject *resultobj = 0;
8026 wxBitmap *arg1 = 0 ;
8027 wxAlphaPixelData *result = 0 ;
8028 void *argp1 = 0 ;
8029 int res1 = 0 ;
8030
8031 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8033 if (!SWIG_IsOK(res1)) {
8034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8035 }
8036 if (!argp1) {
8037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8038 }
8039 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8040 {
8041 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8042 if (PyErr_Occurred()) SWIG_fail;
8043 }
8044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8045 return resultobj;
8046 fail:
8047 return NULL;
8048 }
8049
8050
8051 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8052 PyObject *resultobj = 0;
8053 wxBitmap *arg1 = 0 ;
8054 wxRect *arg2 = 0 ;
8055 wxAlphaPixelData *result = 0 ;
8056 void *argp1 = 0 ;
8057 int res1 = 0 ;
8058 wxRect temp2 ;
8059
8060 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8062 if (!SWIG_IsOK(res1)) {
8063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8064 }
8065 if (!argp1) {
8066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8067 }
8068 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8069 {
8070 arg2 = &temp2;
8071 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8072 }
8073 {
8074 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8075 if (PyErr_Occurred()) SWIG_fail;
8076 }
8077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8078 return resultobj;
8079 fail:
8080 return NULL;
8081 }
8082
8083
8084 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8085 PyObject *resultobj = 0;
8086 wxBitmap *arg1 = 0 ;
8087 wxPoint *arg2 = 0 ;
8088 wxSize *arg3 = 0 ;
8089 wxAlphaPixelData *result = 0 ;
8090 void *argp1 = 0 ;
8091 int res1 = 0 ;
8092 wxPoint temp2 ;
8093 wxSize temp3 ;
8094
8095 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8097 if (!SWIG_IsOK(res1)) {
8098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8099 }
8100 if (!argp1) {
8101 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8102 }
8103 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8104 {
8105 arg2 = &temp2;
8106 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8107 }
8108 {
8109 arg3 = &temp3;
8110 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8111 }
8112 {
8113 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8114 if (PyErr_Occurred()) SWIG_fail;
8115 }
8116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8117 return resultobj;
8118 fail:
8119 return NULL;
8120 }
8121
8122
8123 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8124 int argc;
8125 PyObject *argv[4];
8126
8127 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8128 --argc;
8129 if (argc == 1) {
8130 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8131 }
8132 if (argc == 2) {
8133 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8134 }
8135 if (argc == 3) {
8136 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8137 }
8138
8139 fail:
8140 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8141 return NULL;
8142 }
8143
8144
8145 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8146 PyObject *resultobj = 0;
8147 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8148 void *argp1 = 0 ;
8149 int res1 = 0 ;
8150 PyObject *swig_obj[1] ;
8151
8152 if (!args) SWIG_fail;
8153 swig_obj[0] = args;
8154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8155 if (!SWIG_IsOK(res1)) {
8156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8157 }
8158 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8159 {
8160 delete arg1;
8161
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 resultobj = SWIG_Py_Void();
8165 return resultobj;
8166 fail:
8167 return NULL;
8168 }
8169
8170
8171 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8172 PyObject *resultobj = 0;
8173 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8174 wxAlphaPixelData_Accessor result;
8175 void *argp1 = 0 ;
8176 int res1 = 0 ;
8177 PyObject *swig_obj[1] ;
8178
8179 if (!args) SWIG_fail;
8180 swig_obj[0] = args;
8181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8182 if (!SWIG_IsOK(res1)) {
8183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8184 }
8185 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8186 {
8187 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8188 if (PyErr_Occurred()) SWIG_fail;
8189 }
8190 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8191 return resultobj;
8192 fail:
8193 return NULL;
8194 }
8195
8196
8197 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8198 PyObject *resultobj = 0;
8199 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8200 void *argp1 = 0 ;
8201 int res1 = 0 ;
8202 PyObject *swig_obj[1] ;
8203
8204 if (!args) SWIG_fail;
8205 swig_obj[0] = args;
8206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8207 if (!SWIG_IsOK(res1)) {
8208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8209 }
8210 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8211 {
8212 (arg1)->UseAlpha();
8213 if (PyErr_Occurred()) SWIG_fail;
8214 }
8215 resultobj = SWIG_Py_Void();
8216 return resultobj;
8217 fail:
8218 return NULL;
8219 }
8220
8221
8222 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8223 PyObject *resultobj = 0;
8224 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8225 bool result;
8226 void *argp1 = 0 ;
8227 int res1 = 0 ;
8228 PyObject *swig_obj[1] ;
8229
8230 if (!args) SWIG_fail;
8231 swig_obj[0] = args;
8232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8233 if (!SWIG_IsOK(res1)) {
8234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8235 }
8236 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8237 {
8238 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8239 if (PyErr_Occurred()) SWIG_fail;
8240 }
8241 {
8242 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8243 }
8244 return resultobj;
8245 fail:
8246 return NULL;
8247 }
8248
8249
8250 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8251 PyObject *obj;
8252 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8253 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8254 return SWIG_Py_Void();
8255 }
8256
8257 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8258 return SWIG_Python_InitShadowInstance(args);
8259 }
8260
8261 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8262 PyObject *resultobj = 0;
8263 wxAlphaPixelData *arg1 = 0 ;
8264 wxAlphaPixelData_Accessor *result = 0 ;
8265 void *argp1 = 0 ;
8266 int res1 = 0 ;
8267
8268 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8270 if (!SWIG_IsOK(res1)) {
8271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8272 }
8273 if (!argp1) {
8274 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8275 }
8276 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8277 {
8278 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8279 if (PyErr_Occurred()) SWIG_fail;
8280 }
8281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8282 return resultobj;
8283 fail:
8284 return NULL;
8285 }
8286
8287
8288 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8289 PyObject *resultobj = 0;
8290 wxBitmap *arg1 = 0 ;
8291 wxAlphaPixelData *arg2 = 0 ;
8292 wxAlphaPixelData_Accessor *result = 0 ;
8293 void *argp1 = 0 ;
8294 int res1 = 0 ;
8295 void *argp2 = 0 ;
8296 int res2 = 0 ;
8297
8298 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8300 if (!SWIG_IsOK(res1)) {
8301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8302 }
8303 if (!argp1) {
8304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8305 }
8306 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8307 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8308 if (!SWIG_IsOK(res2)) {
8309 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8310 }
8311 if (!argp2) {
8312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8313 }
8314 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8315 {
8316 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8317 if (PyErr_Occurred()) SWIG_fail;
8318 }
8319 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8320 return resultobj;
8321 fail:
8322 return NULL;
8323 }
8324
8325
8326 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8327 PyObject *resultobj = 0;
8328 wxAlphaPixelData_Accessor *result = 0 ;
8329
8330 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8331 {
8332 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8333 if (PyErr_Occurred()) SWIG_fail;
8334 }
8335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8336 return resultobj;
8337 fail:
8338 return NULL;
8339 }
8340
8341
8342 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8343 int argc;
8344 PyObject *argv[3];
8345
8346 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8347 --argc;
8348 if (argc == 0) {
8349 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8350 }
8351 if (argc == 1) {
8352 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8353 }
8354 if (argc == 2) {
8355 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8356 }
8357
8358 fail:
8359 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8360 return NULL;
8361 }
8362
8363
8364 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8365 PyObject *resultobj = 0;
8366 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8367 void *argp1 = 0 ;
8368 int res1 = 0 ;
8369 PyObject *swig_obj[1] ;
8370
8371 if (!args) SWIG_fail;
8372 swig_obj[0] = args;
8373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8374 if (!SWIG_IsOK(res1)) {
8375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8376 }
8377 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8378 {
8379 delete arg1;
8380
8381 if (PyErr_Occurred()) SWIG_fail;
8382 }
8383 resultobj = SWIG_Py_Void();
8384 return resultobj;
8385 fail:
8386 return NULL;
8387 }
8388
8389
8390 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8391 PyObject *resultobj = 0;
8392 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8393 wxAlphaPixelData *arg2 = 0 ;
8394 void *argp1 = 0 ;
8395 int res1 = 0 ;
8396 void *argp2 = 0 ;
8397 int res2 = 0 ;
8398 PyObject * obj0 = 0 ;
8399 PyObject * obj1 = 0 ;
8400 char * kwnames[] = {
8401 (char *) "self",(char *) "data", NULL
8402 };
8403
8404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8406 if (!SWIG_IsOK(res1)) {
8407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8408 }
8409 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8410 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8411 if (!SWIG_IsOK(res2)) {
8412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8413 }
8414 if (!argp2) {
8415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8416 }
8417 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8418 {
8419 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8420 if (PyErr_Occurred()) SWIG_fail;
8421 }
8422 resultobj = SWIG_Py_Void();
8423 return resultobj;
8424 fail:
8425 return NULL;
8426 }
8427
8428
8429 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8430 PyObject *resultobj = 0;
8431 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8432 bool result;
8433 void *argp1 = 0 ;
8434 int res1 = 0 ;
8435 PyObject *swig_obj[1] ;
8436
8437 if (!args) SWIG_fail;
8438 swig_obj[0] = args;
8439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8440 if (!SWIG_IsOK(res1)) {
8441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8442 }
8443 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8444 {
8445 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8446 if (PyErr_Occurred()) SWIG_fail;
8447 }
8448 {
8449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8450 }
8451 return resultobj;
8452 fail:
8453 return NULL;
8454 }
8455
8456
8457 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8458 PyObject *resultobj = 0;
8459 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8460 void *argp1 = 0 ;
8461 int res1 = 0 ;
8462 PyObject *swig_obj[1] ;
8463
8464 if (!args) SWIG_fail;
8465 swig_obj[0] = args;
8466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8467 if (!SWIG_IsOK(res1)) {
8468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8469 }
8470 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8471 {
8472 wxAlphaPixelData_Accessor_nextPixel(arg1);
8473 if (PyErr_Occurred()) SWIG_fail;
8474 }
8475 resultobj = SWIG_Py_Void();
8476 return resultobj;
8477 fail:
8478 return NULL;
8479 }
8480
8481
8482 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8483 PyObject *resultobj = 0;
8484 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8485 wxAlphaPixelData *arg2 = 0 ;
8486 int arg3 ;
8487 int arg4 ;
8488 void *argp1 = 0 ;
8489 int res1 = 0 ;
8490 void *argp2 = 0 ;
8491 int res2 = 0 ;
8492 int val3 ;
8493 int ecode3 = 0 ;
8494 int val4 ;
8495 int ecode4 = 0 ;
8496 PyObject * obj0 = 0 ;
8497 PyObject * obj1 = 0 ;
8498 PyObject * obj2 = 0 ;
8499 PyObject * obj3 = 0 ;
8500 char * kwnames[] = {
8501 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8502 };
8503
8504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8506 if (!SWIG_IsOK(res1)) {
8507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8508 }
8509 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8510 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8511 if (!SWIG_IsOK(res2)) {
8512 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8513 }
8514 if (!argp2) {
8515 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8516 }
8517 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8518 ecode3 = SWIG_AsVal_int(obj2, &val3);
8519 if (!SWIG_IsOK(ecode3)) {
8520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8521 }
8522 arg3 = static_cast< int >(val3);
8523 ecode4 = SWIG_AsVal_int(obj3, &val4);
8524 if (!SWIG_IsOK(ecode4)) {
8525 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8526 }
8527 arg4 = static_cast< int >(val4);
8528 {
8529 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8530 if (PyErr_Occurred()) SWIG_fail;
8531 }
8532 resultobj = SWIG_Py_Void();
8533 return resultobj;
8534 fail:
8535 return NULL;
8536 }
8537
8538
8539 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8540 PyObject *resultobj = 0;
8541 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8542 wxAlphaPixelData *arg2 = 0 ;
8543 int arg3 ;
8544 void *argp1 = 0 ;
8545 int res1 = 0 ;
8546 void *argp2 = 0 ;
8547 int res2 = 0 ;
8548 int val3 ;
8549 int ecode3 = 0 ;
8550 PyObject * obj0 = 0 ;
8551 PyObject * obj1 = 0 ;
8552 PyObject * obj2 = 0 ;
8553 char * kwnames[] = {
8554 (char *) "self",(char *) "data",(char *) "x", NULL
8555 };
8556
8557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8559 if (!SWIG_IsOK(res1)) {
8560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8561 }
8562 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8564 if (!SWIG_IsOK(res2)) {
8565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8566 }
8567 if (!argp2) {
8568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8569 }
8570 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8571 ecode3 = SWIG_AsVal_int(obj2, &val3);
8572 if (!SWIG_IsOK(ecode3)) {
8573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8574 }
8575 arg3 = static_cast< int >(val3);
8576 {
8577 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8578 if (PyErr_Occurred()) SWIG_fail;
8579 }
8580 resultobj = SWIG_Py_Void();
8581 return resultobj;
8582 fail:
8583 return NULL;
8584 }
8585
8586
8587 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8588 PyObject *resultobj = 0;
8589 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8590 wxAlphaPixelData *arg2 = 0 ;
8591 int arg3 ;
8592 void *argp1 = 0 ;
8593 int res1 = 0 ;
8594 void *argp2 = 0 ;
8595 int res2 = 0 ;
8596 int val3 ;
8597 int ecode3 = 0 ;
8598 PyObject * obj0 = 0 ;
8599 PyObject * obj1 = 0 ;
8600 PyObject * obj2 = 0 ;
8601 char * kwnames[] = {
8602 (char *) "self",(char *) "data",(char *) "y", NULL
8603 };
8604
8605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8607 if (!SWIG_IsOK(res1)) {
8608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8609 }
8610 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8611 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8612 if (!SWIG_IsOK(res2)) {
8613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8614 }
8615 if (!argp2) {
8616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8617 }
8618 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8619 ecode3 = SWIG_AsVal_int(obj2, &val3);
8620 if (!SWIG_IsOK(ecode3)) {
8621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8622 }
8623 arg3 = static_cast< int >(val3);
8624 {
8625 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8626 if (PyErr_Occurred()) SWIG_fail;
8627 }
8628 resultobj = SWIG_Py_Void();
8629 return resultobj;
8630 fail:
8631 return NULL;
8632 }
8633
8634
8635 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8636 PyObject *resultobj = 0;
8637 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8638 wxAlphaPixelData *arg2 = 0 ;
8639 int arg3 ;
8640 int arg4 ;
8641 void *argp1 = 0 ;
8642 int res1 = 0 ;
8643 void *argp2 = 0 ;
8644 int res2 = 0 ;
8645 int val3 ;
8646 int ecode3 = 0 ;
8647 int val4 ;
8648 int ecode4 = 0 ;
8649 PyObject * obj0 = 0 ;
8650 PyObject * obj1 = 0 ;
8651 PyObject * obj2 = 0 ;
8652 PyObject * obj3 = 0 ;
8653 char * kwnames[] = {
8654 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8655 };
8656
8657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8659 if (!SWIG_IsOK(res1)) {
8660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8661 }
8662 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8663 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8664 if (!SWIG_IsOK(res2)) {
8665 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8666 }
8667 if (!argp2) {
8668 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8669 }
8670 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8671 ecode3 = SWIG_AsVal_int(obj2, &val3);
8672 if (!SWIG_IsOK(ecode3)) {
8673 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8674 }
8675 arg3 = static_cast< int >(val3);
8676 ecode4 = SWIG_AsVal_int(obj3, &val4);
8677 if (!SWIG_IsOK(ecode4)) {
8678 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8679 }
8680 arg4 = static_cast< int >(val4);
8681 {
8682 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 resultobj = SWIG_Py_Void();
8686 return resultobj;
8687 fail:
8688 return NULL;
8689 }
8690
8691
8692 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8693 PyObject *resultobj = 0;
8694 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8695 byte arg2 ;
8696 byte arg3 ;
8697 byte arg4 ;
8698 byte arg5 ;
8699 void *argp1 = 0 ;
8700 int res1 = 0 ;
8701 unsigned char val2 ;
8702 int ecode2 = 0 ;
8703 unsigned char val3 ;
8704 int ecode3 = 0 ;
8705 unsigned char val4 ;
8706 int ecode4 = 0 ;
8707 unsigned char val5 ;
8708 int ecode5 = 0 ;
8709 PyObject * obj0 = 0 ;
8710 PyObject * obj1 = 0 ;
8711 PyObject * obj2 = 0 ;
8712 PyObject * obj3 = 0 ;
8713 PyObject * obj4 = 0 ;
8714 char * kwnames[] = {
8715 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8716 };
8717
8718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8720 if (!SWIG_IsOK(res1)) {
8721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8722 }
8723 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8724 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8725 if (!SWIG_IsOK(ecode2)) {
8726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8727 }
8728 arg2 = static_cast< byte >(val2);
8729 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8730 if (!SWIG_IsOK(ecode3)) {
8731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8732 }
8733 arg3 = static_cast< byte >(val3);
8734 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8735 if (!SWIG_IsOK(ecode4)) {
8736 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8737 }
8738 arg4 = static_cast< byte >(val4);
8739 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8740 if (!SWIG_IsOK(ecode5)) {
8741 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8742 }
8743 arg5 = static_cast< byte >(val5);
8744 {
8745 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8746 if (PyErr_Occurred()) SWIG_fail;
8747 }
8748 resultobj = SWIG_Py_Void();
8749 return resultobj;
8750 fail:
8751 return NULL;
8752 }
8753
8754
8755 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8756 PyObject *resultobj = 0;
8757 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8758 PyObject *result = 0 ;
8759 void *argp1 = 0 ;
8760 int res1 = 0 ;
8761 PyObject *swig_obj[1] ;
8762
8763 if (!args) SWIG_fail;
8764 swig_obj[0] = args;
8765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8766 if (!SWIG_IsOK(res1)) {
8767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8768 }
8769 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8770 {
8771 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8772 if (PyErr_Occurred()) SWIG_fail;
8773 }
8774 resultobj = result;
8775 return resultobj;
8776 fail:
8777 return NULL;
8778 }
8779
8780
8781 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8782 PyObject *obj;
8783 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8784 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8785 return SWIG_Py_Void();
8786 }
8787
8788 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8789 return SWIG_Python_InitShadowInstance(args);
8790 }
8791
8792 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8793 PyObject *resultobj = 0;
8794 wxBitmap *arg1 = 0 ;
8795 wxColour const &arg2_defvalue = wxNullColour ;
8796 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8797 wxMask *result = 0 ;
8798 void *argp1 = 0 ;
8799 int res1 = 0 ;
8800 wxColour temp2 ;
8801 PyObject * obj0 = 0 ;
8802 PyObject * obj1 = 0 ;
8803 char * kwnames[] = {
8804 (char *) "bitmap",(char *) "colour", NULL
8805 };
8806
8807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8808 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8809 if (!SWIG_IsOK(res1)) {
8810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8811 }
8812 if (!argp1) {
8813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8814 }
8815 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8816 if (obj1) {
8817 {
8818 arg2 = &temp2;
8819 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8820 }
8821 }
8822 {
8823 if (!wxPyCheckForApp()) SWIG_fail;
8824 PyThreadState* __tstate = wxPyBeginAllowThreads();
8825 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8826 wxPyEndAllowThreads(__tstate);
8827 if (PyErr_Occurred()) SWIG_fail;
8828 }
8829 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8830 return resultobj;
8831 fail:
8832 return NULL;
8833 }
8834
8835
8836 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8837 PyObject *resultobj = 0;
8838 wxMask *arg1 = (wxMask *) 0 ;
8839 void *argp1 = 0 ;
8840 int res1 = 0 ;
8841 PyObject *swig_obj[1] ;
8842
8843 if (!args) SWIG_fail;
8844 swig_obj[0] = args;
8845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8846 if (!SWIG_IsOK(res1)) {
8847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8848 }
8849 arg1 = reinterpret_cast< wxMask * >(argp1);
8850 {
8851 delete arg1;
8852
8853 if (PyErr_Occurred()) SWIG_fail;
8854 }
8855 resultobj = SWIG_Py_Void();
8856 return resultobj;
8857 fail:
8858 return NULL;
8859 }
8860
8861
8862 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8863 PyObject *obj;
8864 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8865 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8866 return SWIG_Py_Void();
8867 }
8868
8869 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8870 return SWIG_Python_InitShadowInstance(args);
8871 }
8872
8873 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8874 PyObject *resultobj = 0;
8875 wxString *arg1 = 0 ;
8876 wxBitmapType arg2 ;
8877 int arg3 = (int) -1 ;
8878 int arg4 = (int) -1 ;
8879 wxIcon *result = 0 ;
8880 bool temp1 = false ;
8881 int val2 ;
8882 int ecode2 = 0 ;
8883 int val3 ;
8884 int ecode3 = 0 ;
8885 int val4 ;
8886 int ecode4 = 0 ;
8887 PyObject * obj0 = 0 ;
8888 PyObject * obj1 = 0 ;
8889 PyObject * obj2 = 0 ;
8890 PyObject * obj3 = 0 ;
8891 char * kwnames[] = {
8892 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8893 };
8894
8895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8896 {
8897 arg1 = wxString_in_helper(obj0);
8898 if (arg1 == NULL) SWIG_fail;
8899 temp1 = true;
8900 }
8901 ecode2 = SWIG_AsVal_int(obj1, &val2);
8902 if (!SWIG_IsOK(ecode2)) {
8903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8904 }
8905 arg2 = static_cast< wxBitmapType >(val2);
8906 if (obj2) {
8907 ecode3 = SWIG_AsVal_int(obj2, &val3);
8908 if (!SWIG_IsOK(ecode3)) {
8909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8910 }
8911 arg3 = static_cast< int >(val3);
8912 }
8913 if (obj3) {
8914 ecode4 = SWIG_AsVal_int(obj3, &val4);
8915 if (!SWIG_IsOK(ecode4)) {
8916 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8917 }
8918 arg4 = static_cast< int >(val4);
8919 }
8920 {
8921 if (!wxPyCheckForApp()) SWIG_fail;
8922 PyThreadState* __tstate = wxPyBeginAllowThreads();
8923 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8924 wxPyEndAllowThreads(__tstate);
8925 if (PyErr_Occurred()) SWIG_fail;
8926 }
8927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8928 {
8929 if (temp1)
8930 delete arg1;
8931 }
8932 return resultobj;
8933 fail:
8934 {
8935 if (temp1)
8936 delete arg1;
8937 }
8938 return NULL;
8939 }
8940
8941
8942 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8943 PyObject *resultobj = 0;
8944 wxIcon *arg1 = (wxIcon *) 0 ;
8945 void *argp1 = 0 ;
8946 int res1 = 0 ;
8947 PyObject *swig_obj[1] ;
8948
8949 if (!args) SWIG_fail;
8950 swig_obj[0] = args;
8951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8952 if (!SWIG_IsOK(res1)) {
8953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8954 }
8955 arg1 = reinterpret_cast< wxIcon * >(argp1);
8956 {
8957 PyThreadState* __tstate = wxPyBeginAllowThreads();
8958 delete arg1;
8959
8960 wxPyEndAllowThreads(__tstate);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 resultobj = SWIG_Py_Void();
8964 return resultobj;
8965 fail:
8966 return NULL;
8967 }
8968
8969
8970 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8971 PyObject *resultobj = 0;
8972 wxIcon *result = 0 ;
8973
8974 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8975 {
8976 if (!wxPyCheckForApp()) SWIG_fail;
8977 PyThreadState* __tstate = wxPyBeginAllowThreads();
8978 result = (wxIcon *)new wxIcon();
8979 wxPyEndAllowThreads(__tstate);
8980 if (PyErr_Occurred()) SWIG_fail;
8981 }
8982 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8983 return resultobj;
8984 fail:
8985 return NULL;
8986 }
8987
8988
8989 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8990 PyObject *resultobj = 0;
8991 wxIconLocation *arg1 = 0 ;
8992 wxIcon *result = 0 ;
8993 void *argp1 = 0 ;
8994 int res1 = 0 ;
8995 PyObject * obj0 = 0 ;
8996 char * kwnames[] = {
8997 (char *) "loc", NULL
8998 };
8999
9000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9001 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9002 if (!SWIG_IsOK(res1)) {
9003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9004 }
9005 if (!argp1) {
9006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9007 }
9008 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9009 {
9010 if (!wxPyCheckForApp()) SWIG_fail;
9011 PyThreadState* __tstate = wxPyBeginAllowThreads();
9012 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9013 wxPyEndAllowThreads(__tstate);
9014 if (PyErr_Occurred()) SWIG_fail;
9015 }
9016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9017 return resultobj;
9018 fail:
9019 return NULL;
9020 }
9021
9022
9023 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9024 PyObject *resultobj = 0;
9025 wxBitmap *arg1 = 0 ;
9026 wxIcon *result = 0 ;
9027 void *argp1 = 0 ;
9028 int res1 = 0 ;
9029 PyObject * obj0 = 0 ;
9030 char * kwnames[] = {
9031 (char *) "bmp", NULL
9032 };
9033
9034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9035 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9036 if (!SWIG_IsOK(res1)) {
9037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9038 }
9039 if (!argp1) {
9040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9041 }
9042 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9043 {
9044 if (!wxPyCheckForApp()) SWIG_fail;
9045 PyThreadState* __tstate = wxPyBeginAllowThreads();
9046 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9047 wxPyEndAllowThreads(__tstate);
9048 if (PyErr_Occurred()) SWIG_fail;
9049 }
9050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9051 return resultobj;
9052 fail:
9053 return NULL;
9054 }
9055
9056
9057 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9058 PyObject *resultobj = 0;
9059 PyObject *arg1 = (PyObject *) 0 ;
9060 wxIcon *result = 0 ;
9061 PyObject * obj0 = 0 ;
9062 char * kwnames[] = {
9063 (char *) "listOfStrings", NULL
9064 };
9065
9066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9067 arg1 = obj0;
9068 {
9069 if (!wxPyCheckForApp()) SWIG_fail;
9070 PyThreadState* __tstate = wxPyBeginAllowThreads();
9071 result = (wxIcon *)new_wxIcon(arg1);
9072 wxPyEndAllowThreads(__tstate);
9073 if (PyErr_Occurred()) SWIG_fail;
9074 }
9075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9076 return resultobj;
9077 fail:
9078 return NULL;
9079 }
9080
9081
9082 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9083 PyObject *resultobj = 0;
9084 wxIcon *arg1 = (wxIcon *) 0 ;
9085 wxString *arg2 = 0 ;
9086 wxBitmapType arg3 ;
9087 bool result;
9088 void *argp1 = 0 ;
9089 int res1 = 0 ;
9090 bool temp2 = false ;
9091 int val3 ;
9092 int ecode3 = 0 ;
9093 PyObject * obj0 = 0 ;
9094 PyObject * obj1 = 0 ;
9095 PyObject * obj2 = 0 ;
9096 char * kwnames[] = {
9097 (char *) "self",(char *) "name",(char *) "type", NULL
9098 };
9099
9100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9102 if (!SWIG_IsOK(res1)) {
9103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9104 }
9105 arg1 = reinterpret_cast< wxIcon * >(argp1);
9106 {
9107 arg2 = wxString_in_helper(obj1);
9108 if (arg2 == NULL) SWIG_fail;
9109 temp2 = true;
9110 }
9111 ecode3 = SWIG_AsVal_int(obj2, &val3);
9112 if (!SWIG_IsOK(ecode3)) {
9113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9114 }
9115 arg3 = static_cast< wxBitmapType >(val3);
9116 {
9117 PyThreadState* __tstate = wxPyBeginAllowThreads();
9118 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9119 wxPyEndAllowThreads(__tstate);
9120 if (PyErr_Occurred()) SWIG_fail;
9121 }
9122 {
9123 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9124 }
9125 {
9126 if (temp2)
9127 delete arg2;
9128 }
9129 return resultobj;
9130 fail:
9131 {
9132 if (temp2)
9133 delete arg2;
9134 }
9135 return NULL;
9136 }
9137
9138
9139 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9140 PyObject *resultobj = 0;
9141 wxIcon *arg1 = (wxIcon *) 0 ;
9142 bool result;
9143 void *argp1 = 0 ;
9144 int res1 = 0 ;
9145 PyObject *swig_obj[1] ;
9146
9147 if (!args) SWIG_fail;
9148 swig_obj[0] = args;
9149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9150 if (!SWIG_IsOK(res1)) {
9151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9152 }
9153 arg1 = reinterpret_cast< wxIcon * >(argp1);
9154 {
9155 PyThreadState* __tstate = wxPyBeginAllowThreads();
9156 result = (bool)(arg1)->IsOk();
9157 wxPyEndAllowThreads(__tstate);
9158 if (PyErr_Occurred()) SWIG_fail;
9159 }
9160 {
9161 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9162 }
9163 return resultobj;
9164 fail:
9165 return NULL;
9166 }
9167
9168
9169 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9170 PyObject *resultobj = 0;
9171 wxIcon *arg1 = (wxIcon *) 0 ;
9172 int result;
9173 void *argp1 = 0 ;
9174 int res1 = 0 ;
9175 PyObject *swig_obj[1] ;
9176
9177 if (!args) SWIG_fail;
9178 swig_obj[0] = args;
9179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9180 if (!SWIG_IsOK(res1)) {
9181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9182 }
9183 arg1 = reinterpret_cast< wxIcon * >(argp1);
9184 {
9185 PyThreadState* __tstate = wxPyBeginAllowThreads();
9186 result = (int)(arg1)->GetWidth();
9187 wxPyEndAllowThreads(__tstate);
9188 if (PyErr_Occurred()) SWIG_fail;
9189 }
9190 resultobj = SWIG_From_int(static_cast< int >(result));
9191 return resultobj;
9192 fail:
9193 return NULL;
9194 }
9195
9196
9197 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9198 PyObject *resultobj = 0;
9199 wxIcon *arg1 = (wxIcon *) 0 ;
9200 int result;
9201 void *argp1 = 0 ;
9202 int res1 = 0 ;
9203 PyObject *swig_obj[1] ;
9204
9205 if (!args) SWIG_fail;
9206 swig_obj[0] = args;
9207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9208 if (!SWIG_IsOK(res1)) {
9209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9210 }
9211 arg1 = reinterpret_cast< wxIcon * >(argp1);
9212 {
9213 PyThreadState* __tstate = wxPyBeginAllowThreads();
9214 result = (int)(arg1)->GetHeight();
9215 wxPyEndAllowThreads(__tstate);
9216 if (PyErr_Occurred()) SWIG_fail;
9217 }
9218 resultobj = SWIG_From_int(static_cast< int >(result));
9219 return resultobj;
9220 fail:
9221 return NULL;
9222 }
9223
9224
9225 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9226 PyObject *resultobj = 0;
9227 wxIcon *arg1 = (wxIcon *) 0 ;
9228 int result;
9229 void *argp1 = 0 ;
9230 int res1 = 0 ;
9231 PyObject *swig_obj[1] ;
9232
9233 if (!args) SWIG_fail;
9234 swig_obj[0] = args;
9235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9236 if (!SWIG_IsOK(res1)) {
9237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9238 }
9239 arg1 = reinterpret_cast< wxIcon * >(argp1);
9240 {
9241 PyThreadState* __tstate = wxPyBeginAllowThreads();
9242 result = (int)(arg1)->GetDepth();
9243 wxPyEndAllowThreads(__tstate);
9244 if (PyErr_Occurred()) SWIG_fail;
9245 }
9246 resultobj = SWIG_From_int(static_cast< int >(result));
9247 return resultobj;
9248 fail:
9249 return NULL;
9250 }
9251
9252
9253 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9254 PyObject *resultobj = 0;
9255 wxIcon *arg1 = (wxIcon *) 0 ;
9256 int arg2 ;
9257 void *argp1 = 0 ;
9258 int res1 = 0 ;
9259 int val2 ;
9260 int ecode2 = 0 ;
9261 PyObject * obj0 = 0 ;
9262 PyObject * obj1 = 0 ;
9263 char * kwnames[] = {
9264 (char *) "self",(char *) "w", NULL
9265 };
9266
9267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9269 if (!SWIG_IsOK(res1)) {
9270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9271 }
9272 arg1 = reinterpret_cast< wxIcon * >(argp1);
9273 ecode2 = SWIG_AsVal_int(obj1, &val2);
9274 if (!SWIG_IsOK(ecode2)) {
9275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9276 }
9277 arg2 = static_cast< int >(val2);
9278 {
9279 PyThreadState* __tstate = wxPyBeginAllowThreads();
9280 (arg1)->SetWidth(arg2);
9281 wxPyEndAllowThreads(__tstate);
9282 if (PyErr_Occurred()) SWIG_fail;
9283 }
9284 resultobj = SWIG_Py_Void();
9285 return resultobj;
9286 fail:
9287 return NULL;
9288 }
9289
9290
9291 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9292 PyObject *resultobj = 0;
9293 wxIcon *arg1 = (wxIcon *) 0 ;
9294 int arg2 ;
9295 void *argp1 = 0 ;
9296 int res1 = 0 ;
9297 int val2 ;
9298 int ecode2 = 0 ;
9299 PyObject * obj0 = 0 ;
9300 PyObject * obj1 = 0 ;
9301 char * kwnames[] = {
9302 (char *) "self",(char *) "h", NULL
9303 };
9304
9305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9307 if (!SWIG_IsOK(res1)) {
9308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9309 }
9310 arg1 = reinterpret_cast< wxIcon * >(argp1);
9311 ecode2 = SWIG_AsVal_int(obj1, &val2);
9312 if (!SWIG_IsOK(ecode2)) {
9313 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9314 }
9315 arg2 = static_cast< int >(val2);
9316 {
9317 PyThreadState* __tstate = wxPyBeginAllowThreads();
9318 (arg1)->SetHeight(arg2);
9319 wxPyEndAllowThreads(__tstate);
9320 if (PyErr_Occurred()) SWIG_fail;
9321 }
9322 resultobj = SWIG_Py_Void();
9323 return resultobj;
9324 fail:
9325 return NULL;
9326 }
9327
9328
9329 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9330 PyObject *resultobj = 0;
9331 wxIcon *arg1 = (wxIcon *) 0 ;
9332 int arg2 ;
9333 void *argp1 = 0 ;
9334 int res1 = 0 ;
9335 int val2 ;
9336 int ecode2 = 0 ;
9337 PyObject * obj0 = 0 ;
9338 PyObject * obj1 = 0 ;
9339 char * kwnames[] = {
9340 (char *) "self",(char *) "d", NULL
9341 };
9342
9343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9345 if (!SWIG_IsOK(res1)) {
9346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9347 }
9348 arg1 = reinterpret_cast< wxIcon * >(argp1);
9349 ecode2 = SWIG_AsVal_int(obj1, &val2);
9350 if (!SWIG_IsOK(ecode2)) {
9351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9352 }
9353 arg2 = static_cast< int >(val2);
9354 {
9355 PyThreadState* __tstate = wxPyBeginAllowThreads();
9356 (arg1)->SetDepth(arg2);
9357 wxPyEndAllowThreads(__tstate);
9358 if (PyErr_Occurred()) SWIG_fail;
9359 }
9360 resultobj = SWIG_Py_Void();
9361 return resultobj;
9362 fail:
9363 return NULL;
9364 }
9365
9366
9367 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9368 PyObject *resultobj = 0;
9369 wxIcon *arg1 = (wxIcon *) 0 ;
9370 wxBitmap *arg2 = 0 ;
9371 void *argp1 = 0 ;
9372 int res1 = 0 ;
9373 void *argp2 = 0 ;
9374 int res2 = 0 ;
9375 PyObject * obj0 = 0 ;
9376 PyObject * obj1 = 0 ;
9377 char * kwnames[] = {
9378 (char *) "self",(char *) "bmp", NULL
9379 };
9380
9381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9383 if (!SWIG_IsOK(res1)) {
9384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9385 }
9386 arg1 = reinterpret_cast< wxIcon * >(argp1);
9387 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9388 if (!SWIG_IsOK(res2)) {
9389 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9390 }
9391 if (!argp2) {
9392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9393 }
9394 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9395 {
9396 PyThreadState* __tstate = wxPyBeginAllowThreads();
9397 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9398 wxPyEndAllowThreads(__tstate);
9399 if (PyErr_Occurred()) SWIG_fail;
9400 }
9401 resultobj = SWIG_Py_Void();
9402 return resultobj;
9403 fail:
9404 return NULL;
9405 }
9406
9407
9408 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9409 PyObject *obj;
9410 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9411 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9412 return SWIG_Py_Void();
9413 }
9414
9415 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9416 return SWIG_Python_InitShadowInstance(args);
9417 }
9418
9419 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9420 PyObject *resultobj = 0;
9421 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9422 int arg2 = (int) 0 ;
9423 wxIconLocation *result = 0 ;
9424 bool temp1 = false ;
9425 int val2 ;
9426 int ecode2 = 0 ;
9427 PyObject * obj0 = 0 ;
9428 PyObject * obj1 = 0 ;
9429 char * kwnames[] = {
9430 (char *) "filename",(char *) "num", NULL
9431 };
9432
9433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9434 if (obj0) {
9435 {
9436 arg1 = wxString_in_helper(obj0);
9437 if (arg1 == NULL) SWIG_fail;
9438 temp1 = true;
9439 }
9440 }
9441 if (obj1) {
9442 ecode2 = SWIG_AsVal_int(obj1, &val2);
9443 if (!SWIG_IsOK(ecode2)) {
9444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9445 }
9446 arg2 = static_cast< int >(val2);
9447 }
9448 {
9449 PyThreadState* __tstate = wxPyBeginAllowThreads();
9450 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9451 wxPyEndAllowThreads(__tstate);
9452 if (PyErr_Occurred()) SWIG_fail;
9453 }
9454 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9455 {
9456 if (temp1)
9457 delete arg1;
9458 }
9459 return resultobj;
9460 fail:
9461 {
9462 if (temp1)
9463 delete arg1;
9464 }
9465 return NULL;
9466 }
9467
9468
9469 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9470 PyObject *resultobj = 0;
9471 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9472 void *argp1 = 0 ;
9473 int res1 = 0 ;
9474 PyObject *swig_obj[1] ;
9475
9476 if (!args) SWIG_fail;
9477 swig_obj[0] = args;
9478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9479 if (!SWIG_IsOK(res1)) {
9480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9481 }
9482 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9483 {
9484 PyThreadState* __tstate = wxPyBeginAllowThreads();
9485 delete arg1;
9486
9487 wxPyEndAllowThreads(__tstate);
9488 if (PyErr_Occurred()) SWIG_fail;
9489 }
9490 resultobj = SWIG_Py_Void();
9491 return resultobj;
9492 fail:
9493 return NULL;
9494 }
9495
9496
9497 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9498 PyObject *resultobj = 0;
9499 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9500 bool result;
9501 void *argp1 = 0 ;
9502 int res1 = 0 ;
9503 PyObject *swig_obj[1] ;
9504
9505 if (!args) SWIG_fail;
9506 swig_obj[0] = args;
9507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9508 if (!SWIG_IsOK(res1)) {
9509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9510 }
9511 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9512 {
9513 PyThreadState* __tstate = wxPyBeginAllowThreads();
9514 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9515 wxPyEndAllowThreads(__tstate);
9516 if (PyErr_Occurred()) SWIG_fail;
9517 }
9518 {
9519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9520 }
9521 return resultobj;
9522 fail:
9523 return NULL;
9524 }
9525
9526
9527 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9528 PyObject *resultobj = 0;
9529 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9530 wxString *arg2 = 0 ;
9531 void *argp1 = 0 ;
9532 int res1 = 0 ;
9533 bool temp2 = false ;
9534 PyObject * obj0 = 0 ;
9535 PyObject * obj1 = 0 ;
9536 char * kwnames[] = {
9537 (char *) "self",(char *) "filename", NULL
9538 };
9539
9540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9542 if (!SWIG_IsOK(res1)) {
9543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9544 }
9545 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9546 {
9547 arg2 = wxString_in_helper(obj1);
9548 if (arg2 == NULL) SWIG_fail;
9549 temp2 = true;
9550 }
9551 {
9552 PyThreadState* __tstate = wxPyBeginAllowThreads();
9553 (arg1)->SetFileName((wxString const &)*arg2);
9554 wxPyEndAllowThreads(__tstate);
9555 if (PyErr_Occurred()) SWIG_fail;
9556 }
9557 resultobj = SWIG_Py_Void();
9558 {
9559 if (temp2)
9560 delete arg2;
9561 }
9562 return resultobj;
9563 fail:
9564 {
9565 if (temp2)
9566 delete arg2;
9567 }
9568 return NULL;
9569 }
9570
9571
9572 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9573 PyObject *resultobj = 0;
9574 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9575 wxString *result = 0 ;
9576 void *argp1 = 0 ;
9577 int res1 = 0 ;
9578 PyObject *swig_obj[1] ;
9579
9580 if (!args) SWIG_fail;
9581 swig_obj[0] = args;
9582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9583 if (!SWIG_IsOK(res1)) {
9584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9585 }
9586 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9587 {
9588 PyThreadState* __tstate = wxPyBeginAllowThreads();
9589 {
9590 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9591 result = (wxString *) &_result_ref;
9592 }
9593 wxPyEndAllowThreads(__tstate);
9594 if (PyErr_Occurred()) SWIG_fail;
9595 }
9596 {
9597 #if wxUSE_UNICODE
9598 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9599 #else
9600 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9601 #endif
9602 }
9603 return resultobj;
9604 fail:
9605 return NULL;
9606 }
9607
9608
9609 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9610 PyObject *resultobj = 0;
9611 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9612 int arg2 ;
9613 void *argp1 = 0 ;
9614 int res1 = 0 ;
9615 int val2 ;
9616 int ecode2 = 0 ;
9617 PyObject * obj0 = 0 ;
9618 PyObject * obj1 = 0 ;
9619 char * kwnames[] = {
9620 (char *) "self",(char *) "num", NULL
9621 };
9622
9623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9625 if (!SWIG_IsOK(res1)) {
9626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9627 }
9628 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9629 ecode2 = SWIG_AsVal_int(obj1, &val2);
9630 if (!SWIG_IsOK(ecode2)) {
9631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9632 }
9633 arg2 = static_cast< int >(val2);
9634 {
9635 PyThreadState* __tstate = wxPyBeginAllowThreads();
9636 wxIconLocation_SetIndex(arg1,arg2);
9637 wxPyEndAllowThreads(__tstate);
9638 if (PyErr_Occurred()) SWIG_fail;
9639 }
9640 resultobj = SWIG_Py_Void();
9641 return resultobj;
9642 fail:
9643 return NULL;
9644 }
9645
9646
9647 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9648 PyObject *resultobj = 0;
9649 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9650 int result;
9651 void *argp1 = 0 ;
9652 int res1 = 0 ;
9653 PyObject *swig_obj[1] ;
9654
9655 if (!args) SWIG_fail;
9656 swig_obj[0] = args;
9657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9658 if (!SWIG_IsOK(res1)) {
9659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9660 }
9661 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9662 {
9663 PyThreadState* __tstate = wxPyBeginAllowThreads();
9664 result = (int)wxIconLocation_GetIndex(arg1);
9665 wxPyEndAllowThreads(__tstate);
9666 if (PyErr_Occurred()) SWIG_fail;
9667 }
9668 resultobj = SWIG_From_int(static_cast< int >(result));
9669 return resultobj;
9670 fail:
9671 return NULL;
9672 }
9673
9674
9675 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9676 PyObject *obj;
9677 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9678 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9679 return SWIG_Py_Void();
9680 }
9681
9682 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9683 return SWIG_Python_InitShadowInstance(args);
9684 }
9685
9686 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9687 PyObject *resultobj = 0;
9688 wxIconBundle *result = 0 ;
9689
9690 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9691 {
9692 PyThreadState* __tstate = wxPyBeginAllowThreads();
9693 result = (wxIconBundle *)new wxIconBundle();
9694 wxPyEndAllowThreads(__tstate);
9695 if (PyErr_Occurred()) SWIG_fail;
9696 }
9697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9698 return resultobj;
9699 fail:
9700 return NULL;
9701 }
9702
9703
9704 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9705 PyObject *resultobj = 0;
9706 wxString *arg1 = 0 ;
9707 long arg2 ;
9708 wxIconBundle *result = 0 ;
9709 bool temp1 = false ;
9710 long val2 ;
9711 int ecode2 = 0 ;
9712 PyObject * obj0 = 0 ;
9713 PyObject * obj1 = 0 ;
9714 char * kwnames[] = {
9715 (char *) "file",(char *) "type", NULL
9716 };
9717
9718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9719 {
9720 arg1 = wxString_in_helper(obj0);
9721 if (arg1 == NULL) SWIG_fail;
9722 temp1 = true;
9723 }
9724 ecode2 = SWIG_AsVal_long(obj1, &val2);
9725 if (!SWIG_IsOK(ecode2)) {
9726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9727 }
9728 arg2 = static_cast< long >(val2);
9729 {
9730 PyThreadState* __tstate = wxPyBeginAllowThreads();
9731 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9732 wxPyEndAllowThreads(__tstate);
9733 if (PyErr_Occurred()) SWIG_fail;
9734 }
9735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9736 {
9737 if (temp1)
9738 delete arg1;
9739 }
9740 return resultobj;
9741 fail:
9742 {
9743 if (temp1)
9744 delete arg1;
9745 }
9746 return NULL;
9747 }
9748
9749
9750 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9751 PyObject *resultobj = 0;
9752 wxIcon *arg1 = 0 ;
9753 wxIconBundle *result = 0 ;
9754 void *argp1 = 0 ;
9755 int res1 = 0 ;
9756 PyObject * obj0 = 0 ;
9757 char * kwnames[] = {
9758 (char *) "icon", NULL
9759 };
9760
9761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9762 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9763 if (!SWIG_IsOK(res1)) {
9764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9765 }
9766 if (!argp1) {
9767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9768 }
9769 arg1 = reinterpret_cast< wxIcon * >(argp1);
9770 {
9771 PyThreadState* __tstate = wxPyBeginAllowThreads();
9772 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9773 wxPyEndAllowThreads(__tstate);
9774 if (PyErr_Occurred()) SWIG_fail;
9775 }
9776 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9777 return resultobj;
9778 fail:
9779 return NULL;
9780 }
9781
9782
9783 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9784 PyObject *resultobj = 0;
9785 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9786 void *argp1 = 0 ;
9787 int res1 = 0 ;
9788 PyObject *swig_obj[1] ;
9789
9790 if (!args) SWIG_fail;
9791 swig_obj[0] = args;
9792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9793 if (!SWIG_IsOK(res1)) {
9794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9795 }
9796 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9797 {
9798 PyThreadState* __tstate = wxPyBeginAllowThreads();
9799 delete arg1;
9800
9801 wxPyEndAllowThreads(__tstate);
9802 if (PyErr_Occurred()) SWIG_fail;
9803 }
9804 resultobj = SWIG_Py_Void();
9805 return resultobj;
9806 fail:
9807 return NULL;
9808 }
9809
9810
9811 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9812 PyObject *resultobj = 0;
9813 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9814 wxIcon *arg2 = 0 ;
9815 void *argp1 = 0 ;
9816 int res1 = 0 ;
9817 void *argp2 = 0 ;
9818 int res2 = 0 ;
9819 PyObject * obj0 = 0 ;
9820 PyObject * obj1 = 0 ;
9821 char * kwnames[] = {
9822 (char *) "self",(char *) "icon", NULL
9823 };
9824
9825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9827 if (!SWIG_IsOK(res1)) {
9828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9829 }
9830 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9831 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9832 if (!SWIG_IsOK(res2)) {
9833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9834 }
9835 if (!argp2) {
9836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9837 }
9838 arg2 = reinterpret_cast< wxIcon * >(argp2);
9839 {
9840 PyThreadState* __tstate = wxPyBeginAllowThreads();
9841 (arg1)->AddIcon((wxIcon const &)*arg2);
9842 wxPyEndAllowThreads(__tstate);
9843 if (PyErr_Occurred()) SWIG_fail;
9844 }
9845 resultobj = SWIG_Py_Void();
9846 return resultobj;
9847 fail:
9848 return NULL;
9849 }
9850
9851
9852 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9853 PyObject *resultobj = 0;
9854 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9855 wxString *arg2 = 0 ;
9856 long arg3 ;
9857 void *argp1 = 0 ;
9858 int res1 = 0 ;
9859 bool temp2 = false ;
9860 long val3 ;
9861 int ecode3 = 0 ;
9862 PyObject * obj0 = 0 ;
9863 PyObject * obj1 = 0 ;
9864 PyObject * obj2 = 0 ;
9865 char * kwnames[] = {
9866 (char *) "self",(char *) "file",(char *) "type", NULL
9867 };
9868
9869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9871 if (!SWIG_IsOK(res1)) {
9872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9873 }
9874 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9875 {
9876 arg2 = wxString_in_helper(obj1);
9877 if (arg2 == NULL) SWIG_fail;
9878 temp2 = true;
9879 }
9880 ecode3 = SWIG_AsVal_long(obj2, &val3);
9881 if (!SWIG_IsOK(ecode3)) {
9882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9883 }
9884 arg3 = static_cast< long >(val3);
9885 {
9886 PyThreadState* __tstate = wxPyBeginAllowThreads();
9887 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9888 wxPyEndAllowThreads(__tstate);
9889 if (PyErr_Occurred()) SWIG_fail;
9890 }
9891 resultobj = SWIG_Py_Void();
9892 {
9893 if (temp2)
9894 delete arg2;
9895 }
9896 return resultobj;
9897 fail:
9898 {
9899 if (temp2)
9900 delete arg2;
9901 }
9902 return NULL;
9903 }
9904
9905
9906 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9907 PyObject *resultobj = 0;
9908 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9909 wxSize *arg2 = 0 ;
9910 wxIcon *result = 0 ;
9911 void *argp1 = 0 ;
9912 int res1 = 0 ;
9913 wxSize temp2 ;
9914 PyObject * obj0 = 0 ;
9915 PyObject * obj1 = 0 ;
9916 char * kwnames[] = {
9917 (char *) "self",(char *) "size", NULL
9918 };
9919
9920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9922 if (!SWIG_IsOK(res1)) {
9923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9924 }
9925 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9926 {
9927 arg2 = &temp2;
9928 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9929 }
9930 {
9931 PyThreadState* __tstate = wxPyBeginAllowThreads();
9932 {
9933 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9934 result = (wxIcon *) &_result_ref;
9935 }
9936 wxPyEndAllowThreads(__tstate);
9937 if (PyErr_Occurred()) SWIG_fail;
9938 }
9939 {
9940 wxIcon* resultptr = new wxIcon(*result);
9941 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9942 }
9943 return resultobj;
9944 fail:
9945 return NULL;
9946 }
9947
9948
9949 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9950 PyObject *obj;
9951 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9952 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9953 return SWIG_Py_Void();
9954 }
9955
9956 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9957 return SWIG_Python_InitShadowInstance(args);
9958 }
9959
9960 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9961 PyObject *resultobj = 0;
9962 wxString *arg1 = 0 ;
9963 long arg2 ;
9964 int arg3 = (int) 0 ;
9965 int arg4 = (int) 0 ;
9966 wxCursor *result = 0 ;
9967 bool temp1 = false ;
9968 long val2 ;
9969 int ecode2 = 0 ;
9970 int val3 ;
9971 int ecode3 = 0 ;
9972 int val4 ;
9973 int ecode4 = 0 ;
9974 PyObject * obj0 = 0 ;
9975 PyObject * obj1 = 0 ;
9976 PyObject * obj2 = 0 ;
9977 PyObject * obj3 = 0 ;
9978 char * kwnames[] = {
9979 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9980 };
9981
9982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9983 {
9984 arg1 = wxString_in_helper(obj0);
9985 if (arg1 == NULL) SWIG_fail;
9986 temp1 = true;
9987 }
9988 ecode2 = SWIG_AsVal_long(obj1, &val2);
9989 if (!SWIG_IsOK(ecode2)) {
9990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9991 }
9992 arg2 = static_cast< long >(val2);
9993 if (obj2) {
9994 ecode3 = SWIG_AsVal_int(obj2, &val3);
9995 if (!SWIG_IsOK(ecode3)) {
9996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9997 }
9998 arg3 = static_cast< int >(val3);
9999 }
10000 if (obj3) {
10001 ecode4 = SWIG_AsVal_int(obj3, &val4);
10002 if (!SWIG_IsOK(ecode4)) {
10003 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10004 }
10005 arg4 = static_cast< int >(val4);
10006 }
10007 {
10008 if (!wxPyCheckForApp()) SWIG_fail;
10009 PyThreadState* __tstate = wxPyBeginAllowThreads();
10010 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10011 wxPyEndAllowThreads(__tstate);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 }
10014 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10015 {
10016 if (temp1)
10017 delete arg1;
10018 }
10019 return resultobj;
10020 fail:
10021 {
10022 if (temp1)
10023 delete arg1;
10024 }
10025 return NULL;
10026 }
10027
10028
10029 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10030 PyObject *resultobj = 0;
10031 wxCursor *arg1 = (wxCursor *) 0 ;
10032 void *argp1 = 0 ;
10033 int res1 = 0 ;
10034 PyObject *swig_obj[1] ;
10035
10036 if (!args) SWIG_fail;
10037 swig_obj[0] = args;
10038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10039 if (!SWIG_IsOK(res1)) {
10040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10041 }
10042 arg1 = reinterpret_cast< wxCursor * >(argp1);
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 delete arg1;
10046
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 resultobj = SWIG_Py_Void();
10051 return resultobj;
10052 fail:
10053 return NULL;
10054 }
10055
10056
10057 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj = 0;
10059 int arg1 ;
10060 wxCursor *result = 0 ;
10061 int val1 ;
10062 int ecode1 = 0 ;
10063 PyObject * obj0 = 0 ;
10064 char * kwnames[] = {
10065 (char *) "id", NULL
10066 };
10067
10068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10069 ecode1 = SWIG_AsVal_int(obj0, &val1);
10070 if (!SWIG_IsOK(ecode1)) {
10071 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10072 }
10073 arg1 = static_cast< int >(val1);
10074 {
10075 if (!wxPyCheckForApp()) SWIG_fail;
10076 PyThreadState* __tstate = wxPyBeginAllowThreads();
10077 result = (wxCursor *)new wxCursor(arg1);
10078 wxPyEndAllowThreads(__tstate);
10079 if (PyErr_Occurred()) SWIG_fail;
10080 }
10081 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10082 return resultobj;
10083 fail:
10084 return NULL;
10085 }
10086
10087
10088 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10089 PyObject *resultobj = 0;
10090 wxImage *arg1 = 0 ;
10091 wxCursor *result = 0 ;
10092 void *argp1 = 0 ;
10093 int res1 = 0 ;
10094 PyObject * obj0 = 0 ;
10095 char * kwnames[] = {
10096 (char *) "image", NULL
10097 };
10098
10099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10100 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10101 if (!SWIG_IsOK(res1)) {
10102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10103 }
10104 if (!argp1) {
10105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10106 }
10107 arg1 = reinterpret_cast< wxImage * >(argp1);
10108 {
10109 if (!wxPyCheckForApp()) SWIG_fail;
10110 PyThreadState* __tstate = wxPyBeginAllowThreads();
10111 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10112 wxPyEndAllowThreads(__tstate);
10113 if (PyErr_Occurred()) SWIG_fail;
10114 }
10115 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10116 return resultobj;
10117 fail:
10118 return NULL;
10119 }
10120
10121
10122 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10123 PyObject *resultobj = 0;
10124 wxCursor *arg1 = (wxCursor *) 0 ;
10125 bool result;
10126 void *argp1 = 0 ;
10127 int res1 = 0 ;
10128 PyObject *swig_obj[1] ;
10129
10130 if (!args) SWIG_fail;
10131 swig_obj[0] = args;
10132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10133 if (!SWIG_IsOK(res1)) {
10134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10135 }
10136 arg1 = reinterpret_cast< wxCursor * >(argp1);
10137 {
10138 PyThreadState* __tstate = wxPyBeginAllowThreads();
10139 result = (bool)(arg1)->IsOk();
10140 wxPyEndAllowThreads(__tstate);
10141 if (PyErr_Occurred()) SWIG_fail;
10142 }
10143 {
10144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10145 }
10146 return resultobj;
10147 fail:
10148 return NULL;
10149 }
10150
10151
10152 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10153 PyObject *obj;
10154 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10155 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10156 return SWIG_Py_Void();
10157 }
10158
10159 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10160 return SWIG_Python_InitShadowInstance(args);
10161 }
10162
10163 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10164 PyObject *resultobj = 0;
10165 int arg1 = (int) 0 ;
10166 int arg2 = (int) 0 ;
10167 int arg3 = (int) 0 ;
10168 int arg4 = (int) 0 ;
10169 wxRegion *result = 0 ;
10170 int val1 ;
10171 int ecode1 = 0 ;
10172 int val2 ;
10173 int ecode2 = 0 ;
10174 int val3 ;
10175 int ecode3 = 0 ;
10176 int val4 ;
10177 int ecode4 = 0 ;
10178 PyObject * obj0 = 0 ;
10179 PyObject * obj1 = 0 ;
10180 PyObject * obj2 = 0 ;
10181 PyObject * obj3 = 0 ;
10182 char * kwnames[] = {
10183 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10184 };
10185
10186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10187 if (obj0) {
10188 ecode1 = SWIG_AsVal_int(obj0, &val1);
10189 if (!SWIG_IsOK(ecode1)) {
10190 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10191 }
10192 arg1 = static_cast< int >(val1);
10193 }
10194 if (obj1) {
10195 ecode2 = SWIG_AsVal_int(obj1, &val2);
10196 if (!SWIG_IsOK(ecode2)) {
10197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10198 }
10199 arg2 = static_cast< int >(val2);
10200 }
10201 if (obj2) {
10202 ecode3 = SWIG_AsVal_int(obj2, &val3);
10203 if (!SWIG_IsOK(ecode3)) {
10204 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10205 }
10206 arg3 = static_cast< int >(val3);
10207 }
10208 if (obj3) {
10209 ecode4 = SWIG_AsVal_int(obj3, &val4);
10210 if (!SWIG_IsOK(ecode4)) {
10211 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10212 }
10213 arg4 = static_cast< int >(val4);
10214 }
10215 {
10216 if (!wxPyCheckForApp()) SWIG_fail;
10217 PyThreadState* __tstate = wxPyBeginAllowThreads();
10218 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10219 wxPyEndAllowThreads(__tstate);
10220 if (PyErr_Occurred()) SWIG_fail;
10221 }
10222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10223 return resultobj;
10224 fail:
10225 return NULL;
10226 }
10227
10228
10229 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10230 PyObject *resultobj = 0;
10231 wxBitmap *arg1 = 0 ;
10232 wxRegion *result = 0 ;
10233 void *argp1 = 0 ;
10234 int res1 = 0 ;
10235 PyObject * obj0 = 0 ;
10236 char * kwnames[] = {
10237 (char *) "bmp", NULL
10238 };
10239
10240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10241 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10242 if (!SWIG_IsOK(res1)) {
10243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10244 }
10245 if (!argp1) {
10246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10247 }
10248 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10249 {
10250 if (!wxPyCheckForApp()) SWIG_fail;
10251 PyThreadState* __tstate = wxPyBeginAllowThreads();
10252 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10253 wxPyEndAllowThreads(__tstate);
10254 if (PyErr_Occurred()) SWIG_fail;
10255 }
10256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10257 return resultobj;
10258 fail:
10259 return NULL;
10260 }
10261
10262
10263 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10264 PyObject *resultobj = 0;
10265 wxBitmap *arg1 = 0 ;
10266 wxColour *arg2 = 0 ;
10267 int arg3 = (int) 0 ;
10268 wxRegion *result = 0 ;
10269 void *argp1 = 0 ;
10270 int res1 = 0 ;
10271 wxColour temp2 ;
10272 int val3 ;
10273 int ecode3 = 0 ;
10274 PyObject * obj0 = 0 ;
10275 PyObject * obj1 = 0 ;
10276 PyObject * obj2 = 0 ;
10277 char * kwnames[] = {
10278 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10279 };
10280
10281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10282 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10283 if (!SWIG_IsOK(res1)) {
10284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10285 }
10286 if (!argp1) {
10287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10288 }
10289 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10290 {
10291 arg2 = &temp2;
10292 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10293 }
10294 if (obj2) {
10295 ecode3 = SWIG_AsVal_int(obj2, &val3);
10296 if (!SWIG_IsOK(ecode3)) {
10297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10298 }
10299 arg3 = static_cast< int >(val3);
10300 }
10301 {
10302 if (!wxPyCheckForApp()) SWIG_fail;
10303 PyThreadState* __tstate = wxPyBeginAllowThreads();
10304 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10305 wxPyEndAllowThreads(__tstate);
10306 if (PyErr_Occurred()) SWIG_fail;
10307 }
10308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10309 return resultobj;
10310 fail:
10311 return NULL;
10312 }
10313
10314
10315 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10316 PyObject *resultobj = 0;
10317 int arg1 ;
10318 wxPoint *arg2 = (wxPoint *) 0 ;
10319 int arg3 = (int) wxWINDING_RULE ;
10320 wxRegion *result = 0 ;
10321 int val3 ;
10322 int ecode3 = 0 ;
10323 PyObject * obj0 = 0 ;
10324 PyObject * obj1 = 0 ;
10325 char * kwnames[] = {
10326 (char *) "points",(char *) "fillStyle", NULL
10327 };
10328
10329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10330 {
10331 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10332 if (arg2 == NULL) SWIG_fail;
10333 }
10334 if (obj1) {
10335 ecode3 = SWIG_AsVal_int(obj1, &val3);
10336 if (!SWIG_IsOK(ecode3)) {
10337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10338 }
10339 arg3 = static_cast< int >(val3);
10340 }
10341 {
10342 if (!wxPyCheckForApp()) SWIG_fail;
10343 PyThreadState* __tstate = wxPyBeginAllowThreads();
10344 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10345 wxPyEndAllowThreads(__tstate);
10346 if (PyErr_Occurred()) SWIG_fail;
10347 }
10348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10349 {
10350 if (arg2) delete [] arg2;
10351 }
10352 return resultobj;
10353 fail:
10354 {
10355 if (arg2) delete [] arg2;
10356 }
10357 return NULL;
10358 }
10359
10360
10361 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10362 PyObject *resultobj = 0;
10363 wxRegion *arg1 = (wxRegion *) 0 ;
10364 void *argp1 = 0 ;
10365 int res1 = 0 ;
10366 PyObject *swig_obj[1] ;
10367
10368 if (!args) SWIG_fail;
10369 swig_obj[0] = args;
10370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10371 if (!SWIG_IsOK(res1)) {
10372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10373 }
10374 arg1 = reinterpret_cast< wxRegion * >(argp1);
10375 {
10376 PyThreadState* __tstate = wxPyBeginAllowThreads();
10377 delete arg1;
10378
10379 wxPyEndAllowThreads(__tstate);
10380 if (PyErr_Occurred()) SWIG_fail;
10381 }
10382 resultobj = SWIG_Py_Void();
10383 return resultobj;
10384 fail:
10385 return NULL;
10386 }
10387
10388
10389 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10390 PyObject *resultobj = 0;
10391 wxRegion *arg1 = (wxRegion *) 0 ;
10392 void *argp1 = 0 ;
10393 int res1 = 0 ;
10394 PyObject *swig_obj[1] ;
10395
10396 if (!args) SWIG_fail;
10397 swig_obj[0] = args;
10398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10399 if (!SWIG_IsOK(res1)) {
10400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10401 }
10402 arg1 = reinterpret_cast< wxRegion * >(argp1);
10403 {
10404 PyThreadState* __tstate = wxPyBeginAllowThreads();
10405 (arg1)->Clear();
10406 wxPyEndAllowThreads(__tstate);
10407 if (PyErr_Occurred()) SWIG_fail;
10408 }
10409 resultobj = SWIG_Py_Void();
10410 return resultobj;
10411 fail:
10412 return NULL;
10413 }
10414
10415
10416 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10417 PyObject *resultobj = 0;
10418 wxRegion *arg1 = (wxRegion *) 0 ;
10419 int arg2 ;
10420 int arg3 ;
10421 bool result;
10422 void *argp1 = 0 ;
10423 int res1 = 0 ;
10424 int val2 ;
10425 int ecode2 = 0 ;
10426 int val3 ;
10427 int ecode3 = 0 ;
10428 PyObject * obj0 = 0 ;
10429 PyObject * obj1 = 0 ;
10430 PyObject * obj2 = 0 ;
10431 char * kwnames[] = {
10432 (char *) "self",(char *) "x",(char *) "y", NULL
10433 };
10434
10435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10437 if (!SWIG_IsOK(res1)) {
10438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10439 }
10440 arg1 = reinterpret_cast< wxRegion * >(argp1);
10441 ecode2 = SWIG_AsVal_int(obj1, &val2);
10442 if (!SWIG_IsOK(ecode2)) {
10443 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10444 }
10445 arg2 = static_cast< int >(val2);
10446 ecode3 = SWIG_AsVal_int(obj2, &val3);
10447 if (!SWIG_IsOK(ecode3)) {
10448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10449 }
10450 arg3 = static_cast< int >(val3);
10451 {
10452 PyThreadState* __tstate = wxPyBeginAllowThreads();
10453 result = (bool)(arg1)->Offset(arg2,arg3);
10454 wxPyEndAllowThreads(__tstate);
10455 if (PyErr_Occurred()) SWIG_fail;
10456 }
10457 {
10458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10459 }
10460 return resultobj;
10461 fail:
10462 return NULL;
10463 }
10464
10465
10466 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10467 PyObject *resultobj = 0;
10468 wxRegion *arg1 = (wxRegion *) 0 ;
10469 int arg2 ;
10470 int arg3 ;
10471 wxRegionContain result;
10472 void *argp1 = 0 ;
10473 int res1 = 0 ;
10474 int val2 ;
10475 int ecode2 = 0 ;
10476 int val3 ;
10477 int ecode3 = 0 ;
10478 PyObject * obj0 = 0 ;
10479 PyObject * obj1 = 0 ;
10480 PyObject * obj2 = 0 ;
10481 char * kwnames[] = {
10482 (char *) "self",(char *) "x",(char *) "y", NULL
10483 };
10484
10485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10487 if (!SWIG_IsOK(res1)) {
10488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10489 }
10490 arg1 = reinterpret_cast< wxRegion * >(argp1);
10491 ecode2 = SWIG_AsVal_int(obj1, &val2);
10492 if (!SWIG_IsOK(ecode2)) {
10493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10494 }
10495 arg2 = static_cast< int >(val2);
10496 ecode3 = SWIG_AsVal_int(obj2, &val3);
10497 if (!SWIG_IsOK(ecode3)) {
10498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10499 }
10500 arg3 = static_cast< int >(val3);
10501 {
10502 PyThreadState* __tstate = wxPyBeginAllowThreads();
10503 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10504 wxPyEndAllowThreads(__tstate);
10505 if (PyErr_Occurred()) SWIG_fail;
10506 }
10507 resultobj = SWIG_From_int(static_cast< int >(result));
10508 return resultobj;
10509 fail:
10510 return NULL;
10511 }
10512
10513
10514 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10515 PyObject *resultobj = 0;
10516 wxRegion *arg1 = (wxRegion *) 0 ;
10517 wxPoint *arg2 = 0 ;
10518 wxRegionContain result;
10519 void *argp1 = 0 ;
10520 int res1 = 0 ;
10521 wxPoint temp2 ;
10522 PyObject * obj0 = 0 ;
10523 PyObject * obj1 = 0 ;
10524 char * kwnames[] = {
10525 (char *) "self",(char *) "pt", NULL
10526 };
10527
10528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10530 if (!SWIG_IsOK(res1)) {
10531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10532 }
10533 arg1 = reinterpret_cast< wxRegion * >(argp1);
10534 {
10535 arg2 = &temp2;
10536 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10537 }
10538 {
10539 PyThreadState* __tstate = wxPyBeginAllowThreads();
10540 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10541 wxPyEndAllowThreads(__tstate);
10542 if (PyErr_Occurred()) SWIG_fail;
10543 }
10544 resultobj = SWIG_From_int(static_cast< int >(result));
10545 return resultobj;
10546 fail:
10547 return NULL;
10548 }
10549
10550
10551 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10552 PyObject *resultobj = 0;
10553 wxRegion *arg1 = (wxRegion *) 0 ;
10554 wxRect *arg2 = 0 ;
10555 wxRegionContain result;
10556 void *argp1 = 0 ;
10557 int res1 = 0 ;
10558 wxRect temp2 ;
10559 PyObject * obj0 = 0 ;
10560 PyObject * obj1 = 0 ;
10561 char * kwnames[] = {
10562 (char *) "self",(char *) "rect", NULL
10563 };
10564
10565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10567 if (!SWIG_IsOK(res1)) {
10568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10569 }
10570 arg1 = reinterpret_cast< wxRegion * >(argp1);
10571 {
10572 arg2 = &temp2;
10573 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10574 }
10575 {
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10578 wxPyEndAllowThreads(__tstate);
10579 if (PyErr_Occurred()) SWIG_fail;
10580 }
10581 resultobj = SWIG_From_int(static_cast< int >(result));
10582 return resultobj;
10583 fail:
10584 return NULL;
10585 }
10586
10587
10588 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10589 PyObject *resultobj = 0;
10590 wxRegion *arg1 = (wxRegion *) 0 ;
10591 int arg2 ;
10592 int arg3 ;
10593 int arg4 ;
10594 int arg5 ;
10595 wxRegionContain result;
10596 void *argp1 = 0 ;
10597 int res1 = 0 ;
10598 int val2 ;
10599 int ecode2 = 0 ;
10600 int val3 ;
10601 int ecode3 = 0 ;
10602 int val4 ;
10603 int ecode4 = 0 ;
10604 int val5 ;
10605 int ecode5 = 0 ;
10606 PyObject * obj0 = 0 ;
10607 PyObject * obj1 = 0 ;
10608 PyObject * obj2 = 0 ;
10609 PyObject * obj3 = 0 ;
10610 PyObject * obj4 = 0 ;
10611 char * kwnames[] = {
10612 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10613 };
10614
10615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10617 if (!SWIG_IsOK(res1)) {
10618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10619 }
10620 arg1 = reinterpret_cast< wxRegion * >(argp1);
10621 ecode2 = SWIG_AsVal_int(obj1, &val2);
10622 if (!SWIG_IsOK(ecode2)) {
10623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10624 }
10625 arg2 = static_cast< int >(val2);
10626 ecode3 = SWIG_AsVal_int(obj2, &val3);
10627 if (!SWIG_IsOK(ecode3)) {
10628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10629 }
10630 arg3 = static_cast< int >(val3);
10631 ecode4 = SWIG_AsVal_int(obj3, &val4);
10632 if (!SWIG_IsOK(ecode4)) {
10633 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10634 }
10635 arg4 = static_cast< int >(val4);
10636 ecode5 = SWIG_AsVal_int(obj4, &val5);
10637 if (!SWIG_IsOK(ecode5)) {
10638 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10639 }
10640 arg5 = static_cast< int >(val5);
10641 {
10642 PyThreadState* __tstate = wxPyBeginAllowThreads();
10643 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_From_int(static_cast< int >(result));
10648 return resultobj;
10649 fail:
10650 return NULL;
10651 }
10652
10653
10654 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10655 PyObject *resultobj = 0;
10656 wxRegion *arg1 = (wxRegion *) 0 ;
10657 wxRect result;
10658 void *argp1 = 0 ;
10659 int res1 = 0 ;
10660 PyObject *swig_obj[1] ;
10661
10662 if (!args) SWIG_fail;
10663 swig_obj[0] = args;
10664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10665 if (!SWIG_IsOK(res1)) {
10666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10667 }
10668 arg1 = reinterpret_cast< wxRegion * >(argp1);
10669 {
10670 PyThreadState* __tstate = wxPyBeginAllowThreads();
10671 result = (arg1)->GetBox();
10672 wxPyEndAllowThreads(__tstate);
10673 if (PyErr_Occurred()) SWIG_fail;
10674 }
10675 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10676 return resultobj;
10677 fail:
10678 return NULL;
10679 }
10680
10681
10682 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10683 PyObject *resultobj = 0;
10684 wxRegion *arg1 = (wxRegion *) 0 ;
10685 int arg2 ;
10686 int arg3 ;
10687 int arg4 ;
10688 int arg5 ;
10689 bool result;
10690 void *argp1 = 0 ;
10691 int res1 = 0 ;
10692 int val2 ;
10693 int ecode2 = 0 ;
10694 int val3 ;
10695 int ecode3 = 0 ;
10696 int val4 ;
10697 int ecode4 = 0 ;
10698 int val5 ;
10699 int ecode5 = 0 ;
10700 PyObject * obj0 = 0 ;
10701 PyObject * obj1 = 0 ;
10702 PyObject * obj2 = 0 ;
10703 PyObject * obj3 = 0 ;
10704 PyObject * obj4 = 0 ;
10705 char * kwnames[] = {
10706 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10707 };
10708
10709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10711 if (!SWIG_IsOK(res1)) {
10712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10713 }
10714 arg1 = reinterpret_cast< wxRegion * >(argp1);
10715 ecode2 = SWIG_AsVal_int(obj1, &val2);
10716 if (!SWIG_IsOK(ecode2)) {
10717 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10718 }
10719 arg2 = static_cast< int >(val2);
10720 ecode3 = SWIG_AsVal_int(obj2, &val3);
10721 if (!SWIG_IsOK(ecode3)) {
10722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10723 }
10724 arg3 = static_cast< int >(val3);
10725 ecode4 = SWIG_AsVal_int(obj3, &val4);
10726 if (!SWIG_IsOK(ecode4)) {
10727 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10728 }
10729 arg4 = static_cast< int >(val4);
10730 ecode5 = SWIG_AsVal_int(obj4, &val5);
10731 if (!SWIG_IsOK(ecode5)) {
10732 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10733 }
10734 arg5 = static_cast< int >(val5);
10735 {
10736 PyThreadState* __tstate = wxPyBeginAllowThreads();
10737 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10738 wxPyEndAllowThreads(__tstate);
10739 if (PyErr_Occurred()) SWIG_fail;
10740 }
10741 {
10742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10743 }
10744 return resultobj;
10745 fail:
10746 return NULL;
10747 }
10748
10749
10750 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10751 PyObject *resultobj = 0;
10752 wxRegion *arg1 = (wxRegion *) 0 ;
10753 wxRect *arg2 = 0 ;
10754 bool result;
10755 void *argp1 = 0 ;
10756 int res1 = 0 ;
10757 wxRect temp2 ;
10758 PyObject * obj0 = 0 ;
10759 PyObject * obj1 = 0 ;
10760 char * kwnames[] = {
10761 (char *) "self",(char *) "rect", NULL
10762 };
10763
10764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10766 if (!SWIG_IsOK(res1)) {
10767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10768 }
10769 arg1 = reinterpret_cast< wxRegion * >(argp1);
10770 {
10771 arg2 = &temp2;
10772 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10773 }
10774 {
10775 PyThreadState* __tstate = wxPyBeginAllowThreads();
10776 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10777 wxPyEndAllowThreads(__tstate);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 {
10781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10782 }
10783 return resultobj;
10784 fail:
10785 return NULL;
10786 }
10787
10788
10789 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10790 PyObject *resultobj = 0;
10791 wxRegion *arg1 = (wxRegion *) 0 ;
10792 wxRegion *arg2 = 0 ;
10793 bool result;
10794 void *argp1 = 0 ;
10795 int res1 = 0 ;
10796 void *argp2 = 0 ;
10797 int res2 = 0 ;
10798 PyObject * obj0 = 0 ;
10799 PyObject * obj1 = 0 ;
10800 char * kwnames[] = {
10801 (char *) "self",(char *) "region", NULL
10802 };
10803
10804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10806 if (!SWIG_IsOK(res1)) {
10807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10808 }
10809 arg1 = reinterpret_cast< wxRegion * >(argp1);
10810 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10811 if (!SWIG_IsOK(res2)) {
10812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10813 }
10814 if (!argp2) {
10815 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10816 }
10817 arg2 = reinterpret_cast< wxRegion * >(argp2);
10818 {
10819 PyThreadState* __tstate = wxPyBeginAllowThreads();
10820 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10821 wxPyEndAllowThreads(__tstate);
10822 if (PyErr_Occurred()) SWIG_fail;
10823 }
10824 {
10825 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10826 }
10827 return resultobj;
10828 fail:
10829 return NULL;
10830 }
10831
10832
10833 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10834 PyObject *resultobj = 0;
10835 wxRegion *arg1 = (wxRegion *) 0 ;
10836 bool result;
10837 void *argp1 = 0 ;
10838 int res1 = 0 ;
10839 PyObject *swig_obj[1] ;
10840
10841 if (!args) SWIG_fail;
10842 swig_obj[0] = args;
10843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10844 if (!SWIG_IsOK(res1)) {
10845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10846 }
10847 arg1 = reinterpret_cast< wxRegion * >(argp1);
10848 {
10849 PyThreadState* __tstate = wxPyBeginAllowThreads();
10850 result = (bool)(arg1)->IsEmpty();
10851 wxPyEndAllowThreads(__tstate);
10852 if (PyErr_Occurred()) SWIG_fail;
10853 }
10854 {
10855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10856 }
10857 return resultobj;
10858 fail:
10859 return NULL;
10860 }
10861
10862
10863 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10864 PyObject *resultobj = 0;
10865 wxRegion *arg1 = (wxRegion *) 0 ;
10866 wxRegion *arg2 = 0 ;
10867 bool result;
10868 void *argp1 = 0 ;
10869 int res1 = 0 ;
10870 void *argp2 = 0 ;
10871 int res2 = 0 ;
10872 PyObject * obj0 = 0 ;
10873 PyObject * obj1 = 0 ;
10874 char * kwnames[] = {
10875 (char *) "self",(char *) "region", NULL
10876 };
10877
10878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10880 if (!SWIG_IsOK(res1)) {
10881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10882 }
10883 arg1 = reinterpret_cast< wxRegion * >(argp1);
10884 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10885 if (!SWIG_IsOK(res2)) {
10886 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10887 }
10888 if (!argp2) {
10889 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10890 }
10891 arg2 = reinterpret_cast< wxRegion * >(argp2);
10892 {
10893 PyThreadState* __tstate = wxPyBeginAllowThreads();
10894 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10895 wxPyEndAllowThreads(__tstate);
10896 if (PyErr_Occurred()) SWIG_fail;
10897 }
10898 {
10899 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10900 }
10901 return resultobj;
10902 fail:
10903 return NULL;
10904 }
10905
10906
10907 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10908 PyObject *resultobj = 0;
10909 wxRegion *arg1 = (wxRegion *) 0 ;
10910 int arg2 ;
10911 int arg3 ;
10912 int arg4 ;
10913 int arg5 ;
10914 bool result;
10915 void *argp1 = 0 ;
10916 int res1 = 0 ;
10917 int val2 ;
10918 int ecode2 = 0 ;
10919 int val3 ;
10920 int ecode3 = 0 ;
10921 int val4 ;
10922 int ecode4 = 0 ;
10923 int val5 ;
10924 int ecode5 = 0 ;
10925 PyObject * obj0 = 0 ;
10926 PyObject * obj1 = 0 ;
10927 PyObject * obj2 = 0 ;
10928 PyObject * obj3 = 0 ;
10929 PyObject * obj4 = 0 ;
10930 char * kwnames[] = {
10931 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10932 };
10933
10934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10936 if (!SWIG_IsOK(res1)) {
10937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10938 }
10939 arg1 = reinterpret_cast< wxRegion * >(argp1);
10940 ecode2 = SWIG_AsVal_int(obj1, &val2);
10941 if (!SWIG_IsOK(ecode2)) {
10942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10943 }
10944 arg2 = static_cast< int >(val2);
10945 ecode3 = SWIG_AsVal_int(obj2, &val3);
10946 if (!SWIG_IsOK(ecode3)) {
10947 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10948 }
10949 arg3 = static_cast< int >(val3);
10950 ecode4 = SWIG_AsVal_int(obj3, &val4);
10951 if (!SWIG_IsOK(ecode4)) {
10952 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10953 }
10954 arg4 = static_cast< int >(val4);
10955 ecode5 = SWIG_AsVal_int(obj4, &val5);
10956 if (!SWIG_IsOK(ecode5)) {
10957 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10958 }
10959 arg5 = static_cast< int >(val5);
10960 {
10961 PyThreadState* __tstate = wxPyBeginAllowThreads();
10962 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10963 wxPyEndAllowThreads(__tstate);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 {
10967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10968 }
10969 return resultobj;
10970 fail:
10971 return NULL;
10972 }
10973
10974
10975 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10976 PyObject *resultobj = 0;
10977 wxRegion *arg1 = (wxRegion *) 0 ;
10978 wxRect *arg2 = 0 ;
10979 bool result;
10980 void *argp1 = 0 ;
10981 int res1 = 0 ;
10982 wxRect temp2 ;
10983 PyObject * obj0 = 0 ;
10984 PyObject * obj1 = 0 ;
10985 char * kwnames[] = {
10986 (char *) "self",(char *) "rect", NULL
10987 };
10988
10989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10991 if (!SWIG_IsOK(res1)) {
10992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10993 }
10994 arg1 = reinterpret_cast< wxRegion * >(argp1);
10995 {
10996 arg2 = &temp2;
10997 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10998 }
10999 {
11000 PyThreadState* __tstate = wxPyBeginAllowThreads();
11001 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11002 wxPyEndAllowThreads(__tstate);
11003 if (PyErr_Occurred()) SWIG_fail;
11004 }
11005 {
11006 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11007 }
11008 return resultobj;
11009 fail:
11010 return NULL;
11011 }
11012
11013
11014 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11015 PyObject *resultobj = 0;
11016 wxRegion *arg1 = (wxRegion *) 0 ;
11017 wxRegion *arg2 = 0 ;
11018 bool result;
11019 void *argp1 = 0 ;
11020 int res1 = 0 ;
11021 void *argp2 = 0 ;
11022 int res2 = 0 ;
11023 PyObject * obj0 = 0 ;
11024 PyObject * obj1 = 0 ;
11025 char * kwnames[] = {
11026 (char *) "self",(char *) "region", NULL
11027 };
11028
11029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11031 if (!SWIG_IsOK(res1)) {
11032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11033 }
11034 arg1 = reinterpret_cast< wxRegion * >(argp1);
11035 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11036 if (!SWIG_IsOK(res2)) {
11037 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11038 }
11039 if (!argp2) {
11040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11041 }
11042 arg2 = reinterpret_cast< wxRegion * >(argp2);
11043 {
11044 PyThreadState* __tstate = wxPyBeginAllowThreads();
11045 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11046 wxPyEndAllowThreads(__tstate);
11047 if (PyErr_Occurred()) SWIG_fail;
11048 }
11049 {
11050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11051 }
11052 return resultobj;
11053 fail:
11054 return NULL;
11055 }
11056
11057
11058 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11059 PyObject *resultobj = 0;
11060 wxRegion *arg1 = (wxRegion *) 0 ;
11061 int arg2 ;
11062 int arg3 ;
11063 int arg4 ;
11064 int arg5 ;
11065 bool result;
11066 void *argp1 = 0 ;
11067 int res1 = 0 ;
11068 int val2 ;
11069 int ecode2 = 0 ;
11070 int val3 ;
11071 int ecode3 = 0 ;
11072 int val4 ;
11073 int ecode4 = 0 ;
11074 int val5 ;
11075 int ecode5 = 0 ;
11076 PyObject * obj0 = 0 ;
11077 PyObject * obj1 = 0 ;
11078 PyObject * obj2 = 0 ;
11079 PyObject * obj3 = 0 ;
11080 PyObject * obj4 = 0 ;
11081 char * kwnames[] = {
11082 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11083 };
11084
11085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11087 if (!SWIG_IsOK(res1)) {
11088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11089 }
11090 arg1 = reinterpret_cast< wxRegion * >(argp1);
11091 ecode2 = SWIG_AsVal_int(obj1, &val2);
11092 if (!SWIG_IsOK(ecode2)) {
11093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11094 }
11095 arg2 = static_cast< int >(val2);
11096 ecode3 = SWIG_AsVal_int(obj2, &val3);
11097 if (!SWIG_IsOK(ecode3)) {
11098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11099 }
11100 arg3 = static_cast< int >(val3);
11101 ecode4 = SWIG_AsVal_int(obj3, &val4);
11102 if (!SWIG_IsOK(ecode4)) {
11103 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11104 }
11105 arg4 = static_cast< int >(val4);
11106 ecode5 = SWIG_AsVal_int(obj4, &val5);
11107 if (!SWIG_IsOK(ecode5)) {
11108 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11109 }
11110 arg5 = static_cast< int >(val5);
11111 {
11112 PyThreadState* __tstate = wxPyBeginAllowThreads();
11113 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11114 wxPyEndAllowThreads(__tstate);
11115 if (PyErr_Occurred()) SWIG_fail;
11116 }
11117 {
11118 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11119 }
11120 return resultobj;
11121 fail:
11122 return NULL;
11123 }
11124
11125
11126 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11127 PyObject *resultobj = 0;
11128 wxRegion *arg1 = (wxRegion *) 0 ;
11129 wxRect *arg2 = 0 ;
11130 bool result;
11131 void *argp1 = 0 ;
11132 int res1 = 0 ;
11133 wxRect temp2 ;
11134 PyObject * obj0 = 0 ;
11135 PyObject * obj1 = 0 ;
11136 char * kwnames[] = {
11137 (char *) "self",(char *) "rect", NULL
11138 };
11139
11140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11142 if (!SWIG_IsOK(res1)) {
11143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11144 }
11145 arg1 = reinterpret_cast< wxRegion * >(argp1);
11146 {
11147 arg2 = &temp2;
11148 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11149 }
11150 {
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
11152 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11153 wxPyEndAllowThreads(__tstate);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 {
11157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11158 }
11159 return resultobj;
11160 fail:
11161 return NULL;
11162 }
11163
11164
11165 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11166 PyObject *resultobj = 0;
11167 wxRegion *arg1 = (wxRegion *) 0 ;
11168 wxRegion *arg2 = 0 ;
11169 bool result;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 void *argp2 = 0 ;
11173 int res2 = 0 ;
11174 PyObject * obj0 = 0 ;
11175 PyObject * obj1 = 0 ;
11176 char * kwnames[] = {
11177 (char *) "self",(char *) "region", NULL
11178 };
11179
11180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11182 if (!SWIG_IsOK(res1)) {
11183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11184 }
11185 arg1 = reinterpret_cast< wxRegion * >(argp1);
11186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11187 if (!SWIG_IsOK(res2)) {
11188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11189 }
11190 if (!argp2) {
11191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11192 }
11193 arg2 = reinterpret_cast< wxRegion * >(argp2);
11194 {
11195 PyThreadState* __tstate = wxPyBeginAllowThreads();
11196 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11197 wxPyEndAllowThreads(__tstate);
11198 if (PyErr_Occurred()) SWIG_fail;
11199 }
11200 {
11201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11202 }
11203 return resultobj;
11204 fail:
11205 return NULL;
11206 }
11207
11208
11209 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11210 PyObject *resultobj = 0;
11211 wxRegion *arg1 = (wxRegion *) 0 ;
11212 int arg2 ;
11213 int arg3 ;
11214 int arg4 ;
11215 int arg5 ;
11216 bool result;
11217 void *argp1 = 0 ;
11218 int res1 = 0 ;
11219 int val2 ;
11220 int ecode2 = 0 ;
11221 int val3 ;
11222 int ecode3 = 0 ;
11223 int val4 ;
11224 int ecode4 = 0 ;
11225 int val5 ;
11226 int ecode5 = 0 ;
11227 PyObject * obj0 = 0 ;
11228 PyObject * obj1 = 0 ;
11229 PyObject * obj2 = 0 ;
11230 PyObject * obj3 = 0 ;
11231 PyObject * obj4 = 0 ;
11232 char * kwnames[] = {
11233 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11234 };
11235
11236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11238 if (!SWIG_IsOK(res1)) {
11239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11240 }
11241 arg1 = reinterpret_cast< wxRegion * >(argp1);
11242 ecode2 = SWIG_AsVal_int(obj1, &val2);
11243 if (!SWIG_IsOK(ecode2)) {
11244 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11245 }
11246 arg2 = static_cast< int >(val2);
11247 ecode3 = SWIG_AsVal_int(obj2, &val3);
11248 if (!SWIG_IsOK(ecode3)) {
11249 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11250 }
11251 arg3 = static_cast< int >(val3);
11252 ecode4 = SWIG_AsVal_int(obj3, &val4);
11253 if (!SWIG_IsOK(ecode4)) {
11254 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11255 }
11256 arg4 = static_cast< int >(val4);
11257 ecode5 = SWIG_AsVal_int(obj4, &val5);
11258 if (!SWIG_IsOK(ecode5)) {
11259 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11260 }
11261 arg5 = static_cast< int >(val5);
11262 {
11263 PyThreadState* __tstate = wxPyBeginAllowThreads();
11264 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11265 wxPyEndAllowThreads(__tstate);
11266 if (PyErr_Occurred()) SWIG_fail;
11267 }
11268 {
11269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11270 }
11271 return resultobj;
11272 fail:
11273 return NULL;
11274 }
11275
11276
11277 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11278 PyObject *resultobj = 0;
11279 wxRegion *arg1 = (wxRegion *) 0 ;
11280 wxRect *arg2 = 0 ;
11281 bool result;
11282 void *argp1 = 0 ;
11283 int res1 = 0 ;
11284 wxRect temp2 ;
11285 PyObject * obj0 = 0 ;
11286 PyObject * obj1 = 0 ;
11287 char * kwnames[] = {
11288 (char *) "self",(char *) "rect", NULL
11289 };
11290
11291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11293 if (!SWIG_IsOK(res1)) {
11294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11295 }
11296 arg1 = reinterpret_cast< wxRegion * >(argp1);
11297 {
11298 arg2 = &temp2;
11299 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11300 }
11301 {
11302 PyThreadState* __tstate = wxPyBeginAllowThreads();
11303 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11304 wxPyEndAllowThreads(__tstate);
11305 if (PyErr_Occurred()) SWIG_fail;
11306 }
11307 {
11308 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11309 }
11310 return resultobj;
11311 fail:
11312 return NULL;
11313 }
11314
11315
11316 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11317 PyObject *resultobj = 0;
11318 wxRegion *arg1 = (wxRegion *) 0 ;
11319 wxRegion *arg2 = 0 ;
11320 bool result;
11321 void *argp1 = 0 ;
11322 int res1 = 0 ;
11323 void *argp2 = 0 ;
11324 int res2 = 0 ;
11325 PyObject * obj0 = 0 ;
11326 PyObject * obj1 = 0 ;
11327 char * kwnames[] = {
11328 (char *) "self",(char *) "region", NULL
11329 };
11330
11331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11333 if (!SWIG_IsOK(res1)) {
11334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11335 }
11336 arg1 = reinterpret_cast< wxRegion * >(argp1);
11337 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11338 if (!SWIG_IsOK(res2)) {
11339 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11340 }
11341 if (!argp2) {
11342 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11343 }
11344 arg2 = reinterpret_cast< wxRegion * >(argp2);
11345 {
11346 PyThreadState* __tstate = wxPyBeginAllowThreads();
11347 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11348 wxPyEndAllowThreads(__tstate);
11349 if (PyErr_Occurred()) SWIG_fail;
11350 }
11351 {
11352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11353 }
11354 return resultobj;
11355 fail:
11356 return NULL;
11357 }
11358
11359
11360 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11361 PyObject *resultobj = 0;
11362 wxRegion *arg1 = (wxRegion *) 0 ;
11363 SwigValueWrapper<wxBitmap > result;
11364 void *argp1 = 0 ;
11365 int res1 = 0 ;
11366 PyObject *swig_obj[1] ;
11367
11368 if (!args) SWIG_fail;
11369 swig_obj[0] = args;
11370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11371 if (!SWIG_IsOK(res1)) {
11372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11373 }
11374 arg1 = reinterpret_cast< wxRegion * >(argp1);
11375 {
11376 PyThreadState* __tstate = wxPyBeginAllowThreads();
11377 result = (arg1)->ConvertToBitmap();
11378 wxPyEndAllowThreads(__tstate);
11379 if (PyErr_Occurred()) SWIG_fail;
11380 }
11381 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11382 return resultobj;
11383 fail:
11384 return NULL;
11385 }
11386
11387
11388 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11389 PyObject *resultobj = 0;
11390 wxRegion *arg1 = (wxRegion *) 0 ;
11391 wxBitmap *arg2 = 0 ;
11392 bool result;
11393 void *argp1 = 0 ;
11394 int res1 = 0 ;
11395 void *argp2 = 0 ;
11396 int res2 = 0 ;
11397 PyObject * obj0 = 0 ;
11398 PyObject * obj1 = 0 ;
11399 char * kwnames[] = {
11400 (char *) "self",(char *) "bmp", NULL
11401 };
11402
11403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11405 if (!SWIG_IsOK(res1)) {
11406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11407 }
11408 arg1 = reinterpret_cast< wxRegion * >(argp1);
11409 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11410 if (!SWIG_IsOK(res2)) {
11411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11412 }
11413 if (!argp2) {
11414 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11415 }
11416 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 {
11424 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11425 }
11426 return resultobj;
11427 fail:
11428 return NULL;
11429 }
11430
11431
11432 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11433 PyObject *resultobj = 0;
11434 wxRegion *arg1 = (wxRegion *) 0 ;
11435 wxBitmap *arg2 = 0 ;
11436 wxColour *arg3 = 0 ;
11437 int arg4 = (int) 0 ;
11438 bool result;
11439 void *argp1 = 0 ;
11440 int res1 = 0 ;
11441 void *argp2 = 0 ;
11442 int res2 = 0 ;
11443 wxColour temp3 ;
11444 int val4 ;
11445 int ecode4 = 0 ;
11446 PyObject * obj0 = 0 ;
11447 PyObject * obj1 = 0 ;
11448 PyObject * obj2 = 0 ;
11449 PyObject * obj3 = 0 ;
11450 char * kwnames[] = {
11451 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11452 };
11453
11454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11456 if (!SWIG_IsOK(res1)) {
11457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11458 }
11459 arg1 = reinterpret_cast< wxRegion * >(argp1);
11460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11461 if (!SWIG_IsOK(res2)) {
11462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11463 }
11464 if (!argp2) {
11465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11466 }
11467 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11468 {
11469 arg3 = &temp3;
11470 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11471 }
11472 if (obj3) {
11473 ecode4 = SWIG_AsVal_int(obj3, &val4);
11474 if (!SWIG_IsOK(ecode4)) {
11475 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11476 }
11477 arg4 = static_cast< int >(val4);
11478 }
11479 {
11480 PyThreadState* __tstate = wxPyBeginAllowThreads();
11481 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11482 wxPyEndAllowThreads(__tstate);
11483 if (PyErr_Occurred()) SWIG_fail;
11484 }
11485 {
11486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11487 }
11488 return resultobj;
11489 fail:
11490 return NULL;
11491 }
11492
11493
11494 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11495 PyObject *obj;
11496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11497 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11498 return SWIG_Py_Void();
11499 }
11500
11501 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11502 return SWIG_Python_InitShadowInstance(args);
11503 }
11504
11505 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11506 PyObject *resultobj = 0;
11507 wxRegion *arg1 = 0 ;
11508 wxRegionIterator *result = 0 ;
11509 void *argp1 = 0 ;
11510 int res1 = 0 ;
11511 PyObject * obj0 = 0 ;
11512 char * kwnames[] = {
11513 (char *) "region", NULL
11514 };
11515
11516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11517 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11518 if (!SWIG_IsOK(res1)) {
11519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11520 }
11521 if (!argp1) {
11522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11523 }
11524 arg1 = reinterpret_cast< wxRegion * >(argp1);
11525 {
11526 if (!wxPyCheckForApp()) SWIG_fail;
11527 PyThreadState* __tstate = wxPyBeginAllowThreads();
11528 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11529 wxPyEndAllowThreads(__tstate);
11530 if (PyErr_Occurred()) SWIG_fail;
11531 }
11532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11533 return resultobj;
11534 fail:
11535 return NULL;
11536 }
11537
11538
11539 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11540 PyObject *resultobj = 0;
11541 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11542 void *argp1 = 0 ;
11543 int res1 = 0 ;
11544 PyObject *swig_obj[1] ;
11545
11546 if (!args) SWIG_fail;
11547 swig_obj[0] = args;
11548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11549 if (!SWIG_IsOK(res1)) {
11550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11551 }
11552 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11553 {
11554 PyThreadState* __tstate = wxPyBeginAllowThreads();
11555 delete arg1;
11556
11557 wxPyEndAllowThreads(__tstate);
11558 if (PyErr_Occurred()) SWIG_fail;
11559 }
11560 resultobj = SWIG_Py_Void();
11561 return resultobj;
11562 fail:
11563 return NULL;
11564 }
11565
11566
11567 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11568 PyObject *resultobj = 0;
11569 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11570 int result;
11571 void *argp1 = 0 ;
11572 int res1 = 0 ;
11573 PyObject *swig_obj[1] ;
11574
11575 if (!args) SWIG_fail;
11576 swig_obj[0] = args;
11577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11578 if (!SWIG_IsOK(res1)) {
11579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11580 }
11581 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11582 {
11583 PyThreadState* __tstate = wxPyBeginAllowThreads();
11584 result = (int)(arg1)->GetX();
11585 wxPyEndAllowThreads(__tstate);
11586 if (PyErr_Occurred()) SWIG_fail;
11587 }
11588 resultobj = SWIG_From_int(static_cast< int >(result));
11589 return resultobj;
11590 fail:
11591 return NULL;
11592 }
11593
11594
11595 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11596 PyObject *resultobj = 0;
11597 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11598 int result;
11599 void *argp1 = 0 ;
11600 int res1 = 0 ;
11601 PyObject *swig_obj[1] ;
11602
11603 if (!args) SWIG_fail;
11604 swig_obj[0] = args;
11605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11606 if (!SWIG_IsOK(res1)) {
11607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11608 }
11609 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11610 {
11611 PyThreadState* __tstate = wxPyBeginAllowThreads();
11612 result = (int)(arg1)->GetY();
11613 wxPyEndAllowThreads(__tstate);
11614 if (PyErr_Occurred()) SWIG_fail;
11615 }
11616 resultobj = SWIG_From_int(static_cast< int >(result));
11617 return resultobj;
11618 fail:
11619 return NULL;
11620 }
11621
11622
11623 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11624 PyObject *resultobj = 0;
11625 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11626 int result;
11627 void *argp1 = 0 ;
11628 int res1 = 0 ;
11629 PyObject *swig_obj[1] ;
11630
11631 if (!args) SWIG_fail;
11632 swig_obj[0] = args;
11633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11634 if (!SWIG_IsOK(res1)) {
11635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11636 }
11637 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11638 {
11639 PyThreadState* __tstate = wxPyBeginAllowThreads();
11640 result = (int)(arg1)->GetW();
11641 wxPyEndAllowThreads(__tstate);
11642 if (PyErr_Occurred()) SWIG_fail;
11643 }
11644 resultobj = SWIG_From_int(static_cast< int >(result));
11645 return resultobj;
11646 fail:
11647 return NULL;
11648 }
11649
11650
11651 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11652 PyObject *resultobj = 0;
11653 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11654 int result;
11655 void *argp1 = 0 ;
11656 int res1 = 0 ;
11657 PyObject *swig_obj[1] ;
11658
11659 if (!args) SWIG_fail;
11660 swig_obj[0] = args;
11661 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11662 if (!SWIG_IsOK(res1)) {
11663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11664 }
11665 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11666 {
11667 PyThreadState* __tstate = wxPyBeginAllowThreads();
11668 result = (int)(arg1)->GetWidth();
11669 wxPyEndAllowThreads(__tstate);
11670 if (PyErr_Occurred()) SWIG_fail;
11671 }
11672 resultobj = SWIG_From_int(static_cast< int >(result));
11673 return resultobj;
11674 fail:
11675 return NULL;
11676 }
11677
11678
11679 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11680 PyObject *resultobj = 0;
11681 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11682 int result;
11683 void *argp1 = 0 ;
11684 int res1 = 0 ;
11685 PyObject *swig_obj[1] ;
11686
11687 if (!args) SWIG_fail;
11688 swig_obj[0] = args;
11689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11690 if (!SWIG_IsOK(res1)) {
11691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11692 }
11693 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11694 {
11695 PyThreadState* __tstate = wxPyBeginAllowThreads();
11696 result = (int)(arg1)->GetH();
11697 wxPyEndAllowThreads(__tstate);
11698 if (PyErr_Occurred()) SWIG_fail;
11699 }
11700 resultobj = SWIG_From_int(static_cast< int >(result));
11701 return resultobj;
11702 fail:
11703 return NULL;
11704 }
11705
11706
11707 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11708 PyObject *resultobj = 0;
11709 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11710 int result;
11711 void *argp1 = 0 ;
11712 int res1 = 0 ;
11713 PyObject *swig_obj[1] ;
11714
11715 if (!args) SWIG_fail;
11716 swig_obj[0] = args;
11717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11718 if (!SWIG_IsOK(res1)) {
11719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11720 }
11721 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11722 {
11723 PyThreadState* __tstate = wxPyBeginAllowThreads();
11724 result = (int)(arg1)->GetHeight();
11725 wxPyEndAllowThreads(__tstate);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 resultobj = SWIG_From_int(static_cast< int >(result));
11729 return resultobj;
11730 fail:
11731 return NULL;
11732 }
11733
11734
11735 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11736 PyObject *resultobj = 0;
11737 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11738 wxRect result;
11739 void *argp1 = 0 ;
11740 int res1 = 0 ;
11741 PyObject *swig_obj[1] ;
11742
11743 if (!args) SWIG_fail;
11744 swig_obj[0] = args;
11745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11746 if (!SWIG_IsOK(res1)) {
11747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11748 }
11749 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
11752 result = (arg1)->GetRect();
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11757 return resultobj;
11758 fail:
11759 return NULL;
11760 }
11761
11762
11763 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11764 PyObject *resultobj = 0;
11765 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11766 bool result;
11767 void *argp1 = 0 ;
11768 int res1 = 0 ;
11769 PyObject *swig_obj[1] ;
11770
11771 if (!args) SWIG_fail;
11772 swig_obj[0] = args;
11773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11774 if (!SWIG_IsOK(res1)) {
11775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11776 }
11777 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11778 {
11779 PyThreadState* __tstate = wxPyBeginAllowThreads();
11780 result = (bool)(arg1)->HaveRects();
11781 wxPyEndAllowThreads(__tstate);
11782 if (PyErr_Occurred()) SWIG_fail;
11783 }
11784 {
11785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11786 }
11787 return resultobj;
11788 fail:
11789 return NULL;
11790 }
11791
11792
11793 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11794 PyObject *resultobj = 0;
11795 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11796 void *argp1 = 0 ;
11797 int res1 = 0 ;
11798 PyObject *swig_obj[1] ;
11799
11800 if (!args) SWIG_fail;
11801 swig_obj[0] = args;
11802 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11803 if (!SWIG_IsOK(res1)) {
11804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11805 }
11806 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11807 {
11808 PyThreadState* __tstate = wxPyBeginAllowThreads();
11809 (arg1)->Reset();
11810 wxPyEndAllowThreads(__tstate);
11811 if (PyErr_Occurred()) SWIG_fail;
11812 }
11813 resultobj = SWIG_Py_Void();
11814 return resultobj;
11815 fail:
11816 return NULL;
11817 }
11818
11819
11820 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11821 PyObject *resultobj = 0;
11822 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11823 void *argp1 = 0 ;
11824 int res1 = 0 ;
11825 PyObject *swig_obj[1] ;
11826
11827 if (!args) SWIG_fail;
11828 swig_obj[0] = args;
11829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11830 if (!SWIG_IsOK(res1)) {
11831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11832 }
11833 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11834 {
11835 PyThreadState* __tstate = wxPyBeginAllowThreads();
11836 wxRegionIterator_Next(arg1);
11837 wxPyEndAllowThreads(__tstate);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 }
11840 resultobj = SWIG_Py_Void();
11841 return resultobj;
11842 fail:
11843 return NULL;
11844 }
11845
11846
11847 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11848 PyObject *resultobj = 0;
11849 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11850 bool result;
11851 void *argp1 = 0 ;
11852 int res1 = 0 ;
11853 PyObject *swig_obj[1] ;
11854
11855 if (!args) SWIG_fail;
11856 swig_obj[0] = args;
11857 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11858 if (!SWIG_IsOK(res1)) {
11859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11860 }
11861 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11862 {
11863 PyThreadState* __tstate = wxPyBeginAllowThreads();
11864 result = (bool)wxRegionIterator___nonzero__(arg1);
11865 wxPyEndAllowThreads(__tstate);
11866 if (PyErr_Occurred()) SWIG_fail;
11867 }
11868 {
11869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11870 }
11871 return resultobj;
11872 fail:
11873 return NULL;
11874 }
11875
11876
11877 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11878 PyObject *obj;
11879 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11880 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11881 return SWIG_Py_Void();
11882 }
11883
11884 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11885 return SWIG_Python_InitShadowInstance(args);
11886 }
11887
11888 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11889 PyObject *resultobj = 0;
11890 wxNativeFontInfo *result = 0 ;
11891
11892 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11893 {
11894 PyThreadState* __tstate = wxPyBeginAllowThreads();
11895 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11896 wxPyEndAllowThreads(__tstate);
11897 if (PyErr_Occurred()) SWIG_fail;
11898 }
11899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11900 return resultobj;
11901 fail:
11902 return NULL;
11903 }
11904
11905
11906 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11907 PyObject *resultobj = 0;
11908 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11909 void *argp1 = 0 ;
11910 int res1 = 0 ;
11911 PyObject *swig_obj[1] ;
11912
11913 if (!args) SWIG_fail;
11914 swig_obj[0] = args;
11915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11916 if (!SWIG_IsOK(res1)) {
11917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11918 }
11919 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11920 {
11921 PyThreadState* __tstate = wxPyBeginAllowThreads();
11922 delete arg1;
11923
11924 wxPyEndAllowThreads(__tstate);
11925 if (PyErr_Occurred()) SWIG_fail;
11926 }
11927 resultobj = SWIG_Py_Void();
11928 return resultobj;
11929 fail:
11930 return NULL;
11931 }
11932
11933
11934 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11935 PyObject *resultobj = 0;
11936 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11937 void *argp1 = 0 ;
11938 int res1 = 0 ;
11939 PyObject *swig_obj[1] ;
11940
11941 if (!args) SWIG_fail;
11942 swig_obj[0] = args;
11943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11944 if (!SWIG_IsOK(res1)) {
11945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11946 }
11947 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11948 {
11949 PyThreadState* __tstate = wxPyBeginAllowThreads();
11950 (arg1)->Init();
11951 wxPyEndAllowThreads(__tstate);
11952 if (PyErr_Occurred()) SWIG_fail;
11953 }
11954 resultobj = SWIG_Py_Void();
11955 return resultobj;
11956 fail:
11957 return NULL;
11958 }
11959
11960
11961 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11962 PyObject *resultobj = 0;
11963 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11964 wxFont *arg2 = 0 ;
11965 void *argp1 = 0 ;
11966 int res1 = 0 ;
11967 void *argp2 = 0 ;
11968 int res2 = 0 ;
11969 PyObject * obj0 = 0 ;
11970 PyObject * obj1 = 0 ;
11971 char * kwnames[] = {
11972 (char *) "self",(char *) "font", NULL
11973 };
11974
11975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11977 if (!SWIG_IsOK(res1)) {
11978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11979 }
11980 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11981 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11982 if (!SWIG_IsOK(res2)) {
11983 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11984 }
11985 if (!argp2) {
11986 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11987 }
11988 arg2 = reinterpret_cast< wxFont * >(argp2);
11989 {
11990 PyThreadState* __tstate = wxPyBeginAllowThreads();
11991 (arg1)->InitFromFont((wxFont const &)*arg2);
11992 wxPyEndAllowThreads(__tstate);
11993 if (PyErr_Occurred()) SWIG_fail;
11994 }
11995 resultobj = SWIG_Py_Void();
11996 return resultobj;
11997 fail:
11998 return NULL;
11999 }
12000
12001
12002 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12003 PyObject *resultobj = 0;
12004 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12005 int result;
12006 void *argp1 = 0 ;
12007 int res1 = 0 ;
12008 PyObject *swig_obj[1] ;
12009
12010 if (!args) SWIG_fail;
12011 swig_obj[0] = args;
12012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12013 if (!SWIG_IsOK(res1)) {
12014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12015 }
12016 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12017 {
12018 PyThreadState* __tstate = wxPyBeginAllowThreads();
12019 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12020 wxPyEndAllowThreads(__tstate);
12021 if (PyErr_Occurred()) SWIG_fail;
12022 }
12023 resultobj = SWIG_From_int(static_cast< int >(result));
12024 return resultobj;
12025 fail:
12026 return NULL;
12027 }
12028
12029
12030 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12031 PyObject *resultobj = 0;
12032 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12033 wxFontStyle result;
12034 void *argp1 = 0 ;
12035 int res1 = 0 ;
12036 PyObject *swig_obj[1] ;
12037
12038 if (!args) SWIG_fail;
12039 swig_obj[0] = args;
12040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12041 if (!SWIG_IsOK(res1)) {
12042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12043 }
12044 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12045 {
12046 PyThreadState* __tstate = wxPyBeginAllowThreads();
12047 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12048 wxPyEndAllowThreads(__tstate);
12049 if (PyErr_Occurred()) SWIG_fail;
12050 }
12051 resultobj = SWIG_From_int(static_cast< int >(result));
12052 return resultobj;
12053 fail:
12054 return NULL;
12055 }
12056
12057
12058 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12059 PyObject *resultobj = 0;
12060 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12061 wxFontWeight result;
12062 void *argp1 = 0 ;
12063 int res1 = 0 ;
12064 PyObject *swig_obj[1] ;
12065
12066 if (!args) SWIG_fail;
12067 swig_obj[0] = args;
12068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12069 if (!SWIG_IsOK(res1)) {
12070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12071 }
12072 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12073 {
12074 PyThreadState* __tstate = wxPyBeginAllowThreads();
12075 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12076 wxPyEndAllowThreads(__tstate);
12077 if (PyErr_Occurred()) SWIG_fail;
12078 }
12079 resultobj = SWIG_From_int(static_cast< int >(result));
12080 return resultobj;
12081 fail:
12082 return NULL;
12083 }
12084
12085
12086 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12087 PyObject *resultobj = 0;
12088 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12089 bool result;
12090 void *argp1 = 0 ;
12091 int res1 = 0 ;
12092 PyObject *swig_obj[1] ;
12093
12094 if (!args) SWIG_fail;
12095 swig_obj[0] = args;
12096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12097 if (!SWIG_IsOK(res1)) {
12098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12099 }
12100 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12101 {
12102 PyThreadState* __tstate = wxPyBeginAllowThreads();
12103 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12104 wxPyEndAllowThreads(__tstate);
12105 if (PyErr_Occurred()) SWIG_fail;
12106 }
12107 {
12108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12109 }
12110 return resultobj;
12111 fail:
12112 return NULL;
12113 }
12114
12115
12116 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12117 PyObject *resultobj = 0;
12118 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12119 wxString result;
12120 void *argp1 = 0 ;
12121 int res1 = 0 ;
12122 PyObject *swig_obj[1] ;
12123
12124 if (!args) SWIG_fail;
12125 swig_obj[0] = args;
12126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12127 if (!SWIG_IsOK(res1)) {
12128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12129 }
12130 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12131 {
12132 PyThreadState* __tstate = wxPyBeginAllowThreads();
12133 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12134 wxPyEndAllowThreads(__tstate);
12135 if (PyErr_Occurred()) SWIG_fail;
12136 }
12137 {
12138 #if wxUSE_UNICODE
12139 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12140 #else
12141 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12142 #endif
12143 }
12144 return resultobj;
12145 fail:
12146 return NULL;
12147 }
12148
12149
12150 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12151 PyObject *resultobj = 0;
12152 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12153 wxFontFamily result;
12154 void *argp1 = 0 ;
12155 int res1 = 0 ;
12156 PyObject *swig_obj[1] ;
12157
12158 if (!args) SWIG_fail;
12159 swig_obj[0] = args;
12160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12161 if (!SWIG_IsOK(res1)) {
12162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12163 }
12164 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12165 {
12166 PyThreadState* __tstate = wxPyBeginAllowThreads();
12167 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12168 wxPyEndAllowThreads(__tstate);
12169 if (PyErr_Occurred()) SWIG_fail;
12170 }
12171 resultobj = SWIG_From_int(static_cast< int >(result));
12172 return resultobj;
12173 fail:
12174 return NULL;
12175 }
12176
12177
12178 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12179 PyObject *resultobj = 0;
12180 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12181 wxFontEncoding result;
12182 void *argp1 = 0 ;
12183 int res1 = 0 ;
12184 PyObject *swig_obj[1] ;
12185
12186 if (!args) SWIG_fail;
12187 swig_obj[0] = args;
12188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12189 if (!SWIG_IsOK(res1)) {
12190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12191 }
12192 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12193 {
12194 PyThreadState* __tstate = wxPyBeginAllowThreads();
12195 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12196 wxPyEndAllowThreads(__tstate);
12197 if (PyErr_Occurred()) SWIG_fail;
12198 }
12199 resultobj = SWIG_From_int(static_cast< int >(result));
12200 return resultobj;
12201 fail:
12202 return NULL;
12203 }
12204
12205
12206 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12207 PyObject *resultobj = 0;
12208 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12209 int arg2 ;
12210 void *argp1 = 0 ;
12211 int res1 = 0 ;
12212 int val2 ;
12213 int ecode2 = 0 ;
12214 PyObject * obj0 = 0 ;
12215 PyObject * obj1 = 0 ;
12216 char * kwnames[] = {
12217 (char *) "self",(char *) "pointsize", NULL
12218 };
12219
12220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12222 if (!SWIG_IsOK(res1)) {
12223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12224 }
12225 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12226 ecode2 = SWIG_AsVal_int(obj1, &val2);
12227 if (!SWIG_IsOK(ecode2)) {
12228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12229 }
12230 arg2 = static_cast< int >(val2);
12231 {
12232 PyThreadState* __tstate = wxPyBeginAllowThreads();
12233 (arg1)->SetPointSize(arg2);
12234 wxPyEndAllowThreads(__tstate);
12235 if (PyErr_Occurred()) SWIG_fail;
12236 }
12237 resultobj = SWIG_Py_Void();
12238 return resultobj;
12239 fail:
12240 return NULL;
12241 }
12242
12243
12244 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12245 PyObject *resultobj = 0;
12246 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12247 wxFontStyle arg2 ;
12248 void *argp1 = 0 ;
12249 int res1 = 0 ;
12250 int val2 ;
12251 int ecode2 = 0 ;
12252 PyObject * obj0 = 0 ;
12253 PyObject * obj1 = 0 ;
12254 char * kwnames[] = {
12255 (char *) "self",(char *) "style", NULL
12256 };
12257
12258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12260 if (!SWIG_IsOK(res1)) {
12261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12262 }
12263 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12264 ecode2 = SWIG_AsVal_int(obj1, &val2);
12265 if (!SWIG_IsOK(ecode2)) {
12266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12267 }
12268 arg2 = static_cast< wxFontStyle >(val2);
12269 {
12270 PyThreadState* __tstate = wxPyBeginAllowThreads();
12271 (arg1)->SetStyle(arg2);
12272 wxPyEndAllowThreads(__tstate);
12273 if (PyErr_Occurred()) SWIG_fail;
12274 }
12275 resultobj = SWIG_Py_Void();
12276 return resultobj;
12277 fail:
12278 return NULL;
12279 }
12280
12281
12282 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12283 PyObject *resultobj = 0;
12284 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12285 wxFontWeight arg2 ;
12286 void *argp1 = 0 ;
12287 int res1 = 0 ;
12288 int val2 ;
12289 int ecode2 = 0 ;
12290 PyObject * obj0 = 0 ;
12291 PyObject * obj1 = 0 ;
12292 char * kwnames[] = {
12293 (char *) "self",(char *) "weight", NULL
12294 };
12295
12296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12298 if (!SWIG_IsOK(res1)) {
12299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12300 }
12301 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12302 ecode2 = SWIG_AsVal_int(obj1, &val2);
12303 if (!SWIG_IsOK(ecode2)) {
12304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12305 }
12306 arg2 = static_cast< wxFontWeight >(val2);
12307 {
12308 PyThreadState* __tstate = wxPyBeginAllowThreads();
12309 (arg1)->SetWeight(arg2);
12310 wxPyEndAllowThreads(__tstate);
12311 if (PyErr_Occurred()) SWIG_fail;
12312 }
12313 resultobj = SWIG_Py_Void();
12314 return resultobj;
12315 fail:
12316 return NULL;
12317 }
12318
12319
12320 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12321 PyObject *resultobj = 0;
12322 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12323 bool arg2 ;
12324 void *argp1 = 0 ;
12325 int res1 = 0 ;
12326 bool val2 ;
12327 int ecode2 = 0 ;
12328 PyObject * obj0 = 0 ;
12329 PyObject * obj1 = 0 ;
12330 char * kwnames[] = {
12331 (char *) "self",(char *) "underlined", NULL
12332 };
12333
12334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12336 if (!SWIG_IsOK(res1)) {
12337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12338 }
12339 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12340 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12341 if (!SWIG_IsOK(ecode2)) {
12342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12343 }
12344 arg2 = static_cast< bool >(val2);
12345 {
12346 PyThreadState* __tstate = wxPyBeginAllowThreads();
12347 (arg1)->SetUnderlined(arg2);
12348 wxPyEndAllowThreads(__tstate);
12349 if (PyErr_Occurred()) SWIG_fail;
12350 }
12351 resultobj = SWIG_Py_Void();
12352 return resultobj;
12353 fail:
12354 return NULL;
12355 }
12356
12357
12358 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12359 PyObject *resultobj = 0;
12360 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12361 wxString arg2 ;
12362 bool result;
12363 void *argp1 = 0 ;
12364 int res1 = 0 ;
12365 PyObject * obj0 = 0 ;
12366 PyObject * obj1 = 0 ;
12367 char * kwnames[] = {
12368 (char *) "self",(char *) "facename", NULL
12369 };
12370
12371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12373 if (!SWIG_IsOK(res1)) {
12374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12375 }
12376 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12377 {
12378 wxString* sptr = wxString_in_helper(obj1);
12379 if (sptr == NULL) SWIG_fail;
12380 arg2 = *sptr;
12381 delete sptr;
12382 }
12383 {
12384 PyThreadState* __tstate = wxPyBeginAllowThreads();
12385 result = (bool)(arg1)->SetFaceName(arg2);
12386 wxPyEndAllowThreads(__tstate);
12387 if (PyErr_Occurred()) SWIG_fail;
12388 }
12389 {
12390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12391 }
12392 return resultobj;
12393 fail:
12394 return NULL;
12395 }
12396
12397
12398 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12399 PyObject *resultobj = 0;
12400 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12401 wxFontFamily arg2 ;
12402 void *argp1 = 0 ;
12403 int res1 = 0 ;
12404 int val2 ;
12405 int ecode2 = 0 ;
12406 PyObject * obj0 = 0 ;
12407 PyObject * obj1 = 0 ;
12408 char * kwnames[] = {
12409 (char *) "self",(char *) "family", NULL
12410 };
12411
12412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12414 if (!SWIG_IsOK(res1)) {
12415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12416 }
12417 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12418 ecode2 = SWIG_AsVal_int(obj1, &val2);
12419 if (!SWIG_IsOK(ecode2)) {
12420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12421 }
12422 arg2 = static_cast< wxFontFamily >(val2);
12423 {
12424 PyThreadState* __tstate = wxPyBeginAllowThreads();
12425 (arg1)->SetFamily(arg2);
12426 wxPyEndAllowThreads(__tstate);
12427 if (PyErr_Occurred()) SWIG_fail;
12428 }
12429 resultobj = SWIG_Py_Void();
12430 return resultobj;
12431 fail:
12432 return NULL;
12433 }
12434
12435
12436 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12437 PyObject *resultobj = 0;
12438 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12439 wxFontEncoding arg2 ;
12440 void *argp1 = 0 ;
12441 int res1 = 0 ;
12442 int val2 ;
12443 int ecode2 = 0 ;
12444 PyObject * obj0 = 0 ;
12445 PyObject * obj1 = 0 ;
12446 char * kwnames[] = {
12447 (char *) "self",(char *) "encoding", NULL
12448 };
12449
12450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12452 if (!SWIG_IsOK(res1)) {
12453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12454 }
12455 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12456 ecode2 = SWIG_AsVal_int(obj1, &val2);
12457 if (!SWIG_IsOK(ecode2)) {
12458 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12459 }
12460 arg2 = static_cast< wxFontEncoding >(val2);
12461 {
12462 PyThreadState* __tstate = wxPyBeginAllowThreads();
12463 (arg1)->SetEncoding(arg2);
12464 wxPyEndAllowThreads(__tstate);
12465 if (PyErr_Occurred()) SWIG_fail;
12466 }
12467 resultobj = SWIG_Py_Void();
12468 return resultobj;
12469 fail:
12470 return NULL;
12471 }
12472
12473
12474 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12475 PyObject *resultobj = 0;
12476 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12477 wxString *arg2 = 0 ;
12478 bool result;
12479 void *argp1 = 0 ;
12480 int res1 = 0 ;
12481 bool temp2 = false ;
12482 PyObject * obj0 = 0 ;
12483 PyObject * obj1 = 0 ;
12484 char * kwnames[] = {
12485 (char *) "self",(char *) "s", NULL
12486 };
12487
12488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12490 if (!SWIG_IsOK(res1)) {
12491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12492 }
12493 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12494 {
12495 arg2 = wxString_in_helper(obj1);
12496 if (arg2 == NULL) SWIG_fail;
12497 temp2 = true;
12498 }
12499 {
12500 PyThreadState* __tstate = wxPyBeginAllowThreads();
12501 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12502 wxPyEndAllowThreads(__tstate);
12503 if (PyErr_Occurred()) SWIG_fail;
12504 }
12505 {
12506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12507 }
12508 {
12509 if (temp2)
12510 delete arg2;
12511 }
12512 return resultobj;
12513 fail:
12514 {
12515 if (temp2)
12516 delete arg2;
12517 }
12518 return NULL;
12519 }
12520
12521
12522 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12523 PyObject *resultobj = 0;
12524 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12525 wxString result;
12526 void *argp1 = 0 ;
12527 int res1 = 0 ;
12528 PyObject *swig_obj[1] ;
12529
12530 if (!args) SWIG_fail;
12531 swig_obj[0] = args;
12532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12533 if (!SWIG_IsOK(res1)) {
12534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12535 }
12536 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 result = ((wxNativeFontInfo const *)arg1)->ToString();
12540 wxPyEndAllowThreads(__tstate);
12541 if (PyErr_Occurred()) SWIG_fail;
12542 }
12543 {
12544 #if wxUSE_UNICODE
12545 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12546 #else
12547 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12548 #endif
12549 }
12550 return resultobj;
12551 fail:
12552 return NULL;
12553 }
12554
12555
12556 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12557 PyObject *resultobj = 0;
12558 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12559 wxString result;
12560 void *argp1 = 0 ;
12561 int res1 = 0 ;
12562 PyObject *swig_obj[1] ;
12563
12564 if (!args) SWIG_fail;
12565 swig_obj[0] = args;
12566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12569 }
12570 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 result = wxNativeFontInfo___str__(arg1);
12574 wxPyEndAllowThreads(__tstate);
12575 if (PyErr_Occurred()) SWIG_fail;
12576 }
12577 {
12578 #if wxUSE_UNICODE
12579 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12580 #else
12581 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12582 #endif
12583 }
12584 return resultobj;
12585 fail:
12586 return NULL;
12587 }
12588
12589
12590 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12591 PyObject *resultobj = 0;
12592 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12593 wxString *arg2 = 0 ;
12594 bool result;
12595 void *argp1 = 0 ;
12596 int res1 = 0 ;
12597 bool temp2 = false ;
12598 PyObject * obj0 = 0 ;
12599 PyObject * obj1 = 0 ;
12600 char * kwnames[] = {
12601 (char *) "self",(char *) "s", NULL
12602 };
12603
12604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12606 if (!SWIG_IsOK(res1)) {
12607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12608 }
12609 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12610 {
12611 arg2 = wxString_in_helper(obj1);
12612 if (arg2 == NULL) SWIG_fail;
12613 temp2 = true;
12614 }
12615 {
12616 PyThreadState* __tstate = wxPyBeginAllowThreads();
12617 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12618 wxPyEndAllowThreads(__tstate);
12619 if (PyErr_Occurred()) SWIG_fail;
12620 }
12621 {
12622 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12623 }
12624 {
12625 if (temp2)
12626 delete arg2;
12627 }
12628 return resultobj;
12629 fail:
12630 {
12631 if (temp2)
12632 delete arg2;
12633 }
12634 return NULL;
12635 }
12636
12637
12638 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12639 PyObject *resultobj = 0;
12640 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12641 wxString result;
12642 void *argp1 = 0 ;
12643 int res1 = 0 ;
12644 PyObject *swig_obj[1] ;
12645
12646 if (!args) SWIG_fail;
12647 swig_obj[0] = args;
12648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12649 if (!SWIG_IsOK(res1)) {
12650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12651 }
12652 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12656 wxPyEndAllowThreads(__tstate);
12657 if (PyErr_Occurred()) SWIG_fail;
12658 }
12659 {
12660 #if wxUSE_UNICODE
12661 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12662 #else
12663 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12664 #endif
12665 }
12666 return resultobj;
12667 fail:
12668 return NULL;
12669 }
12670
12671
12672 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12673 PyObject *obj;
12674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12675 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12676 return SWIG_Py_Void();
12677 }
12678
12679 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12680 return SWIG_Python_InitShadowInstance(args);
12681 }
12682
12683 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12684 PyObject *resultobj = 0;
12685 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12686 wxString *arg2 = (wxString *) 0 ;
12687 void *argp1 = 0 ;
12688 int res1 = 0 ;
12689 bool temp2 = false ;
12690 PyObject *swig_obj[2] ;
12691
12692 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12694 if (!SWIG_IsOK(res1)) {
12695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12696 }
12697 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12698 {
12699 arg2 = wxString_in_helper(swig_obj[1]);
12700 if (arg2 == NULL) SWIG_fail;
12701 temp2 = true;
12702 }
12703 if (arg1) (arg1)->facename = *arg2;
12704
12705 resultobj = SWIG_Py_Void();
12706 {
12707 if (temp2)
12708 delete arg2;
12709 }
12710 return resultobj;
12711 fail:
12712 {
12713 if (temp2)
12714 delete arg2;
12715 }
12716 return NULL;
12717 }
12718
12719
12720 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12721 PyObject *resultobj = 0;
12722 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12723 wxString *result = 0 ;
12724 void *argp1 = 0 ;
12725 int res1 = 0 ;
12726 PyObject *swig_obj[1] ;
12727
12728 if (!args) SWIG_fail;
12729 swig_obj[0] = args;
12730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12731 if (!SWIG_IsOK(res1)) {
12732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12733 }
12734 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12735 result = (wxString *)& ((arg1)->facename);
12736 {
12737 #if wxUSE_UNICODE
12738 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12739 #else
12740 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12741 #endif
12742 }
12743 return resultobj;
12744 fail:
12745 return NULL;
12746 }
12747
12748
12749 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12750 PyObject *resultobj = 0;
12751 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12752 wxFontEncoding arg2 ;
12753 void *argp1 = 0 ;
12754 int res1 = 0 ;
12755 int val2 ;
12756 int ecode2 = 0 ;
12757 PyObject *swig_obj[2] ;
12758
12759 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12761 if (!SWIG_IsOK(res1)) {
12762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12763 }
12764 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12765 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12766 if (!SWIG_IsOK(ecode2)) {
12767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12768 }
12769 arg2 = static_cast< wxFontEncoding >(val2);
12770 if (arg1) (arg1)->encoding = arg2;
12771
12772 resultobj = SWIG_Py_Void();
12773 return resultobj;
12774 fail:
12775 return NULL;
12776 }
12777
12778
12779 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12780 PyObject *resultobj = 0;
12781 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12782 wxFontEncoding result;
12783 void *argp1 = 0 ;
12784 int res1 = 0 ;
12785 PyObject *swig_obj[1] ;
12786
12787 if (!args) SWIG_fail;
12788 swig_obj[0] = args;
12789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12790 if (!SWIG_IsOK(res1)) {
12791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12792 }
12793 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12794 result = (wxFontEncoding) ((arg1)->encoding);
12795 resultobj = SWIG_From_int(static_cast< int >(result));
12796 return resultobj;
12797 fail:
12798 return NULL;
12799 }
12800
12801
12802 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12803 PyObject *resultobj = 0;
12804 wxNativeEncodingInfo *result = 0 ;
12805
12806 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12810 wxPyEndAllowThreads(__tstate);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12814 return resultobj;
12815 fail:
12816 return NULL;
12817 }
12818
12819
12820 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12821 PyObject *resultobj = 0;
12822 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12823 void *argp1 = 0 ;
12824 int res1 = 0 ;
12825 PyObject *swig_obj[1] ;
12826
12827 if (!args) SWIG_fail;
12828 swig_obj[0] = args;
12829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12830 if (!SWIG_IsOK(res1)) {
12831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12832 }
12833 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12834 {
12835 PyThreadState* __tstate = wxPyBeginAllowThreads();
12836 delete arg1;
12837
12838 wxPyEndAllowThreads(__tstate);
12839 if (PyErr_Occurred()) SWIG_fail;
12840 }
12841 resultobj = SWIG_Py_Void();
12842 return resultobj;
12843 fail:
12844 return NULL;
12845 }
12846
12847
12848 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12849 PyObject *resultobj = 0;
12850 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12851 wxString *arg2 = 0 ;
12852 bool result;
12853 void *argp1 = 0 ;
12854 int res1 = 0 ;
12855 bool temp2 = false ;
12856 PyObject * obj0 = 0 ;
12857 PyObject * obj1 = 0 ;
12858 char * kwnames[] = {
12859 (char *) "self",(char *) "s", NULL
12860 };
12861
12862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12864 if (!SWIG_IsOK(res1)) {
12865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12866 }
12867 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12868 {
12869 arg2 = wxString_in_helper(obj1);
12870 if (arg2 == NULL) SWIG_fail;
12871 temp2 = true;
12872 }
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12876 wxPyEndAllowThreads(__tstate);
12877 if (PyErr_Occurred()) SWIG_fail;
12878 }
12879 {
12880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12881 }
12882 {
12883 if (temp2)
12884 delete arg2;
12885 }
12886 return resultobj;
12887 fail:
12888 {
12889 if (temp2)
12890 delete arg2;
12891 }
12892 return NULL;
12893 }
12894
12895
12896 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12897 PyObject *resultobj = 0;
12898 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12899 wxString result;
12900 void *argp1 = 0 ;
12901 int res1 = 0 ;
12902 PyObject *swig_obj[1] ;
12903
12904 if (!args) SWIG_fail;
12905 swig_obj[0] = args;
12906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12907 if (!SWIG_IsOK(res1)) {
12908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12909 }
12910 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12911 {
12912 PyThreadState* __tstate = wxPyBeginAllowThreads();
12913 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12914 wxPyEndAllowThreads(__tstate);
12915 if (PyErr_Occurred()) SWIG_fail;
12916 }
12917 {
12918 #if wxUSE_UNICODE
12919 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12920 #else
12921 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12922 #endif
12923 }
12924 return resultobj;
12925 fail:
12926 return NULL;
12927 }
12928
12929
12930 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12931 PyObject *obj;
12932 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12933 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12934 return SWIG_Py_Void();
12935 }
12936
12937 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12938 return SWIG_Python_InitShadowInstance(args);
12939 }
12940
12941 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12942 PyObject *resultobj = 0;
12943 wxFontEncoding arg1 ;
12944 wxNativeEncodingInfo *result = 0 ;
12945 int val1 ;
12946 int ecode1 = 0 ;
12947 PyObject * obj0 = 0 ;
12948 char * kwnames[] = {
12949 (char *) "encoding", NULL
12950 };
12951
12952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12953 ecode1 = SWIG_AsVal_int(obj0, &val1);
12954 if (!SWIG_IsOK(ecode1)) {
12955 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12956 }
12957 arg1 = static_cast< wxFontEncoding >(val1);
12958 {
12959 PyThreadState* __tstate = wxPyBeginAllowThreads();
12960 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12961 wxPyEndAllowThreads(__tstate);
12962 if (PyErr_Occurred()) SWIG_fail;
12963 }
12964 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12965 return resultobj;
12966 fail:
12967 return NULL;
12968 }
12969
12970
12971 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12972 PyObject *resultobj = 0;
12973 wxNativeEncodingInfo *arg1 = 0 ;
12974 bool result;
12975 void *argp1 = 0 ;
12976 int res1 = 0 ;
12977 PyObject * obj0 = 0 ;
12978 char * kwnames[] = {
12979 (char *) "info", NULL
12980 };
12981
12982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12983 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12984 if (!SWIG_IsOK(res1)) {
12985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12986 }
12987 if (!argp1) {
12988 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12989 }
12990 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12991 {
12992 PyThreadState* __tstate = wxPyBeginAllowThreads();
12993 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12994 wxPyEndAllowThreads(__tstate);
12995 if (PyErr_Occurred()) SWIG_fail;
12996 }
12997 {
12998 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12999 }
13000 return resultobj;
13001 fail:
13002 return NULL;
13003 }
13004
13005
13006 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13007 PyObject *resultobj = 0;
13008 wxFontMapper *result = 0 ;
13009
13010 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13011 {
13012 PyThreadState* __tstate = wxPyBeginAllowThreads();
13013 result = (wxFontMapper *)new wxFontMapper();
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13018 return resultobj;
13019 fail:
13020 return NULL;
13021 }
13022
13023
13024 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13025 PyObject *resultobj = 0;
13026 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13027 void *argp1 = 0 ;
13028 int res1 = 0 ;
13029 PyObject *swig_obj[1] ;
13030
13031 if (!args) SWIG_fail;
13032 swig_obj[0] = args;
13033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13034 if (!SWIG_IsOK(res1)) {
13035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13036 }
13037 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13038 {
13039 PyThreadState* __tstate = wxPyBeginAllowThreads();
13040 delete arg1;
13041
13042 wxPyEndAllowThreads(__tstate);
13043 if (PyErr_Occurred()) SWIG_fail;
13044 }
13045 resultobj = SWIG_Py_Void();
13046 return resultobj;
13047 fail:
13048 return NULL;
13049 }
13050
13051
13052 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13053 PyObject *resultobj = 0;
13054 wxFontMapper *result = 0 ;
13055
13056 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 result = (wxFontMapper *)wxFontMapper::Get();
13060 wxPyEndAllowThreads(__tstate);
13061 if (PyErr_Occurred()) SWIG_fail;
13062 }
13063 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13064 return resultobj;
13065 fail:
13066 return NULL;
13067 }
13068
13069
13070 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13071 PyObject *resultobj = 0;
13072 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13073 wxFontMapper *result = 0 ;
13074 void *argp1 = 0 ;
13075 int res1 = 0 ;
13076 PyObject * obj0 = 0 ;
13077 char * kwnames[] = {
13078 (char *) "mapper", NULL
13079 };
13080
13081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13083 if (!SWIG_IsOK(res1)) {
13084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13085 }
13086 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13087 {
13088 PyThreadState* __tstate = wxPyBeginAllowThreads();
13089 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13090 wxPyEndAllowThreads(__tstate);
13091 if (PyErr_Occurred()) SWIG_fail;
13092 }
13093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13094 return resultobj;
13095 fail:
13096 return NULL;
13097 }
13098
13099
13100 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13101 PyObject *resultobj = 0;
13102 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13103 wxString *arg2 = 0 ;
13104 bool arg3 = (bool) true ;
13105 wxFontEncoding result;
13106 void *argp1 = 0 ;
13107 int res1 = 0 ;
13108 bool temp2 = false ;
13109 bool val3 ;
13110 int ecode3 = 0 ;
13111 PyObject * obj0 = 0 ;
13112 PyObject * obj1 = 0 ;
13113 PyObject * obj2 = 0 ;
13114 char * kwnames[] = {
13115 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13116 };
13117
13118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13120 if (!SWIG_IsOK(res1)) {
13121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13122 }
13123 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13124 {
13125 arg2 = wxString_in_helper(obj1);
13126 if (arg2 == NULL) SWIG_fail;
13127 temp2 = true;
13128 }
13129 if (obj2) {
13130 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13131 if (!SWIG_IsOK(ecode3)) {
13132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13133 }
13134 arg3 = static_cast< bool >(val3);
13135 }
13136 {
13137 PyThreadState* __tstate = wxPyBeginAllowThreads();
13138 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13139 wxPyEndAllowThreads(__tstate);
13140 if (PyErr_Occurred()) SWIG_fail;
13141 }
13142 resultobj = SWIG_From_int(static_cast< int >(result));
13143 {
13144 if (temp2)
13145 delete arg2;
13146 }
13147 return resultobj;
13148 fail:
13149 {
13150 if (temp2)
13151 delete arg2;
13152 }
13153 return NULL;
13154 }
13155
13156
13157 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13158 PyObject *resultobj = 0;
13159 size_t result;
13160
13161 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13162 {
13163 PyThreadState* __tstate = wxPyBeginAllowThreads();
13164 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13165 wxPyEndAllowThreads(__tstate);
13166 if (PyErr_Occurred()) SWIG_fail;
13167 }
13168 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13169 return resultobj;
13170 fail:
13171 return NULL;
13172 }
13173
13174
13175 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13176 PyObject *resultobj = 0;
13177 size_t arg1 ;
13178 wxFontEncoding result;
13179 size_t val1 ;
13180 int ecode1 = 0 ;
13181 PyObject * obj0 = 0 ;
13182 char * kwnames[] = {
13183 (char *) "n", NULL
13184 };
13185
13186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13187 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13188 if (!SWIG_IsOK(ecode1)) {
13189 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13190 }
13191 arg1 = static_cast< size_t >(val1);
13192 {
13193 PyThreadState* __tstate = wxPyBeginAllowThreads();
13194 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13195 wxPyEndAllowThreads(__tstate);
13196 if (PyErr_Occurred()) SWIG_fail;
13197 }
13198 resultobj = SWIG_From_int(static_cast< int >(result));
13199 return resultobj;
13200 fail:
13201 return NULL;
13202 }
13203
13204
13205 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13206 PyObject *resultobj = 0;
13207 wxFontEncoding arg1 ;
13208 wxString result;
13209 int val1 ;
13210 int ecode1 = 0 ;
13211 PyObject * obj0 = 0 ;
13212 char * kwnames[] = {
13213 (char *) "encoding", NULL
13214 };
13215
13216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13217 ecode1 = SWIG_AsVal_int(obj0, &val1);
13218 if (!SWIG_IsOK(ecode1)) {
13219 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13220 }
13221 arg1 = static_cast< wxFontEncoding >(val1);
13222 {
13223 PyThreadState* __tstate = wxPyBeginAllowThreads();
13224 result = wxFontMapper::GetEncodingName(arg1);
13225 wxPyEndAllowThreads(__tstate);
13226 if (PyErr_Occurred()) SWIG_fail;
13227 }
13228 {
13229 #if wxUSE_UNICODE
13230 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13231 #else
13232 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13233 #endif
13234 }
13235 return resultobj;
13236 fail:
13237 return NULL;
13238 }
13239
13240
13241 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13242 PyObject *resultobj = 0;
13243 wxFontEncoding arg1 ;
13244 wxString result;
13245 int val1 ;
13246 int ecode1 = 0 ;
13247 PyObject * obj0 = 0 ;
13248 char * kwnames[] = {
13249 (char *) "encoding", NULL
13250 };
13251
13252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13253 ecode1 = SWIG_AsVal_int(obj0, &val1);
13254 if (!SWIG_IsOK(ecode1)) {
13255 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13256 }
13257 arg1 = static_cast< wxFontEncoding >(val1);
13258 {
13259 PyThreadState* __tstate = wxPyBeginAllowThreads();
13260 result = wxFontMapper::GetEncodingDescription(arg1);
13261 wxPyEndAllowThreads(__tstate);
13262 if (PyErr_Occurred()) SWIG_fail;
13263 }
13264 {
13265 #if wxUSE_UNICODE
13266 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13267 #else
13268 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13269 #endif
13270 }
13271 return resultobj;
13272 fail:
13273 return NULL;
13274 }
13275
13276
13277 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13278 PyObject *resultobj = 0;
13279 wxString *arg1 = 0 ;
13280 wxFontEncoding result;
13281 bool temp1 = false ;
13282 PyObject * obj0 = 0 ;
13283 char * kwnames[] = {
13284 (char *) "name", NULL
13285 };
13286
13287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13288 {
13289 arg1 = wxString_in_helper(obj0);
13290 if (arg1 == NULL) SWIG_fail;
13291 temp1 = true;
13292 }
13293 {
13294 PyThreadState* __tstate = wxPyBeginAllowThreads();
13295 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13296 wxPyEndAllowThreads(__tstate);
13297 if (PyErr_Occurred()) SWIG_fail;
13298 }
13299 resultobj = SWIG_From_int(static_cast< int >(result));
13300 {
13301 if (temp1)
13302 delete arg1;
13303 }
13304 return resultobj;
13305 fail:
13306 {
13307 if (temp1)
13308 delete arg1;
13309 }
13310 return NULL;
13311 }
13312
13313
13314 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13315 PyObject *resultobj = 0;
13316 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13317 wxString *arg2 = 0 ;
13318 void *argp1 = 0 ;
13319 int res1 = 0 ;
13320 bool temp2 = false ;
13321 PyObject * obj0 = 0 ;
13322 PyObject * obj1 = 0 ;
13323 char * kwnames[] = {
13324 (char *) "self",(char *) "prefix", NULL
13325 };
13326
13327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13329 if (!SWIG_IsOK(res1)) {
13330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13331 }
13332 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13333 {
13334 arg2 = wxString_in_helper(obj1);
13335 if (arg2 == NULL) SWIG_fail;
13336 temp2 = true;
13337 }
13338 {
13339 PyThreadState* __tstate = wxPyBeginAllowThreads();
13340 (arg1)->SetConfigPath((wxString const &)*arg2);
13341 wxPyEndAllowThreads(__tstate);
13342 if (PyErr_Occurred()) SWIG_fail;
13343 }
13344 resultobj = SWIG_Py_Void();
13345 {
13346 if (temp2)
13347 delete arg2;
13348 }
13349 return resultobj;
13350 fail:
13351 {
13352 if (temp2)
13353 delete arg2;
13354 }
13355 return NULL;
13356 }
13357
13358
13359 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13360 PyObject *resultobj = 0;
13361 wxString result;
13362
13363 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13364 {
13365 PyThreadState* __tstate = wxPyBeginAllowThreads();
13366 result = wxFontMapper::GetDefaultConfigPath();
13367 wxPyEndAllowThreads(__tstate);
13368 if (PyErr_Occurred()) SWIG_fail;
13369 }
13370 {
13371 #if wxUSE_UNICODE
13372 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13373 #else
13374 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13375 #endif
13376 }
13377 return resultobj;
13378 fail:
13379 return NULL;
13380 }
13381
13382
13383 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13384 PyObject *resultobj = 0;
13385 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13386 wxFontEncoding arg2 ;
13387 wxString const &arg3_defvalue = wxPyEmptyString ;
13388 wxString *arg3 = (wxString *) &arg3_defvalue ;
13389 bool arg4 = (bool) true ;
13390 PyObject *result = 0 ;
13391 void *argp1 = 0 ;
13392 int res1 = 0 ;
13393 int val2 ;
13394 int ecode2 = 0 ;
13395 bool temp3 = false ;
13396 bool val4 ;
13397 int ecode4 = 0 ;
13398 PyObject * obj0 = 0 ;
13399 PyObject * obj1 = 0 ;
13400 PyObject * obj2 = 0 ;
13401 PyObject * obj3 = 0 ;
13402 char * kwnames[] = {
13403 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13404 };
13405
13406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13408 if (!SWIG_IsOK(res1)) {
13409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13410 }
13411 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13412 ecode2 = SWIG_AsVal_int(obj1, &val2);
13413 if (!SWIG_IsOK(ecode2)) {
13414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13415 }
13416 arg2 = static_cast< wxFontEncoding >(val2);
13417 if (obj2) {
13418 {
13419 arg3 = wxString_in_helper(obj2);
13420 if (arg3 == NULL) SWIG_fail;
13421 temp3 = true;
13422 }
13423 }
13424 if (obj3) {
13425 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13426 if (!SWIG_IsOK(ecode4)) {
13427 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13428 }
13429 arg4 = static_cast< bool >(val4);
13430 }
13431 {
13432 PyThreadState* __tstate = wxPyBeginAllowThreads();
13433 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13434 wxPyEndAllowThreads(__tstate);
13435 if (PyErr_Occurred()) SWIG_fail;
13436 }
13437 resultobj = result;
13438 {
13439 if (temp3)
13440 delete arg3;
13441 }
13442 return resultobj;
13443 fail:
13444 {
13445 if (temp3)
13446 delete arg3;
13447 }
13448 return NULL;
13449 }
13450
13451
13452 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13453 PyObject *resultobj = 0;
13454 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13455 wxFontEncoding arg2 ;
13456 wxString const &arg3_defvalue = wxPyEmptyString ;
13457 wxString *arg3 = (wxString *) &arg3_defvalue ;
13458 bool result;
13459 void *argp1 = 0 ;
13460 int res1 = 0 ;
13461 int val2 ;
13462 int ecode2 = 0 ;
13463 bool temp3 = false ;
13464 PyObject * obj0 = 0 ;
13465 PyObject * obj1 = 0 ;
13466 PyObject * obj2 = 0 ;
13467 char * kwnames[] = {
13468 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13469 };
13470
13471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13472 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13473 if (!SWIG_IsOK(res1)) {
13474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13475 }
13476 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13477 ecode2 = SWIG_AsVal_int(obj1, &val2);
13478 if (!SWIG_IsOK(ecode2)) {
13479 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13480 }
13481 arg2 = static_cast< wxFontEncoding >(val2);
13482 if (obj2) {
13483 {
13484 arg3 = wxString_in_helper(obj2);
13485 if (arg3 == NULL) SWIG_fail;
13486 temp3 = true;
13487 }
13488 }
13489 {
13490 PyThreadState* __tstate = wxPyBeginAllowThreads();
13491 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13492 wxPyEndAllowThreads(__tstate);
13493 if (PyErr_Occurred()) SWIG_fail;
13494 }
13495 {
13496 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13497 }
13498 {
13499 if (temp3)
13500 delete arg3;
13501 }
13502 return resultobj;
13503 fail:
13504 {
13505 if (temp3)
13506 delete arg3;
13507 }
13508 return NULL;
13509 }
13510
13511
13512 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13513 PyObject *resultobj = 0;
13514 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13515 wxWindow *arg2 = (wxWindow *) 0 ;
13516 void *argp1 = 0 ;
13517 int res1 = 0 ;
13518 void *argp2 = 0 ;
13519 int res2 = 0 ;
13520 PyObject * obj0 = 0 ;
13521 PyObject * obj1 = 0 ;
13522 char * kwnames[] = {
13523 (char *) "self",(char *) "parent", NULL
13524 };
13525
13526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13528 if (!SWIG_IsOK(res1)) {
13529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13530 }
13531 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13533 if (!SWIG_IsOK(res2)) {
13534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13535 }
13536 arg2 = reinterpret_cast< wxWindow * >(argp2);
13537 {
13538 PyThreadState* __tstate = wxPyBeginAllowThreads();
13539 (arg1)->SetDialogParent(arg2);
13540 wxPyEndAllowThreads(__tstate);
13541 if (PyErr_Occurred()) SWIG_fail;
13542 }
13543 resultobj = SWIG_Py_Void();
13544 return resultobj;
13545 fail:
13546 return NULL;
13547 }
13548
13549
13550 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13551 PyObject *resultobj = 0;
13552 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13553 wxString *arg2 = 0 ;
13554 void *argp1 = 0 ;
13555 int res1 = 0 ;
13556 bool temp2 = false ;
13557 PyObject * obj0 = 0 ;
13558 PyObject * obj1 = 0 ;
13559 char * kwnames[] = {
13560 (char *) "self",(char *) "title", NULL
13561 };
13562
13563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13565 if (!SWIG_IsOK(res1)) {
13566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13567 }
13568 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13569 {
13570 arg2 = wxString_in_helper(obj1);
13571 if (arg2 == NULL) SWIG_fail;
13572 temp2 = true;
13573 }
13574 {
13575 PyThreadState* __tstate = wxPyBeginAllowThreads();
13576 (arg1)->SetDialogTitle((wxString const &)*arg2);
13577 wxPyEndAllowThreads(__tstate);
13578 if (PyErr_Occurred()) SWIG_fail;
13579 }
13580 resultobj = SWIG_Py_Void();
13581 {
13582 if (temp2)
13583 delete arg2;
13584 }
13585 return resultobj;
13586 fail:
13587 {
13588 if (temp2)
13589 delete arg2;
13590 }
13591 return NULL;
13592 }
13593
13594
13595 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13596 PyObject *obj;
13597 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13598 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13599 return SWIG_Py_Void();
13600 }
13601
13602 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13603 return SWIG_Python_InitShadowInstance(args);
13604 }
13605
13606 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13607 PyObject *resultobj = 0;
13608 int arg1 ;
13609 int arg2 ;
13610 int arg3 ;
13611 int arg4 ;
13612 bool arg5 = (bool) false ;
13613 wxString const &arg6_defvalue = wxPyEmptyString ;
13614 wxString *arg6 = (wxString *) &arg6_defvalue ;
13615 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13616 wxFont *result = 0 ;
13617 int val1 ;
13618 int ecode1 = 0 ;
13619 int val2 ;
13620 int ecode2 = 0 ;
13621 int val3 ;
13622 int ecode3 = 0 ;
13623 int val4 ;
13624 int ecode4 = 0 ;
13625 bool val5 ;
13626 int ecode5 = 0 ;
13627 bool temp6 = false ;
13628 int val7 ;
13629 int ecode7 = 0 ;
13630 PyObject * obj0 = 0 ;
13631 PyObject * obj1 = 0 ;
13632 PyObject * obj2 = 0 ;
13633 PyObject * obj3 = 0 ;
13634 PyObject * obj4 = 0 ;
13635 PyObject * obj5 = 0 ;
13636 PyObject * obj6 = 0 ;
13637 char * kwnames[] = {
13638 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13639 };
13640
13641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13642 ecode1 = SWIG_AsVal_int(obj0, &val1);
13643 if (!SWIG_IsOK(ecode1)) {
13644 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13645 }
13646 arg1 = static_cast< int >(val1);
13647 ecode2 = SWIG_AsVal_int(obj1, &val2);
13648 if (!SWIG_IsOK(ecode2)) {
13649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13650 }
13651 arg2 = static_cast< int >(val2);
13652 ecode3 = SWIG_AsVal_int(obj2, &val3);
13653 if (!SWIG_IsOK(ecode3)) {
13654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13655 }
13656 arg3 = static_cast< int >(val3);
13657 ecode4 = SWIG_AsVal_int(obj3, &val4);
13658 if (!SWIG_IsOK(ecode4)) {
13659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13660 }
13661 arg4 = static_cast< int >(val4);
13662 if (obj4) {
13663 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13664 if (!SWIG_IsOK(ecode5)) {
13665 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13666 }
13667 arg5 = static_cast< bool >(val5);
13668 }
13669 if (obj5) {
13670 {
13671 arg6 = wxString_in_helper(obj5);
13672 if (arg6 == NULL) SWIG_fail;
13673 temp6 = true;
13674 }
13675 }
13676 if (obj6) {
13677 ecode7 = SWIG_AsVal_int(obj6, &val7);
13678 if (!SWIG_IsOK(ecode7)) {
13679 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13680 }
13681 arg7 = static_cast< wxFontEncoding >(val7);
13682 }
13683 {
13684 if (!wxPyCheckForApp()) SWIG_fail;
13685 PyThreadState* __tstate = wxPyBeginAllowThreads();
13686 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13687 wxPyEndAllowThreads(__tstate);
13688 if (PyErr_Occurred()) SWIG_fail;
13689 }
13690 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13691 {
13692 if (temp6)
13693 delete arg6;
13694 }
13695 return resultobj;
13696 fail:
13697 {
13698 if (temp6)
13699 delete arg6;
13700 }
13701 return NULL;
13702 }
13703
13704
13705 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13706 PyObject *resultobj = 0;
13707 wxFont *arg1 = (wxFont *) 0 ;
13708 void *argp1 = 0 ;
13709 int res1 = 0 ;
13710 PyObject *swig_obj[1] ;
13711
13712 if (!args) SWIG_fail;
13713 swig_obj[0] = args;
13714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13715 if (!SWIG_IsOK(res1)) {
13716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13717 }
13718 arg1 = reinterpret_cast< wxFont * >(argp1);
13719 {
13720 PyThreadState* __tstate = wxPyBeginAllowThreads();
13721 delete arg1;
13722
13723 wxPyEndAllowThreads(__tstate);
13724 if (PyErr_Occurred()) SWIG_fail;
13725 }
13726 resultobj = SWIG_Py_Void();
13727 return resultobj;
13728 fail:
13729 return NULL;
13730 }
13731
13732
13733 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13734 PyObject *resultobj = 0;
13735 wxNativeFontInfo *arg1 = 0 ;
13736 wxFont *result = 0 ;
13737 void *argp1 = 0 ;
13738 int res1 = 0 ;
13739 PyObject * obj0 = 0 ;
13740 char * kwnames[] = {
13741 (char *) "info", NULL
13742 };
13743
13744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13745 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13746 if (!SWIG_IsOK(res1)) {
13747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13748 }
13749 if (!argp1) {
13750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13751 }
13752 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13753 {
13754 if (!wxPyCheckForApp()) SWIG_fail;
13755 PyThreadState* __tstate = wxPyBeginAllowThreads();
13756 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13757 wxPyEndAllowThreads(__tstate);
13758 if (PyErr_Occurred()) SWIG_fail;
13759 }
13760 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13761 return resultobj;
13762 fail:
13763 return NULL;
13764 }
13765
13766
13767 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13768 PyObject *resultobj = 0;
13769 wxString *arg1 = 0 ;
13770 wxFont *result = 0 ;
13771 bool temp1 = false ;
13772 PyObject * obj0 = 0 ;
13773 char * kwnames[] = {
13774 (char *) "info", NULL
13775 };
13776
13777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13778 {
13779 arg1 = wxString_in_helper(obj0);
13780 if (arg1 == NULL) SWIG_fail;
13781 temp1 = true;
13782 }
13783 {
13784 if (!wxPyCheckForApp()) SWIG_fail;
13785 PyThreadState* __tstate = wxPyBeginAllowThreads();
13786 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13787 wxPyEndAllowThreads(__tstate);
13788 if (PyErr_Occurred()) SWIG_fail;
13789 }
13790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13791 {
13792 if (temp1)
13793 delete arg1;
13794 }
13795 return resultobj;
13796 fail:
13797 {
13798 if (temp1)
13799 delete arg1;
13800 }
13801 return NULL;
13802 }
13803
13804
13805 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13806 PyObject *resultobj = 0;
13807 int arg1 ;
13808 wxFontFamily arg2 ;
13809 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13810 wxString const &arg4_defvalue = wxPyEmptyString ;
13811 wxString *arg4 = (wxString *) &arg4_defvalue ;
13812 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13813 wxFont *result = 0 ;
13814 int val1 ;
13815 int ecode1 = 0 ;
13816 int val2 ;
13817 int ecode2 = 0 ;
13818 int val3 ;
13819 int ecode3 = 0 ;
13820 bool temp4 = false ;
13821 int val5 ;
13822 int ecode5 = 0 ;
13823 PyObject * obj0 = 0 ;
13824 PyObject * obj1 = 0 ;
13825 PyObject * obj2 = 0 ;
13826 PyObject * obj3 = 0 ;
13827 PyObject * obj4 = 0 ;
13828 char * kwnames[] = {
13829 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13830 };
13831
13832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13833 ecode1 = SWIG_AsVal_int(obj0, &val1);
13834 if (!SWIG_IsOK(ecode1)) {
13835 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13836 }
13837 arg1 = static_cast< int >(val1);
13838 ecode2 = SWIG_AsVal_int(obj1, &val2);
13839 if (!SWIG_IsOK(ecode2)) {
13840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13841 }
13842 arg2 = static_cast< wxFontFamily >(val2);
13843 if (obj2) {
13844 ecode3 = SWIG_AsVal_int(obj2, &val3);
13845 if (!SWIG_IsOK(ecode3)) {
13846 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13847 }
13848 arg3 = static_cast< int >(val3);
13849 }
13850 if (obj3) {
13851 {
13852 arg4 = wxString_in_helper(obj3);
13853 if (arg4 == NULL) SWIG_fail;
13854 temp4 = true;
13855 }
13856 }
13857 if (obj4) {
13858 ecode5 = SWIG_AsVal_int(obj4, &val5);
13859 if (!SWIG_IsOK(ecode5)) {
13860 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13861 }
13862 arg5 = static_cast< wxFontEncoding >(val5);
13863 }
13864 {
13865 if (!wxPyCheckForApp()) SWIG_fail;
13866 PyThreadState* __tstate = wxPyBeginAllowThreads();
13867 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13868 wxPyEndAllowThreads(__tstate);
13869 if (PyErr_Occurred()) SWIG_fail;
13870 }
13871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13872 {
13873 if (temp4)
13874 delete arg4;
13875 }
13876 return resultobj;
13877 fail:
13878 {
13879 if (temp4)
13880 delete arg4;
13881 }
13882 return NULL;
13883 }
13884
13885
13886 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13887 PyObject *resultobj = 0;
13888 wxSize *arg1 = 0 ;
13889 int arg2 ;
13890 int arg3 ;
13891 int arg4 ;
13892 bool arg5 = (bool) false ;
13893 wxString const &arg6_defvalue = wxEmptyString ;
13894 wxString *arg6 = (wxString *) &arg6_defvalue ;
13895 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13896 wxFont *result = 0 ;
13897 wxSize temp1 ;
13898 int val2 ;
13899 int ecode2 = 0 ;
13900 int val3 ;
13901 int ecode3 = 0 ;
13902 int val4 ;
13903 int ecode4 = 0 ;
13904 bool val5 ;
13905 int ecode5 = 0 ;
13906 bool temp6 = false ;
13907 int val7 ;
13908 int ecode7 = 0 ;
13909 PyObject * obj0 = 0 ;
13910 PyObject * obj1 = 0 ;
13911 PyObject * obj2 = 0 ;
13912 PyObject * obj3 = 0 ;
13913 PyObject * obj4 = 0 ;
13914 PyObject * obj5 = 0 ;
13915 PyObject * obj6 = 0 ;
13916 char * kwnames[] = {
13917 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13918 };
13919
13920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13921 {
13922 arg1 = &temp1;
13923 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13924 }
13925 ecode2 = SWIG_AsVal_int(obj1, &val2);
13926 if (!SWIG_IsOK(ecode2)) {
13927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13928 }
13929 arg2 = static_cast< int >(val2);
13930 ecode3 = SWIG_AsVal_int(obj2, &val3);
13931 if (!SWIG_IsOK(ecode3)) {
13932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13933 }
13934 arg3 = static_cast< int >(val3);
13935 ecode4 = SWIG_AsVal_int(obj3, &val4);
13936 if (!SWIG_IsOK(ecode4)) {
13937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13938 }
13939 arg4 = static_cast< int >(val4);
13940 if (obj4) {
13941 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13942 if (!SWIG_IsOK(ecode5)) {
13943 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13944 }
13945 arg5 = static_cast< bool >(val5);
13946 }
13947 if (obj5) {
13948 {
13949 arg6 = wxString_in_helper(obj5);
13950 if (arg6 == NULL) SWIG_fail;
13951 temp6 = true;
13952 }
13953 }
13954 if (obj6) {
13955 ecode7 = SWIG_AsVal_int(obj6, &val7);
13956 if (!SWIG_IsOK(ecode7)) {
13957 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13958 }
13959 arg7 = static_cast< wxFontEncoding >(val7);
13960 }
13961 {
13962 if (!wxPyCheckForApp()) SWIG_fail;
13963 PyThreadState* __tstate = wxPyBeginAllowThreads();
13964 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13965 wxPyEndAllowThreads(__tstate);
13966 if (PyErr_Occurred()) SWIG_fail;
13967 }
13968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13969 {
13970 if (temp6)
13971 delete arg6;
13972 }
13973 return resultobj;
13974 fail:
13975 {
13976 if (temp6)
13977 delete arg6;
13978 }
13979 return NULL;
13980 }
13981
13982
13983 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13984 PyObject *resultobj = 0;
13985 wxSize *arg1 = 0 ;
13986 wxFontFamily arg2 ;
13987 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13988 wxString const &arg4_defvalue = wxEmptyString ;
13989 wxString *arg4 = (wxString *) &arg4_defvalue ;
13990 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13991 wxFont *result = 0 ;
13992 wxSize temp1 ;
13993 int val2 ;
13994 int ecode2 = 0 ;
13995 int val3 ;
13996 int ecode3 = 0 ;
13997 bool temp4 = false ;
13998 int val5 ;
13999 int ecode5 = 0 ;
14000 PyObject * obj0 = 0 ;
14001 PyObject * obj1 = 0 ;
14002 PyObject * obj2 = 0 ;
14003 PyObject * obj3 = 0 ;
14004 PyObject * obj4 = 0 ;
14005 char * kwnames[] = {
14006 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14007 };
14008
14009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14010 {
14011 arg1 = &temp1;
14012 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14013 }
14014 ecode2 = SWIG_AsVal_int(obj1, &val2);
14015 if (!SWIG_IsOK(ecode2)) {
14016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14017 }
14018 arg2 = static_cast< wxFontFamily >(val2);
14019 if (obj2) {
14020 ecode3 = SWIG_AsVal_int(obj2, &val3);
14021 if (!SWIG_IsOK(ecode3)) {
14022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14023 }
14024 arg3 = static_cast< int >(val3);
14025 }
14026 if (obj3) {
14027 {
14028 arg4 = wxString_in_helper(obj3);
14029 if (arg4 == NULL) SWIG_fail;
14030 temp4 = true;
14031 }
14032 }
14033 if (obj4) {
14034 ecode5 = SWIG_AsVal_int(obj4, &val5);
14035 if (!SWIG_IsOK(ecode5)) {
14036 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14037 }
14038 arg5 = static_cast< wxFontEncoding >(val5);
14039 }
14040 {
14041 if (!wxPyCheckForApp()) SWIG_fail;
14042 PyThreadState* __tstate = wxPyBeginAllowThreads();
14043 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14044 wxPyEndAllowThreads(__tstate);
14045 if (PyErr_Occurred()) SWIG_fail;
14046 }
14047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14048 {
14049 if (temp4)
14050 delete arg4;
14051 }
14052 return resultobj;
14053 fail:
14054 {
14055 if (temp4)
14056 delete arg4;
14057 }
14058 return NULL;
14059 }
14060
14061
14062 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14063 PyObject *resultobj = 0;
14064 wxFont *arg1 = (wxFont *) 0 ;
14065 bool result;
14066 void *argp1 = 0 ;
14067 int res1 = 0 ;
14068 PyObject *swig_obj[1] ;
14069
14070 if (!args) SWIG_fail;
14071 swig_obj[0] = args;
14072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14073 if (!SWIG_IsOK(res1)) {
14074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14075 }
14076 arg1 = reinterpret_cast< wxFont * >(argp1);
14077 {
14078 PyThreadState* __tstate = wxPyBeginAllowThreads();
14079 result = (bool)((wxFont const *)arg1)->IsOk();
14080 wxPyEndAllowThreads(__tstate);
14081 if (PyErr_Occurred()) SWIG_fail;
14082 }
14083 {
14084 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14085 }
14086 return resultobj;
14087 fail:
14088 return NULL;
14089 }
14090
14091
14092 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14093 PyObject *resultobj = 0;
14094 wxFont *arg1 = (wxFont *) 0 ;
14095 wxFont *arg2 = (wxFont *) 0 ;
14096 bool result;
14097 void *argp1 = 0 ;
14098 int res1 = 0 ;
14099 void *argp2 = 0 ;
14100 int res2 = 0 ;
14101 PyObject * obj0 = 0 ;
14102 PyObject * obj1 = 0 ;
14103 char * kwnames[] = {
14104 (char *) "self",(char *) "other", NULL
14105 };
14106
14107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14109 if (!SWIG_IsOK(res1)) {
14110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14111 }
14112 arg1 = reinterpret_cast< wxFont * >(argp1);
14113 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14114 if (!SWIG_IsOK(res2)) {
14115 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14116 }
14117 arg2 = reinterpret_cast< wxFont * >(argp2);
14118 {
14119 PyThreadState* __tstate = wxPyBeginAllowThreads();
14120 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14121 wxPyEndAllowThreads(__tstate);
14122 if (PyErr_Occurred()) SWIG_fail;
14123 }
14124 {
14125 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14126 }
14127 return resultobj;
14128 fail:
14129 return NULL;
14130 }
14131
14132
14133 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14134 PyObject *resultobj = 0;
14135 wxFont *arg1 = (wxFont *) 0 ;
14136 wxFont *arg2 = (wxFont *) 0 ;
14137 bool result;
14138 void *argp1 = 0 ;
14139 int res1 = 0 ;
14140 void *argp2 = 0 ;
14141 int res2 = 0 ;
14142 PyObject * obj0 = 0 ;
14143 PyObject * obj1 = 0 ;
14144 char * kwnames[] = {
14145 (char *) "self",(char *) "other", NULL
14146 };
14147
14148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14150 if (!SWIG_IsOK(res1)) {
14151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14152 }
14153 arg1 = reinterpret_cast< wxFont * >(argp1);
14154 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14155 if (!SWIG_IsOK(res2)) {
14156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14157 }
14158 arg2 = reinterpret_cast< wxFont * >(argp2);
14159 {
14160 PyThreadState* __tstate = wxPyBeginAllowThreads();
14161 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14162 wxPyEndAllowThreads(__tstate);
14163 if (PyErr_Occurred()) SWIG_fail;
14164 }
14165 {
14166 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14167 }
14168 return resultobj;
14169 fail:
14170 return NULL;
14171 }
14172
14173
14174 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14175 PyObject *resultobj = 0;
14176 wxFont *arg1 = (wxFont *) 0 ;
14177 int result;
14178 void *argp1 = 0 ;
14179 int res1 = 0 ;
14180 PyObject *swig_obj[1] ;
14181
14182 if (!args) SWIG_fail;
14183 swig_obj[0] = args;
14184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14185 if (!SWIG_IsOK(res1)) {
14186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14187 }
14188 arg1 = reinterpret_cast< wxFont * >(argp1);
14189 {
14190 PyThreadState* __tstate = wxPyBeginAllowThreads();
14191 result = (int)((wxFont const *)arg1)->GetPointSize();
14192 wxPyEndAllowThreads(__tstate);
14193 if (PyErr_Occurred()) SWIG_fail;
14194 }
14195 resultobj = SWIG_From_int(static_cast< int >(result));
14196 return resultobj;
14197 fail:
14198 return NULL;
14199 }
14200
14201
14202 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14203 PyObject *resultobj = 0;
14204 wxFont *arg1 = (wxFont *) 0 ;
14205 wxSize result;
14206 void *argp1 = 0 ;
14207 int res1 = 0 ;
14208 PyObject *swig_obj[1] ;
14209
14210 if (!args) SWIG_fail;
14211 swig_obj[0] = args;
14212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14213 if (!SWIG_IsOK(res1)) {
14214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14215 }
14216 arg1 = reinterpret_cast< wxFont * >(argp1);
14217 {
14218 PyThreadState* __tstate = wxPyBeginAllowThreads();
14219 result = ((wxFont const *)arg1)->GetPixelSize();
14220 wxPyEndAllowThreads(__tstate);
14221 if (PyErr_Occurred()) SWIG_fail;
14222 }
14223 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14224 return resultobj;
14225 fail:
14226 return NULL;
14227 }
14228
14229
14230 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14231 PyObject *resultobj = 0;
14232 wxFont *arg1 = (wxFont *) 0 ;
14233 bool result;
14234 void *argp1 = 0 ;
14235 int res1 = 0 ;
14236 PyObject *swig_obj[1] ;
14237
14238 if (!args) SWIG_fail;
14239 swig_obj[0] = args;
14240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14241 if (!SWIG_IsOK(res1)) {
14242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14243 }
14244 arg1 = reinterpret_cast< wxFont * >(argp1);
14245 {
14246 PyThreadState* __tstate = wxPyBeginAllowThreads();
14247 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14248 wxPyEndAllowThreads(__tstate);
14249 if (PyErr_Occurred()) SWIG_fail;
14250 }
14251 {
14252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14253 }
14254 return resultobj;
14255 fail:
14256 return NULL;
14257 }
14258
14259
14260 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14261 PyObject *resultobj = 0;
14262 wxFont *arg1 = (wxFont *) 0 ;
14263 int result;
14264 void *argp1 = 0 ;
14265 int res1 = 0 ;
14266 PyObject *swig_obj[1] ;
14267
14268 if (!args) SWIG_fail;
14269 swig_obj[0] = args;
14270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14271 if (!SWIG_IsOK(res1)) {
14272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14273 }
14274 arg1 = reinterpret_cast< wxFont * >(argp1);
14275 {
14276 PyThreadState* __tstate = wxPyBeginAllowThreads();
14277 result = (int)((wxFont const *)arg1)->GetFamily();
14278 wxPyEndAllowThreads(__tstate);
14279 if (PyErr_Occurred()) SWIG_fail;
14280 }
14281 resultobj = SWIG_From_int(static_cast< int >(result));
14282 return resultobj;
14283 fail:
14284 return NULL;
14285 }
14286
14287
14288 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14289 PyObject *resultobj = 0;
14290 wxFont *arg1 = (wxFont *) 0 ;
14291 int result;
14292 void *argp1 = 0 ;
14293 int res1 = 0 ;
14294 PyObject *swig_obj[1] ;
14295
14296 if (!args) SWIG_fail;
14297 swig_obj[0] = args;
14298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14299 if (!SWIG_IsOK(res1)) {
14300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14301 }
14302 arg1 = reinterpret_cast< wxFont * >(argp1);
14303 {
14304 PyThreadState* __tstate = wxPyBeginAllowThreads();
14305 result = (int)((wxFont const *)arg1)->GetStyle();
14306 wxPyEndAllowThreads(__tstate);
14307 if (PyErr_Occurred()) SWIG_fail;
14308 }
14309 resultobj = SWIG_From_int(static_cast< int >(result));
14310 return resultobj;
14311 fail:
14312 return NULL;
14313 }
14314
14315
14316 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14317 PyObject *resultobj = 0;
14318 wxFont *arg1 = (wxFont *) 0 ;
14319 int result;
14320 void *argp1 = 0 ;
14321 int res1 = 0 ;
14322 PyObject *swig_obj[1] ;
14323
14324 if (!args) SWIG_fail;
14325 swig_obj[0] = args;
14326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14327 if (!SWIG_IsOK(res1)) {
14328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14329 }
14330 arg1 = reinterpret_cast< wxFont * >(argp1);
14331 {
14332 PyThreadState* __tstate = wxPyBeginAllowThreads();
14333 result = (int)((wxFont const *)arg1)->GetWeight();
14334 wxPyEndAllowThreads(__tstate);
14335 if (PyErr_Occurred()) SWIG_fail;
14336 }
14337 resultobj = SWIG_From_int(static_cast< int >(result));
14338 return resultobj;
14339 fail:
14340 return NULL;
14341 }
14342
14343
14344 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14345 PyObject *resultobj = 0;
14346 wxFont *arg1 = (wxFont *) 0 ;
14347 bool result;
14348 void *argp1 = 0 ;
14349 int res1 = 0 ;
14350 PyObject *swig_obj[1] ;
14351
14352 if (!args) SWIG_fail;
14353 swig_obj[0] = args;
14354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14355 if (!SWIG_IsOK(res1)) {
14356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14357 }
14358 arg1 = reinterpret_cast< wxFont * >(argp1);
14359 {
14360 PyThreadState* __tstate = wxPyBeginAllowThreads();
14361 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14362 wxPyEndAllowThreads(__tstate);
14363 if (PyErr_Occurred()) SWIG_fail;
14364 }
14365 {
14366 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14367 }
14368 return resultobj;
14369 fail:
14370 return NULL;
14371 }
14372
14373
14374 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14375 PyObject *resultobj = 0;
14376 wxFont *arg1 = (wxFont *) 0 ;
14377 wxString result;
14378 void *argp1 = 0 ;
14379 int res1 = 0 ;
14380 PyObject *swig_obj[1] ;
14381
14382 if (!args) SWIG_fail;
14383 swig_obj[0] = args;
14384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14385 if (!SWIG_IsOK(res1)) {
14386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14387 }
14388 arg1 = reinterpret_cast< wxFont * >(argp1);
14389 {
14390 PyThreadState* __tstate = wxPyBeginAllowThreads();
14391 result = ((wxFont const *)arg1)->GetFaceName();
14392 wxPyEndAllowThreads(__tstate);
14393 if (PyErr_Occurred()) SWIG_fail;
14394 }
14395 {
14396 #if wxUSE_UNICODE
14397 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14398 #else
14399 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14400 #endif
14401 }
14402 return resultobj;
14403 fail:
14404 return NULL;
14405 }
14406
14407
14408 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14409 PyObject *resultobj = 0;
14410 wxFont *arg1 = (wxFont *) 0 ;
14411 wxFontEncoding result;
14412 void *argp1 = 0 ;
14413 int res1 = 0 ;
14414 PyObject *swig_obj[1] ;
14415
14416 if (!args) SWIG_fail;
14417 swig_obj[0] = args;
14418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14419 if (!SWIG_IsOK(res1)) {
14420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14421 }
14422 arg1 = reinterpret_cast< wxFont * >(argp1);
14423 {
14424 PyThreadState* __tstate = wxPyBeginAllowThreads();
14425 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14426 wxPyEndAllowThreads(__tstate);
14427 if (PyErr_Occurred()) SWIG_fail;
14428 }
14429 resultobj = SWIG_From_int(static_cast< int >(result));
14430 return resultobj;
14431 fail:
14432 return NULL;
14433 }
14434
14435
14436 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14437 PyObject *resultobj = 0;
14438 wxFont *arg1 = (wxFont *) 0 ;
14439 wxNativeFontInfo *result = 0 ;
14440 void *argp1 = 0 ;
14441 int res1 = 0 ;
14442 PyObject *swig_obj[1] ;
14443
14444 if (!args) SWIG_fail;
14445 swig_obj[0] = args;
14446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14447 if (!SWIG_IsOK(res1)) {
14448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14449 }
14450 arg1 = reinterpret_cast< wxFont * >(argp1);
14451 {
14452 PyThreadState* __tstate = wxPyBeginAllowThreads();
14453 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14454 wxPyEndAllowThreads(__tstate);
14455 if (PyErr_Occurred()) SWIG_fail;
14456 }
14457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14458 return resultobj;
14459 fail:
14460 return NULL;
14461 }
14462
14463
14464 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14465 PyObject *resultobj = 0;
14466 wxFont *arg1 = (wxFont *) 0 ;
14467 bool result;
14468 void *argp1 = 0 ;
14469 int res1 = 0 ;
14470 PyObject *swig_obj[1] ;
14471
14472 if (!args) SWIG_fail;
14473 swig_obj[0] = args;
14474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14475 if (!SWIG_IsOK(res1)) {
14476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14477 }
14478 arg1 = reinterpret_cast< wxFont * >(argp1);
14479 {
14480 PyThreadState* __tstate = wxPyBeginAllowThreads();
14481 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14482 wxPyEndAllowThreads(__tstate);
14483 if (PyErr_Occurred()) SWIG_fail;
14484 }
14485 {
14486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14487 }
14488 return resultobj;
14489 fail:
14490 return NULL;
14491 }
14492
14493
14494 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14495 PyObject *resultobj = 0;
14496 wxFont *arg1 = (wxFont *) 0 ;
14497 wxString result;
14498 void *argp1 = 0 ;
14499 int res1 = 0 ;
14500 PyObject *swig_obj[1] ;
14501
14502 if (!args) SWIG_fail;
14503 swig_obj[0] = args;
14504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14505 if (!SWIG_IsOK(res1)) {
14506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14507 }
14508 arg1 = reinterpret_cast< wxFont * >(argp1);
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14512 wxPyEndAllowThreads(__tstate);
14513 if (PyErr_Occurred()) SWIG_fail;
14514 }
14515 {
14516 #if wxUSE_UNICODE
14517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14518 #else
14519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14520 #endif
14521 }
14522 return resultobj;
14523 fail:
14524 return NULL;
14525 }
14526
14527
14528 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14529 PyObject *resultobj = 0;
14530 wxFont *arg1 = (wxFont *) 0 ;
14531 wxString result;
14532 void *argp1 = 0 ;
14533 int res1 = 0 ;
14534 PyObject *swig_obj[1] ;
14535
14536 if (!args) SWIG_fail;
14537 swig_obj[0] = args;
14538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14539 if (!SWIG_IsOK(res1)) {
14540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14541 }
14542 arg1 = reinterpret_cast< wxFont * >(argp1);
14543 {
14544 PyThreadState* __tstate = wxPyBeginAllowThreads();
14545 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14546 wxPyEndAllowThreads(__tstate);
14547 if (PyErr_Occurred()) SWIG_fail;
14548 }
14549 {
14550 #if wxUSE_UNICODE
14551 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14552 #else
14553 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14554 #endif
14555 }
14556 return resultobj;
14557 fail:
14558 return NULL;
14559 }
14560
14561
14562 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14563 PyObject *resultobj = 0;
14564 wxFont *arg1 = (wxFont *) 0 ;
14565 int arg2 ;
14566 void *argp1 = 0 ;
14567 int res1 = 0 ;
14568 int val2 ;
14569 int ecode2 = 0 ;
14570 PyObject * obj0 = 0 ;
14571 PyObject * obj1 = 0 ;
14572 char * kwnames[] = {
14573 (char *) "self",(char *) "pointSize", NULL
14574 };
14575
14576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14578 if (!SWIG_IsOK(res1)) {
14579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14580 }
14581 arg1 = reinterpret_cast< wxFont * >(argp1);
14582 ecode2 = SWIG_AsVal_int(obj1, &val2);
14583 if (!SWIG_IsOK(ecode2)) {
14584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14585 }
14586 arg2 = static_cast< int >(val2);
14587 {
14588 PyThreadState* __tstate = wxPyBeginAllowThreads();
14589 (arg1)->SetPointSize(arg2);
14590 wxPyEndAllowThreads(__tstate);
14591 if (PyErr_Occurred()) SWIG_fail;
14592 }
14593 resultobj = SWIG_Py_Void();
14594 return resultobj;
14595 fail:
14596 return NULL;
14597 }
14598
14599
14600 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14601 PyObject *resultobj = 0;
14602 wxFont *arg1 = (wxFont *) 0 ;
14603 wxSize *arg2 = 0 ;
14604 void *argp1 = 0 ;
14605 int res1 = 0 ;
14606 wxSize temp2 ;
14607 PyObject * obj0 = 0 ;
14608 PyObject * obj1 = 0 ;
14609 char * kwnames[] = {
14610 (char *) "self",(char *) "pixelSize", NULL
14611 };
14612
14613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14615 if (!SWIG_IsOK(res1)) {
14616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14617 }
14618 arg1 = reinterpret_cast< wxFont * >(argp1);
14619 {
14620 arg2 = &temp2;
14621 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14622 }
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 (arg1)->SetPixelSize((wxSize const &)*arg2);
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 resultobj = SWIG_Py_Void();
14630 return resultobj;
14631 fail:
14632 return NULL;
14633 }
14634
14635
14636 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14637 PyObject *resultobj = 0;
14638 wxFont *arg1 = (wxFont *) 0 ;
14639 int arg2 ;
14640 void *argp1 = 0 ;
14641 int res1 = 0 ;
14642 int val2 ;
14643 int ecode2 = 0 ;
14644 PyObject * obj0 = 0 ;
14645 PyObject * obj1 = 0 ;
14646 char * kwnames[] = {
14647 (char *) "self",(char *) "family", NULL
14648 };
14649
14650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14652 if (!SWIG_IsOK(res1)) {
14653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14654 }
14655 arg1 = reinterpret_cast< wxFont * >(argp1);
14656 ecode2 = SWIG_AsVal_int(obj1, &val2);
14657 if (!SWIG_IsOK(ecode2)) {
14658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14659 }
14660 arg2 = static_cast< int >(val2);
14661 {
14662 PyThreadState* __tstate = wxPyBeginAllowThreads();
14663 (arg1)->SetFamily(arg2);
14664 wxPyEndAllowThreads(__tstate);
14665 if (PyErr_Occurred()) SWIG_fail;
14666 }
14667 resultobj = SWIG_Py_Void();
14668 return resultobj;
14669 fail:
14670 return NULL;
14671 }
14672
14673
14674 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14675 PyObject *resultobj = 0;
14676 wxFont *arg1 = (wxFont *) 0 ;
14677 int arg2 ;
14678 void *argp1 = 0 ;
14679 int res1 = 0 ;
14680 int val2 ;
14681 int ecode2 = 0 ;
14682 PyObject * obj0 = 0 ;
14683 PyObject * obj1 = 0 ;
14684 char * kwnames[] = {
14685 (char *) "self",(char *) "style", NULL
14686 };
14687
14688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14690 if (!SWIG_IsOK(res1)) {
14691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14692 }
14693 arg1 = reinterpret_cast< wxFont * >(argp1);
14694 ecode2 = SWIG_AsVal_int(obj1, &val2);
14695 if (!SWIG_IsOK(ecode2)) {
14696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14697 }
14698 arg2 = static_cast< int >(val2);
14699 {
14700 PyThreadState* __tstate = wxPyBeginAllowThreads();
14701 (arg1)->SetStyle(arg2);
14702 wxPyEndAllowThreads(__tstate);
14703 if (PyErr_Occurred()) SWIG_fail;
14704 }
14705 resultobj = SWIG_Py_Void();
14706 return resultobj;
14707 fail:
14708 return NULL;
14709 }
14710
14711
14712 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14713 PyObject *resultobj = 0;
14714 wxFont *arg1 = (wxFont *) 0 ;
14715 int arg2 ;
14716 void *argp1 = 0 ;
14717 int res1 = 0 ;
14718 int val2 ;
14719 int ecode2 = 0 ;
14720 PyObject * obj0 = 0 ;
14721 PyObject * obj1 = 0 ;
14722 char * kwnames[] = {
14723 (char *) "self",(char *) "weight", NULL
14724 };
14725
14726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14728 if (!SWIG_IsOK(res1)) {
14729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14730 }
14731 arg1 = reinterpret_cast< wxFont * >(argp1);
14732 ecode2 = SWIG_AsVal_int(obj1, &val2);
14733 if (!SWIG_IsOK(ecode2)) {
14734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14735 }
14736 arg2 = static_cast< int >(val2);
14737 {
14738 PyThreadState* __tstate = wxPyBeginAllowThreads();
14739 (arg1)->SetWeight(arg2);
14740 wxPyEndAllowThreads(__tstate);
14741 if (PyErr_Occurred()) SWIG_fail;
14742 }
14743 resultobj = SWIG_Py_Void();
14744 return resultobj;
14745 fail:
14746 return NULL;
14747 }
14748
14749
14750 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14751 PyObject *resultobj = 0;
14752 wxFont *arg1 = (wxFont *) 0 ;
14753 wxString *arg2 = 0 ;
14754 bool result;
14755 void *argp1 = 0 ;
14756 int res1 = 0 ;
14757 bool temp2 = false ;
14758 PyObject * obj0 = 0 ;
14759 PyObject * obj1 = 0 ;
14760 char * kwnames[] = {
14761 (char *) "self",(char *) "faceName", NULL
14762 };
14763
14764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14766 if (!SWIG_IsOK(res1)) {
14767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14768 }
14769 arg1 = reinterpret_cast< wxFont * >(argp1);
14770 {
14771 arg2 = wxString_in_helper(obj1);
14772 if (arg2 == NULL) SWIG_fail;
14773 temp2 = true;
14774 }
14775 {
14776 PyThreadState* __tstate = wxPyBeginAllowThreads();
14777 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14778 wxPyEndAllowThreads(__tstate);
14779 if (PyErr_Occurred()) SWIG_fail;
14780 }
14781 {
14782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14783 }
14784 {
14785 if (temp2)
14786 delete arg2;
14787 }
14788 return resultobj;
14789 fail:
14790 {
14791 if (temp2)
14792 delete arg2;
14793 }
14794 return NULL;
14795 }
14796
14797
14798 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14799 PyObject *resultobj = 0;
14800 wxFont *arg1 = (wxFont *) 0 ;
14801 bool arg2 ;
14802 void *argp1 = 0 ;
14803 int res1 = 0 ;
14804 bool val2 ;
14805 int ecode2 = 0 ;
14806 PyObject * obj0 = 0 ;
14807 PyObject * obj1 = 0 ;
14808 char * kwnames[] = {
14809 (char *) "self",(char *) "underlined", NULL
14810 };
14811
14812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14814 if (!SWIG_IsOK(res1)) {
14815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14816 }
14817 arg1 = reinterpret_cast< wxFont * >(argp1);
14818 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14819 if (!SWIG_IsOK(ecode2)) {
14820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14821 }
14822 arg2 = static_cast< bool >(val2);
14823 {
14824 PyThreadState* __tstate = wxPyBeginAllowThreads();
14825 (arg1)->SetUnderlined(arg2);
14826 wxPyEndAllowThreads(__tstate);
14827 if (PyErr_Occurred()) SWIG_fail;
14828 }
14829 resultobj = SWIG_Py_Void();
14830 return resultobj;
14831 fail:
14832 return NULL;
14833 }
14834
14835
14836 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14837 PyObject *resultobj = 0;
14838 wxFont *arg1 = (wxFont *) 0 ;
14839 wxFontEncoding arg2 ;
14840 void *argp1 = 0 ;
14841 int res1 = 0 ;
14842 int val2 ;
14843 int ecode2 = 0 ;
14844 PyObject * obj0 = 0 ;
14845 PyObject * obj1 = 0 ;
14846 char * kwnames[] = {
14847 (char *) "self",(char *) "encoding", NULL
14848 };
14849
14850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14852 if (!SWIG_IsOK(res1)) {
14853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14854 }
14855 arg1 = reinterpret_cast< wxFont * >(argp1);
14856 ecode2 = SWIG_AsVal_int(obj1, &val2);
14857 if (!SWIG_IsOK(ecode2)) {
14858 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14859 }
14860 arg2 = static_cast< wxFontEncoding >(val2);
14861 {
14862 PyThreadState* __tstate = wxPyBeginAllowThreads();
14863 (arg1)->SetEncoding(arg2);
14864 wxPyEndAllowThreads(__tstate);
14865 if (PyErr_Occurred()) SWIG_fail;
14866 }
14867 resultobj = SWIG_Py_Void();
14868 return resultobj;
14869 fail:
14870 return NULL;
14871 }
14872
14873
14874 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14875 PyObject *resultobj = 0;
14876 wxFont *arg1 = (wxFont *) 0 ;
14877 wxNativeFontInfo *arg2 = 0 ;
14878 void *argp1 = 0 ;
14879 int res1 = 0 ;
14880 void *argp2 = 0 ;
14881 int res2 = 0 ;
14882 PyObject * obj0 = 0 ;
14883 PyObject * obj1 = 0 ;
14884 char * kwnames[] = {
14885 (char *) "self",(char *) "info", NULL
14886 };
14887
14888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14890 if (!SWIG_IsOK(res1)) {
14891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14892 }
14893 arg1 = reinterpret_cast< wxFont * >(argp1);
14894 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14895 if (!SWIG_IsOK(res2)) {
14896 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14897 }
14898 if (!argp2) {
14899 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14900 }
14901 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14902 {
14903 PyThreadState* __tstate = wxPyBeginAllowThreads();
14904 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14905 wxPyEndAllowThreads(__tstate);
14906 if (PyErr_Occurred()) SWIG_fail;
14907 }
14908 resultobj = SWIG_Py_Void();
14909 return resultobj;
14910 fail:
14911 return NULL;
14912 }
14913
14914
14915 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14916 PyObject *resultobj = 0;
14917 wxFont *arg1 = (wxFont *) 0 ;
14918 wxString *arg2 = 0 ;
14919 bool result;
14920 void *argp1 = 0 ;
14921 int res1 = 0 ;
14922 bool temp2 = false ;
14923 PyObject * obj0 = 0 ;
14924 PyObject * obj1 = 0 ;
14925 char * kwnames[] = {
14926 (char *) "self",(char *) "info", NULL
14927 };
14928
14929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14931 if (!SWIG_IsOK(res1)) {
14932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14933 }
14934 arg1 = reinterpret_cast< wxFont * >(argp1);
14935 {
14936 arg2 = wxString_in_helper(obj1);
14937 if (arg2 == NULL) SWIG_fail;
14938 temp2 = true;
14939 }
14940 {
14941 PyThreadState* __tstate = wxPyBeginAllowThreads();
14942 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14943 wxPyEndAllowThreads(__tstate);
14944 if (PyErr_Occurred()) SWIG_fail;
14945 }
14946 {
14947 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14948 }
14949 {
14950 if (temp2)
14951 delete arg2;
14952 }
14953 return resultobj;
14954 fail:
14955 {
14956 if (temp2)
14957 delete arg2;
14958 }
14959 return NULL;
14960 }
14961
14962
14963 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14964 PyObject *resultobj = 0;
14965 wxFont *arg1 = (wxFont *) 0 ;
14966 wxString *arg2 = 0 ;
14967 bool result;
14968 void *argp1 = 0 ;
14969 int res1 = 0 ;
14970 bool temp2 = false ;
14971 PyObject * obj0 = 0 ;
14972 PyObject * obj1 = 0 ;
14973 char * kwnames[] = {
14974 (char *) "self",(char *) "info", NULL
14975 };
14976
14977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14979 if (!SWIG_IsOK(res1)) {
14980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14981 }
14982 arg1 = reinterpret_cast< wxFont * >(argp1);
14983 {
14984 arg2 = wxString_in_helper(obj1);
14985 if (arg2 == NULL) SWIG_fail;
14986 temp2 = true;
14987 }
14988 {
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 {
14995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14996 }
14997 {
14998 if (temp2)
14999 delete arg2;
15000 }
15001 return resultobj;
15002 fail:
15003 {
15004 if (temp2)
15005 delete arg2;
15006 }
15007 return NULL;
15008 }
15009
15010
15011 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15012 PyObject *resultobj = 0;
15013 wxFont *arg1 = (wxFont *) 0 ;
15014 wxString result;
15015 void *argp1 = 0 ;
15016 int res1 = 0 ;
15017 PyObject *swig_obj[1] ;
15018
15019 if (!args) SWIG_fail;
15020 swig_obj[0] = args;
15021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15022 if (!SWIG_IsOK(res1)) {
15023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15024 }
15025 arg1 = reinterpret_cast< wxFont * >(argp1);
15026 {
15027 PyThreadState* __tstate = wxPyBeginAllowThreads();
15028 result = ((wxFont const *)arg1)->GetFamilyString();
15029 wxPyEndAllowThreads(__tstate);
15030 if (PyErr_Occurred()) SWIG_fail;
15031 }
15032 {
15033 #if wxUSE_UNICODE
15034 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15035 #else
15036 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15037 #endif
15038 }
15039 return resultobj;
15040 fail:
15041 return NULL;
15042 }
15043
15044
15045 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15046 PyObject *resultobj = 0;
15047 wxFont *arg1 = (wxFont *) 0 ;
15048 wxString result;
15049 void *argp1 = 0 ;
15050 int res1 = 0 ;
15051 PyObject *swig_obj[1] ;
15052
15053 if (!args) SWIG_fail;
15054 swig_obj[0] = args;
15055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15056 if (!SWIG_IsOK(res1)) {
15057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15058 }
15059 arg1 = reinterpret_cast< wxFont * >(argp1);
15060 {
15061 PyThreadState* __tstate = wxPyBeginAllowThreads();
15062 result = ((wxFont const *)arg1)->GetStyleString();
15063 wxPyEndAllowThreads(__tstate);
15064 if (PyErr_Occurred()) SWIG_fail;
15065 }
15066 {
15067 #if wxUSE_UNICODE
15068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15069 #else
15070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15071 #endif
15072 }
15073 return resultobj;
15074 fail:
15075 return NULL;
15076 }
15077
15078
15079 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15080 PyObject *resultobj = 0;
15081 wxFont *arg1 = (wxFont *) 0 ;
15082 wxString result;
15083 void *argp1 = 0 ;
15084 int res1 = 0 ;
15085 PyObject *swig_obj[1] ;
15086
15087 if (!args) SWIG_fail;
15088 swig_obj[0] = args;
15089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15090 if (!SWIG_IsOK(res1)) {
15091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15092 }
15093 arg1 = reinterpret_cast< wxFont * >(argp1);
15094 {
15095 PyThreadState* __tstate = wxPyBeginAllowThreads();
15096 result = ((wxFont const *)arg1)->GetWeightString();
15097 wxPyEndAllowThreads(__tstate);
15098 if (PyErr_Occurred()) SWIG_fail;
15099 }
15100 {
15101 #if wxUSE_UNICODE
15102 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15103 #else
15104 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15105 #endif
15106 }
15107 return resultobj;
15108 fail:
15109 return NULL;
15110 }
15111
15112
15113 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15114 PyObject *resultobj = 0;
15115 wxFont *arg1 = (wxFont *) 0 ;
15116 bool arg2 = (bool) true ;
15117 void *argp1 = 0 ;
15118 int res1 = 0 ;
15119 bool val2 ;
15120 int ecode2 = 0 ;
15121 PyObject * obj0 = 0 ;
15122 PyObject * obj1 = 0 ;
15123 char * kwnames[] = {
15124 (char *) "self",(char *) "no", NULL
15125 };
15126
15127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15129 if (!SWIG_IsOK(res1)) {
15130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15131 }
15132 arg1 = reinterpret_cast< wxFont * >(argp1);
15133 if (obj1) {
15134 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15135 if (!SWIG_IsOK(ecode2)) {
15136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15137 }
15138 arg2 = static_cast< bool >(val2);
15139 }
15140 {
15141 PyThreadState* __tstate = wxPyBeginAllowThreads();
15142 (arg1)->SetNoAntiAliasing(arg2);
15143 wxPyEndAllowThreads(__tstate);
15144 if (PyErr_Occurred()) SWIG_fail;
15145 }
15146 resultobj = SWIG_Py_Void();
15147 return resultobj;
15148 fail:
15149 return NULL;
15150 }
15151
15152
15153 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15154 PyObject *resultobj = 0;
15155 wxFont *arg1 = (wxFont *) 0 ;
15156 bool result;
15157 void *argp1 = 0 ;
15158 int res1 = 0 ;
15159 PyObject *swig_obj[1] ;
15160
15161 if (!args) SWIG_fail;
15162 swig_obj[0] = args;
15163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15164 if (!SWIG_IsOK(res1)) {
15165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15166 }
15167 arg1 = reinterpret_cast< wxFont * >(argp1);
15168 {
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15171 wxPyEndAllowThreads(__tstate);
15172 if (PyErr_Occurred()) SWIG_fail;
15173 }
15174 {
15175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15176 }
15177 return resultobj;
15178 fail:
15179 return NULL;
15180 }
15181
15182
15183 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15184 PyObject *resultobj = 0;
15185 wxFontEncoding result;
15186
15187 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15188 {
15189 if (!wxPyCheckForApp()) SWIG_fail;
15190 PyThreadState* __tstate = wxPyBeginAllowThreads();
15191 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
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_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15203 PyObject *resultobj = 0;
15204 wxFontEncoding arg1 ;
15205 int val1 ;
15206 int ecode1 = 0 ;
15207 PyObject * obj0 = 0 ;
15208 char * kwnames[] = {
15209 (char *) "encoding", NULL
15210 };
15211
15212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15213 ecode1 = SWIG_AsVal_int(obj0, &val1);
15214 if (!SWIG_IsOK(ecode1)) {
15215 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15216 }
15217 arg1 = static_cast< wxFontEncoding >(val1);
15218 {
15219 if (!wxPyCheckForApp()) SWIG_fail;
15220 PyThreadState* __tstate = wxPyBeginAllowThreads();
15221 wxFont::SetDefaultEncoding(arg1);
15222 wxPyEndAllowThreads(__tstate);
15223 if (PyErr_Occurred()) SWIG_fail;
15224 }
15225 resultobj = SWIG_Py_Void();
15226 return resultobj;
15227 fail:
15228 return NULL;
15229 }
15230
15231
15232 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15233 PyObject *obj;
15234 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15235 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15236 return SWIG_Py_Void();
15237 }
15238
15239 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15240 return SWIG_Python_InitShadowInstance(args);
15241 }
15242
15243 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15244 PyObject *resultobj = 0;
15245 wxPyFontEnumerator *result = 0 ;
15246
15247 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15248 {
15249 if (!wxPyCheckForApp()) SWIG_fail;
15250 PyThreadState* __tstate = wxPyBeginAllowThreads();
15251 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15252 wxPyEndAllowThreads(__tstate);
15253 if (PyErr_Occurred()) SWIG_fail;
15254 }
15255 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15256 return resultobj;
15257 fail:
15258 return NULL;
15259 }
15260
15261
15262 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15263 PyObject *resultobj = 0;
15264 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15265 void *argp1 = 0 ;
15266 int res1 = 0 ;
15267 PyObject *swig_obj[1] ;
15268
15269 if (!args) SWIG_fail;
15270 swig_obj[0] = args;
15271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15272 if (!SWIG_IsOK(res1)) {
15273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15274 }
15275 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15276 {
15277 PyThreadState* __tstate = wxPyBeginAllowThreads();
15278 delete arg1;
15279
15280 wxPyEndAllowThreads(__tstate);
15281 if (PyErr_Occurred()) SWIG_fail;
15282 }
15283 resultobj = SWIG_Py_Void();
15284 return resultobj;
15285 fail:
15286 return NULL;
15287 }
15288
15289
15290 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15291 PyObject *resultobj = 0;
15292 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15293 PyObject *arg2 = (PyObject *) 0 ;
15294 PyObject *arg3 = (PyObject *) 0 ;
15295 bool arg4 ;
15296 void *argp1 = 0 ;
15297 int res1 = 0 ;
15298 bool val4 ;
15299 int ecode4 = 0 ;
15300 PyObject * obj0 = 0 ;
15301 PyObject * obj1 = 0 ;
15302 PyObject * obj2 = 0 ;
15303 PyObject * obj3 = 0 ;
15304 char * kwnames[] = {
15305 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15306 };
15307
15308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15310 if (!SWIG_IsOK(res1)) {
15311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15312 }
15313 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15314 arg2 = obj1;
15315 arg3 = obj2;
15316 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15317 if (!SWIG_IsOK(ecode4)) {
15318 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15319 }
15320 arg4 = static_cast< bool >(val4);
15321 {
15322 PyThreadState* __tstate = wxPyBeginAllowThreads();
15323 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15324 wxPyEndAllowThreads(__tstate);
15325 if (PyErr_Occurred()) SWIG_fail;
15326 }
15327 resultobj = SWIG_Py_Void();
15328 return resultobj;
15329 fail:
15330 return NULL;
15331 }
15332
15333
15334 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15335 PyObject *resultobj = 0;
15336 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15337 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15338 bool arg3 = (bool) false ;
15339 bool result;
15340 void *argp1 = 0 ;
15341 int res1 = 0 ;
15342 int val2 ;
15343 int ecode2 = 0 ;
15344 bool val3 ;
15345 int ecode3 = 0 ;
15346 PyObject * obj0 = 0 ;
15347 PyObject * obj1 = 0 ;
15348 PyObject * obj2 = 0 ;
15349 char * kwnames[] = {
15350 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15351 };
15352
15353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15355 if (!SWIG_IsOK(res1)) {
15356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15357 }
15358 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15359 if (obj1) {
15360 ecode2 = SWIG_AsVal_int(obj1, &val2);
15361 if (!SWIG_IsOK(ecode2)) {
15362 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15363 }
15364 arg2 = static_cast< wxFontEncoding >(val2);
15365 }
15366 if (obj2) {
15367 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15368 if (!SWIG_IsOK(ecode3)) {
15369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15370 }
15371 arg3 = static_cast< bool >(val3);
15372 }
15373 {
15374 PyThreadState* __tstate = wxPyBeginAllowThreads();
15375 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15376 wxPyEndAllowThreads(__tstate);
15377 if (PyErr_Occurred()) SWIG_fail;
15378 }
15379 {
15380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15381 }
15382 return resultobj;
15383 fail:
15384 return NULL;
15385 }
15386
15387
15388 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15389 PyObject *resultobj = 0;
15390 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15391 wxString const &arg2_defvalue = wxPyEmptyString ;
15392 wxString *arg2 = (wxString *) &arg2_defvalue ;
15393 bool result;
15394 void *argp1 = 0 ;
15395 int res1 = 0 ;
15396 bool temp2 = false ;
15397 PyObject * obj0 = 0 ;
15398 PyObject * obj1 = 0 ;
15399 char * kwnames[] = {
15400 (char *) "self",(char *) "facename", NULL
15401 };
15402
15403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15405 if (!SWIG_IsOK(res1)) {
15406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15407 }
15408 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15409 if (obj1) {
15410 {
15411 arg2 = wxString_in_helper(obj1);
15412 if (arg2 == NULL) SWIG_fail;
15413 temp2 = true;
15414 }
15415 }
15416 {
15417 PyThreadState* __tstate = wxPyBeginAllowThreads();
15418 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15419 wxPyEndAllowThreads(__tstate);
15420 if (PyErr_Occurred()) SWIG_fail;
15421 }
15422 {
15423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15424 }
15425 {
15426 if (temp2)
15427 delete arg2;
15428 }
15429 return resultobj;
15430 fail:
15431 {
15432 if (temp2)
15433 delete arg2;
15434 }
15435 return NULL;
15436 }
15437
15438
15439 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15440 PyObject *resultobj = 0;
15441 PyObject *result = 0 ;
15442
15443 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15444 {
15445 PyThreadState* __tstate = wxPyBeginAllowThreads();
15446 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15447 wxPyEndAllowThreads(__tstate);
15448 if (PyErr_Occurred()) SWIG_fail;
15449 }
15450 resultobj = result;
15451 return resultobj;
15452 fail:
15453 return NULL;
15454 }
15455
15456
15457 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15458 PyObject *resultobj = 0;
15459 PyObject *result = 0 ;
15460
15461 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15462 {
15463 PyThreadState* __tstate = wxPyBeginAllowThreads();
15464 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15465 wxPyEndAllowThreads(__tstate);
15466 if (PyErr_Occurred()) SWIG_fail;
15467 }
15468 resultobj = result;
15469 return resultobj;
15470 fail:
15471 return NULL;
15472 }
15473
15474
15475 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15476 PyObject *resultobj = 0;
15477 wxString *arg1 = 0 ;
15478 bool result;
15479 bool temp1 = false ;
15480 PyObject * obj0 = 0 ;
15481 char * kwnames[] = {
15482 (char *) "str", NULL
15483 };
15484
15485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15486 {
15487 arg1 = wxString_in_helper(obj0);
15488 if (arg1 == NULL) SWIG_fail;
15489 temp1 = true;
15490 }
15491 {
15492 PyThreadState* __tstate = wxPyBeginAllowThreads();
15493 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15494 wxPyEndAllowThreads(__tstate);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 {
15498 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15499 }
15500 {
15501 if (temp1)
15502 delete arg1;
15503 }
15504 return resultobj;
15505 fail:
15506 {
15507 if (temp1)
15508 delete arg1;
15509 }
15510 return NULL;
15511 }
15512
15513
15514 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15515 PyObject *obj;
15516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15517 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15518 return SWIG_Py_Void();
15519 }
15520
15521 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15522 return SWIG_Python_InitShadowInstance(args);
15523 }
15524
15525 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15526 PyObject *resultobj = 0;
15527 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15528 int arg2 ;
15529 void *argp1 = 0 ;
15530 int res1 = 0 ;
15531 int val2 ;
15532 int ecode2 = 0 ;
15533 PyObject *swig_obj[2] ;
15534
15535 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15537 if (!SWIG_IsOK(res1)) {
15538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15539 }
15540 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15541 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15542 if (!SWIG_IsOK(ecode2)) {
15543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15544 }
15545 arg2 = static_cast< int >(val2);
15546 if (arg1) (arg1)->Language = arg2;
15547
15548 resultobj = SWIG_Py_Void();
15549 return resultobj;
15550 fail:
15551 return NULL;
15552 }
15553
15554
15555 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15556 PyObject *resultobj = 0;
15557 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15558 int result;
15559 void *argp1 = 0 ;
15560 int res1 = 0 ;
15561 PyObject *swig_obj[1] ;
15562
15563 if (!args) SWIG_fail;
15564 swig_obj[0] = args;
15565 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15566 if (!SWIG_IsOK(res1)) {
15567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15568 }
15569 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15570 result = (int) ((arg1)->Language);
15571 resultobj = SWIG_From_int(static_cast< int >(result));
15572 return resultobj;
15573 fail:
15574 return NULL;
15575 }
15576
15577
15578 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15579 PyObject *resultobj = 0;
15580 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15581 wxString *arg2 = (wxString *) 0 ;
15582 void *argp1 = 0 ;
15583 int res1 = 0 ;
15584 bool temp2 = false ;
15585 PyObject *swig_obj[2] ;
15586
15587 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15589 if (!SWIG_IsOK(res1)) {
15590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15591 }
15592 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15593 {
15594 arg2 = wxString_in_helper(swig_obj[1]);
15595 if (arg2 == NULL) SWIG_fail;
15596 temp2 = true;
15597 }
15598 if (arg1) (arg1)->CanonicalName = *arg2;
15599
15600 resultobj = SWIG_Py_Void();
15601 {
15602 if (temp2)
15603 delete arg2;
15604 }
15605 return resultobj;
15606 fail:
15607 {
15608 if (temp2)
15609 delete arg2;
15610 }
15611 return NULL;
15612 }
15613
15614
15615 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15616 PyObject *resultobj = 0;
15617 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15618 wxString *result = 0 ;
15619 void *argp1 = 0 ;
15620 int res1 = 0 ;
15621 PyObject *swig_obj[1] ;
15622
15623 if (!args) SWIG_fail;
15624 swig_obj[0] = args;
15625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15626 if (!SWIG_IsOK(res1)) {
15627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15628 }
15629 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15630 result = (wxString *)& ((arg1)->CanonicalName);
15631 {
15632 #if wxUSE_UNICODE
15633 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15634 #else
15635 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15636 #endif
15637 }
15638 return resultobj;
15639 fail:
15640 return NULL;
15641 }
15642
15643
15644 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15645 PyObject *resultobj = 0;
15646 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15647 wxString *arg2 = (wxString *) 0 ;
15648 void *argp1 = 0 ;
15649 int res1 = 0 ;
15650 bool temp2 = false ;
15651 PyObject *swig_obj[2] ;
15652
15653 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15655 if (!SWIG_IsOK(res1)) {
15656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15657 }
15658 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15659 {
15660 arg2 = wxString_in_helper(swig_obj[1]);
15661 if (arg2 == NULL) SWIG_fail;
15662 temp2 = true;
15663 }
15664 if (arg1) (arg1)->Description = *arg2;
15665
15666 resultobj = SWIG_Py_Void();
15667 {
15668 if (temp2)
15669 delete arg2;
15670 }
15671 return resultobj;
15672 fail:
15673 {
15674 if (temp2)
15675 delete arg2;
15676 }
15677 return NULL;
15678 }
15679
15680
15681 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15682 PyObject *resultobj = 0;
15683 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15684 wxString *result = 0 ;
15685 void *argp1 = 0 ;
15686 int res1 = 0 ;
15687 PyObject *swig_obj[1] ;
15688
15689 if (!args) SWIG_fail;
15690 swig_obj[0] = args;
15691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15692 if (!SWIG_IsOK(res1)) {
15693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15694 }
15695 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15696 result = (wxString *)& ((arg1)->Description);
15697 {
15698 #if wxUSE_UNICODE
15699 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15700 #else
15701 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15702 #endif
15703 }
15704 return resultobj;
15705 fail:
15706 return NULL;
15707 }
15708
15709
15710 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15711 PyObject *obj;
15712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15713 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15714 return SWIG_Py_Void();
15715 }
15716
15717 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15718 PyObject *resultobj = 0;
15719 int arg1 = (int) -1 ;
15720 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15721 wxLocale *result = 0 ;
15722 int val1 ;
15723 int ecode1 = 0 ;
15724 int val2 ;
15725 int ecode2 = 0 ;
15726 PyObject * obj0 = 0 ;
15727 PyObject * obj1 = 0 ;
15728 char * kwnames[] = {
15729 (char *) "language",(char *) "flags", NULL
15730 };
15731
15732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15733 if (obj0) {
15734 ecode1 = SWIG_AsVal_int(obj0, &val1);
15735 if (!SWIG_IsOK(ecode1)) {
15736 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15737 }
15738 arg1 = static_cast< int >(val1);
15739 }
15740 if (obj1) {
15741 ecode2 = SWIG_AsVal_int(obj1, &val2);
15742 if (!SWIG_IsOK(ecode2)) {
15743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15744 }
15745 arg2 = static_cast< int >(val2);
15746 }
15747 {
15748 PyThreadState* __tstate = wxPyBeginAllowThreads();
15749 result = (wxLocale *)new_wxLocale(arg1,arg2);
15750 wxPyEndAllowThreads(__tstate);
15751 if (PyErr_Occurred()) SWIG_fail;
15752 }
15753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15754 return resultobj;
15755 fail:
15756 return NULL;
15757 }
15758
15759
15760 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15761 PyObject *resultobj = 0;
15762 wxLocale *arg1 = (wxLocale *) 0 ;
15763 void *argp1 = 0 ;
15764 int res1 = 0 ;
15765 PyObject *swig_obj[1] ;
15766
15767 if (!args) SWIG_fail;
15768 swig_obj[0] = args;
15769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15770 if (!SWIG_IsOK(res1)) {
15771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15772 }
15773 arg1 = reinterpret_cast< wxLocale * >(argp1);
15774 {
15775 PyThreadState* __tstate = wxPyBeginAllowThreads();
15776 delete arg1;
15777
15778 wxPyEndAllowThreads(__tstate);
15779 if (PyErr_Occurred()) SWIG_fail;
15780 }
15781 resultobj = SWIG_Py_Void();
15782 return resultobj;
15783 fail:
15784 return NULL;
15785 }
15786
15787
15788 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15789 PyObject *resultobj = 0;
15790 wxLocale *arg1 = (wxLocale *) 0 ;
15791 wxString *arg2 = 0 ;
15792 wxString const &arg3_defvalue = wxPyEmptyString ;
15793 wxString *arg3 = (wxString *) &arg3_defvalue ;
15794 wxString const &arg4_defvalue = wxPyEmptyString ;
15795 wxString *arg4 = (wxString *) &arg4_defvalue ;
15796 bool arg5 = (bool) true ;
15797 bool arg6 = (bool) false ;
15798 bool result;
15799 void *argp1 = 0 ;
15800 int res1 = 0 ;
15801 bool temp2 = false ;
15802 bool temp3 = false ;
15803 bool temp4 = false ;
15804 bool val5 ;
15805 int ecode5 = 0 ;
15806 bool val6 ;
15807 int ecode6 = 0 ;
15808 PyObject * obj0 = 0 ;
15809 PyObject * obj1 = 0 ;
15810 PyObject * obj2 = 0 ;
15811 PyObject * obj3 = 0 ;
15812 PyObject * obj4 = 0 ;
15813 PyObject * obj5 = 0 ;
15814 char * kwnames[] = {
15815 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15816 };
15817
15818 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15819 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15820 if (!SWIG_IsOK(res1)) {
15821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15822 }
15823 arg1 = reinterpret_cast< wxLocale * >(argp1);
15824 {
15825 arg2 = wxString_in_helper(obj1);
15826 if (arg2 == NULL) SWIG_fail;
15827 temp2 = true;
15828 }
15829 if (obj2) {
15830 {
15831 arg3 = wxString_in_helper(obj2);
15832 if (arg3 == NULL) SWIG_fail;
15833 temp3 = true;
15834 }
15835 }
15836 if (obj3) {
15837 {
15838 arg4 = wxString_in_helper(obj3);
15839 if (arg4 == NULL) SWIG_fail;
15840 temp4 = true;
15841 }
15842 }
15843 if (obj4) {
15844 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15845 if (!SWIG_IsOK(ecode5)) {
15846 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15847 }
15848 arg5 = static_cast< bool >(val5);
15849 }
15850 if (obj5) {
15851 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15852 if (!SWIG_IsOK(ecode6)) {
15853 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15854 }
15855 arg6 = static_cast< bool >(val6);
15856 }
15857 {
15858 PyThreadState* __tstate = wxPyBeginAllowThreads();
15859 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15860 wxPyEndAllowThreads(__tstate);
15861 if (PyErr_Occurred()) SWIG_fail;
15862 }
15863 {
15864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15865 }
15866 {
15867 if (temp2)
15868 delete arg2;
15869 }
15870 {
15871 if (temp3)
15872 delete arg3;
15873 }
15874 {
15875 if (temp4)
15876 delete arg4;
15877 }
15878 return resultobj;
15879 fail:
15880 {
15881 if (temp2)
15882 delete arg2;
15883 }
15884 {
15885 if (temp3)
15886 delete arg3;
15887 }
15888 {
15889 if (temp4)
15890 delete arg4;
15891 }
15892 return NULL;
15893 }
15894
15895
15896 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15897 PyObject *resultobj = 0;
15898 wxLocale *arg1 = (wxLocale *) 0 ;
15899 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15900 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15901 bool result;
15902 void *argp1 = 0 ;
15903 int res1 = 0 ;
15904 int val2 ;
15905 int ecode2 = 0 ;
15906 int val3 ;
15907 int ecode3 = 0 ;
15908 PyObject * obj0 = 0 ;
15909 PyObject * obj1 = 0 ;
15910 PyObject * obj2 = 0 ;
15911 char * kwnames[] = {
15912 (char *) "self",(char *) "language",(char *) "flags", NULL
15913 };
15914
15915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15917 if (!SWIG_IsOK(res1)) {
15918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15919 }
15920 arg1 = reinterpret_cast< wxLocale * >(argp1);
15921 if (obj1) {
15922 ecode2 = SWIG_AsVal_int(obj1, &val2);
15923 if (!SWIG_IsOK(ecode2)) {
15924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15925 }
15926 arg2 = static_cast< int >(val2);
15927 }
15928 if (obj2) {
15929 ecode3 = SWIG_AsVal_int(obj2, &val3);
15930 if (!SWIG_IsOK(ecode3)) {
15931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15932 }
15933 arg3 = static_cast< int >(val3);
15934 }
15935 {
15936 PyThreadState* __tstate = wxPyBeginAllowThreads();
15937 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15938 wxPyEndAllowThreads(__tstate);
15939 if (PyErr_Occurred()) SWIG_fail;
15940 }
15941 {
15942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15943 }
15944 return resultobj;
15945 fail:
15946 return NULL;
15947 }
15948
15949
15950 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15951 PyObject *resultobj = 0;
15952 int result;
15953
15954 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15955 {
15956 PyThreadState* __tstate = wxPyBeginAllowThreads();
15957 result = (int)wxLocale::GetSystemLanguage();
15958 wxPyEndAllowThreads(__tstate);
15959 if (PyErr_Occurred()) SWIG_fail;
15960 }
15961 resultobj = SWIG_From_int(static_cast< int >(result));
15962 return resultobj;
15963 fail:
15964 return NULL;
15965 }
15966
15967
15968 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15969 PyObject *resultobj = 0;
15970 wxFontEncoding result;
15971
15972 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15973 {
15974 PyThreadState* __tstate = wxPyBeginAllowThreads();
15975 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15976 wxPyEndAllowThreads(__tstate);
15977 if (PyErr_Occurred()) SWIG_fail;
15978 }
15979 resultobj = SWIG_From_int(static_cast< int >(result));
15980 return resultobj;
15981 fail:
15982 return NULL;
15983 }
15984
15985
15986 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15987 PyObject *resultobj = 0;
15988 wxString result;
15989
15990 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15991 {
15992 PyThreadState* __tstate = wxPyBeginAllowThreads();
15993 result = wxLocale::GetSystemEncodingName();
15994 wxPyEndAllowThreads(__tstate);
15995 if (PyErr_Occurred()) SWIG_fail;
15996 }
15997 {
15998 #if wxUSE_UNICODE
15999 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16000 #else
16001 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16002 #endif
16003 }
16004 return resultobj;
16005 fail:
16006 return NULL;
16007 }
16008
16009
16010 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16011 PyObject *resultobj = 0;
16012 wxLocale *arg1 = (wxLocale *) 0 ;
16013 bool result;
16014 void *argp1 = 0 ;
16015 int res1 = 0 ;
16016 PyObject *swig_obj[1] ;
16017
16018 if (!args) SWIG_fail;
16019 swig_obj[0] = args;
16020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16021 if (!SWIG_IsOK(res1)) {
16022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16023 }
16024 arg1 = reinterpret_cast< wxLocale * >(argp1);
16025 {
16026 PyThreadState* __tstate = wxPyBeginAllowThreads();
16027 result = (bool)((wxLocale const *)arg1)->IsOk();
16028 wxPyEndAllowThreads(__tstate);
16029 if (PyErr_Occurred()) SWIG_fail;
16030 }
16031 {
16032 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16033 }
16034 return resultobj;
16035 fail:
16036 return NULL;
16037 }
16038
16039
16040 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16041 PyObject *resultobj = 0;
16042 wxLocale *arg1 = (wxLocale *) 0 ;
16043 wxString result;
16044 void *argp1 = 0 ;
16045 int res1 = 0 ;
16046 PyObject *swig_obj[1] ;
16047
16048 if (!args) SWIG_fail;
16049 swig_obj[0] = args;
16050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16051 if (!SWIG_IsOK(res1)) {
16052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16053 }
16054 arg1 = reinterpret_cast< wxLocale * >(argp1);
16055 {
16056 PyThreadState* __tstate = wxPyBeginAllowThreads();
16057 result = ((wxLocale const *)arg1)->GetLocale();
16058 wxPyEndAllowThreads(__tstate);
16059 if (PyErr_Occurred()) SWIG_fail;
16060 }
16061 {
16062 #if wxUSE_UNICODE
16063 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16064 #else
16065 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16066 #endif
16067 }
16068 return resultobj;
16069 fail:
16070 return NULL;
16071 }
16072
16073
16074 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16075 PyObject *resultobj = 0;
16076 wxLocale *arg1 = (wxLocale *) 0 ;
16077 int result;
16078 void *argp1 = 0 ;
16079 int res1 = 0 ;
16080 PyObject *swig_obj[1] ;
16081
16082 if (!args) SWIG_fail;
16083 swig_obj[0] = args;
16084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16085 if (!SWIG_IsOK(res1)) {
16086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16087 }
16088 arg1 = reinterpret_cast< wxLocale * >(argp1);
16089 {
16090 PyThreadState* __tstate = wxPyBeginAllowThreads();
16091 result = (int)((wxLocale const *)arg1)->GetLanguage();
16092 wxPyEndAllowThreads(__tstate);
16093 if (PyErr_Occurred()) SWIG_fail;
16094 }
16095 resultobj = SWIG_From_int(static_cast< int >(result));
16096 return resultobj;
16097 fail:
16098 return NULL;
16099 }
16100
16101
16102 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16103 PyObject *resultobj = 0;
16104 wxLocale *arg1 = (wxLocale *) 0 ;
16105 wxString result;
16106 void *argp1 = 0 ;
16107 int res1 = 0 ;
16108 PyObject *swig_obj[1] ;
16109
16110 if (!args) SWIG_fail;
16111 swig_obj[0] = args;
16112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16113 if (!SWIG_IsOK(res1)) {
16114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16115 }
16116 arg1 = reinterpret_cast< wxLocale * >(argp1);
16117 {
16118 PyThreadState* __tstate = wxPyBeginAllowThreads();
16119 result = ((wxLocale const *)arg1)->GetSysName();
16120 wxPyEndAllowThreads(__tstate);
16121 if (PyErr_Occurred()) SWIG_fail;
16122 }
16123 {
16124 #if wxUSE_UNICODE
16125 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16126 #else
16127 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16128 #endif
16129 }
16130 return resultobj;
16131 fail:
16132 return NULL;
16133 }
16134
16135
16136 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16137 PyObject *resultobj = 0;
16138 wxLocale *arg1 = (wxLocale *) 0 ;
16139 wxString result;
16140 void *argp1 = 0 ;
16141 int res1 = 0 ;
16142 PyObject *swig_obj[1] ;
16143
16144 if (!args) SWIG_fail;
16145 swig_obj[0] = args;
16146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16147 if (!SWIG_IsOK(res1)) {
16148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16149 }
16150 arg1 = reinterpret_cast< wxLocale * >(argp1);
16151 {
16152 PyThreadState* __tstate = wxPyBeginAllowThreads();
16153 result = ((wxLocale const *)arg1)->GetCanonicalName();
16154 wxPyEndAllowThreads(__tstate);
16155 if (PyErr_Occurred()) SWIG_fail;
16156 }
16157 {
16158 #if wxUSE_UNICODE
16159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16160 #else
16161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16162 #endif
16163 }
16164 return resultobj;
16165 fail:
16166 return NULL;
16167 }
16168
16169
16170 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16171 PyObject *resultobj = 0;
16172 wxString *arg1 = 0 ;
16173 bool temp1 = false ;
16174 PyObject * obj0 = 0 ;
16175 char * kwnames[] = {
16176 (char *) "prefix", NULL
16177 };
16178
16179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16180 {
16181 arg1 = wxString_in_helper(obj0);
16182 if (arg1 == NULL) SWIG_fail;
16183 temp1 = true;
16184 }
16185 {
16186 PyThreadState* __tstate = wxPyBeginAllowThreads();
16187 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16188 wxPyEndAllowThreads(__tstate);
16189 if (PyErr_Occurred()) SWIG_fail;
16190 }
16191 resultobj = SWIG_Py_Void();
16192 {
16193 if (temp1)
16194 delete arg1;
16195 }
16196 return resultobj;
16197 fail:
16198 {
16199 if (temp1)
16200 delete arg1;
16201 }
16202 return NULL;
16203 }
16204
16205
16206 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16207 PyObject *resultobj = 0;
16208 wxLocale *arg1 = (wxLocale *) 0 ;
16209 wxString *arg2 = 0 ;
16210 bool result;
16211 void *argp1 = 0 ;
16212 int res1 = 0 ;
16213 bool temp2 = false ;
16214 PyObject * obj0 = 0 ;
16215 PyObject * obj1 = 0 ;
16216 char * kwnames[] = {
16217 (char *) "self",(char *) "szDomain", NULL
16218 };
16219
16220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16222 if (!SWIG_IsOK(res1)) {
16223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16224 }
16225 arg1 = reinterpret_cast< wxLocale * >(argp1);
16226 {
16227 arg2 = wxString_in_helper(obj1);
16228 if (arg2 == NULL) SWIG_fail;
16229 temp2 = true;
16230 }
16231 {
16232 PyThreadState* __tstate = wxPyBeginAllowThreads();
16233 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16234 wxPyEndAllowThreads(__tstate);
16235 if (PyErr_Occurred()) SWIG_fail;
16236 }
16237 {
16238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16239 }
16240 {
16241 if (temp2)
16242 delete arg2;
16243 }
16244 return resultobj;
16245 fail:
16246 {
16247 if (temp2)
16248 delete arg2;
16249 }
16250 return NULL;
16251 }
16252
16253
16254 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16255 PyObject *resultobj = 0;
16256 int arg1 ;
16257 bool result;
16258 int val1 ;
16259 int ecode1 = 0 ;
16260 PyObject * obj0 = 0 ;
16261 char * kwnames[] = {
16262 (char *) "lang", NULL
16263 };
16264
16265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16266 ecode1 = SWIG_AsVal_int(obj0, &val1);
16267 if (!SWIG_IsOK(ecode1)) {
16268 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16269 }
16270 arg1 = static_cast< int >(val1);
16271 {
16272 PyThreadState* __tstate = wxPyBeginAllowThreads();
16273 result = (bool)wxLocale::IsAvailable(arg1);
16274 wxPyEndAllowThreads(__tstate);
16275 if (PyErr_Occurred()) SWIG_fail;
16276 }
16277 {
16278 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16279 }
16280 return resultobj;
16281 fail:
16282 return NULL;
16283 }
16284
16285
16286 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16287 PyObject *resultobj = 0;
16288 wxLocale *arg1 = (wxLocale *) 0 ;
16289 wxString *arg2 = 0 ;
16290 bool result;
16291 void *argp1 = 0 ;
16292 int res1 = 0 ;
16293 bool temp2 = false ;
16294 PyObject * obj0 = 0 ;
16295 PyObject * obj1 = 0 ;
16296 char * kwnames[] = {
16297 (char *) "self",(char *) "szDomain", NULL
16298 };
16299
16300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16302 if (!SWIG_IsOK(res1)) {
16303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16304 }
16305 arg1 = reinterpret_cast< wxLocale * >(argp1);
16306 {
16307 arg2 = wxString_in_helper(obj1);
16308 if (arg2 == NULL) SWIG_fail;
16309 temp2 = true;
16310 }
16311 {
16312 PyThreadState* __tstate = wxPyBeginAllowThreads();
16313 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16314 wxPyEndAllowThreads(__tstate);
16315 if (PyErr_Occurred()) SWIG_fail;
16316 }
16317 {
16318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16319 }
16320 {
16321 if (temp2)
16322 delete arg2;
16323 }
16324 return resultobj;
16325 fail:
16326 {
16327 if (temp2)
16328 delete arg2;
16329 }
16330 return NULL;
16331 }
16332
16333
16334 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16335 PyObject *resultobj = 0;
16336 int arg1 ;
16337 wxLanguageInfo *result = 0 ;
16338 int val1 ;
16339 int ecode1 = 0 ;
16340 PyObject * obj0 = 0 ;
16341 char * kwnames[] = {
16342 (char *) "lang", NULL
16343 };
16344
16345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16346 ecode1 = SWIG_AsVal_int(obj0, &val1);
16347 if (!SWIG_IsOK(ecode1)) {
16348 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16349 }
16350 arg1 = static_cast< int >(val1);
16351 {
16352 PyThreadState* __tstate = wxPyBeginAllowThreads();
16353 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16354 wxPyEndAllowThreads(__tstate);
16355 if (PyErr_Occurred()) SWIG_fail;
16356 }
16357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16358 return resultobj;
16359 fail:
16360 return NULL;
16361 }
16362
16363
16364 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16365 PyObject *resultobj = 0;
16366 int arg1 ;
16367 wxString result;
16368 int val1 ;
16369 int ecode1 = 0 ;
16370 PyObject * obj0 = 0 ;
16371 char * kwnames[] = {
16372 (char *) "lang", NULL
16373 };
16374
16375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16376 ecode1 = SWIG_AsVal_int(obj0, &val1);
16377 if (!SWIG_IsOK(ecode1)) {
16378 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16379 }
16380 arg1 = static_cast< int >(val1);
16381 {
16382 PyThreadState* __tstate = wxPyBeginAllowThreads();
16383 result = wxLocale::GetLanguageName(arg1);
16384 wxPyEndAllowThreads(__tstate);
16385 if (PyErr_Occurred()) SWIG_fail;
16386 }
16387 {
16388 #if wxUSE_UNICODE
16389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16390 #else
16391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16392 #endif
16393 }
16394 return resultobj;
16395 fail:
16396 return NULL;
16397 }
16398
16399
16400 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16401 PyObject *resultobj = 0;
16402 wxString *arg1 = 0 ;
16403 wxLanguageInfo *result = 0 ;
16404 bool temp1 = false ;
16405 PyObject * obj0 = 0 ;
16406 char * kwnames[] = {
16407 (char *) "locale", NULL
16408 };
16409
16410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16411 {
16412 arg1 = wxString_in_helper(obj0);
16413 if (arg1 == NULL) SWIG_fail;
16414 temp1 = true;
16415 }
16416 {
16417 PyThreadState* __tstate = wxPyBeginAllowThreads();
16418 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16419 wxPyEndAllowThreads(__tstate);
16420 if (PyErr_Occurred()) SWIG_fail;
16421 }
16422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16423 {
16424 if (temp1)
16425 delete arg1;
16426 }
16427 return resultobj;
16428 fail:
16429 {
16430 if (temp1)
16431 delete arg1;
16432 }
16433 return NULL;
16434 }
16435
16436
16437 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16438 PyObject *resultobj = 0;
16439 wxLanguageInfo *arg1 = 0 ;
16440 void *argp1 = 0 ;
16441 int res1 = 0 ;
16442 PyObject * obj0 = 0 ;
16443 char * kwnames[] = {
16444 (char *) "info", NULL
16445 };
16446
16447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16448 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16449 if (!SWIG_IsOK(res1)) {
16450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16451 }
16452 if (!argp1) {
16453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16454 }
16455 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16456 {
16457 PyThreadState* __tstate = wxPyBeginAllowThreads();
16458 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16459 wxPyEndAllowThreads(__tstate);
16460 if (PyErr_Occurred()) SWIG_fail;
16461 }
16462 resultobj = SWIG_Py_Void();
16463 return resultobj;
16464 fail:
16465 return NULL;
16466 }
16467
16468
16469 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16470 PyObject *resultobj = 0;
16471 wxLocale *arg1 = (wxLocale *) 0 ;
16472 wxString *arg2 = 0 ;
16473 wxString const &arg3_defvalue = wxPyEmptyString ;
16474 wxString *arg3 = (wxString *) &arg3_defvalue ;
16475 wxString result;
16476 void *argp1 = 0 ;
16477 int res1 = 0 ;
16478 bool temp2 = false ;
16479 bool temp3 = false ;
16480 PyObject * obj0 = 0 ;
16481 PyObject * obj1 = 0 ;
16482 PyObject * obj2 = 0 ;
16483 char * kwnames[] = {
16484 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16485 };
16486
16487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16489 if (!SWIG_IsOK(res1)) {
16490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16491 }
16492 arg1 = reinterpret_cast< wxLocale * >(argp1);
16493 {
16494 arg2 = wxString_in_helper(obj1);
16495 if (arg2 == NULL) SWIG_fail;
16496 temp2 = true;
16497 }
16498 if (obj2) {
16499 {
16500 arg3 = wxString_in_helper(obj2);
16501 if (arg3 == NULL) SWIG_fail;
16502 temp3 = true;
16503 }
16504 }
16505 {
16506 PyThreadState* __tstate = wxPyBeginAllowThreads();
16507 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16508 wxPyEndAllowThreads(__tstate);
16509 if (PyErr_Occurred()) SWIG_fail;
16510 }
16511 {
16512 #if wxUSE_UNICODE
16513 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16514 #else
16515 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16516 #endif
16517 }
16518 {
16519 if (temp2)
16520 delete arg2;
16521 }
16522 {
16523 if (temp3)
16524 delete arg3;
16525 }
16526 return resultobj;
16527 fail:
16528 {
16529 if (temp2)
16530 delete arg2;
16531 }
16532 {
16533 if (temp3)
16534 delete arg3;
16535 }
16536 return NULL;
16537 }
16538
16539
16540 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16541 PyObject *resultobj = 0;
16542 wxLocale *arg1 = (wxLocale *) 0 ;
16543 wxString *result = 0 ;
16544 void *argp1 = 0 ;
16545 int res1 = 0 ;
16546 PyObject *swig_obj[1] ;
16547
16548 if (!args) SWIG_fail;
16549 swig_obj[0] = args;
16550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16551 if (!SWIG_IsOK(res1)) {
16552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16553 }
16554 arg1 = reinterpret_cast< wxLocale * >(argp1);
16555 {
16556 PyThreadState* __tstate = wxPyBeginAllowThreads();
16557 {
16558 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16559 result = (wxString *) &_result_ref;
16560 }
16561 wxPyEndAllowThreads(__tstate);
16562 if (PyErr_Occurred()) SWIG_fail;
16563 }
16564 {
16565 #if wxUSE_UNICODE
16566 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16567 #else
16568 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16569 #endif
16570 }
16571 return resultobj;
16572 fail:
16573 return NULL;
16574 }
16575
16576
16577 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16578 PyObject *obj;
16579 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16580 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16581 return SWIG_Py_Void();
16582 }
16583
16584 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16585 return SWIG_Python_InitShadowInstance(args);
16586 }
16587
16588 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16589 PyObject *resultobj = 0;
16590 int arg1 = (int) -1 ;
16591 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16592 wxPyLocale *result = 0 ;
16593 int val1 ;
16594 int ecode1 = 0 ;
16595 int val2 ;
16596 int ecode2 = 0 ;
16597 PyObject * obj0 = 0 ;
16598 PyObject * obj1 = 0 ;
16599 char * kwnames[] = {
16600 (char *) "language",(char *) "flags", NULL
16601 };
16602
16603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16604 if (obj0) {
16605 ecode1 = SWIG_AsVal_int(obj0, &val1);
16606 if (!SWIG_IsOK(ecode1)) {
16607 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16608 }
16609 arg1 = static_cast< int >(val1);
16610 }
16611 if (obj1) {
16612 ecode2 = SWIG_AsVal_int(obj1, &val2);
16613 if (!SWIG_IsOK(ecode2)) {
16614 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16615 }
16616 arg2 = static_cast< int >(val2);
16617 }
16618 {
16619 PyThreadState* __tstate = wxPyBeginAllowThreads();
16620 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16621 wxPyEndAllowThreads(__tstate);
16622 if (PyErr_Occurred()) SWIG_fail;
16623 }
16624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16625 return resultobj;
16626 fail:
16627 return NULL;
16628 }
16629
16630
16631 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16632 PyObject *resultobj = 0;
16633 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16634 void *argp1 = 0 ;
16635 int res1 = 0 ;
16636 PyObject *swig_obj[1] ;
16637
16638 if (!args) SWIG_fail;
16639 swig_obj[0] = args;
16640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16641 if (!SWIG_IsOK(res1)) {
16642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16643 }
16644 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16645 {
16646 PyThreadState* __tstate = wxPyBeginAllowThreads();
16647 delete arg1;
16648
16649 wxPyEndAllowThreads(__tstate);
16650 if (PyErr_Occurred()) SWIG_fail;
16651 }
16652 resultobj = SWIG_Py_Void();
16653 return resultobj;
16654 fail:
16655 return NULL;
16656 }
16657
16658
16659 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16660 PyObject *resultobj = 0;
16661 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16662 PyObject *arg2 = (PyObject *) 0 ;
16663 PyObject *arg3 = (PyObject *) 0 ;
16664 void *argp1 = 0 ;
16665 int res1 = 0 ;
16666 PyObject * obj0 = 0 ;
16667 PyObject * obj1 = 0 ;
16668 PyObject * obj2 = 0 ;
16669 char * kwnames[] = {
16670 (char *) "self",(char *) "self",(char *) "_class", NULL
16671 };
16672
16673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16675 if (!SWIG_IsOK(res1)) {
16676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16677 }
16678 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16679 arg2 = obj1;
16680 arg3 = obj2;
16681 {
16682 PyThreadState* __tstate = wxPyBeginAllowThreads();
16683 (arg1)->_setCallbackInfo(arg2,arg3);
16684 wxPyEndAllowThreads(__tstate);
16685 if (PyErr_Occurred()) SWIG_fail;
16686 }
16687 resultobj = SWIG_Py_Void();
16688 return resultobj;
16689 fail:
16690 return NULL;
16691 }
16692
16693
16694 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16695 PyObject *resultobj = 0;
16696 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16697 wxChar *arg2 = (wxChar *) 0 ;
16698 wxChar *arg3 = (wxChar *) NULL ;
16699 wxChar *result = 0 ;
16700 void *argp1 = 0 ;
16701 int res1 = 0 ;
16702 void *argp2 = 0 ;
16703 int res2 = 0 ;
16704 void *argp3 = 0 ;
16705 int res3 = 0 ;
16706 PyObject * obj0 = 0 ;
16707 PyObject * obj1 = 0 ;
16708 PyObject * obj2 = 0 ;
16709 char * kwnames[] = {
16710 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16711 };
16712
16713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16715 if (!SWIG_IsOK(res1)) {
16716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16717 }
16718 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16719 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16720 if (!SWIG_IsOK(res2)) {
16721 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16722 }
16723 arg2 = reinterpret_cast< wxChar * >(argp2);
16724 if (obj2) {
16725 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16726 if (!SWIG_IsOK(res3)) {
16727 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16728 }
16729 arg3 = reinterpret_cast< wxChar * >(argp3);
16730 }
16731 {
16732 PyThreadState* __tstate = wxPyBeginAllowThreads();
16733 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16734 wxPyEndAllowThreads(__tstate);
16735 if (PyErr_Occurred()) SWIG_fail;
16736 }
16737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16738 return resultobj;
16739 fail:
16740 return NULL;
16741 }
16742
16743
16744 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16745 PyObject *resultobj = 0;
16746 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16747 wxChar *arg2 = (wxChar *) 0 ;
16748 wxChar *arg3 = (wxChar *) 0 ;
16749 size_t arg4 ;
16750 wxChar *arg5 = (wxChar *) NULL ;
16751 wxChar *result = 0 ;
16752 void *argp1 = 0 ;
16753 int res1 = 0 ;
16754 void *argp2 = 0 ;
16755 int res2 = 0 ;
16756 void *argp3 = 0 ;
16757 int res3 = 0 ;
16758 size_t val4 ;
16759 int ecode4 = 0 ;
16760 void *argp5 = 0 ;
16761 int res5 = 0 ;
16762 PyObject * obj0 = 0 ;
16763 PyObject * obj1 = 0 ;
16764 PyObject * obj2 = 0 ;
16765 PyObject * obj3 = 0 ;
16766 PyObject * obj4 = 0 ;
16767 char * kwnames[] = {
16768 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16769 };
16770
16771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16773 if (!SWIG_IsOK(res1)) {
16774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16775 }
16776 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16777 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16778 if (!SWIG_IsOK(res2)) {
16779 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16780 }
16781 arg2 = reinterpret_cast< wxChar * >(argp2);
16782 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16783 if (!SWIG_IsOK(res3)) {
16784 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16785 }
16786 arg3 = reinterpret_cast< wxChar * >(argp3);
16787 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16788 if (!SWIG_IsOK(ecode4)) {
16789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16790 }
16791 arg4 = static_cast< size_t >(val4);
16792 if (obj4) {
16793 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16794 if (!SWIG_IsOK(res5)) {
16795 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16796 }
16797 arg5 = reinterpret_cast< wxChar * >(argp5);
16798 }
16799 {
16800 PyThreadState* __tstate = wxPyBeginAllowThreads();
16801 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16802 wxPyEndAllowThreads(__tstate);
16803 if (PyErr_Occurred()) SWIG_fail;
16804 }
16805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16806 return resultobj;
16807 fail:
16808 return NULL;
16809 }
16810
16811
16812 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16813 PyObject *obj;
16814 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16815 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16816 return SWIG_Py_Void();
16817 }
16818
16819 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16820 return SWIG_Python_InitShadowInstance(args);
16821 }
16822
16823 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16824 PyObject *resultobj = 0;
16825 wxLocale *result = 0 ;
16826
16827 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16828 {
16829 PyThreadState* __tstate = wxPyBeginAllowThreads();
16830 result = (wxLocale *)wxGetLocale();
16831 wxPyEndAllowThreads(__tstate);
16832 if (PyErr_Occurred()) SWIG_fail;
16833 }
16834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16835 return resultobj;
16836 fail:
16837 return NULL;
16838 }
16839
16840
16841 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16842 PyObject *resultobj = 0;
16843 wxString *arg1 = 0 ;
16844 wxString result;
16845 bool temp1 = false ;
16846
16847 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16848 {
16849 arg1 = wxString_in_helper(swig_obj[0]);
16850 if (arg1 == NULL) SWIG_fail;
16851 temp1 = true;
16852 }
16853 {
16854 PyThreadState* __tstate = wxPyBeginAllowThreads();
16855 result = wxGetTranslation((wxString const &)*arg1);
16856 wxPyEndAllowThreads(__tstate);
16857 if (PyErr_Occurred()) SWIG_fail;
16858 }
16859 {
16860 #if wxUSE_UNICODE
16861 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16862 #else
16863 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16864 #endif
16865 }
16866 {
16867 if (temp1)
16868 delete arg1;
16869 }
16870 return resultobj;
16871 fail:
16872 {
16873 if (temp1)
16874 delete arg1;
16875 }
16876 return NULL;
16877 }
16878
16879
16880 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16881 PyObject *resultobj = 0;
16882 wxString *arg1 = 0 ;
16883 wxString *arg2 = 0 ;
16884 wxString result;
16885 bool temp1 = false ;
16886 bool temp2 = false ;
16887
16888 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16889 {
16890 arg1 = wxString_in_helper(swig_obj[0]);
16891 if (arg1 == NULL) SWIG_fail;
16892 temp1 = true;
16893 }
16894 {
16895 arg2 = wxString_in_helper(swig_obj[1]);
16896 if (arg2 == NULL) SWIG_fail;
16897 temp2 = true;
16898 }
16899 {
16900 PyThreadState* __tstate = wxPyBeginAllowThreads();
16901 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16902 wxPyEndAllowThreads(__tstate);
16903 if (PyErr_Occurred()) SWIG_fail;
16904 }
16905 {
16906 #if wxUSE_UNICODE
16907 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16908 #else
16909 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16910 #endif
16911 }
16912 {
16913 if (temp1)
16914 delete arg1;
16915 }
16916 {
16917 if (temp2)
16918 delete arg2;
16919 }
16920 return resultobj;
16921 fail:
16922 {
16923 if (temp1)
16924 delete arg1;
16925 }
16926 {
16927 if (temp2)
16928 delete arg2;
16929 }
16930 return NULL;
16931 }
16932
16933
16934 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16935 PyObject *resultobj = 0;
16936 wxString *arg1 = 0 ;
16937 wxString *arg2 = 0 ;
16938 size_t arg3 ;
16939 wxString result;
16940 bool temp1 = false ;
16941 bool temp2 = false ;
16942 size_t val3 ;
16943 int ecode3 = 0 ;
16944
16945 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16946 {
16947 arg1 = wxString_in_helper(swig_obj[0]);
16948 if (arg1 == NULL) SWIG_fail;
16949 temp1 = true;
16950 }
16951 {
16952 arg2 = wxString_in_helper(swig_obj[1]);
16953 if (arg2 == NULL) SWIG_fail;
16954 temp2 = true;
16955 }
16956 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16957 if (!SWIG_IsOK(ecode3)) {
16958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16959 }
16960 arg3 = static_cast< size_t >(val3);
16961 {
16962 PyThreadState* __tstate = wxPyBeginAllowThreads();
16963 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16964 wxPyEndAllowThreads(__tstate);
16965 if (PyErr_Occurred()) SWIG_fail;
16966 }
16967 {
16968 #if wxUSE_UNICODE
16969 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16970 #else
16971 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16972 #endif
16973 }
16974 {
16975 if (temp1)
16976 delete arg1;
16977 }
16978 {
16979 if (temp2)
16980 delete arg2;
16981 }
16982 return resultobj;
16983 fail:
16984 {
16985 if (temp1)
16986 delete arg1;
16987 }
16988 {
16989 if (temp2)
16990 delete arg2;
16991 }
16992 return NULL;
16993 }
16994
16995
16996 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16997 PyObject *resultobj = 0;
16998 wxString *arg1 = 0 ;
16999 wxString *arg2 = 0 ;
17000 size_t arg3 ;
17001 wxString *arg4 = 0 ;
17002 wxString result;
17003 bool temp1 = false ;
17004 bool temp2 = false ;
17005 size_t val3 ;
17006 int ecode3 = 0 ;
17007 bool temp4 = false ;
17008
17009 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17010 {
17011 arg1 = wxString_in_helper(swig_obj[0]);
17012 if (arg1 == NULL) SWIG_fail;
17013 temp1 = true;
17014 }
17015 {
17016 arg2 = wxString_in_helper(swig_obj[1]);
17017 if (arg2 == NULL) SWIG_fail;
17018 temp2 = true;
17019 }
17020 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17021 if (!SWIG_IsOK(ecode3)) {
17022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17023 }
17024 arg3 = static_cast< size_t >(val3);
17025 {
17026 arg4 = wxString_in_helper(swig_obj[3]);
17027 if (arg4 == NULL) SWIG_fail;
17028 temp4 = true;
17029 }
17030 {
17031 PyThreadState* __tstate = wxPyBeginAllowThreads();
17032 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17033 wxPyEndAllowThreads(__tstate);
17034 if (PyErr_Occurred()) SWIG_fail;
17035 }
17036 {
17037 #if wxUSE_UNICODE
17038 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17039 #else
17040 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17041 #endif
17042 }
17043 {
17044 if (temp1)
17045 delete arg1;
17046 }
17047 {
17048 if (temp2)
17049 delete arg2;
17050 }
17051 {
17052 if (temp4)
17053 delete arg4;
17054 }
17055 return resultobj;
17056 fail:
17057 {
17058 if (temp1)
17059 delete arg1;
17060 }
17061 {
17062 if (temp2)
17063 delete arg2;
17064 }
17065 {
17066 if (temp4)
17067 delete arg4;
17068 }
17069 return NULL;
17070 }
17071
17072
17073 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17074 int argc;
17075 PyObject *argv[5];
17076
17077 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17078 --argc;
17079 if (argc == 1) {
17080 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17081 }
17082 if (argc == 2) {
17083 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17084 }
17085 if (argc == 3) {
17086 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17087 }
17088 if (argc == 4) {
17089 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17090 }
17091
17092 fail:
17093 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17094 return NULL;
17095 }
17096
17097
17098 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17099 PyObject *resultobj = 0;
17100 wxEncodingConverter *result = 0 ;
17101
17102 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17103 {
17104 PyThreadState* __tstate = wxPyBeginAllowThreads();
17105 result = (wxEncodingConverter *)new wxEncodingConverter();
17106 wxPyEndAllowThreads(__tstate);
17107 if (PyErr_Occurred()) SWIG_fail;
17108 }
17109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17110 return resultobj;
17111 fail:
17112 return NULL;
17113 }
17114
17115
17116 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17117 PyObject *resultobj = 0;
17118 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17119 void *argp1 = 0 ;
17120 int res1 = 0 ;
17121 PyObject *swig_obj[1] ;
17122
17123 if (!args) SWIG_fail;
17124 swig_obj[0] = args;
17125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17126 if (!SWIG_IsOK(res1)) {
17127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17128 }
17129 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17130 {
17131 PyThreadState* __tstate = wxPyBeginAllowThreads();
17132 delete arg1;
17133
17134 wxPyEndAllowThreads(__tstate);
17135 if (PyErr_Occurred()) SWIG_fail;
17136 }
17137 resultobj = SWIG_Py_Void();
17138 return resultobj;
17139 fail:
17140 return NULL;
17141 }
17142
17143
17144 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17145 PyObject *resultobj = 0;
17146 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17147 wxFontEncoding arg2 ;
17148 wxFontEncoding arg3 ;
17149 int arg4 = (int) wxCONVERT_STRICT ;
17150 bool result;
17151 void *argp1 = 0 ;
17152 int res1 = 0 ;
17153 int val2 ;
17154 int ecode2 = 0 ;
17155 int val3 ;
17156 int ecode3 = 0 ;
17157 int val4 ;
17158 int ecode4 = 0 ;
17159 PyObject * obj0 = 0 ;
17160 PyObject * obj1 = 0 ;
17161 PyObject * obj2 = 0 ;
17162 PyObject * obj3 = 0 ;
17163 char * kwnames[] = {
17164 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17165 };
17166
17167 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17168 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17169 if (!SWIG_IsOK(res1)) {
17170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17171 }
17172 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17173 ecode2 = SWIG_AsVal_int(obj1, &val2);
17174 if (!SWIG_IsOK(ecode2)) {
17175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17176 }
17177 arg2 = static_cast< wxFontEncoding >(val2);
17178 ecode3 = SWIG_AsVal_int(obj2, &val3);
17179 if (!SWIG_IsOK(ecode3)) {
17180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17181 }
17182 arg3 = static_cast< wxFontEncoding >(val3);
17183 if (obj3) {
17184 ecode4 = SWIG_AsVal_int(obj3, &val4);
17185 if (!SWIG_IsOK(ecode4)) {
17186 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17187 }
17188 arg4 = static_cast< int >(val4);
17189 }
17190 {
17191 PyThreadState* __tstate = wxPyBeginAllowThreads();
17192 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17193 wxPyEndAllowThreads(__tstate);
17194 if (PyErr_Occurred()) SWIG_fail;
17195 }
17196 {
17197 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17198 }
17199 return resultobj;
17200 fail:
17201 return NULL;
17202 }
17203
17204
17205 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17206 PyObject *resultobj = 0;
17207 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17208 wxString *arg2 = 0 ;
17209 wxString result;
17210 void *argp1 = 0 ;
17211 int res1 = 0 ;
17212 bool temp2 = false ;
17213 PyObject * obj0 = 0 ;
17214 PyObject * obj1 = 0 ;
17215 char * kwnames[] = {
17216 (char *) "self",(char *) "input", NULL
17217 };
17218
17219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17221 if (!SWIG_IsOK(res1)) {
17222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17223 }
17224 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17225 {
17226 arg2 = wxString_in_helper(obj1);
17227 if (arg2 == NULL) SWIG_fail;
17228 temp2 = true;
17229 }
17230 {
17231 PyThreadState* __tstate = wxPyBeginAllowThreads();
17232 result = (arg1)->Convert((wxString const &)*arg2);
17233 wxPyEndAllowThreads(__tstate);
17234 if (PyErr_Occurred()) SWIG_fail;
17235 }
17236 {
17237 #if wxUSE_UNICODE
17238 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17239 #else
17240 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17241 #endif
17242 }
17243 {
17244 if (temp2)
17245 delete arg2;
17246 }
17247 return resultobj;
17248 fail:
17249 {
17250 if (temp2)
17251 delete arg2;
17252 }
17253 return NULL;
17254 }
17255
17256
17257 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17258 PyObject *resultobj = 0;
17259 wxFontEncoding arg1 ;
17260 int arg2 = (int) wxPLATFORM_CURRENT ;
17261 wxFontEncodingArray result;
17262 int val1 ;
17263 int ecode1 = 0 ;
17264 int val2 ;
17265 int ecode2 = 0 ;
17266 PyObject * obj0 = 0 ;
17267 PyObject * obj1 = 0 ;
17268 char * kwnames[] = {
17269 (char *) "enc",(char *) "platform", NULL
17270 };
17271
17272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17273 ecode1 = SWIG_AsVal_int(obj0, &val1);
17274 if (!SWIG_IsOK(ecode1)) {
17275 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17276 }
17277 arg1 = static_cast< wxFontEncoding >(val1);
17278 if (obj1) {
17279 ecode2 = SWIG_AsVal_int(obj1, &val2);
17280 if (!SWIG_IsOK(ecode2)) {
17281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17282 }
17283 arg2 = static_cast< int >(val2);
17284 }
17285 {
17286 PyThreadState* __tstate = wxPyBeginAllowThreads();
17287 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17288 wxPyEndAllowThreads(__tstate);
17289 if (PyErr_Occurred()) SWIG_fail;
17290 }
17291 {
17292 resultobj = PyList_New(0);
17293 for (size_t i=0; i < (&result)->GetCount(); i++) {
17294 PyObject* number = PyInt_FromLong((&result)->Item(i));
17295 PyList_Append(resultobj, number);
17296 Py_DECREF(number);
17297 }
17298 }
17299 return resultobj;
17300 fail:
17301 return NULL;
17302 }
17303
17304
17305 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17306 PyObject *resultobj = 0;
17307 wxFontEncoding arg1 ;
17308 wxFontEncodingArray result;
17309 int val1 ;
17310 int ecode1 = 0 ;
17311 PyObject * obj0 = 0 ;
17312 char * kwnames[] = {
17313 (char *) "enc", NULL
17314 };
17315
17316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17317 ecode1 = SWIG_AsVal_int(obj0, &val1);
17318 if (!SWIG_IsOK(ecode1)) {
17319 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17320 }
17321 arg1 = static_cast< wxFontEncoding >(val1);
17322 {
17323 PyThreadState* __tstate = wxPyBeginAllowThreads();
17324 result = wxEncodingConverter::GetAllEquivalents(arg1);
17325 wxPyEndAllowThreads(__tstate);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 {
17329 resultobj = PyList_New(0);
17330 for (size_t i=0; i < (&result)->GetCount(); i++) {
17331 PyObject* number = PyInt_FromLong((&result)->Item(i));
17332 PyList_Append(resultobj, number);
17333 Py_DECREF(number);
17334 }
17335 }
17336 return resultobj;
17337 fail:
17338 return NULL;
17339 }
17340
17341
17342 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17343 PyObject *resultobj = 0;
17344 wxFontEncoding arg1 ;
17345 wxFontEncoding arg2 ;
17346 bool result;
17347 int val1 ;
17348 int ecode1 = 0 ;
17349 int val2 ;
17350 int ecode2 = 0 ;
17351 PyObject * obj0 = 0 ;
17352 PyObject * obj1 = 0 ;
17353 char * kwnames[] = {
17354 (char *) "encIn",(char *) "encOut", NULL
17355 };
17356
17357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17358 ecode1 = SWIG_AsVal_int(obj0, &val1);
17359 if (!SWIG_IsOK(ecode1)) {
17360 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17361 }
17362 arg1 = static_cast< wxFontEncoding >(val1);
17363 ecode2 = SWIG_AsVal_int(obj1, &val2);
17364 if (!SWIG_IsOK(ecode2)) {
17365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17366 }
17367 arg2 = static_cast< wxFontEncoding >(val2);
17368 {
17369 PyThreadState* __tstate = wxPyBeginAllowThreads();
17370 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 {
17375 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17376 }
17377 return resultobj;
17378 fail:
17379 return NULL;
17380 }
17381
17382
17383 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17384 PyObject *obj;
17385 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17386 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17387 return SWIG_Py_Void();
17388 }
17389
17390 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17391 return SWIG_Python_InitShadowInstance(args);
17392 }
17393
17394 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17395 PyObject *resultobj = 0;
17396 wxDC *arg1 = (wxDC *) 0 ;
17397 void *argp1 = 0 ;
17398 int res1 = 0 ;
17399 PyObject *swig_obj[1] ;
17400
17401 if (!args) SWIG_fail;
17402 swig_obj[0] = args;
17403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17404 if (!SWIG_IsOK(res1)) {
17405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17406 }
17407 arg1 = reinterpret_cast< wxDC * >(argp1);
17408 {
17409 PyThreadState* __tstate = wxPyBeginAllowThreads();
17410 delete arg1;
17411
17412 wxPyEndAllowThreads(__tstate);
17413 if (PyErr_Occurred()) SWIG_fail;
17414 }
17415 resultobj = SWIG_Py_Void();
17416 return resultobj;
17417 fail:
17418 return NULL;
17419 }
17420
17421
17422 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17423 PyObject *resultobj = 0;
17424 wxDC *arg1 = (wxDC *) 0 ;
17425 int arg2 ;
17426 int arg3 ;
17427 wxColour *arg4 = 0 ;
17428 int arg5 = (int) wxFLOOD_SURFACE ;
17429 bool result;
17430 void *argp1 = 0 ;
17431 int res1 = 0 ;
17432 int val2 ;
17433 int ecode2 = 0 ;
17434 int val3 ;
17435 int ecode3 = 0 ;
17436 wxColour temp4 ;
17437 int val5 ;
17438 int ecode5 = 0 ;
17439 PyObject * obj0 = 0 ;
17440 PyObject * obj1 = 0 ;
17441 PyObject * obj2 = 0 ;
17442 PyObject * obj3 = 0 ;
17443 PyObject * obj4 = 0 ;
17444 char * kwnames[] = {
17445 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17446 };
17447
17448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17450 if (!SWIG_IsOK(res1)) {
17451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17452 }
17453 arg1 = reinterpret_cast< wxDC * >(argp1);
17454 ecode2 = SWIG_AsVal_int(obj1, &val2);
17455 if (!SWIG_IsOK(ecode2)) {
17456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17457 }
17458 arg2 = static_cast< int >(val2);
17459 ecode3 = SWIG_AsVal_int(obj2, &val3);
17460 if (!SWIG_IsOK(ecode3)) {
17461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17462 }
17463 arg3 = static_cast< int >(val3);
17464 {
17465 arg4 = &temp4;
17466 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17467 }
17468 if (obj4) {
17469 ecode5 = SWIG_AsVal_int(obj4, &val5);
17470 if (!SWIG_IsOK(ecode5)) {
17471 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17472 }
17473 arg5 = static_cast< int >(val5);
17474 }
17475 {
17476 PyThreadState* __tstate = wxPyBeginAllowThreads();
17477 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17478 wxPyEndAllowThreads(__tstate);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 {
17482 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17483 }
17484 return resultobj;
17485 fail:
17486 return NULL;
17487 }
17488
17489
17490 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17491 PyObject *resultobj = 0;
17492 wxDC *arg1 = (wxDC *) 0 ;
17493 wxPoint *arg2 = 0 ;
17494 wxColour *arg3 = 0 ;
17495 int arg4 = (int) wxFLOOD_SURFACE ;
17496 bool result;
17497 void *argp1 = 0 ;
17498 int res1 = 0 ;
17499 wxPoint temp2 ;
17500 wxColour temp3 ;
17501 int val4 ;
17502 int ecode4 = 0 ;
17503 PyObject * obj0 = 0 ;
17504 PyObject * obj1 = 0 ;
17505 PyObject * obj2 = 0 ;
17506 PyObject * obj3 = 0 ;
17507 char * kwnames[] = {
17508 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17509 };
17510
17511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17513 if (!SWIG_IsOK(res1)) {
17514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17515 }
17516 arg1 = reinterpret_cast< wxDC * >(argp1);
17517 {
17518 arg2 = &temp2;
17519 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17520 }
17521 {
17522 arg3 = &temp3;
17523 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17524 }
17525 if (obj3) {
17526 ecode4 = SWIG_AsVal_int(obj3, &val4);
17527 if (!SWIG_IsOK(ecode4)) {
17528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17529 }
17530 arg4 = static_cast< int >(val4);
17531 }
17532 {
17533 PyThreadState* __tstate = wxPyBeginAllowThreads();
17534 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17535 wxPyEndAllowThreads(__tstate);
17536 if (PyErr_Occurred()) SWIG_fail;
17537 }
17538 {
17539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17540 }
17541 return resultobj;
17542 fail:
17543 return NULL;
17544 }
17545
17546
17547 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17548 PyObject *resultobj = 0;
17549 wxDC *arg1 = (wxDC *) 0 ;
17550 wxRect *arg2 = 0 ;
17551 wxColour *arg3 = 0 ;
17552 wxColour *arg4 = 0 ;
17553 wxPoint *arg5 = 0 ;
17554 void *argp1 = 0 ;
17555 int res1 = 0 ;
17556 wxRect temp2 ;
17557 wxColour temp3 ;
17558 wxColour temp4 ;
17559 wxPoint temp5 ;
17560 PyObject * obj0 = 0 ;
17561 PyObject * obj1 = 0 ;
17562 PyObject * obj2 = 0 ;
17563 PyObject * obj3 = 0 ;
17564 PyObject * obj4 = 0 ;
17565 char * kwnames[] = {
17566 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17567 };
17568
17569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17571 if (!SWIG_IsOK(res1)) {
17572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17573 }
17574 arg1 = reinterpret_cast< wxDC * >(argp1);
17575 {
17576 arg2 = &temp2;
17577 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17578 }
17579 {
17580 arg3 = &temp3;
17581 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17582 }
17583 {
17584 arg4 = &temp4;
17585 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17586 }
17587 {
17588 arg5 = &temp5;
17589 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17590 }
17591 {
17592 PyThreadState* __tstate = wxPyBeginAllowThreads();
17593 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17594 wxPyEndAllowThreads(__tstate);
17595 if (PyErr_Occurred()) SWIG_fail;
17596 }
17597 resultobj = SWIG_Py_Void();
17598 return resultobj;
17599 fail:
17600 return NULL;
17601 }
17602
17603
17604 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17605 PyObject *resultobj = 0;
17606 wxDC *arg1 = (wxDC *) 0 ;
17607 wxRect *arg2 = 0 ;
17608 wxColour *arg3 = 0 ;
17609 wxColour *arg4 = 0 ;
17610 wxDirection arg5 = (wxDirection) wxEAST ;
17611 void *argp1 = 0 ;
17612 int res1 = 0 ;
17613 wxRect temp2 ;
17614 wxColour temp3 ;
17615 wxColour temp4 ;
17616 int val5 ;
17617 int ecode5 = 0 ;
17618 PyObject * obj0 = 0 ;
17619 PyObject * obj1 = 0 ;
17620 PyObject * obj2 = 0 ;
17621 PyObject * obj3 = 0 ;
17622 PyObject * obj4 = 0 ;
17623 char * kwnames[] = {
17624 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17625 };
17626
17627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17629 if (!SWIG_IsOK(res1)) {
17630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17631 }
17632 arg1 = reinterpret_cast< wxDC * >(argp1);
17633 {
17634 arg2 = &temp2;
17635 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17636 }
17637 {
17638 arg3 = &temp3;
17639 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17640 }
17641 {
17642 arg4 = &temp4;
17643 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17644 }
17645 if (obj4) {
17646 ecode5 = SWIG_AsVal_int(obj4, &val5);
17647 if (!SWIG_IsOK(ecode5)) {
17648 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17649 }
17650 arg5 = static_cast< wxDirection >(val5);
17651 }
17652 {
17653 PyThreadState* __tstate = wxPyBeginAllowThreads();
17654 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17655 wxPyEndAllowThreads(__tstate);
17656 if (PyErr_Occurred()) SWIG_fail;
17657 }
17658 resultobj = SWIG_Py_Void();
17659 return resultobj;
17660 fail:
17661 return NULL;
17662 }
17663
17664
17665 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17666 PyObject *resultobj = 0;
17667 wxDC *arg1 = (wxDC *) 0 ;
17668 int arg2 ;
17669 int arg3 ;
17670 wxColour result;
17671 void *argp1 = 0 ;
17672 int res1 = 0 ;
17673 int val2 ;
17674 int ecode2 = 0 ;
17675 int val3 ;
17676 int ecode3 = 0 ;
17677 PyObject * obj0 = 0 ;
17678 PyObject * obj1 = 0 ;
17679 PyObject * obj2 = 0 ;
17680 char * kwnames[] = {
17681 (char *) "self",(char *) "x",(char *) "y", NULL
17682 };
17683
17684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17686 if (!SWIG_IsOK(res1)) {
17687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17688 }
17689 arg1 = reinterpret_cast< wxDC * >(argp1);
17690 ecode2 = SWIG_AsVal_int(obj1, &val2);
17691 if (!SWIG_IsOK(ecode2)) {
17692 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17693 }
17694 arg2 = static_cast< int >(val2);
17695 ecode3 = SWIG_AsVal_int(obj2, &val3);
17696 if (!SWIG_IsOK(ecode3)) {
17697 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17698 }
17699 arg3 = static_cast< int >(val3);
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 result = wxDC_GetPixel(arg1,arg2,arg3);
17703 wxPyEndAllowThreads(__tstate);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17707 return resultobj;
17708 fail:
17709 return NULL;
17710 }
17711
17712
17713 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17714 PyObject *resultobj = 0;
17715 wxDC *arg1 = (wxDC *) 0 ;
17716 wxPoint *arg2 = 0 ;
17717 wxColour result;
17718 void *argp1 = 0 ;
17719 int res1 = 0 ;
17720 wxPoint temp2 ;
17721 PyObject * obj0 = 0 ;
17722 PyObject * obj1 = 0 ;
17723 char * kwnames[] = {
17724 (char *) "self",(char *) "pt", NULL
17725 };
17726
17727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17729 if (!SWIG_IsOK(res1)) {
17730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17731 }
17732 arg1 = reinterpret_cast< wxDC * >(argp1);
17733 {
17734 arg2 = &temp2;
17735 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17736 }
17737 {
17738 PyThreadState* __tstate = wxPyBeginAllowThreads();
17739 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17740 wxPyEndAllowThreads(__tstate);
17741 if (PyErr_Occurred()) SWIG_fail;
17742 }
17743 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17744 return resultobj;
17745 fail:
17746 return NULL;
17747 }
17748
17749
17750 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17751 PyObject *resultobj = 0;
17752 wxDC *arg1 = (wxDC *) 0 ;
17753 int arg2 ;
17754 int arg3 ;
17755 int arg4 ;
17756 int arg5 ;
17757 void *argp1 = 0 ;
17758 int res1 = 0 ;
17759 int val2 ;
17760 int ecode2 = 0 ;
17761 int val3 ;
17762 int ecode3 = 0 ;
17763 int val4 ;
17764 int ecode4 = 0 ;
17765 int val5 ;
17766 int ecode5 = 0 ;
17767 PyObject * obj0 = 0 ;
17768 PyObject * obj1 = 0 ;
17769 PyObject * obj2 = 0 ;
17770 PyObject * obj3 = 0 ;
17771 PyObject * obj4 = 0 ;
17772 char * kwnames[] = {
17773 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17774 };
17775
17776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17778 if (!SWIG_IsOK(res1)) {
17779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17780 }
17781 arg1 = reinterpret_cast< wxDC * >(argp1);
17782 ecode2 = SWIG_AsVal_int(obj1, &val2);
17783 if (!SWIG_IsOK(ecode2)) {
17784 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17785 }
17786 arg2 = static_cast< int >(val2);
17787 ecode3 = SWIG_AsVal_int(obj2, &val3);
17788 if (!SWIG_IsOK(ecode3)) {
17789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17790 }
17791 arg3 = static_cast< int >(val3);
17792 ecode4 = SWIG_AsVal_int(obj3, &val4);
17793 if (!SWIG_IsOK(ecode4)) {
17794 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17795 }
17796 arg4 = static_cast< int >(val4);
17797 ecode5 = SWIG_AsVal_int(obj4, &val5);
17798 if (!SWIG_IsOK(ecode5)) {
17799 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17800 }
17801 arg5 = static_cast< int >(val5);
17802 {
17803 PyThreadState* __tstate = wxPyBeginAllowThreads();
17804 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = SWIG_Py_Void();
17809 return resultobj;
17810 fail:
17811 return NULL;
17812 }
17813
17814
17815 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17816 PyObject *resultobj = 0;
17817 wxDC *arg1 = (wxDC *) 0 ;
17818 wxPoint *arg2 = 0 ;
17819 wxPoint *arg3 = 0 ;
17820 void *argp1 = 0 ;
17821 int res1 = 0 ;
17822 wxPoint temp2 ;
17823 wxPoint temp3 ;
17824 PyObject * obj0 = 0 ;
17825 PyObject * obj1 = 0 ;
17826 PyObject * obj2 = 0 ;
17827 char * kwnames[] = {
17828 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17829 };
17830
17831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17833 if (!SWIG_IsOK(res1)) {
17834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17835 }
17836 arg1 = reinterpret_cast< wxDC * >(argp1);
17837 {
17838 arg2 = &temp2;
17839 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17840 }
17841 {
17842 arg3 = &temp3;
17843 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17844 }
17845 {
17846 PyThreadState* __tstate = wxPyBeginAllowThreads();
17847 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17848 wxPyEndAllowThreads(__tstate);
17849 if (PyErr_Occurred()) SWIG_fail;
17850 }
17851 resultobj = SWIG_Py_Void();
17852 return resultobj;
17853 fail:
17854 return NULL;
17855 }
17856
17857
17858 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17859 PyObject *resultobj = 0;
17860 wxDC *arg1 = (wxDC *) 0 ;
17861 int arg2 ;
17862 int arg3 ;
17863 void *argp1 = 0 ;
17864 int res1 = 0 ;
17865 int val2 ;
17866 int ecode2 = 0 ;
17867 int val3 ;
17868 int ecode3 = 0 ;
17869 PyObject * obj0 = 0 ;
17870 PyObject * obj1 = 0 ;
17871 PyObject * obj2 = 0 ;
17872 char * kwnames[] = {
17873 (char *) "self",(char *) "x",(char *) "y", NULL
17874 };
17875
17876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17878 if (!SWIG_IsOK(res1)) {
17879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17880 }
17881 arg1 = reinterpret_cast< wxDC * >(argp1);
17882 ecode2 = SWIG_AsVal_int(obj1, &val2);
17883 if (!SWIG_IsOK(ecode2)) {
17884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17885 }
17886 arg2 = static_cast< int >(val2);
17887 ecode3 = SWIG_AsVal_int(obj2, &val3);
17888 if (!SWIG_IsOK(ecode3)) {
17889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17890 }
17891 arg3 = static_cast< int >(val3);
17892 {
17893 PyThreadState* __tstate = wxPyBeginAllowThreads();
17894 (arg1)->CrossHair(arg2,arg3);
17895 wxPyEndAllowThreads(__tstate);
17896 if (PyErr_Occurred()) SWIG_fail;
17897 }
17898 resultobj = SWIG_Py_Void();
17899 return resultobj;
17900 fail:
17901 return NULL;
17902 }
17903
17904
17905 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17906 PyObject *resultobj = 0;
17907 wxDC *arg1 = (wxDC *) 0 ;
17908 wxPoint *arg2 = 0 ;
17909 void *argp1 = 0 ;
17910 int res1 = 0 ;
17911 wxPoint temp2 ;
17912 PyObject * obj0 = 0 ;
17913 PyObject * obj1 = 0 ;
17914 char * kwnames[] = {
17915 (char *) "self",(char *) "pt", NULL
17916 };
17917
17918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17920 if (!SWIG_IsOK(res1)) {
17921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17922 }
17923 arg1 = reinterpret_cast< wxDC * >(argp1);
17924 {
17925 arg2 = &temp2;
17926 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17927 }
17928 {
17929 PyThreadState* __tstate = wxPyBeginAllowThreads();
17930 (arg1)->CrossHair((wxPoint const &)*arg2);
17931 wxPyEndAllowThreads(__tstate);
17932 if (PyErr_Occurred()) SWIG_fail;
17933 }
17934 resultobj = SWIG_Py_Void();
17935 return resultobj;
17936 fail:
17937 return NULL;
17938 }
17939
17940
17941 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17942 PyObject *resultobj = 0;
17943 wxDC *arg1 = (wxDC *) 0 ;
17944 int arg2 ;
17945 int arg3 ;
17946 int arg4 ;
17947 int arg5 ;
17948 int arg6 ;
17949 int arg7 ;
17950 void *argp1 = 0 ;
17951 int res1 = 0 ;
17952 int val2 ;
17953 int ecode2 = 0 ;
17954 int val3 ;
17955 int ecode3 = 0 ;
17956 int val4 ;
17957 int ecode4 = 0 ;
17958 int val5 ;
17959 int ecode5 = 0 ;
17960 int val6 ;
17961 int ecode6 = 0 ;
17962 int val7 ;
17963 int ecode7 = 0 ;
17964 PyObject * obj0 = 0 ;
17965 PyObject * obj1 = 0 ;
17966 PyObject * obj2 = 0 ;
17967 PyObject * obj3 = 0 ;
17968 PyObject * obj4 = 0 ;
17969 PyObject * obj5 = 0 ;
17970 PyObject * obj6 = 0 ;
17971 char * kwnames[] = {
17972 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17973 };
17974
17975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17977 if (!SWIG_IsOK(res1)) {
17978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17979 }
17980 arg1 = reinterpret_cast< wxDC * >(argp1);
17981 ecode2 = SWIG_AsVal_int(obj1, &val2);
17982 if (!SWIG_IsOK(ecode2)) {
17983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17984 }
17985 arg2 = static_cast< int >(val2);
17986 ecode3 = SWIG_AsVal_int(obj2, &val3);
17987 if (!SWIG_IsOK(ecode3)) {
17988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17989 }
17990 arg3 = static_cast< int >(val3);
17991 ecode4 = SWIG_AsVal_int(obj3, &val4);
17992 if (!SWIG_IsOK(ecode4)) {
17993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17994 }
17995 arg4 = static_cast< int >(val4);
17996 ecode5 = SWIG_AsVal_int(obj4, &val5);
17997 if (!SWIG_IsOK(ecode5)) {
17998 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17999 }
18000 arg5 = static_cast< int >(val5);
18001 ecode6 = SWIG_AsVal_int(obj5, &val6);
18002 if (!SWIG_IsOK(ecode6)) {
18003 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18004 }
18005 arg6 = static_cast< int >(val6);
18006 ecode7 = SWIG_AsVal_int(obj6, &val7);
18007 if (!SWIG_IsOK(ecode7)) {
18008 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18009 }
18010 arg7 = static_cast< int >(val7);
18011 {
18012 PyThreadState* __tstate = wxPyBeginAllowThreads();
18013 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18014 wxPyEndAllowThreads(__tstate);
18015 if (PyErr_Occurred()) SWIG_fail;
18016 }
18017 resultobj = SWIG_Py_Void();
18018 return resultobj;
18019 fail:
18020 return NULL;
18021 }
18022
18023
18024 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18025 PyObject *resultobj = 0;
18026 wxDC *arg1 = (wxDC *) 0 ;
18027 wxPoint *arg2 = 0 ;
18028 wxPoint *arg3 = 0 ;
18029 wxPoint *arg4 = 0 ;
18030 void *argp1 = 0 ;
18031 int res1 = 0 ;
18032 wxPoint temp2 ;
18033 wxPoint temp3 ;
18034 wxPoint temp4 ;
18035 PyObject * obj0 = 0 ;
18036 PyObject * obj1 = 0 ;
18037 PyObject * obj2 = 0 ;
18038 PyObject * obj3 = 0 ;
18039 char * kwnames[] = {
18040 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18041 };
18042
18043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18045 if (!SWIG_IsOK(res1)) {
18046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18047 }
18048 arg1 = reinterpret_cast< wxDC * >(argp1);
18049 {
18050 arg2 = &temp2;
18051 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18052 }
18053 {
18054 arg3 = &temp3;
18055 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18056 }
18057 {
18058 arg4 = &temp4;
18059 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18060 }
18061 {
18062 PyThreadState* __tstate = wxPyBeginAllowThreads();
18063 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18064 wxPyEndAllowThreads(__tstate);
18065 if (PyErr_Occurred()) SWIG_fail;
18066 }
18067 resultobj = SWIG_Py_Void();
18068 return resultobj;
18069 fail:
18070 return NULL;
18071 }
18072
18073
18074 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18075 PyObject *resultobj = 0;
18076 wxDC *arg1 = (wxDC *) 0 ;
18077 int arg2 ;
18078 int arg3 ;
18079 int arg4 ;
18080 int arg5 ;
18081 void *argp1 = 0 ;
18082 int res1 = 0 ;
18083 int val2 ;
18084 int ecode2 = 0 ;
18085 int val3 ;
18086 int ecode3 = 0 ;
18087 int val4 ;
18088 int ecode4 = 0 ;
18089 int val5 ;
18090 int ecode5 = 0 ;
18091 PyObject * obj0 = 0 ;
18092 PyObject * obj1 = 0 ;
18093 PyObject * obj2 = 0 ;
18094 PyObject * obj3 = 0 ;
18095 PyObject * obj4 = 0 ;
18096 char * kwnames[] = {
18097 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18098 };
18099
18100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18102 if (!SWIG_IsOK(res1)) {
18103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18104 }
18105 arg1 = reinterpret_cast< wxDC * >(argp1);
18106 ecode2 = SWIG_AsVal_int(obj1, &val2);
18107 if (!SWIG_IsOK(ecode2)) {
18108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18109 }
18110 arg2 = static_cast< int >(val2);
18111 ecode3 = SWIG_AsVal_int(obj2, &val3);
18112 if (!SWIG_IsOK(ecode3)) {
18113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18114 }
18115 arg3 = static_cast< int >(val3);
18116 ecode4 = SWIG_AsVal_int(obj3, &val4);
18117 if (!SWIG_IsOK(ecode4)) {
18118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18119 }
18120 arg4 = static_cast< int >(val4);
18121 ecode5 = SWIG_AsVal_int(obj4, &val5);
18122 if (!SWIG_IsOK(ecode5)) {
18123 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18124 }
18125 arg5 = static_cast< int >(val5);
18126 {
18127 PyThreadState* __tstate = wxPyBeginAllowThreads();
18128 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18129 wxPyEndAllowThreads(__tstate);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 resultobj = SWIG_Py_Void();
18133 return resultobj;
18134 fail:
18135 return NULL;
18136 }
18137
18138
18139 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj = 0;
18141 wxDC *arg1 = (wxDC *) 0 ;
18142 wxRect *arg2 = 0 ;
18143 void *argp1 = 0 ;
18144 int res1 = 0 ;
18145 wxRect temp2 ;
18146 PyObject * obj0 = 0 ;
18147 PyObject * obj1 = 0 ;
18148 char * kwnames[] = {
18149 (char *) "self",(char *) "rect", NULL
18150 };
18151
18152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18154 if (!SWIG_IsOK(res1)) {
18155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18156 }
18157 arg1 = reinterpret_cast< wxDC * >(argp1);
18158 {
18159 arg2 = &temp2;
18160 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18161 }
18162 {
18163 PyThreadState* __tstate = wxPyBeginAllowThreads();
18164 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18165 wxPyEndAllowThreads(__tstate);
18166 if (PyErr_Occurred()) SWIG_fail;
18167 }
18168 resultobj = SWIG_Py_Void();
18169 return resultobj;
18170 fail:
18171 return NULL;
18172 }
18173
18174
18175 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18176 PyObject *resultobj = 0;
18177 wxDC *arg1 = (wxDC *) 0 ;
18178 int arg2 ;
18179 int arg3 ;
18180 int arg4 ;
18181 int arg5 ;
18182 double arg6 ;
18183 double arg7 ;
18184 void *argp1 = 0 ;
18185 int res1 = 0 ;
18186 int val2 ;
18187 int ecode2 = 0 ;
18188 int val3 ;
18189 int ecode3 = 0 ;
18190 int val4 ;
18191 int ecode4 = 0 ;
18192 int val5 ;
18193 int ecode5 = 0 ;
18194 double val6 ;
18195 int ecode6 = 0 ;
18196 double val7 ;
18197 int ecode7 = 0 ;
18198 PyObject * obj0 = 0 ;
18199 PyObject * obj1 = 0 ;
18200 PyObject * obj2 = 0 ;
18201 PyObject * obj3 = 0 ;
18202 PyObject * obj4 = 0 ;
18203 PyObject * obj5 = 0 ;
18204 PyObject * obj6 = 0 ;
18205 char * kwnames[] = {
18206 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18207 };
18208
18209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18211 if (!SWIG_IsOK(res1)) {
18212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18213 }
18214 arg1 = reinterpret_cast< wxDC * >(argp1);
18215 ecode2 = SWIG_AsVal_int(obj1, &val2);
18216 if (!SWIG_IsOK(ecode2)) {
18217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18218 }
18219 arg2 = static_cast< int >(val2);
18220 ecode3 = SWIG_AsVal_int(obj2, &val3);
18221 if (!SWIG_IsOK(ecode3)) {
18222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18223 }
18224 arg3 = static_cast< int >(val3);
18225 ecode4 = SWIG_AsVal_int(obj3, &val4);
18226 if (!SWIG_IsOK(ecode4)) {
18227 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18228 }
18229 arg4 = static_cast< int >(val4);
18230 ecode5 = SWIG_AsVal_int(obj4, &val5);
18231 if (!SWIG_IsOK(ecode5)) {
18232 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18233 }
18234 arg5 = static_cast< int >(val5);
18235 ecode6 = SWIG_AsVal_double(obj5, &val6);
18236 if (!SWIG_IsOK(ecode6)) {
18237 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18238 }
18239 arg6 = static_cast< double >(val6);
18240 ecode7 = SWIG_AsVal_double(obj6, &val7);
18241 if (!SWIG_IsOK(ecode7)) {
18242 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18243 }
18244 arg7 = static_cast< double >(val7);
18245 {
18246 PyThreadState* __tstate = wxPyBeginAllowThreads();
18247 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18248 wxPyEndAllowThreads(__tstate);
18249 if (PyErr_Occurred()) SWIG_fail;
18250 }
18251 resultobj = SWIG_Py_Void();
18252 return resultobj;
18253 fail:
18254 return NULL;
18255 }
18256
18257
18258 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18259 PyObject *resultobj = 0;
18260 wxDC *arg1 = (wxDC *) 0 ;
18261 wxPoint *arg2 = 0 ;
18262 wxSize *arg3 = 0 ;
18263 double arg4 ;
18264 double arg5 ;
18265 void *argp1 = 0 ;
18266 int res1 = 0 ;
18267 wxPoint temp2 ;
18268 wxSize temp3 ;
18269 double val4 ;
18270 int ecode4 = 0 ;
18271 double val5 ;
18272 int ecode5 = 0 ;
18273 PyObject * obj0 = 0 ;
18274 PyObject * obj1 = 0 ;
18275 PyObject * obj2 = 0 ;
18276 PyObject * obj3 = 0 ;
18277 PyObject * obj4 = 0 ;
18278 char * kwnames[] = {
18279 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18280 };
18281
18282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18284 if (!SWIG_IsOK(res1)) {
18285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18286 }
18287 arg1 = reinterpret_cast< wxDC * >(argp1);
18288 {
18289 arg2 = &temp2;
18290 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18291 }
18292 {
18293 arg3 = &temp3;
18294 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18295 }
18296 ecode4 = SWIG_AsVal_double(obj3, &val4);
18297 if (!SWIG_IsOK(ecode4)) {
18298 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18299 }
18300 arg4 = static_cast< double >(val4);
18301 ecode5 = SWIG_AsVal_double(obj4, &val5);
18302 if (!SWIG_IsOK(ecode5)) {
18303 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18304 }
18305 arg5 = static_cast< double >(val5);
18306 {
18307 PyThreadState* __tstate = wxPyBeginAllowThreads();
18308 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18309 wxPyEndAllowThreads(__tstate);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 resultobj = SWIG_Py_Void();
18313 return resultobj;
18314 fail:
18315 return NULL;
18316 }
18317
18318
18319 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18320 PyObject *resultobj = 0;
18321 wxDC *arg1 = (wxDC *) 0 ;
18322 int arg2 ;
18323 int arg3 ;
18324 void *argp1 = 0 ;
18325 int res1 = 0 ;
18326 int val2 ;
18327 int ecode2 = 0 ;
18328 int val3 ;
18329 int ecode3 = 0 ;
18330 PyObject * obj0 = 0 ;
18331 PyObject * obj1 = 0 ;
18332 PyObject * obj2 = 0 ;
18333 char * kwnames[] = {
18334 (char *) "self",(char *) "x",(char *) "y", NULL
18335 };
18336
18337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18339 if (!SWIG_IsOK(res1)) {
18340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18341 }
18342 arg1 = reinterpret_cast< wxDC * >(argp1);
18343 ecode2 = SWIG_AsVal_int(obj1, &val2);
18344 if (!SWIG_IsOK(ecode2)) {
18345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18346 }
18347 arg2 = static_cast< int >(val2);
18348 ecode3 = SWIG_AsVal_int(obj2, &val3);
18349 if (!SWIG_IsOK(ecode3)) {
18350 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18351 }
18352 arg3 = static_cast< int >(val3);
18353 {
18354 PyThreadState* __tstate = wxPyBeginAllowThreads();
18355 (arg1)->DrawPoint(arg2,arg3);
18356 wxPyEndAllowThreads(__tstate);
18357 if (PyErr_Occurred()) SWIG_fail;
18358 }
18359 resultobj = SWIG_Py_Void();
18360 return resultobj;
18361 fail:
18362 return NULL;
18363 }
18364
18365
18366 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18367 PyObject *resultobj = 0;
18368 wxDC *arg1 = (wxDC *) 0 ;
18369 wxPoint *arg2 = 0 ;
18370 void *argp1 = 0 ;
18371 int res1 = 0 ;
18372 wxPoint temp2 ;
18373 PyObject * obj0 = 0 ;
18374 PyObject * obj1 = 0 ;
18375 char * kwnames[] = {
18376 (char *) "self",(char *) "pt", NULL
18377 };
18378
18379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18381 if (!SWIG_IsOK(res1)) {
18382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18383 }
18384 arg1 = reinterpret_cast< wxDC * >(argp1);
18385 {
18386 arg2 = &temp2;
18387 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18388 }
18389 {
18390 PyThreadState* __tstate = wxPyBeginAllowThreads();
18391 (arg1)->DrawPoint((wxPoint const &)*arg2);
18392 wxPyEndAllowThreads(__tstate);
18393 if (PyErr_Occurred()) SWIG_fail;
18394 }
18395 resultobj = SWIG_Py_Void();
18396 return resultobj;
18397 fail:
18398 return NULL;
18399 }
18400
18401
18402 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18403 PyObject *resultobj = 0;
18404 wxDC *arg1 = (wxDC *) 0 ;
18405 int arg2 ;
18406 int arg3 ;
18407 int arg4 ;
18408 int arg5 ;
18409 void *argp1 = 0 ;
18410 int res1 = 0 ;
18411 int val2 ;
18412 int ecode2 = 0 ;
18413 int val3 ;
18414 int ecode3 = 0 ;
18415 int val4 ;
18416 int ecode4 = 0 ;
18417 int val5 ;
18418 int ecode5 = 0 ;
18419 PyObject * obj0 = 0 ;
18420 PyObject * obj1 = 0 ;
18421 PyObject * obj2 = 0 ;
18422 PyObject * obj3 = 0 ;
18423 PyObject * obj4 = 0 ;
18424 char * kwnames[] = {
18425 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18426 };
18427
18428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18430 if (!SWIG_IsOK(res1)) {
18431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18432 }
18433 arg1 = reinterpret_cast< wxDC * >(argp1);
18434 ecode2 = SWIG_AsVal_int(obj1, &val2);
18435 if (!SWIG_IsOK(ecode2)) {
18436 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18437 }
18438 arg2 = static_cast< int >(val2);
18439 ecode3 = SWIG_AsVal_int(obj2, &val3);
18440 if (!SWIG_IsOK(ecode3)) {
18441 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18442 }
18443 arg3 = static_cast< int >(val3);
18444 ecode4 = SWIG_AsVal_int(obj3, &val4);
18445 if (!SWIG_IsOK(ecode4)) {
18446 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18447 }
18448 arg4 = static_cast< int >(val4);
18449 ecode5 = SWIG_AsVal_int(obj4, &val5);
18450 if (!SWIG_IsOK(ecode5)) {
18451 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18452 }
18453 arg5 = static_cast< int >(val5);
18454 {
18455 PyThreadState* __tstate = wxPyBeginAllowThreads();
18456 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18457 wxPyEndAllowThreads(__tstate);
18458 if (PyErr_Occurred()) SWIG_fail;
18459 }
18460 resultobj = SWIG_Py_Void();
18461 return resultobj;
18462 fail:
18463 return NULL;
18464 }
18465
18466
18467 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18468 PyObject *resultobj = 0;
18469 wxDC *arg1 = (wxDC *) 0 ;
18470 wxRect *arg2 = 0 ;
18471 void *argp1 = 0 ;
18472 int res1 = 0 ;
18473 wxRect temp2 ;
18474 PyObject * obj0 = 0 ;
18475 PyObject * obj1 = 0 ;
18476 char * kwnames[] = {
18477 (char *) "self",(char *) "rect", NULL
18478 };
18479
18480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18482 if (!SWIG_IsOK(res1)) {
18483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18484 }
18485 arg1 = reinterpret_cast< wxDC * >(argp1);
18486 {
18487 arg2 = &temp2;
18488 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18489 }
18490 {
18491 PyThreadState* __tstate = wxPyBeginAllowThreads();
18492 (arg1)->DrawRectangle((wxRect const &)*arg2);
18493 wxPyEndAllowThreads(__tstate);
18494 if (PyErr_Occurred()) SWIG_fail;
18495 }
18496 resultobj = SWIG_Py_Void();
18497 return resultobj;
18498 fail:
18499 return NULL;
18500 }
18501
18502
18503 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18504 PyObject *resultobj = 0;
18505 wxDC *arg1 = (wxDC *) 0 ;
18506 wxPoint *arg2 = 0 ;
18507 wxSize *arg3 = 0 ;
18508 void *argp1 = 0 ;
18509 int res1 = 0 ;
18510 wxPoint temp2 ;
18511 wxSize temp3 ;
18512 PyObject * obj0 = 0 ;
18513 PyObject * obj1 = 0 ;
18514 PyObject * obj2 = 0 ;
18515 char * kwnames[] = {
18516 (char *) "self",(char *) "pt",(char *) "sz", NULL
18517 };
18518
18519 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18520 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18521 if (!SWIG_IsOK(res1)) {
18522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18523 }
18524 arg1 = reinterpret_cast< wxDC * >(argp1);
18525 {
18526 arg2 = &temp2;
18527 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18528 }
18529 {
18530 arg3 = &temp3;
18531 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18532 }
18533 {
18534 PyThreadState* __tstate = wxPyBeginAllowThreads();
18535 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18536 wxPyEndAllowThreads(__tstate);
18537 if (PyErr_Occurred()) SWIG_fail;
18538 }
18539 resultobj = SWIG_Py_Void();
18540 return resultobj;
18541 fail:
18542 return NULL;
18543 }
18544
18545
18546 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18547 PyObject *resultobj = 0;
18548 wxDC *arg1 = (wxDC *) 0 ;
18549 int arg2 ;
18550 int arg3 ;
18551 int arg4 ;
18552 int arg5 ;
18553 double arg6 ;
18554 void *argp1 = 0 ;
18555 int res1 = 0 ;
18556 int val2 ;
18557 int ecode2 = 0 ;
18558 int val3 ;
18559 int ecode3 = 0 ;
18560 int val4 ;
18561 int ecode4 = 0 ;
18562 int val5 ;
18563 int ecode5 = 0 ;
18564 double val6 ;
18565 int ecode6 = 0 ;
18566 PyObject * obj0 = 0 ;
18567 PyObject * obj1 = 0 ;
18568 PyObject * obj2 = 0 ;
18569 PyObject * obj3 = 0 ;
18570 PyObject * obj4 = 0 ;
18571 PyObject * obj5 = 0 ;
18572 char * kwnames[] = {
18573 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18574 };
18575
18576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18578 if (!SWIG_IsOK(res1)) {
18579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18580 }
18581 arg1 = reinterpret_cast< wxDC * >(argp1);
18582 ecode2 = SWIG_AsVal_int(obj1, &val2);
18583 if (!SWIG_IsOK(ecode2)) {
18584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18585 }
18586 arg2 = static_cast< int >(val2);
18587 ecode3 = SWIG_AsVal_int(obj2, &val3);
18588 if (!SWIG_IsOK(ecode3)) {
18589 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18590 }
18591 arg3 = static_cast< int >(val3);
18592 ecode4 = SWIG_AsVal_int(obj3, &val4);
18593 if (!SWIG_IsOK(ecode4)) {
18594 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18595 }
18596 arg4 = static_cast< int >(val4);
18597 ecode5 = SWIG_AsVal_int(obj4, &val5);
18598 if (!SWIG_IsOK(ecode5)) {
18599 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18600 }
18601 arg5 = static_cast< int >(val5);
18602 ecode6 = SWIG_AsVal_double(obj5, &val6);
18603 if (!SWIG_IsOK(ecode6)) {
18604 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18605 }
18606 arg6 = static_cast< double >(val6);
18607 {
18608 PyThreadState* __tstate = wxPyBeginAllowThreads();
18609 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18610 wxPyEndAllowThreads(__tstate);
18611 if (PyErr_Occurred()) SWIG_fail;
18612 }
18613 resultobj = SWIG_Py_Void();
18614 return resultobj;
18615 fail:
18616 return NULL;
18617 }
18618
18619
18620 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18621 PyObject *resultobj = 0;
18622 wxDC *arg1 = (wxDC *) 0 ;
18623 wxRect *arg2 = 0 ;
18624 double arg3 ;
18625 void *argp1 = 0 ;
18626 int res1 = 0 ;
18627 wxRect temp2 ;
18628 double val3 ;
18629 int ecode3 = 0 ;
18630 PyObject * obj0 = 0 ;
18631 PyObject * obj1 = 0 ;
18632 PyObject * obj2 = 0 ;
18633 char * kwnames[] = {
18634 (char *) "self",(char *) "r",(char *) "radius", NULL
18635 };
18636
18637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18639 if (!SWIG_IsOK(res1)) {
18640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18641 }
18642 arg1 = reinterpret_cast< wxDC * >(argp1);
18643 {
18644 arg2 = &temp2;
18645 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18646 }
18647 ecode3 = SWIG_AsVal_double(obj2, &val3);
18648 if (!SWIG_IsOK(ecode3)) {
18649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18650 }
18651 arg3 = static_cast< double >(val3);
18652 {
18653 PyThreadState* __tstate = wxPyBeginAllowThreads();
18654 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18655 wxPyEndAllowThreads(__tstate);
18656 if (PyErr_Occurred()) SWIG_fail;
18657 }
18658 resultobj = SWIG_Py_Void();
18659 return resultobj;
18660 fail:
18661 return NULL;
18662 }
18663
18664
18665 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18666 PyObject *resultobj = 0;
18667 wxDC *arg1 = (wxDC *) 0 ;
18668 wxPoint *arg2 = 0 ;
18669 wxSize *arg3 = 0 ;
18670 double arg4 ;
18671 void *argp1 = 0 ;
18672 int res1 = 0 ;
18673 wxPoint temp2 ;
18674 wxSize temp3 ;
18675 double val4 ;
18676 int ecode4 = 0 ;
18677 PyObject * obj0 = 0 ;
18678 PyObject * obj1 = 0 ;
18679 PyObject * obj2 = 0 ;
18680 PyObject * obj3 = 0 ;
18681 char * kwnames[] = {
18682 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18683 };
18684
18685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18687 if (!SWIG_IsOK(res1)) {
18688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18689 }
18690 arg1 = reinterpret_cast< wxDC * >(argp1);
18691 {
18692 arg2 = &temp2;
18693 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18694 }
18695 {
18696 arg3 = &temp3;
18697 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18698 }
18699 ecode4 = SWIG_AsVal_double(obj3, &val4);
18700 if (!SWIG_IsOK(ecode4)) {
18701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18702 }
18703 arg4 = static_cast< double >(val4);
18704 {
18705 PyThreadState* __tstate = wxPyBeginAllowThreads();
18706 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18707 wxPyEndAllowThreads(__tstate);
18708 if (PyErr_Occurred()) SWIG_fail;
18709 }
18710 resultobj = SWIG_Py_Void();
18711 return resultobj;
18712 fail:
18713 return NULL;
18714 }
18715
18716
18717 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18718 PyObject *resultobj = 0;
18719 wxDC *arg1 = (wxDC *) 0 ;
18720 int arg2 ;
18721 int arg3 ;
18722 int arg4 ;
18723 void *argp1 = 0 ;
18724 int res1 = 0 ;
18725 int val2 ;
18726 int ecode2 = 0 ;
18727 int val3 ;
18728 int ecode3 = 0 ;
18729 int val4 ;
18730 int ecode4 = 0 ;
18731 PyObject * obj0 = 0 ;
18732 PyObject * obj1 = 0 ;
18733 PyObject * obj2 = 0 ;
18734 PyObject * obj3 = 0 ;
18735 char * kwnames[] = {
18736 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18737 };
18738
18739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18741 if (!SWIG_IsOK(res1)) {
18742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18743 }
18744 arg1 = reinterpret_cast< wxDC * >(argp1);
18745 ecode2 = SWIG_AsVal_int(obj1, &val2);
18746 if (!SWIG_IsOK(ecode2)) {
18747 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18748 }
18749 arg2 = static_cast< int >(val2);
18750 ecode3 = SWIG_AsVal_int(obj2, &val3);
18751 if (!SWIG_IsOK(ecode3)) {
18752 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18753 }
18754 arg3 = static_cast< int >(val3);
18755 ecode4 = SWIG_AsVal_int(obj3, &val4);
18756 if (!SWIG_IsOK(ecode4)) {
18757 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18758 }
18759 arg4 = static_cast< int >(val4);
18760 {
18761 PyThreadState* __tstate = wxPyBeginAllowThreads();
18762 (arg1)->DrawCircle(arg2,arg3,arg4);
18763 wxPyEndAllowThreads(__tstate);
18764 if (PyErr_Occurred()) SWIG_fail;
18765 }
18766 resultobj = SWIG_Py_Void();
18767 return resultobj;
18768 fail:
18769 return NULL;
18770 }
18771
18772
18773 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18774 PyObject *resultobj = 0;
18775 wxDC *arg1 = (wxDC *) 0 ;
18776 wxPoint *arg2 = 0 ;
18777 int arg3 ;
18778 void *argp1 = 0 ;
18779 int res1 = 0 ;
18780 wxPoint temp2 ;
18781 int val3 ;
18782 int ecode3 = 0 ;
18783 PyObject * obj0 = 0 ;
18784 PyObject * obj1 = 0 ;
18785 PyObject * obj2 = 0 ;
18786 char * kwnames[] = {
18787 (char *) "self",(char *) "pt",(char *) "radius", NULL
18788 };
18789
18790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18792 if (!SWIG_IsOK(res1)) {
18793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18794 }
18795 arg1 = reinterpret_cast< wxDC * >(argp1);
18796 {
18797 arg2 = &temp2;
18798 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18799 }
18800 ecode3 = SWIG_AsVal_int(obj2, &val3);
18801 if (!SWIG_IsOK(ecode3)) {
18802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18803 }
18804 arg3 = static_cast< int >(val3);
18805 {
18806 PyThreadState* __tstate = wxPyBeginAllowThreads();
18807 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18808 wxPyEndAllowThreads(__tstate);
18809 if (PyErr_Occurred()) SWIG_fail;
18810 }
18811 resultobj = SWIG_Py_Void();
18812 return resultobj;
18813 fail:
18814 return NULL;
18815 }
18816
18817
18818 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18819 PyObject *resultobj = 0;
18820 wxDC *arg1 = (wxDC *) 0 ;
18821 int arg2 ;
18822 int arg3 ;
18823 int arg4 ;
18824 int arg5 ;
18825 void *argp1 = 0 ;
18826 int res1 = 0 ;
18827 int val2 ;
18828 int ecode2 = 0 ;
18829 int val3 ;
18830 int ecode3 = 0 ;
18831 int val4 ;
18832 int ecode4 = 0 ;
18833 int val5 ;
18834 int ecode5 = 0 ;
18835 PyObject * obj0 = 0 ;
18836 PyObject * obj1 = 0 ;
18837 PyObject * obj2 = 0 ;
18838 PyObject * obj3 = 0 ;
18839 PyObject * obj4 = 0 ;
18840 char * kwnames[] = {
18841 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18842 };
18843
18844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18845 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18846 if (!SWIG_IsOK(res1)) {
18847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18848 }
18849 arg1 = reinterpret_cast< wxDC * >(argp1);
18850 ecode2 = SWIG_AsVal_int(obj1, &val2);
18851 if (!SWIG_IsOK(ecode2)) {
18852 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18853 }
18854 arg2 = static_cast< int >(val2);
18855 ecode3 = SWIG_AsVal_int(obj2, &val3);
18856 if (!SWIG_IsOK(ecode3)) {
18857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18858 }
18859 arg3 = static_cast< int >(val3);
18860 ecode4 = SWIG_AsVal_int(obj3, &val4);
18861 if (!SWIG_IsOK(ecode4)) {
18862 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18863 }
18864 arg4 = static_cast< int >(val4);
18865 ecode5 = SWIG_AsVal_int(obj4, &val5);
18866 if (!SWIG_IsOK(ecode5)) {
18867 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18868 }
18869 arg5 = static_cast< int >(val5);
18870 {
18871 PyThreadState* __tstate = wxPyBeginAllowThreads();
18872 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18873 wxPyEndAllowThreads(__tstate);
18874 if (PyErr_Occurred()) SWIG_fail;
18875 }
18876 resultobj = SWIG_Py_Void();
18877 return resultobj;
18878 fail:
18879 return NULL;
18880 }
18881
18882
18883 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18884 PyObject *resultobj = 0;
18885 wxDC *arg1 = (wxDC *) 0 ;
18886 wxRect *arg2 = 0 ;
18887 void *argp1 = 0 ;
18888 int res1 = 0 ;
18889 wxRect temp2 ;
18890 PyObject * obj0 = 0 ;
18891 PyObject * obj1 = 0 ;
18892 char * kwnames[] = {
18893 (char *) "self",(char *) "rect", NULL
18894 };
18895
18896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18898 if (!SWIG_IsOK(res1)) {
18899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18900 }
18901 arg1 = reinterpret_cast< wxDC * >(argp1);
18902 {
18903 arg2 = &temp2;
18904 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18905 }
18906 {
18907 PyThreadState* __tstate = wxPyBeginAllowThreads();
18908 (arg1)->DrawEllipse((wxRect const &)*arg2);
18909 wxPyEndAllowThreads(__tstate);
18910 if (PyErr_Occurred()) SWIG_fail;
18911 }
18912 resultobj = SWIG_Py_Void();
18913 return resultobj;
18914 fail:
18915 return NULL;
18916 }
18917
18918
18919 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18920 PyObject *resultobj = 0;
18921 wxDC *arg1 = (wxDC *) 0 ;
18922 wxPoint *arg2 = 0 ;
18923 wxSize *arg3 = 0 ;
18924 void *argp1 = 0 ;
18925 int res1 = 0 ;
18926 wxPoint temp2 ;
18927 wxSize temp3 ;
18928 PyObject * obj0 = 0 ;
18929 PyObject * obj1 = 0 ;
18930 PyObject * obj2 = 0 ;
18931 char * kwnames[] = {
18932 (char *) "self",(char *) "pt",(char *) "sz", NULL
18933 };
18934
18935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18937 if (!SWIG_IsOK(res1)) {
18938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18939 }
18940 arg1 = reinterpret_cast< wxDC * >(argp1);
18941 {
18942 arg2 = &temp2;
18943 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18944 }
18945 {
18946 arg3 = &temp3;
18947 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18948 }
18949 {
18950 PyThreadState* __tstate = wxPyBeginAllowThreads();
18951 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*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_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18963 PyObject *resultobj = 0;
18964 wxDC *arg1 = (wxDC *) 0 ;
18965 wxIcon *arg2 = 0 ;
18966 int arg3 ;
18967 int arg4 ;
18968 void *argp1 = 0 ;
18969 int res1 = 0 ;
18970 void *argp2 = 0 ;
18971 int res2 = 0 ;
18972 int val3 ;
18973 int ecode3 = 0 ;
18974 int val4 ;
18975 int ecode4 = 0 ;
18976 PyObject * obj0 = 0 ;
18977 PyObject * obj1 = 0 ;
18978 PyObject * obj2 = 0 ;
18979 PyObject * obj3 = 0 ;
18980 char * kwnames[] = {
18981 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18982 };
18983
18984 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18985 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18986 if (!SWIG_IsOK(res1)) {
18987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18988 }
18989 arg1 = reinterpret_cast< wxDC * >(argp1);
18990 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18991 if (!SWIG_IsOK(res2)) {
18992 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18993 }
18994 if (!argp2) {
18995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18996 }
18997 arg2 = reinterpret_cast< wxIcon * >(argp2);
18998 ecode3 = SWIG_AsVal_int(obj2, &val3);
18999 if (!SWIG_IsOK(ecode3)) {
19000 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19001 }
19002 arg3 = static_cast< int >(val3);
19003 ecode4 = SWIG_AsVal_int(obj3, &val4);
19004 if (!SWIG_IsOK(ecode4)) {
19005 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19006 }
19007 arg4 = static_cast< int >(val4);
19008 {
19009 PyThreadState* __tstate = wxPyBeginAllowThreads();
19010 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19011 wxPyEndAllowThreads(__tstate);
19012 if (PyErr_Occurred()) SWIG_fail;
19013 }
19014 resultobj = SWIG_Py_Void();
19015 return resultobj;
19016 fail:
19017 return NULL;
19018 }
19019
19020
19021 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19022 PyObject *resultobj = 0;
19023 wxDC *arg1 = (wxDC *) 0 ;
19024 wxIcon *arg2 = 0 ;
19025 wxPoint *arg3 = 0 ;
19026 void *argp1 = 0 ;
19027 int res1 = 0 ;
19028 void *argp2 = 0 ;
19029 int res2 = 0 ;
19030 wxPoint temp3 ;
19031 PyObject * obj0 = 0 ;
19032 PyObject * obj1 = 0 ;
19033 PyObject * obj2 = 0 ;
19034 char * kwnames[] = {
19035 (char *) "self",(char *) "icon",(char *) "pt", NULL
19036 };
19037
19038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19040 if (!SWIG_IsOK(res1)) {
19041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19042 }
19043 arg1 = reinterpret_cast< wxDC * >(argp1);
19044 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19045 if (!SWIG_IsOK(res2)) {
19046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19047 }
19048 if (!argp2) {
19049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19050 }
19051 arg2 = reinterpret_cast< wxIcon * >(argp2);
19052 {
19053 arg3 = &temp3;
19054 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19055 }
19056 {
19057 PyThreadState* __tstate = wxPyBeginAllowThreads();
19058 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19059 wxPyEndAllowThreads(__tstate);
19060 if (PyErr_Occurred()) SWIG_fail;
19061 }
19062 resultobj = SWIG_Py_Void();
19063 return resultobj;
19064 fail:
19065 return NULL;
19066 }
19067
19068
19069 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19070 PyObject *resultobj = 0;
19071 wxDC *arg1 = (wxDC *) 0 ;
19072 wxBitmap *arg2 = 0 ;
19073 int arg3 ;
19074 int arg4 ;
19075 bool arg5 = (bool) false ;
19076 void *argp1 = 0 ;
19077 int res1 = 0 ;
19078 void *argp2 = 0 ;
19079 int res2 = 0 ;
19080 int val3 ;
19081 int ecode3 = 0 ;
19082 int val4 ;
19083 int ecode4 = 0 ;
19084 bool val5 ;
19085 int ecode5 = 0 ;
19086 PyObject * obj0 = 0 ;
19087 PyObject * obj1 = 0 ;
19088 PyObject * obj2 = 0 ;
19089 PyObject * obj3 = 0 ;
19090 PyObject * obj4 = 0 ;
19091 char * kwnames[] = {
19092 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19093 };
19094
19095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19097 if (!SWIG_IsOK(res1)) {
19098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19099 }
19100 arg1 = reinterpret_cast< wxDC * >(argp1);
19101 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19102 if (!SWIG_IsOK(res2)) {
19103 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19104 }
19105 if (!argp2) {
19106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19107 }
19108 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19109 ecode3 = SWIG_AsVal_int(obj2, &val3);
19110 if (!SWIG_IsOK(ecode3)) {
19111 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19112 }
19113 arg3 = static_cast< int >(val3);
19114 ecode4 = SWIG_AsVal_int(obj3, &val4);
19115 if (!SWIG_IsOK(ecode4)) {
19116 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19117 }
19118 arg4 = static_cast< int >(val4);
19119 if (obj4) {
19120 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19121 if (!SWIG_IsOK(ecode5)) {
19122 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19123 }
19124 arg5 = static_cast< bool >(val5);
19125 }
19126 {
19127 PyThreadState* __tstate = wxPyBeginAllowThreads();
19128 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19129 wxPyEndAllowThreads(__tstate);
19130 if (PyErr_Occurred()) SWIG_fail;
19131 }
19132 resultobj = SWIG_Py_Void();
19133 return resultobj;
19134 fail:
19135 return NULL;
19136 }
19137
19138
19139 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19140 PyObject *resultobj = 0;
19141 wxDC *arg1 = (wxDC *) 0 ;
19142 wxBitmap *arg2 = 0 ;
19143 wxPoint *arg3 = 0 ;
19144 bool arg4 = (bool) false ;
19145 void *argp1 = 0 ;
19146 int res1 = 0 ;
19147 void *argp2 = 0 ;
19148 int res2 = 0 ;
19149 wxPoint temp3 ;
19150 bool val4 ;
19151 int ecode4 = 0 ;
19152 PyObject * obj0 = 0 ;
19153 PyObject * obj1 = 0 ;
19154 PyObject * obj2 = 0 ;
19155 PyObject * obj3 = 0 ;
19156 char * kwnames[] = {
19157 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19158 };
19159
19160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19162 if (!SWIG_IsOK(res1)) {
19163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19164 }
19165 arg1 = reinterpret_cast< wxDC * >(argp1);
19166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19167 if (!SWIG_IsOK(res2)) {
19168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19169 }
19170 if (!argp2) {
19171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19172 }
19173 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19174 {
19175 arg3 = &temp3;
19176 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19177 }
19178 if (obj3) {
19179 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19180 if (!SWIG_IsOK(ecode4)) {
19181 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19182 }
19183 arg4 = static_cast< bool >(val4);
19184 }
19185 {
19186 PyThreadState* __tstate = wxPyBeginAllowThreads();
19187 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19188 wxPyEndAllowThreads(__tstate);
19189 if (PyErr_Occurred()) SWIG_fail;
19190 }
19191 resultobj = SWIG_Py_Void();
19192 return resultobj;
19193 fail:
19194 return NULL;
19195 }
19196
19197
19198 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19199 PyObject *resultobj = 0;
19200 wxDC *arg1 = (wxDC *) 0 ;
19201 wxString *arg2 = 0 ;
19202 int arg3 ;
19203 int arg4 ;
19204 void *argp1 = 0 ;
19205 int res1 = 0 ;
19206 bool temp2 = false ;
19207 int val3 ;
19208 int ecode3 = 0 ;
19209 int val4 ;
19210 int ecode4 = 0 ;
19211 PyObject * obj0 = 0 ;
19212 PyObject * obj1 = 0 ;
19213 PyObject * obj2 = 0 ;
19214 PyObject * obj3 = 0 ;
19215 char * kwnames[] = {
19216 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19217 };
19218
19219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19221 if (!SWIG_IsOK(res1)) {
19222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19223 }
19224 arg1 = reinterpret_cast< wxDC * >(argp1);
19225 {
19226 arg2 = wxString_in_helper(obj1);
19227 if (arg2 == NULL) SWIG_fail;
19228 temp2 = true;
19229 }
19230 ecode3 = SWIG_AsVal_int(obj2, &val3);
19231 if (!SWIG_IsOK(ecode3)) {
19232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19233 }
19234 arg3 = static_cast< int >(val3);
19235 ecode4 = SWIG_AsVal_int(obj3, &val4);
19236 if (!SWIG_IsOK(ecode4)) {
19237 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19238 }
19239 arg4 = static_cast< int >(val4);
19240 {
19241 PyThreadState* __tstate = wxPyBeginAllowThreads();
19242 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19243 wxPyEndAllowThreads(__tstate);
19244 if (PyErr_Occurred()) SWIG_fail;
19245 }
19246 resultobj = SWIG_Py_Void();
19247 {
19248 if (temp2)
19249 delete arg2;
19250 }
19251 return resultobj;
19252 fail:
19253 {
19254 if (temp2)
19255 delete arg2;
19256 }
19257 return NULL;
19258 }
19259
19260
19261 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19262 PyObject *resultobj = 0;
19263 wxDC *arg1 = (wxDC *) 0 ;
19264 wxString *arg2 = 0 ;
19265 wxPoint *arg3 = 0 ;
19266 void *argp1 = 0 ;
19267 int res1 = 0 ;
19268 bool temp2 = false ;
19269 wxPoint temp3 ;
19270 PyObject * obj0 = 0 ;
19271 PyObject * obj1 = 0 ;
19272 PyObject * obj2 = 0 ;
19273 char * kwnames[] = {
19274 (char *) "self",(char *) "text",(char *) "pt", NULL
19275 };
19276
19277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19279 if (!SWIG_IsOK(res1)) {
19280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19281 }
19282 arg1 = reinterpret_cast< wxDC * >(argp1);
19283 {
19284 arg2 = wxString_in_helper(obj1);
19285 if (arg2 == NULL) SWIG_fail;
19286 temp2 = true;
19287 }
19288 {
19289 arg3 = &temp3;
19290 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19291 }
19292 {
19293 PyThreadState* __tstate = wxPyBeginAllowThreads();
19294 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19295 wxPyEndAllowThreads(__tstate);
19296 if (PyErr_Occurred()) SWIG_fail;
19297 }
19298 resultobj = SWIG_Py_Void();
19299 {
19300 if (temp2)
19301 delete arg2;
19302 }
19303 return resultobj;
19304 fail:
19305 {
19306 if (temp2)
19307 delete arg2;
19308 }
19309 return NULL;
19310 }
19311
19312
19313 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19314 PyObject *resultobj = 0;
19315 wxDC *arg1 = (wxDC *) 0 ;
19316 wxString *arg2 = 0 ;
19317 int arg3 ;
19318 int arg4 ;
19319 double arg5 ;
19320 void *argp1 = 0 ;
19321 int res1 = 0 ;
19322 bool temp2 = false ;
19323 int val3 ;
19324 int ecode3 = 0 ;
19325 int val4 ;
19326 int ecode4 = 0 ;
19327 double val5 ;
19328 int ecode5 = 0 ;
19329 PyObject * obj0 = 0 ;
19330 PyObject * obj1 = 0 ;
19331 PyObject * obj2 = 0 ;
19332 PyObject * obj3 = 0 ;
19333 PyObject * obj4 = 0 ;
19334 char * kwnames[] = {
19335 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19336 };
19337
19338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19340 if (!SWIG_IsOK(res1)) {
19341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19342 }
19343 arg1 = reinterpret_cast< wxDC * >(argp1);
19344 {
19345 arg2 = wxString_in_helper(obj1);
19346 if (arg2 == NULL) SWIG_fail;
19347 temp2 = true;
19348 }
19349 ecode3 = SWIG_AsVal_int(obj2, &val3);
19350 if (!SWIG_IsOK(ecode3)) {
19351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19352 }
19353 arg3 = static_cast< int >(val3);
19354 ecode4 = SWIG_AsVal_int(obj3, &val4);
19355 if (!SWIG_IsOK(ecode4)) {
19356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19357 }
19358 arg4 = static_cast< int >(val4);
19359 ecode5 = SWIG_AsVal_double(obj4, &val5);
19360 if (!SWIG_IsOK(ecode5)) {
19361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19362 }
19363 arg5 = static_cast< double >(val5);
19364 {
19365 PyThreadState* __tstate = wxPyBeginAllowThreads();
19366 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19367 wxPyEndAllowThreads(__tstate);
19368 if (PyErr_Occurred()) SWIG_fail;
19369 }
19370 resultobj = SWIG_Py_Void();
19371 {
19372 if (temp2)
19373 delete arg2;
19374 }
19375 return resultobj;
19376 fail:
19377 {
19378 if (temp2)
19379 delete arg2;
19380 }
19381 return NULL;
19382 }
19383
19384
19385 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19386 PyObject *resultobj = 0;
19387 wxDC *arg1 = (wxDC *) 0 ;
19388 wxString *arg2 = 0 ;
19389 wxPoint *arg3 = 0 ;
19390 double arg4 ;
19391 void *argp1 = 0 ;
19392 int res1 = 0 ;
19393 bool temp2 = false ;
19394 wxPoint temp3 ;
19395 double val4 ;
19396 int ecode4 = 0 ;
19397 PyObject * obj0 = 0 ;
19398 PyObject * obj1 = 0 ;
19399 PyObject * obj2 = 0 ;
19400 PyObject * obj3 = 0 ;
19401 char * kwnames[] = {
19402 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19403 };
19404
19405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19407 if (!SWIG_IsOK(res1)) {
19408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19409 }
19410 arg1 = reinterpret_cast< wxDC * >(argp1);
19411 {
19412 arg2 = wxString_in_helper(obj1);
19413 if (arg2 == NULL) SWIG_fail;
19414 temp2 = true;
19415 }
19416 {
19417 arg3 = &temp3;
19418 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19419 }
19420 ecode4 = SWIG_AsVal_double(obj3, &val4);
19421 if (!SWIG_IsOK(ecode4)) {
19422 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19423 }
19424 arg4 = static_cast< double >(val4);
19425 {
19426 PyThreadState* __tstate = wxPyBeginAllowThreads();
19427 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19428 wxPyEndAllowThreads(__tstate);
19429 if (PyErr_Occurred()) SWIG_fail;
19430 }
19431 resultobj = SWIG_Py_Void();
19432 {
19433 if (temp2)
19434 delete arg2;
19435 }
19436 return resultobj;
19437 fail:
19438 {
19439 if (temp2)
19440 delete arg2;
19441 }
19442 return NULL;
19443 }
19444
19445
19446 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19447 PyObject *resultobj = 0;
19448 wxDC *arg1 = (wxDC *) 0 ;
19449 int arg2 ;
19450 int arg3 ;
19451 int arg4 ;
19452 int arg5 ;
19453 wxDC *arg6 = (wxDC *) 0 ;
19454 int arg7 ;
19455 int arg8 ;
19456 int arg9 = (int) wxCOPY ;
19457 bool arg10 = (bool) false ;
19458 int arg11 = (int) -1 ;
19459 int arg12 = (int) -1 ;
19460 bool result;
19461 void *argp1 = 0 ;
19462 int res1 = 0 ;
19463 int val2 ;
19464 int ecode2 = 0 ;
19465 int val3 ;
19466 int ecode3 = 0 ;
19467 int val4 ;
19468 int ecode4 = 0 ;
19469 int val5 ;
19470 int ecode5 = 0 ;
19471 void *argp6 = 0 ;
19472 int res6 = 0 ;
19473 int val7 ;
19474 int ecode7 = 0 ;
19475 int val8 ;
19476 int ecode8 = 0 ;
19477 int val9 ;
19478 int ecode9 = 0 ;
19479 bool val10 ;
19480 int ecode10 = 0 ;
19481 int val11 ;
19482 int ecode11 = 0 ;
19483 int val12 ;
19484 int ecode12 = 0 ;
19485 PyObject * obj0 = 0 ;
19486 PyObject * obj1 = 0 ;
19487 PyObject * obj2 = 0 ;
19488 PyObject * obj3 = 0 ;
19489 PyObject * obj4 = 0 ;
19490 PyObject * obj5 = 0 ;
19491 PyObject * obj6 = 0 ;
19492 PyObject * obj7 = 0 ;
19493 PyObject * obj8 = 0 ;
19494 PyObject * obj9 = 0 ;
19495 PyObject * obj10 = 0 ;
19496 PyObject * obj11 = 0 ;
19497 char * kwnames[] = {
19498 (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
19499 };
19500
19501 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;
19502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19503 if (!SWIG_IsOK(res1)) {
19504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19505 }
19506 arg1 = reinterpret_cast< wxDC * >(argp1);
19507 ecode2 = SWIG_AsVal_int(obj1, &val2);
19508 if (!SWIG_IsOK(ecode2)) {
19509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19510 }
19511 arg2 = static_cast< int >(val2);
19512 ecode3 = SWIG_AsVal_int(obj2, &val3);
19513 if (!SWIG_IsOK(ecode3)) {
19514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19515 }
19516 arg3 = static_cast< int >(val3);
19517 ecode4 = SWIG_AsVal_int(obj3, &val4);
19518 if (!SWIG_IsOK(ecode4)) {
19519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19520 }
19521 arg4 = static_cast< int >(val4);
19522 ecode5 = SWIG_AsVal_int(obj4, &val5);
19523 if (!SWIG_IsOK(ecode5)) {
19524 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19525 }
19526 arg5 = static_cast< int >(val5);
19527 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19528 if (!SWIG_IsOK(res6)) {
19529 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19530 }
19531 arg6 = reinterpret_cast< wxDC * >(argp6);
19532 ecode7 = SWIG_AsVal_int(obj6, &val7);
19533 if (!SWIG_IsOK(ecode7)) {
19534 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19535 }
19536 arg7 = static_cast< int >(val7);
19537 ecode8 = SWIG_AsVal_int(obj7, &val8);
19538 if (!SWIG_IsOK(ecode8)) {
19539 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19540 }
19541 arg8 = static_cast< int >(val8);
19542 if (obj8) {
19543 ecode9 = SWIG_AsVal_int(obj8, &val9);
19544 if (!SWIG_IsOK(ecode9)) {
19545 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19546 }
19547 arg9 = static_cast< int >(val9);
19548 }
19549 if (obj9) {
19550 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19551 if (!SWIG_IsOK(ecode10)) {
19552 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19553 }
19554 arg10 = static_cast< bool >(val10);
19555 }
19556 if (obj10) {
19557 ecode11 = SWIG_AsVal_int(obj10, &val11);
19558 if (!SWIG_IsOK(ecode11)) {
19559 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19560 }
19561 arg11 = static_cast< int >(val11);
19562 }
19563 if (obj11) {
19564 ecode12 = SWIG_AsVal_int(obj11, &val12);
19565 if (!SWIG_IsOK(ecode12)) {
19566 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19567 }
19568 arg12 = static_cast< int >(val12);
19569 }
19570 {
19571 PyThreadState* __tstate = wxPyBeginAllowThreads();
19572 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19573 wxPyEndAllowThreads(__tstate);
19574 if (PyErr_Occurred()) SWIG_fail;
19575 }
19576 {
19577 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19578 }
19579 return resultobj;
19580 fail:
19581 return NULL;
19582 }
19583
19584
19585 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19586 PyObject *resultobj = 0;
19587 wxDC *arg1 = (wxDC *) 0 ;
19588 wxPoint *arg2 = 0 ;
19589 wxSize *arg3 = 0 ;
19590 wxDC *arg4 = (wxDC *) 0 ;
19591 wxPoint *arg5 = 0 ;
19592 int arg6 = (int) wxCOPY ;
19593 bool arg7 = (bool) false ;
19594 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19595 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19596 bool result;
19597 void *argp1 = 0 ;
19598 int res1 = 0 ;
19599 wxPoint temp2 ;
19600 wxSize temp3 ;
19601 void *argp4 = 0 ;
19602 int res4 = 0 ;
19603 wxPoint temp5 ;
19604 int val6 ;
19605 int ecode6 = 0 ;
19606 bool val7 ;
19607 int ecode7 = 0 ;
19608 wxPoint temp8 ;
19609 PyObject * obj0 = 0 ;
19610 PyObject * obj1 = 0 ;
19611 PyObject * obj2 = 0 ;
19612 PyObject * obj3 = 0 ;
19613 PyObject * obj4 = 0 ;
19614 PyObject * obj5 = 0 ;
19615 PyObject * obj6 = 0 ;
19616 PyObject * obj7 = 0 ;
19617 char * kwnames[] = {
19618 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19619 };
19620
19621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19623 if (!SWIG_IsOK(res1)) {
19624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19625 }
19626 arg1 = reinterpret_cast< wxDC * >(argp1);
19627 {
19628 arg2 = &temp2;
19629 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19630 }
19631 {
19632 arg3 = &temp3;
19633 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19634 }
19635 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19636 if (!SWIG_IsOK(res4)) {
19637 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19638 }
19639 arg4 = reinterpret_cast< wxDC * >(argp4);
19640 {
19641 arg5 = &temp5;
19642 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19643 }
19644 if (obj5) {
19645 ecode6 = SWIG_AsVal_int(obj5, &val6);
19646 if (!SWIG_IsOK(ecode6)) {
19647 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19648 }
19649 arg6 = static_cast< int >(val6);
19650 }
19651 if (obj6) {
19652 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19653 if (!SWIG_IsOK(ecode7)) {
19654 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19655 }
19656 arg7 = static_cast< bool >(val7);
19657 }
19658 if (obj7) {
19659 {
19660 arg8 = &temp8;
19661 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19662 }
19663 }
19664 {
19665 PyThreadState* __tstate = wxPyBeginAllowThreads();
19666 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19667 wxPyEndAllowThreads(__tstate);
19668 if (PyErr_Occurred()) SWIG_fail;
19669 }
19670 {
19671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19672 }
19673 return resultobj;
19674 fail:
19675 return NULL;
19676 }
19677
19678
19679 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19680 PyObject *resultobj = 0;
19681 wxDC *arg1 = (wxDC *) 0 ;
19682 int arg2 ;
19683 int arg3 ;
19684 int arg4 ;
19685 int arg5 ;
19686 void *argp1 = 0 ;
19687 int res1 = 0 ;
19688 int val2 ;
19689 int ecode2 = 0 ;
19690 int val3 ;
19691 int ecode3 = 0 ;
19692 int val4 ;
19693 int ecode4 = 0 ;
19694 int val5 ;
19695 int ecode5 = 0 ;
19696 PyObject * obj0 = 0 ;
19697 PyObject * obj1 = 0 ;
19698 PyObject * obj2 = 0 ;
19699 PyObject * obj3 = 0 ;
19700 PyObject * obj4 = 0 ;
19701 char * kwnames[] = {
19702 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19703 };
19704
19705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19707 if (!SWIG_IsOK(res1)) {
19708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19709 }
19710 arg1 = reinterpret_cast< wxDC * >(argp1);
19711 ecode2 = SWIG_AsVal_int(obj1, &val2);
19712 if (!SWIG_IsOK(ecode2)) {
19713 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19714 }
19715 arg2 = static_cast< int >(val2);
19716 ecode3 = SWIG_AsVal_int(obj2, &val3);
19717 if (!SWIG_IsOK(ecode3)) {
19718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19719 }
19720 arg3 = static_cast< int >(val3);
19721 ecode4 = SWIG_AsVal_int(obj3, &val4);
19722 if (!SWIG_IsOK(ecode4)) {
19723 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19724 }
19725 arg4 = static_cast< int >(val4);
19726 ecode5 = SWIG_AsVal_int(obj4, &val5);
19727 if (!SWIG_IsOK(ecode5)) {
19728 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19729 }
19730 arg5 = static_cast< int >(val5);
19731 {
19732 PyThreadState* __tstate = wxPyBeginAllowThreads();
19733 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19734 wxPyEndAllowThreads(__tstate);
19735 if (PyErr_Occurred()) SWIG_fail;
19736 }
19737 resultobj = SWIG_Py_Void();
19738 return resultobj;
19739 fail:
19740 return NULL;
19741 }
19742
19743
19744 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19745 PyObject *resultobj = 0;
19746 wxDC *arg1 = (wxDC *) 0 ;
19747 wxPoint *arg2 = 0 ;
19748 wxSize *arg3 = 0 ;
19749 void *argp1 = 0 ;
19750 int res1 = 0 ;
19751 wxPoint temp2 ;
19752 wxSize temp3 ;
19753 PyObject * obj0 = 0 ;
19754 PyObject * obj1 = 0 ;
19755 PyObject * obj2 = 0 ;
19756 char * kwnames[] = {
19757 (char *) "self",(char *) "pt",(char *) "sz", NULL
19758 };
19759
19760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19762 if (!SWIG_IsOK(res1)) {
19763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19764 }
19765 arg1 = reinterpret_cast< wxDC * >(argp1);
19766 {
19767 arg2 = &temp2;
19768 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19769 }
19770 {
19771 arg3 = &temp3;
19772 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19773 }
19774 {
19775 PyThreadState* __tstate = wxPyBeginAllowThreads();
19776 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19777 wxPyEndAllowThreads(__tstate);
19778 if (PyErr_Occurred()) SWIG_fail;
19779 }
19780 resultobj = SWIG_Py_Void();
19781 return resultobj;
19782 fail:
19783 return NULL;
19784 }
19785
19786
19787 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19788 PyObject *resultobj = 0;
19789 wxDC *arg1 = (wxDC *) 0 ;
19790 wxRegion *arg2 = 0 ;
19791 void *argp1 = 0 ;
19792 int res1 = 0 ;
19793 void *argp2 = 0 ;
19794 int res2 = 0 ;
19795 PyObject * obj0 = 0 ;
19796 PyObject * obj1 = 0 ;
19797 char * kwnames[] = {
19798 (char *) "self",(char *) "region", NULL
19799 };
19800
19801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19803 if (!SWIG_IsOK(res1)) {
19804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19805 }
19806 arg1 = reinterpret_cast< wxDC * >(argp1);
19807 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19808 if (!SWIG_IsOK(res2)) {
19809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19810 }
19811 if (!argp2) {
19812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19813 }
19814 arg2 = reinterpret_cast< wxRegion * >(argp2);
19815 {
19816 PyThreadState* __tstate = wxPyBeginAllowThreads();
19817 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19818 wxPyEndAllowThreads(__tstate);
19819 if (PyErr_Occurred()) SWIG_fail;
19820 }
19821 resultobj = SWIG_Py_Void();
19822 return resultobj;
19823 fail:
19824 return NULL;
19825 }
19826
19827
19828 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19829 PyObject *resultobj = 0;
19830 wxDC *arg1 = (wxDC *) 0 ;
19831 wxRect *arg2 = 0 ;
19832 void *argp1 = 0 ;
19833 int res1 = 0 ;
19834 wxRect temp2 ;
19835 PyObject * obj0 = 0 ;
19836 PyObject * obj1 = 0 ;
19837 char * kwnames[] = {
19838 (char *) "self",(char *) "rect", NULL
19839 };
19840
19841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19843 if (!SWIG_IsOK(res1)) {
19844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19845 }
19846 arg1 = reinterpret_cast< wxDC * >(argp1);
19847 {
19848 arg2 = &temp2;
19849 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19850 }
19851 {
19852 PyThreadState* __tstate = wxPyBeginAllowThreads();
19853 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19854 wxPyEndAllowThreads(__tstate);
19855 if (PyErr_Occurred()) SWIG_fail;
19856 }
19857 resultobj = SWIG_Py_Void();
19858 return resultobj;
19859 fail:
19860 return NULL;
19861 }
19862
19863
19864 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19865 PyObject *resultobj = 0;
19866 wxDC *arg1 = (wxDC *) 0 ;
19867 int arg2 ;
19868 wxPoint *arg3 = (wxPoint *) 0 ;
19869 int arg4 = (int) 0 ;
19870 int arg5 = (int) 0 ;
19871 void *argp1 = 0 ;
19872 int res1 = 0 ;
19873 int val4 ;
19874 int ecode4 = 0 ;
19875 int val5 ;
19876 int ecode5 = 0 ;
19877 PyObject * obj0 = 0 ;
19878 PyObject * obj1 = 0 ;
19879 PyObject * obj2 = 0 ;
19880 PyObject * obj3 = 0 ;
19881 char * kwnames[] = {
19882 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19883 };
19884
19885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19887 if (!SWIG_IsOK(res1)) {
19888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19889 }
19890 arg1 = reinterpret_cast< wxDC * >(argp1);
19891 {
19892 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19893 if (arg3 == NULL) SWIG_fail;
19894 }
19895 if (obj2) {
19896 ecode4 = SWIG_AsVal_int(obj2, &val4);
19897 if (!SWIG_IsOK(ecode4)) {
19898 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19899 }
19900 arg4 = static_cast< int >(val4);
19901 }
19902 if (obj3) {
19903 ecode5 = SWIG_AsVal_int(obj3, &val5);
19904 if (!SWIG_IsOK(ecode5)) {
19905 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19906 }
19907 arg5 = static_cast< int >(val5);
19908 }
19909 {
19910 PyThreadState* __tstate = wxPyBeginAllowThreads();
19911 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19912 wxPyEndAllowThreads(__tstate);
19913 if (PyErr_Occurred()) SWIG_fail;
19914 }
19915 resultobj = SWIG_Py_Void();
19916 {
19917 if (arg3) delete [] arg3;
19918 }
19919 return resultobj;
19920 fail:
19921 {
19922 if (arg3) delete [] arg3;
19923 }
19924 return NULL;
19925 }
19926
19927
19928 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19929 PyObject *resultobj = 0;
19930 wxDC *arg1 = (wxDC *) 0 ;
19931 int arg2 ;
19932 wxPoint *arg3 = (wxPoint *) 0 ;
19933 int arg4 = (int) 0 ;
19934 int arg5 = (int) 0 ;
19935 int arg6 = (int) wxODDEVEN_RULE ;
19936 void *argp1 = 0 ;
19937 int res1 = 0 ;
19938 int val4 ;
19939 int ecode4 = 0 ;
19940 int val5 ;
19941 int ecode5 = 0 ;
19942 int val6 ;
19943 int ecode6 = 0 ;
19944 PyObject * obj0 = 0 ;
19945 PyObject * obj1 = 0 ;
19946 PyObject * obj2 = 0 ;
19947 PyObject * obj3 = 0 ;
19948 PyObject * obj4 = 0 ;
19949 char * kwnames[] = {
19950 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19951 };
19952
19953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) 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_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19957 }
19958 arg1 = reinterpret_cast< wxDC * >(argp1);
19959 {
19960 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19961 if (arg3 == NULL) SWIG_fail;
19962 }
19963 if (obj2) {
19964 ecode4 = SWIG_AsVal_int(obj2, &val4);
19965 if (!SWIG_IsOK(ecode4)) {
19966 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19967 }
19968 arg4 = static_cast< int >(val4);
19969 }
19970 if (obj3) {
19971 ecode5 = SWIG_AsVal_int(obj3, &val5);
19972 if (!SWIG_IsOK(ecode5)) {
19973 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19974 }
19975 arg5 = static_cast< int >(val5);
19976 }
19977 if (obj4) {
19978 ecode6 = SWIG_AsVal_int(obj4, &val6);
19979 if (!SWIG_IsOK(ecode6)) {
19980 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19981 }
19982 arg6 = static_cast< int >(val6);
19983 }
19984 {
19985 PyThreadState* __tstate = wxPyBeginAllowThreads();
19986 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19987 wxPyEndAllowThreads(__tstate);
19988 if (PyErr_Occurred()) SWIG_fail;
19989 }
19990 resultobj = SWIG_Py_Void();
19991 {
19992 if (arg3) delete [] arg3;
19993 }
19994 return resultobj;
19995 fail:
19996 {
19997 if (arg3) delete [] arg3;
19998 }
19999 return NULL;
20000 }
20001
20002
20003 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20004 PyObject *resultobj = 0;
20005 wxDC *arg1 = (wxDC *) 0 ;
20006 wxString *arg2 = 0 ;
20007 wxRect *arg3 = 0 ;
20008 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20009 int arg5 = (int) -1 ;
20010 void *argp1 = 0 ;
20011 int res1 = 0 ;
20012 bool temp2 = false ;
20013 wxRect temp3 ;
20014 int val4 ;
20015 int ecode4 = 0 ;
20016 int val5 ;
20017 int ecode5 = 0 ;
20018 PyObject * obj0 = 0 ;
20019 PyObject * obj1 = 0 ;
20020 PyObject * obj2 = 0 ;
20021 PyObject * obj3 = 0 ;
20022 PyObject * obj4 = 0 ;
20023 char * kwnames[] = {
20024 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20025 };
20026
20027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20029 if (!SWIG_IsOK(res1)) {
20030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20031 }
20032 arg1 = reinterpret_cast< wxDC * >(argp1);
20033 {
20034 arg2 = wxString_in_helper(obj1);
20035 if (arg2 == NULL) SWIG_fail;
20036 temp2 = true;
20037 }
20038 {
20039 arg3 = &temp3;
20040 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20041 }
20042 if (obj3) {
20043 ecode4 = SWIG_AsVal_int(obj3, &val4);
20044 if (!SWIG_IsOK(ecode4)) {
20045 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20046 }
20047 arg4 = static_cast< int >(val4);
20048 }
20049 if (obj4) {
20050 ecode5 = SWIG_AsVal_int(obj4, &val5);
20051 if (!SWIG_IsOK(ecode5)) {
20052 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20053 }
20054 arg5 = static_cast< int >(val5);
20055 }
20056 {
20057 PyThreadState* __tstate = wxPyBeginAllowThreads();
20058 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20059 wxPyEndAllowThreads(__tstate);
20060 if (PyErr_Occurred()) SWIG_fail;
20061 }
20062 resultobj = SWIG_Py_Void();
20063 {
20064 if (temp2)
20065 delete arg2;
20066 }
20067 return resultobj;
20068 fail:
20069 {
20070 if (temp2)
20071 delete arg2;
20072 }
20073 return NULL;
20074 }
20075
20076
20077 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20078 PyObject *resultobj = 0;
20079 wxDC *arg1 = (wxDC *) 0 ;
20080 wxString *arg2 = 0 ;
20081 wxBitmap *arg3 = 0 ;
20082 wxRect *arg4 = 0 ;
20083 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20084 int arg6 = (int) -1 ;
20085 wxRect result;
20086 void *argp1 = 0 ;
20087 int res1 = 0 ;
20088 bool temp2 = false ;
20089 void *argp3 = 0 ;
20090 int res3 = 0 ;
20091 wxRect temp4 ;
20092 int val5 ;
20093 int ecode5 = 0 ;
20094 int val6 ;
20095 int ecode6 = 0 ;
20096 PyObject * obj0 = 0 ;
20097 PyObject * obj1 = 0 ;
20098 PyObject * obj2 = 0 ;
20099 PyObject * obj3 = 0 ;
20100 PyObject * obj4 = 0 ;
20101 PyObject * obj5 = 0 ;
20102 char * kwnames[] = {
20103 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20104 };
20105
20106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20108 if (!SWIG_IsOK(res1)) {
20109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20110 }
20111 arg1 = reinterpret_cast< wxDC * >(argp1);
20112 {
20113 arg2 = wxString_in_helper(obj1);
20114 if (arg2 == NULL) SWIG_fail;
20115 temp2 = true;
20116 }
20117 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20118 if (!SWIG_IsOK(res3)) {
20119 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20120 }
20121 if (!argp3) {
20122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20123 }
20124 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20125 {
20126 arg4 = &temp4;
20127 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20128 }
20129 if (obj4) {
20130 ecode5 = SWIG_AsVal_int(obj4, &val5);
20131 if (!SWIG_IsOK(ecode5)) {
20132 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20133 }
20134 arg5 = static_cast< int >(val5);
20135 }
20136 if (obj5) {
20137 ecode6 = SWIG_AsVal_int(obj5, &val6);
20138 if (!SWIG_IsOK(ecode6)) {
20139 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20140 }
20141 arg6 = static_cast< int >(val6);
20142 }
20143 {
20144 PyThreadState* __tstate = wxPyBeginAllowThreads();
20145 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20146 wxPyEndAllowThreads(__tstate);
20147 if (PyErr_Occurred()) SWIG_fail;
20148 }
20149 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20150 {
20151 if (temp2)
20152 delete arg2;
20153 }
20154 return resultobj;
20155 fail:
20156 {
20157 if (temp2)
20158 delete arg2;
20159 }
20160 return NULL;
20161 }
20162
20163
20164 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20165 PyObject *resultobj = 0;
20166 wxDC *arg1 = (wxDC *) 0 ;
20167 int arg2 ;
20168 wxPoint *arg3 = (wxPoint *) 0 ;
20169 void *argp1 = 0 ;
20170 int res1 = 0 ;
20171 PyObject * obj0 = 0 ;
20172 PyObject * obj1 = 0 ;
20173 char * kwnames[] = {
20174 (char *) "self",(char *) "points", NULL
20175 };
20176
20177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20179 if (!SWIG_IsOK(res1)) {
20180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20181 }
20182 arg1 = reinterpret_cast< wxDC * >(argp1);
20183 {
20184 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20185 if (arg3 == NULL) SWIG_fail;
20186 }
20187 {
20188 PyThreadState* __tstate = wxPyBeginAllowThreads();
20189 (arg1)->DrawSpline(arg2,arg3);
20190 wxPyEndAllowThreads(__tstate);
20191 if (PyErr_Occurred()) SWIG_fail;
20192 }
20193 resultobj = SWIG_Py_Void();
20194 {
20195 if (arg3) delete [] arg3;
20196 }
20197 return resultobj;
20198 fail:
20199 {
20200 if (arg3) delete [] arg3;
20201 }
20202 return NULL;
20203 }
20204
20205
20206 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20207 PyObject *resultobj = 0;
20208 wxDC *arg1 = (wxDC *) 0 ;
20209 void *argp1 = 0 ;
20210 int res1 = 0 ;
20211 PyObject *swig_obj[1] ;
20212
20213 if (!args) SWIG_fail;
20214 swig_obj[0] = args;
20215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20216 if (!SWIG_IsOK(res1)) {
20217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20218 }
20219 arg1 = reinterpret_cast< wxDC * >(argp1);
20220 {
20221 PyThreadState* __tstate = wxPyBeginAllowThreads();
20222 (arg1)->Clear();
20223 wxPyEndAllowThreads(__tstate);
20224 if (PyErr_Occurred()) SWIG_fail;
20225 }
20226 resultobj = SWIG_Py_Void();
20227 return resultobj;
20228 fail:
20229 return NULL;
20230 }
20231
20232
20233 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20234 PyObject *resultobj = 0;
20235 wxDC *arg1 = (wxDC *) 0 ;
20236 wxString *arg2 = 0 ;
20237 bool result;
20238 void *argp1 = 0 ;
20239 int res1 = 0 ;
20240 bool temp2 = false ;
20241 PyObject * obj0 = 0 ;
20242 PyObject * obj1 = 0 ;
20243 char * kwnames[] = {
20244 (char *) "self",(char *) "message", NULL
20245 };
20246
20247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20249 if (!SWIG_IsOK(res1)) {
20250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20251 }
20252 arg1 = reinterpret_cast< wxDC * >(argp1);
20253 {
20254 arg2 = wxString_in_helper(obj1);
20255 if (arg2 == NULL) SWIG_fail;
20256 temp2 = true;
20257 }
20258 {
20259 PyThreadState* __tstate = wxPyBeginAllowThreads();
20260 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20261 wxPyEndAllowThreads(__tstate);
20262 if (PyErr_Occurred()) SWIG_fail;
20263 }
20264 {
20265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20266 }
20267 {
20268 if (temp2)
20269 delete arg2;
20270 }
20271 return resultobj;
20272 fail:
20273 {
20274 if (temp2)
20275 delete arg2;
20276 }
20277 return NULL;
20278 }
20279
20280
20281 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20282 PyObject *resultobj = 0;
20283 wxDC *arg1 = (wxDC *) 0 ;
20284 void *argp1 = 0 ;
20285 int res1 = 0 ;
20286 PyObject *swig_obj[1] ;
20287
20288 if (!args) SWIG_fail;
20289 swig_obj[0] = args;
20290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20291 if (!SWIG_IsOK(res1)) {
20292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20293 }
20294 arg1 = reinterpret_cast< wxDC * >(argp1);
20295 {
20296 PyThreadState* __tstate = wxPyBeginAllowThreads();
20297 (arg1)->EndDoc();
20298 wxPyEndAllowThreads(__tstate);
20299 if (PyErr_Occurred()) SWIG_fail;
20300 }
20301 resultobj = SWIG_Py_Void();
20302 return resultobj;
20303 fail:
20304 return NULL;
20305 }
20306
20307
20308 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20309 PyObject *resultobj = 0;
20310 wxDC *arg1 = (wxDC *) 0 ;
20311 void *argp1 = 0 ;
20312 int res1 = 0 ;
20313 PyObject *swig_obj[1] ;
20314
20315 if (!args) SWIG_fail;
20316 swig_obj[0] = args;
20317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20318 if (!SWIG_IsOK(res1)) {
20319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20320 }
20321 arg1 = reinterpret_cast< wxDC * >(argp1);
20322 {
20323 PyThreadState* __tstate = wxPyBeginAllowThreads();
20324 (arg1)->StartPage();
20325 wxPyEndAllowThreads(__tstate);
20326 if (PyErr_Occurred()) SWIG_fail;
20327 }
20328 resultobj = SWIG_Py_Void();
20329 return resultobj;
20330 fail:
20331 return NULL;
20332 }
20333
20334
20335 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20336 PyObject *resultobj = 0;
20337 wxDC *arg1 = (wxDC *) 0 ;
20338 void *argp1 = 0 ;
20339 int res1 = 0 ;
20340 PyObject *swig_obj[1] ;
20341
20342 if (!args) SWIG_fail;
20343 swig_obj[0] = args;
20344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20345 if (!SWIG_IsOK(res1)) {
20346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20347 }
20348 arg1 = reinterpret_cast< wxDC * >(argp1);
20349 {
20350 PyThreadState* __tstate = wxPyBeginAllowThreads();
20351 (arg1)->EndPage();
20352 wxPyEndAllowThreads(__tstate);
20353 if (PyErr_Occurred()) SWIG_fail;
20354 }
20355 resultobj = SWIG_Py_Void();
20356 return resultobj;
20357 fail:
20358 return NULL;
20359 }
20360
20361
20362 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20363 PyObject *resultobj = 0;
20364 wxDC *arg1 = (wxDC *) 0 ;
20365 wxFont *arg2 = 0 ;
20366 void *argp1 = 0 ;
20367 int res1 = 0 ;
20368 void *argp2 = 0 ;
20369 int res2 = 0 ;
20370 PyObject * obj0 = 0 ;
20371 PyObject * obj1 = 0 ;
20372 char * kwnames[] = {
20373 (char *) "self",(char *) "font", NULL
20374 };
20375
20376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20378 if (!SWIG_IsOK(res1)) {
20379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20380 }
20381 arg1 = reinterpret_cast< wxDC * >(argp1);
20382 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20383 if (!SWIG_IsOK(res2)) {
20384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20385 }
20386 if (!argp2) {
20387 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20388 }
20389 arg2 = reinterpret_cast< wxFont * >(argp2);
20390 {
20391 PyThreadState* __tstate = wxPyBeginAllowThreads();
20392 (arg1)->SetFont((wxFont const &)*arg2);
20393 wxPyEndAllowThreads(__tstate);
20394 if (PyErr_Occurred()) SWIG_fail;
20395 }
20396 resultobj = SWIG_Py_Void();
20397 return resultobj;
20398 fail:
20399 return NULL;
20400 }
20401
20402
20403 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20404 PyObject *resultobj = 0;
20405 wxDC *arg1 = (wxDC *) 0 ;
20406 wxPen *arg2 = 0 ;
20407 void *argp1 = 0 ;
20408 int res1 = 0 ;
20409 void *argp2 = 0 ;
20410 int res2 = 0 ;
20411 PyObject * obj0 = 0 ;
20412 PyObject * obj1 = 0 ;
20413 char * kwnames[] = {
20414 (char *) "self",(char *) "pen", NULL
20415 };
20416
20417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20419 if (!SWIG_IsOK(res1)) {
20420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20421 }
20422 arg1 = reinterpret_cast< wxDC * >(argp1);
20423 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20424 if (!SWIG_IsOK(res2)) {
20425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20426 }
20427 if (!argp2) {
20428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20429 }
20430 arg2 = reinterpret_cast< wxPen * >(argp2);
20431 {
20432 PyThreadState* __tstate = wxPyBeginAllowThreads();
20433 (arg1)->SetPen((wxPen const &)*arg2);
20434 wxPyEndAllowThreads(__tstate);
20435 if (PyErr_Occurred()) SWIG_fail;
20436 }
20437 resultobj = SWIG_Py_Void();
20438 return resultobj;
20439 fail:
20440 return NULL;
20441 }
20442
20443
20444 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20445 PyObject *resultobj = 0;
20446 wxDC *arg1 = (wxDC *) 0 ;
20447 wxBrush *arg2 = 0 ;
20448 void *argp1 = 0 ;
20449 int res1 = 0 ;
20450 void *argp2 = 0 ;
20451 int res2 = 0 ;
20452 PyObject * obj0 = 0 ;
20453 PyObject * obj1 = 0 ;
20454 char * kwnames[] = {
20455 (char *) "self",(char *) "brush", NULL
20456 };
20457
20458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20460 if (!SWIG_IsOK(res1)) {
20461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20462 }
20463 arg1 = reinterpret_cast< wxDC * >(argp1);
20464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20465 if (!SWIG_IsOK(res2)) {
20466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20467 }
20468 if (!argp2) {
20469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20470 }
20471 arg2 = reinterpret_cast< wxBrush * >(argp2);
20472 {
20473 PyThreadState* __tstate = wxPyBeginAllowThreads();
20474 (arg1)->SetBrush((wxBrush const &)*arg2);
20475 wxPyEndAllowThreads(__tstate);
20476 if (PyErr_Occurred()) SWIG_fail;
20477 }
20478 resultobj = SWIG_Py_Void();
20479 return resultobj;
20480 fail:
20481 return NULL;
20482 }
20483
20484
20485 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20486 PyObject *resultobj = 0;
20487 wxDC *arg1 = (wxDC *) 0 ;
20488 wxBrush *arg2 = 0 ;
20489 void *argp1 = 0 ;
20490 int res1 = 0 ;
20491 void *argp2 = 0 ;
20492 int res2 = 0 ;
20493 PyObject * obj0 = 0 ;
20494 PyObject * obj1 = 0 ;
20495 char * kwnames[] = {
20496 (char *) "self",(char *) "brush", NULL
20497 };
20498
20499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20501 if (!SWIG_IsOK(res1)) {
20502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20503 }
20504 arg1 = reinterpret_cast< wxDC * >(argp1);
20505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20506 if (!SWIG_IsOK(res2)) {
20507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20508 }
20509 if (!argp2) {
20510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20511 }
20512 arg2 = reinterpret_cast< wxBrush * >(argp2);
20513 {
20514 PyThreadState* __tstate = wxPyBeginAllowThreads();
20515 (arg1)->SetBackground((wxBrush const &)*arg2);
20516 wxPyEndAllowThreads(__tstate);
20517 if (PyErr_Occurred()) SWIG_fail;
20518 }
20519 resultobj = SWIG_Py_Void();
20520 return resultobj;
20521 fail:
20522 return NULL;
20523 }
20524
20525
20526 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20527 PyObject *resultobj = 0;
20528 wxDC *arg1 = (wxDC *) 0 ;
20529 int arg2 ;
20530 void *argp1 = 0 ;
20531 int res1 = 0 ;
20532 int val2 ;
20533 int ecode2 = 0 ;
20534 PyObject * obj0 = 0 ;
20535 PyObject * obj1 = 0 ;
20536 char * kwnames[] = {
20537 (char *) "self",(char *) "mode", NULL
20538 };
20539
20540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20542 if (!SWIG_IsOK(res1)) {
20543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20544 }
20545 arg1 = reinterpret_cast< wxDC * >(argp1);
20546 ecode2 = SWIG_AsVal_int(obj1, &val2);
20547 if (!SWIG_IsOK(ecode2)) {
20548 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20549 }
20550 arg2 = static_cast< int >(val2);
20551 {
20552 PyThreadState* __tstate = wxPyBeginAllowThreads();
20553 (arg1)->SetBackgroundMode(arg2);
20554 wxPyEndAllowThreads(__tstate);
20555 if (PyErr_Occurred()) SWIG_fail;
20556 }
20557 resultobj = SWIG_Py_Void();
20558 return resultobj;
20559 fail:
20560 return NULL;
20561 }
20562
20563
20564 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20565 PyObject *resultobj = 0;
20566 wxDC *arg1 = (wxDC *) 0 ;
20567 wxPalette *arg2 = 0 ;
20568 void *argp1 = 0 ;
20569 int res1 = 0 ;
20570 void *argp2 = 0 ;
20571 int res2 = 0 ;
20572 PyObject * obj0 = 0 ;
20573 PyObject * obj1 = 0 ;
20574 char * kwnames[] = {
20575 (char *) "self",(char *) "palette", NULL
20576 };
20577
20578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20580 if (!SWIG_IsOK(res1)) {
20581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20582 }
20583 arg1 = reinterpret_cast< wxDC * >(argp1);
20584 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20585 if (!SWIG_IsOK(res2)) {
20586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20587 }
20588 if (!argp2) {
20589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20590 }
20591 arg2 = reinterpret_cast< wxPalette * >(argp2);
20592 {
20593 PyThreadState* __tstate = wxPyBeginAllowThreads();
20594 (arg1)->SetPalette((wxPalette const &)*arg2);
20595 wxPyEndAllowThreads(__tstate);
20596 if (PyErr_Occurred()) SWIG_fail;
20597 }
20598 resultobj = SWIG_Py_Void();
20599 return resultobj;
20600 fail:
20601 return NULL;
20602 }
20603
20604
20605 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20606 PyObject *resultobj = 0;
20607 wxDC *arg1 = (wxDC *) 0 ;
20608 void *argp1 = 0 ;
20609 int res1 = 0 ;
20610 PyObject *swig_obj[1] ;
20611
20612 if (!args) SWIG_fail;
20613 swig_obj[0] = args;
20614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20615 if (!SWIG_IsOK(res1)) {
20616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20617 }
20618 arg1 = reinterpret_cast< wxDC * >(argp1);
20619 {
20620 PyThreadState* __tstate = wxPyBeginAllowThreads();
20621 (arg1)->DestroyClippingRegion();
20622 wxPyEndAllowThreads(__tstate);
20623 if (PyErr_Occurred()) SWIG_fail;
20624 }
20625 resultobj = SWIG_Py_Void();
20626 return resultobj;
20627 fail:
20628 return NULL;
20629 }
20630
20631
20632 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20633 PyObject *resultobj = 0;
20634 wxDC *arg1 = (wxDC *) 0 ;
20635 int *arg2 = (int *) 0 ;
20636 int *arg3 = (int *) 0 ;
20637 int *arg4 = (int *) 0 ;
20638 int *arg5 = (int *) 0 ;
20639 void *argp1 = 0 ;
20640 int res1 = 0 ;
20641 int temp2 ;
20642 int res2 = SWIG_TMPOBJ ;
20643 int temp3 ;
20644 int res3 = SWIG_TMPOBJ ;
20645 int temp4 ;
20646 int res4 = SWIG_TMPOBJ ;
20647 int temp5 ;
20648 int res5 = SWIG_TMPOBJ ;
20649 PyObject *swig_obj[1] ;
20650
20651 arg2 = &temp2;
20652 arg3 = &temp3;
20653 arg4 = &temp4;
20654 arg5 = &temp5;
20655 if (!args) SWIG_fail;
20656 swig_obj[0] = args;
20657 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20658 if (!SWIG_IsOK(res1)) {
20659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20660 }
20661 arg1 = reinterpret_cast< wxDC * >(argp1);
20662 {
20663 PyThreadState* __tstate = wxPyBeginAllowThreads();
20664 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20665 wxPyEndAllowThreads(__tstate);
20666 if (PyErr_Occurred()) SWIG_fail;
20667 }
20668 resultobj = SWIG_Py_Void();
20669 if (SWIG_IsTmpObj(res2)) {
20670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20671 } else {
20672 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20673 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20674 }
20675 if (SWIG_IsTmpObj(res3)) {
20676 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20677 } else {
20678 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20679 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20680 }
20681 if (SWIG_IsTmpObj(res4)) {
20682 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20683 } else {
20684 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20685 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20686 }
20687 if (SWIG_IsTmpObj(res5)) {
20688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20689 } else {
20690 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20692 }
20693 return resultobj;
20694 fail:
20695 return NULL;
20696 }
20697
20698
20699 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20700 PyObject *resultobj = 0;
20701 wxDC *arg1 = (wxDC *) 0 ;
20702 wxRect result;
20703 void *argp1 = 0 ;
20704 int res1 = 0 ;
20705 PyObject *swig_obj[1] ;
20706
20707 if (!args) SWIG_fail;
20708 swig_obj[0] = args;
20709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20710 if (!SWIG_IsOK(res1)) {
20711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20712 }
20713 arg1 = reinterpret_cast< wxDC * >(argp1);
20714 {
20715 PyThreadState* __tstate = wxPyBeginAllowThreads();
20716 result = wxDC_GetClippingRect(arg1);
20717 wxPyEndAllowThreads(__tstate);
20718 if (PyErr_Occurred()) SWIG_fail;
20719 }
20720 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20721 return resultobj;
20722 fail:
20723 return NULL;
20724 }
20725
20726
20727 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20728 PyObject *resultobj = 0;
20729 wxDC *arg1 = (wxDC *) 0 ;
20730 int result;
20731 void *argp1 = 0 ;
20732 int res1 = 0 ;
20733 PyObject *swig_obj[1] ;
20734
20735 if (!args) SWIG_fail;
20736 swig_obj[0] = args;
20737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20738 if (!SWIG_IsOK(res1)) {
20739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20740 }
20741 arg1 = reinterpret_cast< wxDC * >(argp1);
20742 {
20743 PyThreadState* __tstate = wxPyBeginAllowThreads();
20744 result = (int)((wxDC const *)arg1)->GetCharHeight();
20745 wxPyEndAllowThreads(__tstate);
20746 if (PyErr_Occurred()) SWIG_fail;
20747 }
20748 resultobj = SWIG_From_int(static_cast< int >(result));
20749 return resultobj;
20750 fail:
20751 return NULL;
20752 }
20753
20754
20755 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20756 PyObject *resultobj = 0;
20757 wxDC *arg1 = (wxDC *) 0 ;
20758 int result;
20759 void *argp1 = 0 ;
20760 int res1 = 0 ;
20761 PyObject *swig_obj[1] ;
20762
20763 if (!args) SWIG_fail;
20764 swig_obj[0] = args;
20765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20766 if (!SWIG_IsOK(res1)) {
20767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20768 }
20769 arg1 = reinterpret_cast< wxDC * >(argp1);
20770 {
20771 PyThreadState* __tstate = wxPyBeginAllowThreads();
20772 result = (int)((wxDC const *)arg1)->GetCharWidth();
20773 wxPyEndAllowThreads(__tstate);
20774 if (PyErr_Occurred()) SWIG_fail;
20775 }
20776 resultobj = SWIG_From_int(static_cast< int >(result));
20777 return resultobj;
20778 fail:
20779 return NULL;
20780 }
20781
20782
20783 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20784 PyObject *resultobj = 0;
20785 wxDC *arg1 = (wxDC *) 0 ;
20786 wxString *arg2 = 0 ;
20787 int *arg3 = (int *) 0 ;
20788 int *arg4 = (int *) 0 ;
20789 void *argp1 = 0 ;
20790 int res1 = 0 ;
20791 bool temp2 = false ;
20792 int temp3 ;
20793 int res3 = SWIG_TMPOBJ ;
20794 int temp4 ;
20795 int res4 = SWIG_TMPOBJ ;
20796 PyObject * obj0 = 0 ;
20797 PyObject * obj1 = 0 ;
20798 char * kwnames[] = {
20799 (char *) "self",(char *) "string", NULL
20800 };
20801
20802 arg3 = &temp3;
20803 arg4 = &temp4;
20804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20806 if (!SWIG_IsOK(res1)) {
20807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20808 }
20809 arg1 = reinterpret_cast< wxDC * >(argp1);
20810 {
20811 arg2 = wxString_in_helper(obj1);
20812 if (arg2 == NULL) SWIG_fail;
20813 temp2 = true;
20814 }
20815 {
20816 PyThreadState* __tstate = wxPyBeginAllowThreads();
20817 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20818 wxPyEndAllowThreads(__tstate);
20819 if (PyErr_Occurred()) SWIG_fail;
20820 }
20821 resultobj = SWIG_Py_Void();
20822 if (SWIG_IsTmpObj(res3)) {
20823 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20824 } else {
20825 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20826 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20827 }
20828 if (SWIG_IsTmpObj(res4)) {
20829 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20830 } else {
20831 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20832 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20833 }
20834 {
20835 if (temp2)
20836 delete arg2;
20837 }
20838 return resultobj;
20839 fail:
20840 {
20841 if (temp2)
20842 delete arg2;
20843 }
20844 return NULL;
20845 }
20846
20847
20848 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20849 PyObject *resultobj = 0;
20850 wxDC *arg1 = (wxDC *) 0 ;
20851 wxString *arg2 = 0 ;
20852 int *arg3 = (int *) 0 ;
20853 int *arg4 = (int *) 0 ;
20854 int *arg5 = (int *) 0 ;
20855 int *arg6 = (int *) 0 ;
20856 wxFont *arg7 = (wxFont *) NULL ;
20857 void *argp1 = 0 ;
20858 int res1 = 0 ;
20859 bool temp2 = false ;
20860 int temp3 ;
20861 int res3 = SWIG_TMPOBJ ;
20862 int temp4 ;
20863 int res4 = SWIG_TMPOBJ ;
20864 int temp5 ;
20865 int res5 = SWIG_TMPOBJ ;
20866 int temp6 ;
20867 int res6 = SWIG_TMPOBJ ;
20868 void *argp7 = 0 ;
20869 int res7 = 0 ;
20870 PyObject * obj0 = 0 ;
20871 PyObject * obj1 = 0 ;
20872 PyObject * obj2 = 0 ;
20873 char * kwnames[] = {
20874 (char *) "self",(char *) "string",(char *) "font", NULL
20875 };
20876
20877 arg3 = &temp3;
20878 arg4 = &temp4;
20879 arg5 = &temp5;
20880 arg6 = &temp6;
20881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20883 if (!SWIG_IsOK(res1)) {
20884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20885 }
20886 arg1 = reinterpret_cast< wxDC * >(argp1);
20887 {
20888 arg2 = wxString_in_helper(obj1);
20889 if (arg2 == NULL) SWIG_fail;
20890 temp2 = true;
20891 }
20892 if (obj2) {
20893 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20894 if (!SWIG_IsOK(res7)) {
20895 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20896 }
20897 arg7 = reinterpret_cast< wxFont * >(argp7);
20898 }
20899 {
20900 PyThreadState* __tstate = wxPyBeginAllowThreads();
20901 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20902 wxPyEndAllowThreads(__tstate);
20903 if (PyErr_Occurred()) SWIG_fail;
20904 }
20905 resultobj = SWIG_Py_Void();
20906 if (SWIG_IsTmpObj(res3)) {
20907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20908 } else {
20909 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20910 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20911 }
20912 if (SWIG_IsTmpObj(res4)) {
20913 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20914 } else {
20915 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20916 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20917 }
20918 if (SWIG_IsTmpObj(res5)) {
20919 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20920 } else {
20921 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20922 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20923 }
20924 if (SWIG_IsTmpObj(res6)) {
20925 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20926 } else {
20927 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20929 }
20930 {
20931 if (temp2)
20932 delete arg2;
20933 }
20934 return resultobj;
20935 fail:
20936 {
20937 if (temp2)
20938 delete arg2;
20939 }
20940 return NULL;
20941 }
20942
20943
20944 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20945 PyObject *resultobj = 0;
20946 wxDC *arg1 = (wxDC *) 0 ;
20947 wxString *arg2 = 0 ;
20948 int *arg3 = (int *) 0 ;
20949 int *arg4 = (int *) 0 ;
20950 int *arg5 = (int *) 0 ;
20951 wxFont *arg6 = (wxFont *) NULL ;
20952 void *argp1 = 0 ;
20953 int res1 = 0 ;
20954 bool temp2 = false ;
20955 int temp3 ;
20956 int res3 = SWIG_TMPOBJ ;
20957 int temp4 ;
20958 int res4 = SWIG_TMPOBJ ;
20959 int temp5 ;
20960 int res5 = SWIG_TMPOBJ ;
20961 void *argp6 = 0 ;
20962 int res6 = 0 ;
20963 PyObject * obj0 = 0 ;
20964 PyObject * obj1 = 0 ;
20965 PyObject * obj2 = 0 ;
20966 char * kwnames[] = {
20967 (char *) "self",(char *) "text",(char *) "font", NULL
20968 };
20969
20970 arg3 = &temp3;
20971 arg4 = &temp4;
20972 arg5 = &temp5;
20973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20975 if (!SWIG_IsOK(res1)) {
20976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20977 }
20978 arg1 = reinterpret_cast< wxDC * >(argp1);
20979 {
20980 arg2 = wxString_in_helper(obj1);
20981 if (arg2 == NULL) SWIG_fail;
20982 temp2 = true;
20983 }
20984 if (obj2) {
20985 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20986 if (!SWIG_IsOK(res6)) {
20987 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20988 }
20989 arg6 = reinterpret_cast< wxFont * >(argp6);
20990 }
20991 {
20992 PyThreadState* __tstate = wxPyBeginAllowThreads();
20993 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20994 wxPyEndAllowThreads(__tstate);
20995 if (PyErr_Occurred()) SWIG_fail;
20996 }
20997 resultobj = SWIG_Py_Void();
20998 if (SWIG_IsTmpObj(res3)) {
20999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21000 } else {
21001 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21002 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21003 }
21004 if (SWIG_IsTmpObj(res4)) {
21005 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21006 } else {
21007 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21008 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21009 }
21010 if (SWIG_IsTmpObj(res5)) {
21011 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21012 } else {
21013 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21014 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21015 }
21016 {
21017 if (temp2)
21018 delete arg2;
21019 }
21020 return resultobj;
21021 fail:
21022 {
21023 if (temp2)
21024 delete arg2;
21025 }
21026 return NULL;
21027 }
21028
21029
21030 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21031 PyObject *resultobj = 0;
21032 wxDC *arg1 = (wxDC *) 0 ;
21033 wxString *arg2 = 0 ;
21034 wxArrayInt result;
21035 void *argp1 = 0 ;
21036 int res1 = 0 ;
21037 bool temp2 = false ;
21038 PyObject * obj0 = 0 ;
21039 PyObject * obj1 = 0 ;
21040 char * kwnames[] = {
21041 (char *) "self",(char *) "text", NULL
21042 };
21043
21044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21046 if (!SWIG_IsOK(res1)) {
21047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21048 }
21049 arg1 = reinterpret_cast< wxDC * >(argp1);
21050 {
21051 arg2 = wxString_in_helper(obj1);
21052 if (arg2 == NULL) SWIG_fail;
21053 temp2 = true;
21054 }
21055 {
21056 PyThreadState* __tstate = wxPyBeginAllowThreads();
21057 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21058 wxPyEndAllowThreads(__tstate);
21059 if (PyErr_Occurred()) SWIG_fail;
21060 }
21061 {
21062 resultobj = wxArrayInt2PyList_helper(result);
21063 }
21064 {
21065 if (temp2)
21066 delete arg2;
21067 }
21068 return resultobj;
21069 fail:
21070 {
21071 if (temp2)
21072 delete arg2;
21073 }
21074 return NULL;
21075 }
21076
21077
21078 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21079 PyObject *resultobj = 0;
21080 wxDC *arg1 = (wxDC *) 0 ;
21081 wxSize result;
21082 void *argp1 = 0 ;
21083 int res1 = 0 ;
21084 PyObject *swig_obj[1] ;
21085
21086 if (!args) SWIG_fail;
21087 swig_obj[0] = args;
21088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21089 if (!SWIG_IsOK(res1)) {
21090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21091 }
21092 arg1 = reinterpret_cast< wxDC * >(argp1);
21093 {
21094 PyThreadState* __tstate = wxPyBeginAllowThreads();
21095 result = (arg1)->GetSize();
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21100 return resultobj;
21101 fail:
21102 return NULL;
21103 }
21104
21105
21106 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21107 PyObject *resultobj = 0;
21108 wxDC *arg1 = (wxDC *) 0 ;
21109 int *arg2 = (int *) 0 ;
21110 int *arg3 = (int *) 0 ;
21111 void *argp1 = 0 ;
21112 int res1 = 0 ;
21113 int temp2 ;
21114 int res2 = SWIG_TMPOBJ ;
21115 int temp3 ;
21116 int res3 = SWIG_TMPOBJ ;
21117 PyObject *swig_obj[1] ;
21118
21119 arg2 = &temp2;
21120 arg3 = &temp3;
21121 if (!args) SWIG_fail;
21122 swig_obj[0] = args;
21123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21124 if (!SWIG_IsOK(res1)) {
21125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21126 }
21127 arg1 = reinterpret_cast< wxDC * >(argp1);
21128 {
21129 PyThreadState* __tstate = wxPyBeginAllowThreads();
21130 (arg1)->GetSize(arg2,arg3);
21131 wxPyEndAllowThreads(__tstate);
21132 if (PyErr_Occurred()) SWIG_fail;
21133 }
21134 resultobj = SWIG_Py_Void();
21135 if (SWIG_IsTmpObj(res2)) {
21136 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21137 } else {
21138 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21140 }
21141 if (SWIG_IsTmpObj(res3)) {
21142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21143 } else {
21144 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21145 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21146 }
21147 return resultobj;
21148 fail:
21149 return NULL;
21150 }
21151
21152
21153 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21154 PyObject *resultobj = 0;
21155 wxDC *arg1 = (wxDC *) 0 ;
21156 wxSize result;
21157 void *argp1 = 0 ;
21158 int res1 = 0 ;
21159 PyObject *swig_obj[1] ;
21160
21161 if (!args) SWIG_fail;
21162 swig_obj[0] = args;
21163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21164 if (!SWIG_IsOK(res1)) {
21165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21166 }
21167 arg1 = reinterpret_cast< wxDC * >(argp1);
21168 {
21169 PyThreadState* __tstate = wxPyBeginAllowThreads();
21170 result = ((wxDC const *)arg1)->GetSizeMM();
21171 wxPyEndAllowThreads(__tstate);
21172 if (PyErr_Occurred()) SWIG_fail;
21173 }
21174 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21175 return resultobj;
21176 fail:
21177 return NULL;
21178 }
21179
21180
21181 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21182 PyObject *resultobj = 0;
21183 wxDC *arg1 = (wxDC *) 0 ;
21184 int *arg2 = (int *) 0 ;
21185 int *arg3 = (int *) 0 ;
21186 void *argp1 = 0 ;
21187 int res1 = 0 ;
21188 int temp2 ;
21189 int res2 = SWIG_TMPOBJ ;
21190 int temp3 ;
21191 int res3 = SWIG_TMPOBJ ;
21192 PyObject *swig_obj[1] ;
21193
21194 arg2 = &temp2;
21195 arg3 = &temp3;
21196 if (!args) SWIG_fail;
21197 swig_obj[0] = args;
21198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21199 if (!SWIG_IsOK(res1)) {
21200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21201 }
21202 arg1 = reinterpret_cast< wxDC * >(argp1);
21203 {
21204 PyThreadState* __tstate = wxPyBeginAllowThreads();
21205 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21206 wxPyEndAllowThreads(__tstate);
21207 if (PyErr_Occurred()) SWIG_fail;
21208 }
21209 resultobj = SWIG_Py_Void();
21210 if (SWIG_IsTmpObj(res2)) {
21211 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21212 } else {
21213 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21214 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21215 }
21216 if (SWIG_IsTmpObj(res3)) {
21217 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21218 } else {
21219 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21220 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21221 }
21222 return resultobj;
21223 fail:
21224 return NULL;
21225 }
21226
21227
21228 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21229 PyObject *resultobj = 0;
21230 wxDC *arg1 = (wxDC *) 0 ;
21231 int arg2 ;
21232 int result;
21233 void *argp1 = 0 ;
21234 int res1 = 0 ;
21235 int val2 ;
21236 int ecode2 = 0 ;
21237 PyObject * obj0 = 0 ;
21238 PyObject * obj1 = 0 ;
21239 char * kwnames[] = {
21240 (char *) "self",(char *) "x", NULL
21241 };
21242
21243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21245 if (!SWIG_IsOK(res1)) {
21246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21247 }
21248 arg1 = reinterpret_cast< wxDC * >(argp1);
21249 ecode2 = SWIG_AsVal_int(obj1, &val2);
21250 if (!SWIG_IsOK(ecode2)) {
21251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21252 }
21253 arg2 = static_cast< int >(val2);
21254 {
21255 PyThreadState* __tstate = wxPyBeginAllowThreads();
21256 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21257 wxPyEndAllowThreads(__tstate);
21258 if (PyErr_Occurred()) SWIG_fail;
21259 }
21260 resultobj = SWIG_From_int(static_cast< int >(result));
21261 return resultobj;
21262 fail:
21263 return NULL;
21264 }
21265
21266
21267 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21268 PyObject *resultobj = 0;
21269 wxDC *arg1 = (wxDC *) 0 ;
21270 int arg2 ;
21271 int result;
21272 void *argp1 = 0 ;
21273 int res1 = 0 ;
21274 int val2 ;
21275 int ecode2 = 0 ;
21276 PyObject * obj0 = 0 ;
21277 PyObject * obj1 = 0 ;
21278 char * kwnames[] = {
21279 (char *) "self",(char *) "y", NULL
21280 };
21281
21282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21284 if (!SWIG_IsOK(res1)) {
21285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21286 }
21287 arg1 = reinterpret_cast< wxDC * >(argp1);
21288 ecode2 = SWIG_AsVal_int(obj1, &val2);
21289 if (!SWIG_IsOK(ecode2)) {
21290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21291 }
21292 arg2 = static_cast< int >(val2);
21293 {
21294 PyThreadState* __tstate = wxPyBeginAllowThreads();
21295 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21296 wxPyEndAllowThreads(__tstate);
21297 if (PyErr_Occurred()) SWIG_fail;
21298 }
21299 resultobj = SWIG_From_int(static_cast< int >(result));
21300 return resultobj;
21301 fail:
21302 return NULL;
21303 }
21304
21305
21306 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21307 PyObject *resultobj = 0;
21308 wxDC *arg1 = (wxDC *) 0 ;
21309 int arg2 ;
21310 int result;
21311 void *argp1 = 0 ;
21312 int res1 = 0 ;
21313 int val2 ;
21314 int ecode2 = 0 ;
21315 PyObject * obj0 = 0 ;
21316 PyObject * obj1 = 0 ;
21317 char * kwnames[] = {
21318 (char *) "self",(char *) "x", NULL
21319 };
21320
21321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21323 if (!SWIG_IsOK(res1)) {
21324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21325 }
21326 arg1 = reinterpret_cast< wxDC * >(argp1);
21327 ecode2 = SWIG_AsVal_int(obj1, &val2);
21328 if (!SWIG_IsOK(ecode2)) {
21329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21330 }
21331 arg2 = static_cast< int >(val2);
21332 {
21333 PyThreadState* __tstate = wxPyBeginAllowThreads();
21334 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21335 wxPyEndAllowThreads(__tstate);
21336 if (PyErr_Occurred()) SWIG_fail;
21337 }
21338 resultobj = SWIG_From_int(static_cast< int >(result));
21339 return resultobj;
21340 fail:
21341 return NULL;
21342 }
21343
21344
21345 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21346 PyObject *resultobj = 0;
21347 wxDC *arg1 = (wxDC *) 0 ;
21348 int arg2 ;
21349 int result;
21350 void *argp1 = 0 ;
21351 int res1 = 0 ;
21352 int val2 ;
21353 int ecode2 = 0 ;
21354 PyObject * obj0 = 0 ;
21355 PyObject * obj1 = 0 ;
21356 char * kwnames[] = {
21357 (char *) "self",(char *) "y", NULL
21358 };
21359
21360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21362 if (!SWIG_IsOK(res1)) {
21363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21364 }
21365 arg1 = reinterpret_cast< wxDC * >(argp1);
21366 ecode2 = SWIG_AsVal_int(obj1, &val2);
21367 if (!SWIG_IsOK(ecode2)) {
21368 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21369 }
21370 arg2 = static_cast< int >(val2);
21371 {
21372 PyThreadState* __tstate = wxPyBeginAllowThreads();
21373 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21374 wxPyEndAllowThreads(__tstate);
21375 if (PyErr_Occurred()) SWIG_fail;
21376 }
21377 resultobj = SWIG_From_int(static_cast< int >(result));
21378 return resultobj;
21379 fail:
21380 return NULL;
21381 }
21382
21383
21384 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21385 PyObject *resultobj = 0;
21386 wxDC *arg1 = (wxDC *) 0 ;
21387 int arg2 ;
21388 int result;
21389 void *argp1 = 0 ;
21390 int res1 = 0 ;
21391 int val2 ;
21392 int ecode2 = 0 ;
21393 PyObject * obj0 = 0 ;
21394 PyObject * obj1 = 0 ;
21395 char * kwnames[] = {
21396 (char *) "self",(char *) "x", NULL
21397 };
21398
21399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21401 if (!SWIG_IsOK(res1)) {
21402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21403 }
21404 arg1 = reinterpret_cast< wxDC * >(argp1);
21405 ecode2 = SWIG_AsVal_int(obj1, &val2);
21406 if (!SWIG_IsOK(ecode2)) {
21407 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21408 }
21409 arg2 = static_cast< int >(val2);
21410 {
21411 PyThreadState* __tstate = wxPyBeginAllowThreads();
21412 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21413 wxPyEndAllowThreads(__tstate);
21414 if (PyErr_Occurred()) SWIG_fail;
21415 }
21416 resultobj = SWIG_From_int(static_cast< int >(result));
21417 return resultobj;
21418 fail:
21419 return NULL;
21420 }
21421
21422
21423 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21424 PyObject *resultobj = 0;
21425 wxDC *arg1 = (wxDC *) 0 ;
21426 int arg2 ;
21427 int result;
21428 void *argp1 = 0 ;
21429 int res1 = 0 ;
21430 int val2 ;
21431 int ecode2 = 0 ;
21432 PyObject * obj0 = 0 ;
21433 PyObject * obj1 = 0 ;
21434 char * kwnames[] = {
21435 (char *) "self",(char *) "y", NULL
21436 };
21437
21438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21440 if (!SWIG_IsOK(res1)) {
21441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21442 }
21443 arg1 = reinterpret_cast< wxDC * >(argp1);
21444 ecode2 = SWIG_AsVal_int(obj1, &val2);
21445 if (!SWIG_IsOK(ecode2)) {
21446 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21447 }
21448 arg2 = static_cast< int >(val2);
21449 {
21450 PyThreadState* __tstate = wxPyBeginAllowThreads();
21451 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21452 wxPyEndAllowThreads(__tstate);
21453 if (PyErr_Occurred()) SWIG_fail;
21454 }
21455 resultobj = SWIG_From_int(static_cast< int >(result));
21456 return resultobj;
21457 fail:
21458 return NULL;
21459 }
21460
21461
21462 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21463 PyObject *resultobj = 0;
21464 wxDC *arg1 = (wxDC *) 0 ;
21465 int arg2 ;
21466 int result;
21467 void *argp1 = 0 ;
21468 int res1 = 0 ;
21469 int val2 ;
21470 int ecode2 = 0 ;
21471 PyObject * obj0 = 0 ;
21472 PyObject * obj1 = 0 ;
21473 char * kwnames[] = {
21474 (char *) "self",(char *) "x", NULL
21475 };
21476
21477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21479 if (!SWIG_IsOK(res1)) {
21480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21481 }
21482 arg1 = reinterpret_cast< wxDC * >(argp1);
21483 ecode2 = SWIG_AsVal_int(obj1, &val2);
21484 if (!SWIG_IsOK(ecode2)) {
21485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21486 }
21487 arg2 = static_cast< int >(val2);
21488 {
21489 PyThreadState* __tstate = wxPyBeginAllowThreads();
21490 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21491 wxPyEndAllowThreads(__tstate);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 resultobj = SWIG_From_int(static_cast< int >(result));
21495 return resultobj;
21496 fail:
21497 return NULL;
21498 }
21499
21500
21501 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21502 PyObject *resultobj = 0;
21503 wxDC *arg1 = (wxDC *) 0 ;
21504 int arg2 ;
21505 int result;
21506 void *argp1 = 0 ;
21507 int res1 = 0 ;
21508 int val2 ;
21509 int ecode2 = 0 ;
21510 PyObject * obj0 = 0 ;
21511 PyObject * obj1 = 0 ;
21512 char * kwnames[] = {
21513 (char *) "self",(char *) "y", NULL
21514 };
21515
21516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21518 if (!SWIG_IsOK(res1)) {
21519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21520 }
21521 arg1 = reinterpret_cast< wxDC * >(argp1);
21522 ecode2 = SWIG_AsVal_int(obj1, &val2);
21523 if (!SWIG_IsOK(ecode2)) {
21524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21525 }
21526 arg2 = static_cast< int >(val2);
21527 {
21528 PyThreadState* __tstate = wxPyBeginAllowThreads();
21529 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21530 wxPyEndAllowThreads(__tstate);
21531 if (PyErr_Occurred()) SWIG_fail;
21532 }
21533 resultobj = SWIG_From_int(static_cast< int >(result));
21534 return resultobj;
21535 fail:
21536 return NULL;
21537 }
21538
21539
21540 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21541 PyObject *resultobj = 0;
21542 wxDC *arg1 = (wxDC *) 0 ;
21543 bool result;
21544 void *argp1 = 0 ;
21545 int res1 = 0 ;
21546 PyObject *swig_obj[1] ;
21547
21548 if (!args) SWIG_fail;
21549 swig_obj[0] = args;
21550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21551 if (!SWIG_IsOK(res1)) {
21552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21553 }
21554 arg1 = reinterpret_cast< wxDC * >(argp1);
21555 {
21556 PyThreadState* __tstate = wxPyBeginAllowThreads();
21557 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21558 wxPyEndAllowThreads(__tstate);
21559 if (PyErr_Occurred()) SWIG_fail;
21560 }
21561 {
21562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21563 }
21564 return resultobj;
21565 fail:
21566 return NULL;
21567 }
21568
21569
21570 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21571 PyObject *resultobj = 0;
21572 wxDC *arg1 = (wxDC *) 0 ;
21573 bool result;
21574 void *argp1 = 0 ;
21575 int res1 = 0 ;
21576 PyObject *swig_obj[1] ;
21577
21578 if (!args) SWIG_fail;
21579 swig_obj[0] = args;
21580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21581 if (!SWIG_IsOK(res1)) {
21582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21583 }
21584 arg1 = reinterpret_cast< wxDC * >(argp1);
21585 {
21586 PyThreadState* __tstate = wxPyBeginAllowThreads();
21587 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21588 wxPyEndAllowThreads(__tstate);
21589 if (PyErr_Occurred()) SWIG_fail;
21590 }
21591 {
21592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21593 }
21594 return resultobj;
21595 fail:
21596 return NULL;
21597 }
21598
21599
21600 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21601 PyObject *resultobj = 0;
21602 wxDC *arg1 = (wxDC *) 0 ;
21603 int result;
21604 void *argp1 = 0 ;
21605 int res1 = 0 ;
21606 PyObject *swig_obj[1] ;
21607
21608 if (!args) SWIG_fail;
21609 swig_obj[0] = args;
21610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21611 if (!SWIG_IsOK(res1)) {
21612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21613 }
21614 arg1 = reinterpret_cast< wxDC * >(argp1);
21615 {
21616 PyThreadState* __tstate = wxPyBeginAllowThreads();
21617 result = (int)((wxDC const *)arg1)->GetDepth();
21618 wxPyEndAllowThreads(__tstate);
21619 if (PyErr_Occurred()) SWIG_fail;
21620 }
21621 resultobj = SWIG_From_int(static_cast< int >(result));
21622 return resultobj;
21623 fail:
21624 return NULL;
21625 }
21626
21627
21628 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21629 PyObject *resultobj = 0;
21630 wxDC *arg1 = (wxDC *) 0 ;
21631 wxSize result;
21632 void *argp1 = 0 ;
21633 int res1 = 0 ;
21634 PyObject *swig_obj[1] ;
21635
21636 if (!args) SWIG_fail;
21637 swig_obj[0] = args;
21638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21639 if (!SWIG_IsOK(res1)) {
21640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21641 }
21642 arg1 = reinterpret_cast< wxDC * >(argp1);
21643 {
21644 PyThreadState* __tstate = wxPyBeginAllowThreads();
21645 result = ((wxDC const *)arg1)->GetPPI();
21646 wxPyEndAllowThreads(__tstate);
21647 if (PyErr_Occurred()) SWIG_fail;
21648 }
21649 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21650 return resultobj;
21651 fail:
21652 return NULL;
21653 }
21654
21655
21656 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21657 PyObject *resultobj = 0;
21658 wxDC *arg1 = (wxDC *) 0 ;
21659 bool result;
21660 void *argp1 = 0 ;
21661 int res1 = 0 ;
21662 PyObject *swig_obj[1] ;
21663
21664 if (!args) SWIG_fail;
21665 swig_obj[0] = args;
21666 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21667 if (!SWIG_IsOK(res1)) {
21668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21669 }
21670 arg1 = reinterpret_cast< wxDC * >(argp1);
21671 {
21672 PyThreadState* __tstate = wxPyBeginAllowThreads();
21673 result = (bool)((wxDC const *)arg1)->IsOk();
21674 wxPyEndAllowThreads(__tstate);
21675 if (PyErr_Occurred()) SWIG_fail;
21676 }
21677 {
21678 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21679 }
21680 return resultobj;
21681 fail:
21682 return NULL;
21683 }
21684
21685
21686 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21687 PyObject *resultobj = 0;
21688 wxDC *arg1 = (wxDC *) 0 ;
21689 int result;
21690 void *argp1 = 0 ;
21691 int res1 = 0 ;
21692 PyObject *swig_obj[1] ;
21693
21694 if (!args) SWIG_fail;
21695 swig_obj[0] = args;
21696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21697 if (!SWIG_IsOK(res1)) {
21698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21699 }
21700 arg1 = reinterpret_cast< wxDC * >(argp1);
21701 {
21702 PyThreadState* __tstate = wxPyBeginAllowThreads();
21703 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21704 wxPyEndAllowThreads(__tstate);
21705 if (PyErr_Occurred()) SWIG_fail;
21706 }
21707 resultobj = SWIG_From_int(static_cast< int >(result));
21708 return resultobj;
21709 fail:
21710 return NULL;
21711 }
21712
21713
21714 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21715 PyObject *resultobj = 0;
21716 wxDC *arg1 = (wxDC *) 0 ;
21717 wxBrush *result = 0 ;
21718 void *argp1 = 0 ;
21719 int res1 = 0 ;
21720 PyObject *swig_obj[1] ;
21721
21722 if (!args) SWIG_fail;
21723 swig_obj[0] = args;
21724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21725 if (!SWIG_IsOK(res1)) {
21726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21727 }
21728 arg1 = reinterpret_cast< wxDC * >(argp1);
21729 {
21730 PyThreadState* __tstate = wxPyBeginAllowThreads();
21731 {
21732 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21733 result = (wxBrush *) &_result_ref;
21734 }
21735 wxPyEndAllowThreads(__tstate);
21736 if (PyErr_Occurred()) SWIG_fail;
21737 }
21738 {
21739 wxBrush* resultptr = new wxBrush(*result);
21740 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21741 }
21742 return resultobj;
21743 fail:
21744 return NULL;
21745 }
21746
21747
21748 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21749 PyObject *resultobj = 0;
21750 wxDC *arg1 = (wxDC *) 0 ;
21751 wxBrush *result = 0 ;
21752 void *argp1 = 0 ;
21753 int res1 = 0 ;
21754 PyObject *swig_obj[1] ;
21755
21756 if (!args) SWIG_fail;
21757 swig_obj[0] = args;
21758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21759 if (!SWIG_IsOK(res1)) {
21760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21761 }
21762 arg1 = reinterpret_cast< wxDC * >(argp1);
21763 {
21764 PyThreadState* __tstate = wxPyBeginAllowThreads();
21765 {
21766 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21767 result = (wxBrush *) &_result_ref;
21768 }
21769 wxPyEndAllowThreads(__tstate);
21770 if (PyErr_Occurred()) SWIG_fail;
21771 }
21772 {
21773 wxBrush* resultptr = new wxBrush(*result);
21774 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21775 }
21776 return resultobj;
21777 fail:
21778 return NULL;
21779 }
21780
21781
21782 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21783 PyObject *resultobj = 0;
21784 wxDC *arg1 = (wxDC *) 0 ;
21785 wxFont *result = 0 ;
21786 void *argp1 = 0 ;
21787 int res1 = 0 ;
21788 PyObject *swig_obj[1] ;
21789
21790 if (!args) SWIG_fail;
21791 swig_obj[0] = args;
21792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21793 if (!SWIG_IsOK(res1)) {
21794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21795 }
21796 arg1 = reinterpret_cast< wxDC * >(argp1);
21797 {
21798 PyThreadState* __tstate = wxPyBeginAllowThreads();
21799 {
21800 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21801 result = (wxFont *) &_result_ref;
21802 }
21803 wxPyEndAllowThreads(__tstate);
21804 if (PyErr_Occurred()) SWIG_fail;
21805 }
21806 {
21807 wxFont* resultptr = new wxFont(*result);
21808 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21809 }
21810 return resultobj;
21811 fail:
21812 return NULL;
21813 }
21814
21815
21816 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21817 PyObject *resultobj = 0;
21818 wxDC *arg1 = (wxDC *) 0 ;
21819 wxPen *result = 0 ;
21820 void *argp1 = 0 ;
21821 int res1 = 0 ;
21822 PyObject *swig_obj[1] ;
21823
21824 if (!args) SWIG_fail;
21825 swig_obj[0] = args;
21826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21827 if (!SWIG_IsOK(res1)) {
21828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21829 }
21830 arg1 = reinterpret_cast< wxDC * >(argp1);
21831 {
21832 PyThreadState* __tstate = wxPyBeginAllowThreads();
21833 {
21834 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21835 result = (wxPen *) &_result_ref;
21836 }
21837 wxPyEndAllowThreads(__tstate);
21838 if (PyErr_Occurred()) SWIG_fail;
21839 }
21840 {
21841 wxPen* resultptr = new wxPen(*result);
21842 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21843 }
21844 return resultobj;
21845 fail:
21846 return NULL;
21847 }
21848
21849
21850 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21851 PyObject *resultobj = 0;
21852 wxDC *arg1 = (wxDC *) 0 ;
21853 wxColour *result = 0 ;
21854 void *argp1 = 0 ;
21855 int res1 = 0 ;
21856 PyObject *swig_obj[1] ;
21857
21858 if (!args) SWIG_fail;
21859 swig_obj[0] = args;
21860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21861 if (!SWIG_IsOK(res1)) {
21862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21863 }
21864 arg1 = reinterpret_cast< wxDC * >(argp1);
21865 {
21866 PyThreadState* __tstate = wxPyBeginAllowThreads();
21867 {
21868 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21869 result = (wxColour *) &_result_ref;
21870 }
21871 wxPyEndAllowThreads(__tstate);
21872 if (PyErr_Occurred()) SWIG_fail;
21873 }
21874 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21875 return resultobj;
21876 fail:
21877 return NULL;
21878 }
21879
21880
21881 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21882 PyObject *resultobj = 0;
21883 wxDC *arg1 = (wxDC *) 0 ;
21884 wxColour *result = 0 ;
21885 void *argp1 = 0 ;
21886 int res1 = 0 ;
21887 PyObject *swig_obj[1] ;
21888
21889 if (!args) SWIG_fail;
21890 swig_obj[0] = args;
21891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21892 if (!SWIG_IsOK(res1)) {
21893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21894 }
21895 arg1 = reinterpret_cast< wxDC * >(argp1);
21896 {
21897 PyThreadState* __tstate = wxPyBeginAllowThreads();
21898 {
21899 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21900 result = (wxColour *) &_result_ref;
21901 }
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21906 return resultobj;
21907 fail:
21908 return NULL;
21909 }
21910
21911
21912 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21913 PyObject *resultobj = 0;
21914 wxDC *arg1 = (wxDC *) 0 ;
21915 wxColour *arg2 = 0 ;
21916 void *argp1 = 0 ;
21917 int res1 = 0 ;
21918 wxColour temp2 ;
21919 PyObject * obj0 = 0 ;
21920 PyObject * obj1 = 0 ;
21921 char * kwnames[] = {
21922 (char *) "self",(char *) "colour", NULL
21923 };
21924
21925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21927 if (!SWIG_IsOK(res1)) {
21928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21929 }
21930 arg1 = reinterpret_cast< wxDC * >(argp1);
21931 {
21932 arg2 = &temp2;
21933 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21934 }
21935 {
21936 PyThreadState* __tstate = wxPyBeginAllowThreads();
21937 (arg1)->SetTextForeground((wxColour const &)*arg2);
21938 wxPyEndAllowThreads(__tstate);
21939 if (PyErr_Occurred()) SWIG_fail;
21940 }
21941 resultobj = SWIG_Py_Void();
21942 return resultobj;
21943 fail:
21944 return NULL;
21945 }
21946
21947
21948 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21949 PyObject *resultobj = 0;
21950 wxDC *arg1 = (wxDC *) 0 ;
21951 wxColour *arg2 = 0 ;
21952 void *argp1 = 0 ;
21953 int res1 = 0 ;
21954 wxColour temp2 ;
21955 PyObject * obj0 = 0 ;
21956 PyObject * obj1 = 0 ;
21957 char * kwnames[] = {
21958 (char *) "self",(char *) "colour", NULL
21959 };
21960
21961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21963 if (!SWIG_IsOK(res1)) {
21964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21965 }
21966 arg1 = reinterpret_cast< wxDC * >(argp1);
21967 {
21968 arg2 = &temp2;
21969 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21970 }
21971 {
21972 PyThreadState* __tstate = wxPyBeginAllowThreads();
21973 (arg1)->SetTextBackground((wxColour const &)*arg2);
21974 wxPyEndAllowThreads(__tstate);
21975 if (PyErr_Occurred()) SWIG_fail;
21976 }
21977 resultobj = SWIG_Py_Void();
21978 return resultobj;
21979 fail:
21980 return NULL;
21981 }
21982
21983
21984 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21985 PyObject *resultobj = 0;
21986 wxDC *arg1 = (wxDC *) 0 ;
21987 int result;
21988 void *argp1 = 0 ;
21989 int res1 = 0 ;
21990 PyObject *swig_obj[1] ;
21991
21992 if (!args) SWIG_fail;
21993 swig_obj[0] = args;
21994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21995 if (!SWIG_IsOK(res1)) {
21996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21997 }
21998 arg1 = reinterpret_cast< wxDC * >(argp1);
21999 {
22000 PyThreadState* __tstate = wxPyBeginAllowThreads();
22001 result = (int)((wxDC const *)arg1)->GetMapMode();
22002 wxPyEndAllowThreads(__tstate);
22003 if (PyErr_Occurred()) SWIG_fail;
22004 }
22005 resultobj = SWIG_From_int(static_cast< int >(result));
22006 return resultobj;
22007 fail:
22008 return NULL;
22009 }
22010
22011
22012 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22013 PyObject *resultobj = 0;
22014 wxDC *arg1 = (wxDC *) 0 ;
22015 int arg2 ;
22016 void *argp1 = 0 ;
22017 int res1 = 0 ;
22018 int val2 ;
22019 int ecode2 = 0 ;
22020 PyObject * obj0 = 0 ;
22021 PyObject * obj1 = 0 ;
22022 char * kwnames[] = {
22023 (char *) "self",(char *) "mode", NULL
22024 };
22025
22026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22028 if (!SWIG_IsOK(res1)) {
22029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22030 }
22031 arg1 = reinterpret_cast< wxDC * >(argp1);
22032 ecode2 = SWIG_AsVal_int(obj1, &val2);
22033 if (!SWIG_IsOK(ecode2)) {
22034 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22035 }
22036 arg2 = static_cast< int >(val2);
22037 {
22038 PyThreadState* __tstate = wxPyBeginAllowThreads();
22039 (arg1)->SetMapMode(arg2);
22040 wxPyEndAllowThreads(__tstate);
22041 if (PyErr_Occurred()) SWIG_fail;
22042 }
22043 resultobj = SWIG_Py_Void();
22044 return resultobj;
22045 fail:
22046 return NULL;
22047 }
22048
22049
22050 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22051 PyObject *resultobj = 0;
22052 wxDC *arg1 = (wxDC *) 0 ;
22053 double *arg2 = (double *) 0 ;
22054 double *arg3 = (double *) 0 ;
22055 void *argp1 = 0 ;
22056 int res1 = 0 ;
22057 double temp2 ;
22058 int res2 = SWIG_TMPOBJ ;
22059 double temp3 ;
22060 int res3 = SWIG_TMPOBJ ;
22061 PyObject *swig_obj[1] ;
22062
22063 arg2 = &temp2;
22064 arg3 = &temp3;
22065 if (!args) SWIG_fail;
22066 swig_obj[0] = args;
22067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22068 if (!SWIG_IsOK(res1)) {
22069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22070 }
22071 arg1 = reinterpret_cast< wxDC * >(argp1);
22072 {
22073 PyThreadState* __tstate = wxPyBeginAllowThreads();
22074 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22075 wxPyEndAllowThreads(__tstate);
22076 if (PyErr_Occurred()) SWIG_fail;
22077 }
22078 resultobj = SWIG_Py_Void();
22079 if (SWIG_IsTmpObj(res2)) {
22080 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22081 } else {
22082 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22083 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22084 }
22085 if (SWIG_IsTmpObj(res3)) {
22086 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22087 } else {
22088 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22089 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22090 }
22091 return resultobj;
22092 fail:
22093 return NULL;
22094 }
22095
22096
22097 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22098 PyObject *resultobj = 0;
22099 wxDC *arg1 = (wxDC *) 0 ;
22100 double arg2 ;
22101 double arg3 ;
22102 void *argp1 = 0 ;
22103 int res1 = 0 ;
22104 double val2 ;
22105 int ecode2 = 0 ;
22106 double val3 ;
22107 int ecode3 = 0 ;
22108 PyObject * obj0 = 0 ;
22109 PyObject * obj1 = 0 ;
22110 PyObject * obj2 = 0 ;
22111 char * kwnames[] = {
22112 (char *) "self",(char *) "x",(char *) "y", NULL
22113 };
22114
22115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22117 if (!SWIG_IsOK(res1)) {
22118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22119 }
22120 arg1 = reinterpret_cast< wxDC * >(argp1);
22121 ecode2 = SWIG_AsVal_double(obj1, &val2);
22122 if (!SWIG_IsOK(ecode2)) {
22123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22124 }
22125 arg2 = static_cast< double >(val2);
22126 ecode3 = SWIG_AsVal_double(obj2, &val3);
22127 if (!SWIG_IsOK(ecode3)) {
22128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22129 }
22130 arg3 = static_cast< double >(val3);
22131 {
22132 PyThreadState* __tstate = wxPyBeginAllowThreads();
22133 (arg1)->SetUserScale(arg2,arg3);
22134 wxPyEndAllowThreads(__tstate);
22135 if (PyErr_Occurred()) SWIG_fail;
22136 }
22137 resultobj = SWIG_Py_Void();
22138 return resultobj;
22139 fail:
22140 return NULL;
22141 }
22142
22143
22144 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22145 PyObject *resultobj = 0;
22146 wxDC *arg1 = (wxDC *) 0 ;
22147 double *arg2 = (double *) 0 ;
22148 double *arg3 = (double *) 0 ;
22149 void *argp1 = 0 ;
22150 int res1 = 0 ;
22151 double temp2 ;
22152 int res2 = SWIG_TMPOBJ ;
22153 double temp3 ;
22154 int res3 = SWIG_TMPOBJ ;
22155 PyObject *swig_obj[1] ;
22156
22157 arg2 = &temp2;
22158 arg3 = &temp3;
22159 if (!args) SWIG_fail;
22160 swig_obj[0] = args;
22161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22162 if (!SWIG_IsOK(res1)) {
22163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22164 }
22165 arg1 = reinterpret_cast< wxDC * >(argp1);
22166 {
22167 PyThreadState* __tstate = wxPyBeginAllowThreads();
22168 (arg1)->GetLogicalScale(arg2,arg3);
22169 wxPyEndAllowThreads(__tstate);
22170 if (PyErr_Occurred()) SWIG_fail;
22171 }
22172 resultobj = SWIG_Py_Void();
22173 if (SWIG_IsTmpObj(res2)) {
22174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22175 } else {
22176 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22178 }
22179 if (SWIG_IsTmpObj(res3)) {
22180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22181 } else {
22182 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22183 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22184 }
22185 return resultobj;
22186 fail:
22187 return NULL;
22188 }
22189
22190
22191 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22192 PyObject *resultobj = 0;
22193 wxDC *arg1 = (wxDC *) 0 ;
22194 double arg2 ;
22195 double arg3 ;
22196 void *argp1 = 0 ;
22197 int res1 = 0 ;
22198 double val2 ;
22199 int ecode2 = 0 ;
22200 double val3 ;
22201 int ecode3 = 0 ;
22202 PyObject * obj0 = 0 ;
22203 PyObject * obj1 = 0 ;
22204 PyObject * obj2 = 0 ;
22205 char * kwnames[] = {
22206 (char *) "self",(char *) "x",(char *) "y", NULL
22207 };
22208
22209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22211 if (!SWIG_IsOK(res1)) {
22212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22213 }
22214 arg1 = reinterpret_cast< wxDC * >(argp1);
22215 ecode2 = SWIG_AsVal_double(obj1, &val2);
22216 if (!SWIG_IsOK(ecode2)) {
22217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22218 }
22219 arg2 = static_cast< double >(val2);
22220 ecode3 = SWIG_AsVal_double(obj2, &val3);
22221 if (!SWIG_IsOK(ecode3)) {
22222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22223 }
22224 arg3 = static_cast< double >(val3);
22225 {
22226 PyThreadState* __tstate = wxPyBeginAllowThreads();
22227 (arg1)->SetLogicalScale(arg2,arg3);
22228 wxPyEndAllowThreads(__tstate);
22229 if (PyErr_Occurred()) SWIG_fail;
22230 }
22231 resultobj = SWIG_Py_Void();
22232 return resultobj;
22233 fail:
22234 return NULL;
22235 }
22236
22237
22238 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22239 PyObject *resultobj = 0;
22240 wxDC *arg1 = (wxDC *) 0 ;
22241 wxPoint result;
22242 void *argp1 = 0 ;
22243 int res1 = 0 ;
22244 PyObject *swig_obj[1] ;
22245
22246 if (!args) SWIG_fail;
22247 swig_obj[0] = args;
22248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22249 if (!SWIG_IsOK(res1)) {
22250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22251 }
22252 arg1 = reinterpret_cast< wxDC * >(argp1);
22253 {
22254 PyThreadState* __tstate = wxPyBeginAllowThreads();
22255 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22256 wxPyEndAllowThreads(__tstate);
22257 if (PyErr_Occurred()) SWIG_fail;
22258 }
22259 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22260 return resultobj;
22261 fail:
22262 return NULL;
22263 }
22264
22265
22266 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22267 PyObject *resultobj = 0;
22268 wxDC *arg1 = (wxDC *) 0 ;
22269 int *arg2 = (int *) 0 ;
22270 int *arg3 = (int *) 0 ;
22271 void *argp1 = 0 ;
22272 int res1 = 0 ;
22273 int temp2 ;
22274 int res2 = SWIG_TMPOBJ ;
22275 int temp3 ;
22276 int res3 = SWIG_TMPOBJ ;
22277 PyObject *swig_obj[1] ;
22278
22279 arg2 = &temp2;
22280 arg3 = &temp3;
22281 if (!args) SWIG_fail;
22282 swig_obj[0] = args;
22283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22284 if (!SWIG_IsOK(res1)) {
22285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22286 }
22287 arg1 = reinterpret_cast< wxDC * >(argp1);
22288 {
22289 PyThreadState* __tstate = wxPyBeginAllowThreads();
22290 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22291 wxPyEndAllowThreads(__tstate);
22292 if (PyErr_Occurred()) SWIG_fail;
22293 }
22294 resultobj = SWIG_Py_Void();
22295 if (SWIG_IsTmpObj(res2)) {
22296 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22297 } else {
22298 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22299 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22300 }
22301 if (SWIG_IsTmpObj(res3)) {
22302 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22303 } else {
22304 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22305 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22306 }
22307 return resultobj;
22308 fail:
22309 return NULL;
22310 }
22311
22312
22313 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22314 PyObject *resultobj = 0;
22315 wxDC *arg1 = (wxDC *) 0 ;
22316 int arg2 ;
22317 int arg3 ;
22318 void *argp1 = 0 ;
22319 int res1 = 0 ;
22320 int val2 ;
22321 int ecode2 = 0 ;
22322 int val3 ;
22323 int ecode3 = 0 ;
22324 PyObject * obj0 = 0 ;
22325 PyObject * obj1 = 0 ;
22326 PyObject * obj2 = 0 ;
22327 char * kwnames[] = {
22328 (char *) "self",(char *) "x",(char *) "y", NULL
22329 };
22330
22331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22333 if (!SWIG_IsOK(res1)) {
22334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22335 }
22336 arg1 = reinterpret_cast< wxDC * >(argp1);
22337 ecode2 = SWIG_AsVal_int(obj1, &val2);
22338 if (!SWIG_IsOK(ecode2)) {
22339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22340 }
22341 arg2 = static_cast< int >(val2);
22342 ecode3 = SWIG_AsVal_int(obj2, &val3);
22343 if (!SWIG_IsOK(ecode3)) {
22344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22345 }
22346 arg3 = static_cast< int >(val3);
22347 {
22348 PyThreadState* __tstate = wxPyBeginAllowThreads();
22349 (arg1)->SetLogicalOrigin(arg2,arg3);
22350 wxPyEndAllowThreads(__tstate);
22351 if (PyErr_Occurred()) SWIG_fail;
22352 }
22353 resultobj = SWIG_Py_Void();
22354 return resultobj;
22355 fail:
22356 return NULL;
22357 }
22358
22359
22360 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22361 PyObject *resultobj = 0;
22362 wxDC *arg1 = (wxDC *) 0 ;
22363 wxPoint *arg2 = 0 ;
22364 void *argp1 = 0 ;
22365 int res1 = 0 ;
22366 wxPoint temp2 ;
22367 PyObject * obj0 = 0 ;
22368 PyObject * obj1 = 0 ;
22369 char * kwnames[] = {
22370 (char *) "self",(char *) "point", NULL
22371 };
22372
22373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22375 if (!SWIG_IsOK(res1)) {
22376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22377 }
22378 arg1 = reinterpret_cast< wxDC * >(argp1);
22379 {
22380 arg2 = &temp2;
22381 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22382 }
22383 {
22384 PyThreadState* __tstate = wxPyBeginAllowThreads();
22385 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22386 wxPyEndAllowThreads(__tstate);
22387 if (PyErr_Occurred()) SWIG_fail;
22388 }
22389 resultobj = SWIG_Py_Void();
22390 return resultobj;
22391 fail:
22392 return NULL;
22393 }
22394
22395
22396 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22397 PyObject *resultobj = 0;
22398 wxDC *arg1 = (wxDC *) 0 ;
22399 wxPoint result;
22400 void *argp1 = 0 ;
22401 int res1 = 0 ;
22402 PyObject *swig_obj[1] ;
22403
22404 if (!args) SWIG_fail;
22405 swig_obj[0] = args;
22406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22407 if (!SWIG_IsOK(res1)) {
22408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22409 }
22410 arg1 = reinterpret_cast< wxDC * >(argp1);
22411 {
22412 PyThreadState* __tstate = wxPyBeginAllowThreads();
22413 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22414 wxPyEndAllowThreads(__tstate);
22415 if (PyErr_Occurred()) SWIG_fail;
22416 }
22417 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22418 return resultobj;
22419 fail:
22420 return NULL;
22421 }
22422
22423
22424 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22425 PyObject *resultobj = 0;
22426 wxDC *arg1 = (wxDC *) 0 ;
22427 int *arg2 = (int *) 0 ;
22428 int *arg3 = (int *) 0 ;
22429 void *argp1 = 0 ;
22430 int res1 = 0 ;
22431 int temp2 ;
22432 int res2 = SWIG_TMPOBJ ;
22433 int temp3 ;
22434 int res3 = SWIG_TMPOBJ ;
22435 PyObject *swig_obj[1] ;
22436
22437 arg2 = &temp2;
22438 arg3 = &temp3;
22439 if (!args) SWIG_fail;
22440 swig_obj[0] = args;
22441 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22442 if (!SWIG_IsOK(res1)) {
22443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22444 }
22445 arg1 = reinterpret_cast< wxDC * >(argp1);
22446 {
22447 PyThreadState* __tstate = wxPyBeginAllowThreads();
22448 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22449 wxPyEndAllowThreads(__tstate);
22450 if (PyErr_Occurred()) SWIG_fail;
22451 }
22452 resultobj = SWIG_Py_Void();
22453 if (SWIG_IsTmpObj(res2)) {
22454 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22455 } else {
22456 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22457 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22458 }
22459 if (SWIG_IsTmpObj(res3)) {
22460 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22461 } else {
22462 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22463 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22464 }
22465 return resultobj;
22466 fail:
22467 return NULL;
22468 }
22469
22470
22471 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22472 PyObject *resultobj = 0;
22473 wxDC *arg1 = (wxDC *) 0 ;
22474 int arg2 ;
22475 int arg3 ;
22476 void *argp1 = 0 ;
22477 int res1 = 0 ;
22478 int val2 ;
22479 int ecode2 = 0 ;
22480 int val3 ;
22481 int ecode3 = 0 ;
22482 PyObject * obj0 = 0 ;
22483 PyObject * obj1 = 0 ;
22484 PyObject * obj2 = 0 ;
22485 char * kwnames[] = {
22486 (char *) "self",(char *) "x",(char *) "y", NULL
22487 };
22488
22489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22491 if (!SWIG_IsOK(res1)) {
22492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22493 }
22494 arg1 = reinterpret_cast< wxDC * >(argp1);
22495 ecode2 = SWIG_AsVal_int(obj1, &val2);
22496 if (!SWIG_IsOK(ecode2)) {
22497 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22498 }
22499 arg2 = static_cast< int >(val2);
22500 ecode3 = SWIG_AsVal_int(obj2, &val3);
22501 if (!SWIG_IsOK(ecode3)) {
22502 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22503 }
22504 arg3 = static_cast< int >(val3);
22505 {
22506 PyThreadState* __tstate = wxPyBeginAllowThreads();
22507 (arg1)->SetDeviceOrigin(arg2,arg3);
22508 wxPyEndAllowThreads(__tstate);
22509 if (PyErr_Occurred()) SWIG_fail;
22510 }
22511 resultobj = SWIG_Py_Void();
22512 return resultobj;
22513 fail:
22514 return NULL;
22515 }
22516
22517
22518 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22519 PyObject *resultobj = 0;
22520 wxDC *arg1 = (wxDC *) 0 ;
22521 wxPoint *arg2 = 0 ;
22522 void *argp1 = 0 ;
22523 int res1 = 0 ;
22524 wxPoint temp2 ;
22525 PyObject * obj0 = 0 ;
22526 PyObject * obj1 = 0 ;
22527 char * kwnames[] = {
22528 (char *) "self",(char *) "point", NULL
22529 };
22530
22531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22533 if (!SWIG_IsOK(res1)) {
22534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22535 }
22536 arg1 = reinterpret_cast< wxDC * >(argp1);
22537 {
22538 arg2 = &temp2;
22539 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22540 }
22541 {
22542 PyThreadState* __tstate = wxPyBeginAllowThreads();
22543 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22544 wxPyEndAllowThreads(__tstate);
22545 if (PyErr_Occurred()) SWIG_fail;
22546 }
22547 resultobj = SWIG_Py_Void();
22548 return resultobj;
22549 fail:
22550 return NULL;
22551 }
22552
22553
22554 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22555 PyObject *resultobj = 0;
22556 wxDC *arg1 = (wxDC *) 0 ;
22557 bool arg2 ;
22558 bool arg3 ;
22559 void *argp1 = 0 ;
22560 int res1 = 0 ;
22561 bool val2 ;
22562 int ecode2 = 0 ;
22563 bool val3 ;
22564 int ecode3 = 0 ;
22565 PyObject * obj0 = 0 ;
22566 PyObject * obj1 = 0 ;
22567 PyObject * obj2 = 0 ;
22568 char * kwnames[] = {
22569 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22570 };
22571
22572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22574 if (!SWIG_IsOK(res1)) {
22575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22576 }
22577 arg1 = reinterpret_cast< wxDC * >(argp1);
22578 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22579 if (!SWIG_IsOK(ecode2)) {
22580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22581 }
22582 arg2 = static_cast< bool >(val2);
22583 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22584 if (!SWIG_IsOK(ecode3)) {
22585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22586 }
22587 arg3 = static_cast< bool >(val3);
22588 {
22589 PyThreadState* __tstate = wxPyBeginAllowThreads();
22590 (arg1)->SetAxisOrientation(arg2,arg3);
22591 wxPyEndAllowThreads(__tstate);
22592 if (PyErr_Occurred()) SWIG_fail;
22593 }
22594 resultobj = SWIG_Py_Void();
22595 return resultobj;
22596 fail:
22597 return NULL;
22598 }
22599
22600
22601 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22602 PyObject *resultobj = 0;
22603 wxDC *arg1 = (wxDC *) 0 ;
22604 int result;
22605 void *argp1 = 0 ;
22606 int res1 = 0 ;
22607 PyObject *swig_obj[1] ;
22608
22609 if (!args) SWIG_fail;
22610 swig_obj[0] = args;
22611 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22612 if (!SWIG_IsOK(res1)) {
22613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22614 }
22615 arg1 = reinterpret_cast< wxDC * >(argp1);
22616 {
22617 PyThreadState* __tstate = wxPyBeginAllowThreads();
22618 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22619 wxPyEndAllowThreads(__tstate);
22620 if (PyErr_Occurred()) SWIG_fail;
22621 }
22622 resultobj = SWIG_From_int(static_cast< int >(result));
22623 return resultobj;
22624 fail:
22625 return NULL;
22626 }
22627
22628
22629 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22630 PyObject *resultobj = 0;
22631 wxDC *arg1 = (wxDC *) 0 ;
22632 int arg2 ;
22633 void *argp1 = 0 ;
22634 int res1 = 0 ;
22635 int val2 ;
22636 int ecode2 = 0 ;
22637 PyObject * obj0 = 0 ;
22638 PyObject * obj1 = 0 ;
22639 char * kwnames[] = {
22640 (char *) "self",(char *) "function", NULL
22641 };
22642
22643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22645 if (!SWIG_IsOK(res1)) {
22646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22647 }
22648 arg1 = reinterpret_cast< wxDC * >(argp1);
22649 ecode2 = SWIG_AsVal_int(obj1, &val2);
22650 if (!SWIG_IsOK(ecode2)) {
22651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22652 }
22653 arg2 = static_cast< int >(val2);
22654 {
22655 PyThreadState* __tstate = wxPyBeginAllowThreads();
22656 (arg1)->SetLogicalFunction(arg2);
22657 wxPyEndAllowThreads(__tstate);
22658 if (PyErr_Occurred()) SWIG_fail;
22659 }
22660 resultobj = SWIG_Py_Void();
22661 return resultobj;
22662 fail:
22663 return NULL;
22664 }
22665
22666
22667 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22668 PyObject *resultobj = 0;
22669 wxDC *arg1 = (wxDC *) 0 ;
22670 void *argp1 = 0 ;
22671 int res1 = 0 ;
22672 PyObject *swig_obj[1] ;
22673
22674 if (!args) SWIG_fail;
22675 swig_obj[0] = args;
22676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22677 if (!SWIG_IsOK(res1)) {
22678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22679 }
22680 arg1 = reinterpret_cast< wxDC * >(argp1);
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 (arg1)->ComputeScaleAndOrigin();
22684 wxPyEndAllowThreads(__tstate);
22685 if (PyErr_Occurred()) SWIG_fail;
22686 }
22687 resultobj = SWIG_Py_Void();
22688 return resultobj;
22689 fail:
22690 return NULL;
22691 }
22692
22693
22694 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22695 PyObject *resultobj = 0;
22696 wxDC *arg1 = (wxDC *) 0 ;
22697 int arg2 ;
22698 int arg3 ;
22699 void *argp1 = 0 ;
22700 int res1 = 0 ;
22701 int val2 ;
22702 int ecode2 = 0 ;
22703 int val3 ;
22704 int ecode3 = 0 ;
22705 PyObject * obj0 = 0 ;
22706 PyObject * obj1 = 0 ;
22707 PyObject * obj2 = 0 ;
22708 char * kwnames[] = {
22709 (char *) "self",(char *) "x",(char *) "y", NULL
22710 };
22711
22712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22714 if (!SWIG_IsOK(res1)) {
22715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22716 }
22717 arg1 = reinterpret_cast< wxDC * >(argp1);
22718 ecode2 = SWIG_AsVal_int(obj1, &val2);
22719 if (!SWIG_IsOK(ecode2)) {
22720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22721 }
22722 arg2 = static_cast< int >(val2);
22723 ecode3 = SWIG_AsVal_int(obj2, &val3);
22724 if (!SWIG_IsOK(ecode3)) {
22725 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22726 }
22727 arg3 = static_cast< int >(val3);
22728 {
22729 PyThreadState* __tstate = wxPyBeginAllowThreads();
22730 (arg1)->CalcBoundingBox(arg2,arg3);
22731 wxPyEndAllowThreads(__tstate);
22732 if (PyErr_Occurred()) SWIG_fail;
22733 }
22734 resultobj = SWIG_Py_Void();
22735 return resultobj;
22736 fail:
22737 return NULL;
22738 }
22739
22740
22741 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22742 PyObject *resultobj = 0;
22743 wxDC *arg1 = (wxDC *) 0 ;
22744 wxPoint *arg2 = 0 ;
22745 void *argp1 = 0 ;
22746 int res1 = 0 ;
22747 wxPoint temp2 ;
22748 PyObject * obj0 = 0 ;
22749 PyObject * obj1 = 0 ;
22750 char * kwnames[] = {
22751 (char *) "self",(char *) "point", NULL
22752 };
22753
22754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22756 if (!SWIG_IsOK(res1)) {
22757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22758 }
22759 arg1 = reinterpret_cast< wxDC * >(argp1);
22760 {
22761 arg2 = &temp2;
22762 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22763 }
22764 {
22765 PyThreadState* __tstate = wxPyBeginAllowThreads();
22766 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22767 wxPyEndAllowThreads(__tstate);
22768 if (PyErr_Occurred()) SWIG_fail;
22769 }
22770 resultobj = SWIG_Py_Void();
22771 return resultobj;
22772 fail:
22773 return NULL;
22774 }
22775
22776
22777 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22778 PyObject *resultobj = 0;
22779 wxDC *arg1 = (wxDC *) 0 ;
22780 void *argp1 = 0 ;
22781 int res1 = 0 ;
22782 PyObject *swig_obj[1] ;
22783
22784 if (!args) SWIG_fail;
22785 swig_obj[0] = args;
22786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22787 if (!SWIG_IsOK(res1)) {
22788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22789 }
22790 arg1 = reinterpret_cast< wxDC * >(argp1);
22791 {
22792 PyThreadState* __tstate = wxPyBeginAllowThreads();
22793 (arg1)->ResetBoundingBox();
22794 wxPyEndAllowThreads(__tstate);
22795 if (PyErr_Occurred()) SWIG_fail;
22796 }
22797 resultobj = SWIG_Py_Void();
22798 return resultobj;
22799 fail:
22800 return NULL;
22801 }
22802
22803
22804 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22805 PyObject *resultobj = 0;
22806 wxDC *arg1 = (wxDC *) 0 ;
22807 int result;
22808 void *argp1 = 0 ;
22809 int res1 = 0 ;
22810 PyObject *swig_obj[1] ;
22811
22812 if (!args) SWIG_fail;
22813 swig_obj[0] = args;
22814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22815 if (!SWIG_IsOK(res1)) {
22816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22817 }
22818 arg1 = reinterpret_cast< wxDC * >(argp1);
22819 {
22820 PyThreadState* __tstate = wxPyBeginAllowThreads();
22821 result = (int)((wxDC const *)arg1)->MinX();
22822 wxPyEndAllowThreads(__tstate);
22823 if (PyErr_Occurred()) SWIG_fail;
22824 }
22825 resultobj = SWIG_From_int(static_cast< int >(result));
22826 return resultobj;
22827 fail:
22828 return NULL;
22829 }
22830
22831
22832 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22833 PyObject *resultobj = 0;
22834 wxDC *arg1 = (wxDC *) 0 ;
22835 int result;
22836 void *argp1 = 0 ;
22837 int res1 = 0 ;
22838 PyObject *swig_obj[1] ;
22839
22840 if (!args) SWIG_fail;
22841 swig_obj[0] = args;
22842 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22843 if (!SWIG_IsOK(res1)) {
22844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22845 }
22846 arg1 = reinterpret_cast< wxDC * >(argp1);
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 result = (int)((wxDC const *)arg1)->MaxX();
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 resultobj = SWIG_From_int(static_cast< int >(result));
22854 return resultobj;
22855 fail:
22856 return NULL;
22857 }
22858
22859
22860 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22861 PyObject *resultobj = 0;
22862 wxDC *arg1 = (wxDC *) 0 ;
22863 int result;
22864 void *argp1 = 0 ;
22865 int res1 = 0 ;
22866 PyObject *swig_obj[1] ;
22867
22868 if (!args) SWIG_fail;
22869 swig_obj[0] = args;
22870 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22871 if (!SWIG_IsOK(res1)) {
22872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22873 }
22874 arg1 = reinterpret_cast< wxDC * >(argp1);
22875 {
22876 PyThreadState* __tstate = wxPyBeginAllowThreads();
22877 result = (int)((wxDC const *)arg1)->MinY();
22878 wxPyEndAllowThreads(__tstate);
22879 if (PyErr_Occurred()) SWIG_fail;
22880 }
22881 resultobj = SWIG_From_int(static_cast< int >(result));
22882 return resultobj;
22883 fail:
22884 return NULL;
22885 }
22886
22887
22888 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22889 PyObject *resultobj = 0;
22890 wxDC *arg1 = (wxDC *) 0 ;
22891 int result;
22892 void *argp1 = 0 ;
22893 int res1 = 0 ;
22894 PyObject *swig_obj[1] ;
22895
22896 if (!args) SWIG_fail;
22897 swig_obj[0] = args;
22898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22899 if (!SWIG_IsOK(res1)) {
22900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22901 }
22902 arg1 = reinterpret_cast< wxDC * >(argp1);
22903 {
22904 PyThreadState* __tstate = wxPyBeginAllowThreads();
22905 result = (int)((wxDC const *)arg1)->MaxY();
22906 wxPyEndAllowThreads(__tstate);
22907 if (PyErr_Occurred()) SWIG_fail;
22908 }
22909 resultobj = SWIG_From_int(static_cast< int >(result));
22910 return resultobj;
22911 fail:
22912 return NULL;
22913 }
22914
22915
22916 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22917 PyObject *resultobj = 0;
22918 wxDC *arg1 = (wxDC *) 0 ;
22919 int *arg2 = (int *) 0 ;
22920 int *arg3 = (int *) 0 ;
22921 int *arg4 = (int *) 0 ;
22922 int *arg5 = (int *) 0 ;
22923 void *argp1 = 0 ;
22924 int res1 = 0 ;
22925 int temp2 ;
22926 int res2 = SWIG_TMPOBJ ;
22927 int temp3 ;
22928 int res3 = SWIG_TMPOBJ ;
22929 int temp4 ;
22930 int res4 = SWIG_TMPOBJ ;
22931 int temp5 ;
22932 int res5 = SWIG_TMPOBJ ;
22933 PyObject *swig_obj[1] ;
22934
22935 arg2 = &temp2;
22936 arg3 = &temp3;
22937 arg4 = &temp4;
22938 arg5 = &temp5;
22939 if (!args) SWIG_fail;
22940 swig_obj[0] = args;
22941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22942 if (!SWIG_IsOK(res1)) {
22943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22944 }
22945 arg1 = reinterpret_cast< wxDC * >(argp1);
22946 {
22947 PyThreadState* __tstate = wxPyBeginAllowThreads();
22948 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22949 wxPyEndAllowThreads(__tstate);
22950 if (PyErr_Occurred()) SWIG_fail;
22951 }
22952 resultobj = SWIG_Py_Void();
22953 if (SWIG_IsTmpObj(res2)) {
22954 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22955 } else {
22956 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22957 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22958 }
22959 if (SWIG_IsTmpObj(res3)) {
22960 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22961 } else {
22962 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22964 }
22965 if (SWIG_IsTmpObj(res4)) {
22966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22967 } else {
22968 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22970 }
22971 if (SWIG_IsTmpObj(res5)) {
22972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22973 } else {
22974 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22976 }
22977 return resultobj;
22978 fail:
22979 return NULL;
22980 }
22981
22982
22983 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22984 PyObject *resultobj = 0;
22985 wxDC *arg1 = (wxDC *) 0 ;
22986 wxLayoutDirection result;
22987 void *argp1 = 0 ;
22988 int res1 = 0 ;
22989 PyObject *swig_obj[1] ;
22990
22991 if (!args) SWIG_fail;
22992 swig_obj[0] = args;
22993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22994 if (!SWIG_IsOK(res1)) {
22995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22996 }
22997 arg1 = reinterpret_cast< wxDC * >(argp1);
22998 {
22999 PyThreadState* __tstate = wxPyBeginAllowThreads();
23000 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23001 wxPyEndAllowThreads(__tstate);
23002 if (PyErr_Occurred()) SWIG_fail;
23003 }
23004 resultobj = SWIG_From_int(static_cast< int >(result));
23005 return resultobj;
23006 fail:
23007 return NULL;
23008 }
23009
23010
23011 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23012 PyObject *resultobj = 0;
23013 wxDC *arg1 = (wxDC *) 0 ;
23014 wxLayoutDirection arg2 ;
23015 void *argp1 = 0 ;
23016 int res1 = 0 ;
23017 int val2 ;
23018 int ecode2 = 0 ;
23019 PyObject * obj0 = 0 ;
23020 PyObject * obj1 = 0 ;
23021 char * kwnames[] = {
23022 (char *) "self",(char *) "dir", NULL
23023 };
23024
23025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23027 if (!SWIG_IsOK(res1)) {
23028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23029 }
23030 arg1 = reinterpret_cast< wxDC * >(argp1);
23031 ecode2 = SWIG_AsVal_int(obj1, &val2);
23032 if (!SWIG_IsOK(ecode2)) {
23033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23034 }
23035 arg2 = static_cast< wxLayoutDirection >(val2);
23036 {
23037 PyThreadState* __tstate = wxPyBeginAllowThreads();
23038 (arg1)->SetLayoutDirection(arg2);
23039 wxPyEndAllowThreads(__tstate);
23040 if (PyErr_Occurred()) SWIG_fail;
23041 }
23042 resultobj = SWIG_Py_Void();
23043 return resultobj;
23044 fail:
23045 return NULL;
23046 }
23047
23048
23049 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23050 PyObject *resultobj = 0;
23051 wxDC *arg1 = (wxDC *) 0 ;
23052 PyObject *arg2 = (PyObject *) 0 ;
23053 PyObject *arg3 = (PyObject *) 0 ;
23054 PyObject *arg4 = (PyObject *) 0 ;
23055 PyObject *result = 0 ;
23056 void *argp1 = 0 ;
23057 int res1 = 0 ;
23058 PyObject * obj0 = 0 ;
23059 PyObject * obj1 = 0 ;
23060 PyObject * obj2 = 0 ;
23061 PyObject * obj3 = 0 ;
23062 char * kwnames[] = {
23063 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23064 };
23065
23066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23068 if (!SWIG_IsOK(res1)) {
23069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23070 }
23071 arg1 = reinterpret_cast< wxDC * >(argp1);
23072 arg2 = obj1;
23073 arg3 = obj2;
23074 arg4 = obj3;
23075 {
23076 PyThreadState* __tstate = wxPyBeginAllowThreads();
23077 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23078 wxPyEndAllowThreads(__tstate);
23079 if (PyErr_Occurred()) SWIG_fail;
23080 }
23081 resultobj = result;
23082 return resultobj;
23083 fail:
23084 return NULL;
23085 }
23086
23087
23088 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23089 PyObject *resultobj = 0;
23090 wxDC *arg1 = (wxDC *) 0 ;
23091 PyObject *arg2 = (PyObject *) 0 ;
23092 PyObject *arg3 = (PyObject *) 0 ;
23093 PyObject *arg4 = (PyObject *) 0 ;
23094 PyObject *result = 0 ;
23095 void *argp1 = 0 ;
23096 int res1 = 0 ;
23097 PyObject * obj0 = 0 ;
23098 PyObject * obj1 = 0 ;
23099 PyObject * obj2 = 0 ;
23100 PyObject * obj3 = 0 ;
23101 char * kwnames[] = {
23102 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23103 };
23104
23105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23107 if (!SWIG_IsOK(res1)) {
23108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23109 }
23110 arg1 = reinterpret_cast< wxDC * >(argp1);
23111 arg2 = obj1;
23112 arg3 = obj2;
23113 arg4 = obj3;
23114 {
23115 PyThreadState* __tstate = wxPyBeginAllowThreads();
23116 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23117 wxPyEndAllowThreads(__tstate);
23118 if (PyErr_Occurred()) SWIG_fail;
23119 }
23120 resultobj = result;
23121 return resultobj;
23122 fail:
23123 return NULL;
23124 }
23125
23126
23127 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23128 PyObject *resultobj = 0;
23129 wxDC *arg1 = (wxDC *) 0 ;
23130 PyObject *arg2 = (PyObject *) 0 ;
23131 PyObject *arg3 = (PyObject *) 0 ;
23132 PyObject *arg4 = (PyObject *) 0 ;
23133 PyObject *result = 0 ;
23134 void *argp1 = 0 ;
23135 int res1 = 0 ;
23136 PyObject * obj0 = 0 ;
23137 PyObject * obj1 = 0 ;
23138 PyObject * obj2 = 0 ;
23139 PyObject * obj3 = 0 ;
23140 char * kwnames[] = {
23141 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23142 };
23143
23144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23146 if (!SWIG_IsOK(res1)) {
23147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23148 }
23149 arg1 = reinterpret_cast< wxDC * >(argp1);
23150 arg2 = obj1;
23151 arg3 = obj2;
23152 arg4 = obj3;
23153 {
23154 PyThreadState* __tstate = wxPyBeginAllowThreads();
23155 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23156 wxPyEndAllowThreads(__tstate);
23157 if (PyErr_Occurred()) SWIG_fail;
23158 }
23159 resultobj = result;
23160 return resultobj;
23161 fail:
23162 return NULL;
23163 }
23164
23165
23166 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23167 PyObject *resultobj = 0;
23168 wxDC *arg1 = (wxDC *) 0 ;
23169 PyObject *arg2 = (PyObject *) 0 ;
23170 PyObject *arg3 = (PyObject *) 0 ;
23171 PyObject *arg4 = (PyObject *) 0 ;
23172 PyObject *result = 0 ;
23173 void *argp1 = 0 ;
23174 int res1 = 0 ;
23175 PyObject * obj0 = 0 ;
23176 PyObject * obj1 = 0 ;
23177 PyObject * obj2 = 0 ;
23178 PyObject * obj3 = 0 ;
23179 char * kwnames[] = {
23180 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23181 };
23182
23183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23185 if (!SWIG_IsOK(res1)) {
23186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23187 }
23188 arg1 = reinterpret_cast< wxDC * >(argp1);
23189 arg2 = obj1;
23190 arg3 = obj2;
23191 arg4 = obj3;
23192 {
23193 PyThreadState* __tstate = wxPyBeginAllowThreads();
23194 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23195 wxPyEndAllowThreads(__tstate);
23196 if (PyErr_Occurred()) SWIG_fail;
23197 }
23198 resultobj = result;
23199 return resultobj;
23200 fail:
23201 return NULL;
23202 }
23203
23204
23205 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23206 PyObject *resultobj = 0;
23207 wxDC *arg1 = (wxDC *) 0 ;
23208 PyObject *arg2 = (PyObject *) 0 ;
23209 PyObject *arg3 = (PyObject *) 0 ;
23210 PyObject *arg4 = (PyObject *) 0 ;
23211 PyObject *result = 0 ;
23212 void *argp1 = 0 ;
23213 int res1 = 0 ;
23214 PyObject * obj0 = 0 ;
23215 PyObject * obj1 = 0 ;
23216 PyObject * obj2 = 0 ;
23217 PyObject * obj3 = 0 ;
23218 char * kwnames[] = {
23219 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23220 };
23221
23222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23224 if (!SWIG_IsOK(res1)) {
23225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23226 }
23227 arg1 = reinterpret_cast< wxDC * >(argp1);
23228 arg2 = obj1;
23229 arg3 = obj2;
23230 arg4 = obj3;
23231 {
23232 PyThreadState* __tstate = wxPyBeginAllowThreads();
23233 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23234 wxPyEndAllowThreads(__tstate);
23235 if (PyErr_Occurred()) SWIG_fail;
23236 }
23237 resultobj = result;
23238 return resultobj;
23239 fail:
23240 return NULL;
23241 }
23242
23243
23244 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23245 PyObject *resultobj = 0;
23246 wxDC *arg1 = (wxDC *) 0 ;
23247 PyObject *arg2 = (PyObject *) 0 ;
23248 PyObject *arg3 = (PyObject *) 0 ;
23249 PyObject *arg4 = (PyObject *) 0 ;
23250 PyObject *arg5 = (PyObject *) 0 ;
23251 PyObject *result = 0 ;
23252 void *argp1 = 0 ;
23253 int res1 = 0 ;
23254 PyObject * obj0 = 0 ;
23255 PyObject * obj1 = 0 ;
23256 PyObject * obj2 = 0 ;
23257 PyObject * obj3 = 0 ;
23258 PyObject * obj4 = 0 ;
23259 char * kwnames[] = {
23260 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23261 };
23262
23263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23265 if (!SWIG_IsOK(res1)) {
23266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23267 }
23268 arg1 = reinterpret_cast< wxDC * >(argp1);
23269 arg2 = obj1;
23270 arg3 = obj2;
23271 arg4 = obj3;
23272 arg5 = obj4;
23273 {
23274 PyThreadState* __tstate = wxPyBeginAllowThreads();
23275 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23276 wxPyEndAllowThreads(__tstate);
23277 if (PyErr_Occurred()) SWIG_fail;
23278 }
23279 resultobj = result;
23280 return resultobj;
23281 fail:
23282 return NULL;
23283 }
23284
23285
23286 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23287 PyObject *obj;
23288 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23289 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23290 return SWIG_Py_Void();
23291 }
23292
23293 SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23294 PyObject *resultobj = 0;
23295 wxDC *arg1 = 0 ;
23296 wxColour *arg2 = 0 ;
23297 wxDCTextColourChanger *result = 0 ;
23298 void *argp1 = 0 ;
23299 int res1 = 0 ;
23300 wxColour temp2 ;
23301 PyObject * obj0 = 0 ;
23302 PyObject * obj1 = 0 ;
23303 char * kwnames[] = {
23304 (char *) "dc",(char *) "col", NULL
23305 };
23306
23307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23308 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23309 if (!SWIG_IsOK(res1)) {
23310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23311 }
23312 if (!argp1) {
23313 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23314 }
23315 arg1 = reinterpret_cast< wxDC * >(argp1);
23316 {
23317 arg2 = &temp2;
23318 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23319 }
23320 {
23321 PyThreadState* __tstate = wxPyBeginAllowThreads();
23322 result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2);
23323 wxPyEndAllowThreads(__tstate);
23324 if (PyErr_Occurred()) SWIG_fail;
23325 }
23326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 );
23327 return resultobj;
23328 fail:
23329 return NULL;
23330 }
23331
23332
23333 SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23334 PyObject *resultobj = 0;
23335 wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ;
23336 void *argp1 = 0 ;
23337 int res1 = 0 ;
23338 PyObject *swig_obj[1] ;
23339
23340 if (!args) SWIG_fail;
23341 swig_obj[0] = args;
23342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 );
23343 if (!SWIG_IsOK(res1)) {
23344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'");
23345 }
23346 arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1);
23347 {
23348 PyThreadState* __tstate = wxPyBeginAllowThreads();
23349 delete arg1;
23350
23351 wxPyEndAllowThreads(__tstate);
23352 if (PyErr_Occurred()) SWIG_fail;
23353 }
23354 resultobj = SWIG_Py_Void();
23355 return resultobj;
23356 fail:
23357 return NULL;
23358 }
23359
23360
23361 SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23362 PyObject *obj;
23363 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23364 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj));
23365 return SWIG_Py_Void();
23366 }
23367
23368 SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23369 return SWIG_Python_InitShadowInstance(args);
23370 }
23371
23372 SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23373 PyObject *resultobj = 0;
23374 wxDC *arg1 = 0 ;
23375 wxPen *arg2 = 0 ;
23376 wxDCPenChanger *result = 0 ;
23377 void *argp1 = 0 ;
23378 int res1 = 0 ;
23379 void *argp2 = 0 ;
23380 int res2 = 0 ;
23381 PyObject * obj0 = 0 ;
23382 PyObject * obj1 = 0 ;
23383 char * kwnames[] = {
23384 (char *) "dc",(char *) "pen", NULL
23385 };
23386
23387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23388 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23389 if (!SWIG_IsOK(res1)) {
23390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23391 }
23392 if (!argp1) {
23393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23394 }
23395 arg1 = reinterpret_cast< wxDC * >(argp1);
23396 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
23397 if (!SWIG_IsOK(res2)) {
23398 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23399 }
23400 if (!argp2) {
23401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'");
23402 }
23403 arg2 = reinterpret_cast< wxPen * >(argp2);
23404 {
23405 PyThreadState* __tstate = wxPyBeginAllowThreads();
23406 result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2);
23407 wxPyEndAllowThreads(__tstate);
23408 if (PyErr_Occurred()) SWIG_fail;
23409 }
23410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 );
23411 return resultobj;
23412 fail:
23413 return NULL;
23414 }
23415
23416
23417 SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23418 PyObject *resultobj = 0;
23419 wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ;
23420 void *argp1 = 0 ;
23421 int res1 = 0 ;
23422 PyObject *swig_obj[1] ;
23423
23424 if (!args) SWIG_fail;
23425 swig_obj[0] = args;
23426 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 );
23427 if (!SWIG_IsOK(res1)) {
23428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'");
23429 }
23430 arg1 = reinterpret_cast< wxDCPenChanger * >(argp1);
23431 {
23432 PyThreadState* __tstate = wxPyBeginAllowThreads();
23433 delete arg1;
23434
23435 wxPyEndAllowThreads(__tstate);
23436 if (PyErr_Occurred()) SWIG_fail;
23437 }
23438 resultobj = SWIG_Py_Void();
23439 return resultobj;
23440 fail:
23441 return NULL;
23442 }
23443
23444
23445 SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23446 PyObject *obj;
23447 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23448 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj));
23449 return SWIG_Py_Void();
23450 }
23451
23452 SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23453 return SWIG_Python_InitShadowInstance(args);
23454 }
23455
23456 SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23457 PyObject *resultobj = 0;
23458 wxDC *arg1 = 0 ;
23459 wxBrush *arg2 = 0 ;
23460 wxDCBrushChanger *result = 0 ;
23461 void *argp1 = 0 ;
23462 int res1 = 0 ;
23463 void *argp2 = 0 ;
23464 int res2 = 0 ;
23465 PyObject * obj0 = 0 ;
23466 PyObject * obj1 = 0 ;
23467 char * kwnames[] = {
23468 (char *) "dc",(char *) "brush", NULL
23469 };
23470
23471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail;
23472 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23473 if (!SWIG_IsOK(res1)) {
23474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23475 }
23476 if (!argp1) {
23477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'");
23478 }
23479 arg1 = reinterpret_cast< wxDC * >(argp1);
23480 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
23481 if (!SWIG_IsOK(res2)) {
23482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23483 }
23484 if (!argp2) {
23485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'");
23486 }
23487 arg2 = reinterpret_cast< wxBrush * >(argp2);
23488 {
23489 PyThreadState* __tstate = wxPyBeginAllowThreads();
23490 result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2);
23491 wxPyEndAllowThreads(__tstate);
23492 if (PyErr_Occurred()) SWIG_fail;
23493 }
23494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 );
23495 return resultobj;
23496 fail:
23497 return NULL;
23498 }
23499
23500
23501 SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23502 PyObject *resultobj = 0;
23503 wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ;
23504 void *argp1 = 0 ;
23505 int res1 = 0 ;
23506 PyObject *swig_obj[1] ;
23507
23508 if (!args) SWIG_fail;
23509 swig_obj[0] = args;
23510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 );
23511 if (!SWIG_IsOK(res1)) {
23512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'");
23513 }
23514 arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1);
23515 {
23516 PyThreadState* __tstate = wxPyBeginAllowThreads();
23517 delete arg1;
23518
23519 wxPyEndAllowThreads(__tstate);
23520 if (PyErr_Occurred()) SWIG_fail;
23521 }
23522 resultobj = SWIG_Py_Void();
23523 return resultobj;
23524 fail:
23525 return NULL;
23526 }
23527
23528
23529 SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23530 PyObject *obj;
23531 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23532 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj));
23533 return SWIG_Py_Void();
23534 }
23535
23536 SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23537 return SWIG_Python_InitShadowInstance(args);
23538 }
23539
23540 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23541 PyObject *resultobj = 0;
23542 wxDC *arg1 = 0 ;
23543 wxRegion *arg2 = 0 ;
23544 wxDCClipper *result = 0 ;
23545 void *argp1 = 0 ;
23546 int res1 = 0 ;
23547 void *argp2 = 0 ;
23548 int res2 = 0 ;
23549
23550 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23552 if (!SWIG_IsOK(res1)) {
23553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23554 }
23555 if (!argp1) {
23556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23557 }
23558 arg1 = reinterpret_cast< wxDC * >(argp1);
23559 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
23560 if (!SWIG_IsOK(res2)) {
23561 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23562 }
23563 if (!argp2) {
23564 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'");
23565 }
23566 arg2 = reinterpret_cast< wxRegion * >(argp2);
23567 {
23568 PyThreadState* __tstate = wxPyBeginAllowThreads();
23569 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2);
23570 wxPyEndAllowThreads(__tstate);
23571 if (PyErr_Occurred()) SWIG_fail;
23572 }
23573 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23574 return resultobj;
23575 fail:
23576 return NULL;
23577 }
23578
23579
23580 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23581 PyObject *resultobj = 0;
23582 wxDC *arg1 = 0 ;
23583 wxRect *arg2 = 0 ;
23584 wxDCClipper *result = 0 ;
23585 void *argp1 = 0 ;
23586 int res1 = 0 ;
23587 wxRect temp2 ;
23588
23589 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
23590 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23591 if (!SWIG_IsOK(res1)) {
23592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23593 }
23594 if (!argp1) {
23595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23596 }
23597 arg1 = reinterpret_cast< wxDC * >(argp1);
23598 {
23599 arg2 = &temp2;
23600 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
23601 }
23602 {
23603 PyThreadState* __tstate = wxPyBeginAllowThreads();
23604 result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2);
23605 wxPyEndAllowThreads(__tstate);
23606 if (PyErr_Occurred()) SWIG_fail;
23607 }
23608 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23609 return resultobj;
23610 fail:
23611 return NULL;
23612 }
23613
23614
23615 SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23616 PyObject *resultobj = 0;
23617 wxDC *arg1 = 0 ;
23618 int arg2 ;
23619 int arg3 ;
23620 int arg4 ;
23621 int arg5 ;
23622 wxDCClipper *result = 0 ;
23623 void *argp1 = 0 ;
23624 int res1 = 0 ;
23625 int val2 ;
23626 int ecode2 = 0 ;
23627 int val3 ;
23628 int ecode3 = 0 ;
23629 int val4 ;
23630 int ecode4 = 0 ;
23631 int val5 ;
23632 int ecode5 = 0 ;
23633
23634 if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
23635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 );
23636 if (!SWIG_IsOK(res1)) {
23637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23638 }
23639 if (!argp1) {
23640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'");
23641 }
23642 arg1 = reinterpret_cast< wxDC * >(argp1);
23643 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
23644 if (!SWIG_IsOK(ecode2)) {
23645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'");
23646 }
23647 arg2 = static_cast< int >(val2);
23648 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23649 if (!SWIG_IsOK(ecode3)) {
23650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'");
23651 }
23652 arg3 = static_cast< int >(val3);
23653 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
23654 if (!SWIG_IsOK(ecode4)) {
23655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'");
23656 }
23657 arg4 = static_cast< int >(val4);
23658 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
23659 if (!SWIG_IsOK(ecode5)) {
23660 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'");
23661 }
23662 arg5 = static_cast< int >(val5);
23663 {
23664 PyThreadState* __tstate = wxPyBeginAllowThreads();
23665 result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5);
23666 wxPyEndAllowThreads(__tstate);
23667 if (PyErr_Occurred()) SWIG_fail;
23668 }
23669 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 );
23670 return resultobj;
23671 fail:
23672 return NULL;
23673 }
23674
23675
23676 SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) {
23677 int argc;
23678 PyObject *argv[6];
23679
23680 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail;
23681 --argc;
23682 if (argc == 2) {
23683 int _v = 0;
23684 {
23685 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0);
23686 _v = SWIG_CheckState(res);
23687 }
23688 if (!_v) goto check_1;
23689 return _wrap_new_DCClipper__SWIG_0(self, argc, argv);
23690 }
23691 check_1:
23692
23693 if (argc == 2) {
23694 return _wrap_new_DCClipper__SWIG_1(self, argc, argv);
23695 }
23696 if (argc == 5) {
23697 return _wrap_new_DCClipper__SWIG_2(self, argc, argv);
23698 }
23699
23700 fail:
23701 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'");
23702 return NULL;
23703 }
23704
23705
23706 SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23707 PyObject *resultobj = 0;
23708 wxDCClipper *arg1 = (wxDCClipper *) 0 ;
23709 void *argp1 = 0 ;
23710 int res1 = 0 ;
23711 PyObject *swig_obj[1] ;
23712
23713 if (!args) SWIG_fail;
23714 swig_obj[0] = args;
23715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 );
23716 if (!SWIG_IsOK(res1)) {
23717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'");
23718 }
23719 arg1 = reinterpret_cast< wxDCClipper * >(argp1);
23720 {
23721 PyThreadState* __tstate = wxPyBeginAllowThreads();
23722 delete arg1;
23723
23724 wxPyEndAllowThreads(__tstate);
23725 if (PyErr_Occurred()) SWIG_fail;
23726 }
23727 resultobj = SWIG_Py_Void();
23728 return resultobj;
23729 fail:
23730 return NULL;
23731 }
23732
23733
23734 SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23735 PyObject *obj;
23736 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23737 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj));
23738 return SWIG_Py_Void();
23739 }
23740
23741 SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23742 return SWIG_Python_InitShadowInstance(args);
23743 }
23744
23745 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23746 PyObject *resultobj = 0;
23747 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23748 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23749 wxMemoryDC *result = 0 ;
23750 void *argp1 = 0 ;
23751 int res1 = 0 ;
23752 PyObject * obj0 = 0 ;
23753 char * kwnames[] = {
23754 (char *) "bitmap", NULL
23755 };
23756
23757 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23758 if (obj0) {
23759 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23760 if (!SWIG_IsOK(res1)) {
23761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23762 }
23763 if (!argp1) {
23764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23765 }
23766 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23767 }
23768 {
23769 if (!wxPyCheckForApp()) SWIG_fail;
23770 PyThreadState* __tstate = wxPyBeginAllowThreads();
23771 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23772 wxPyEndAllowThreads(__tstate);
23773 if (PyErr_Occurred()) SWIG_fail;
23774 }
23775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23776 return resultobj;
23777 fail:
23778 return NULL;
23779 }
23780
23781
23782 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23783 PyObject *resultobj = 0;
23784 wxDC *arg1 = (wxDC *) 0 ;
23785 wxMemoryDC *result = 0 ;
23786 void *argp1 = 0 ;
23787 int res1 = 0 ;
23788 PyObject * obj0 = 0 ;
23789 char * kwnames[] = {
23790 (char *) "oldDC", NULL
23791 };
23792
23793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23795 if (!SWIG_IsOK(res1)) {
23796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23797 }
23798 arg1 = reinterpret_cast< wxDC * >(argp1);
23799 {
23800 if (!wxPyCheckForApp()) SWIG_fail;
23801 PyThreadState* __tstate = wxPyBeginAllowThreads();
23802 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23803 wxPyEndAllowThreads(__tstate);
23804 if (PyErr_Occurred()) SWIG_fail;
23805 }
23806 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23807 return resultobj;
23808 fail:
23809 return NULL;
23810 }
23811
23812
23813 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23814 PyObject *resultobj = 0;
23815 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23816 wxBitmap *arg2 = 0 ;
23817 void *argp1 = 0 ;
23818 int res1 = 0 ;
23819 void *argp2 = 0 ;
23820 int res2 = 0 ;
23821 PyObject * obj0 = 0 ;
23822 PyObject * obj1 = 0 ;
23823 char * kwnames[] = {
23824 (char *) "self",(char *) "bitmap", NULL
23825 };
23826
23827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23829 if (!SWIG_IsOK(res1)) {
23830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23831 }
23832 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23833 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23834 if (!SWIG_IsOK(res2)) {
23835 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23836 }
23837 if (!argp2) {
23838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23839 }
23840 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23841 {
23842 PyThreadState* __tstate = wxPyBeginAllowThreads();
23843 (arg1)->SelectObject((wxBitmap const &)*arg2);
23844 wxPyEndAllowThreads(__tstate);
23845 if (PyErr_Occurred()) SWIG_fail;
23846 }
23847 resultobj = SWIG_Py_Void();
23848 return resultobj;
23849 fail:
23850 return NULL;
23851 }
23852
23853
23854 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23855 PyObject *obj;
23856 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23857 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23858 return SWIG_Py_Void();
23859 }
23860
23861 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23862 return SWIG_Python_InitShadowInstance(args);
23863 }
23864
23865 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23866 PyObject *resultobj = 0;
23867 wxScreenDC *result = 0 ;
23868
23869 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23870 {
23871 if (!wxPyCheckForApp()) SWIG_fail;
23872 PyThreadState* __tstate = wxPyBeginAllowThreads();
23873 result = (wxScreenDC *)new wxScreenDC();
23874 wxPyEndAllowThreads(__tstate);
23875 if (PyErr_Occurred()) SWIG_fail;
23876 }
23877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23878 return resultobj;
23879 fail:
23880 return NULL;
23881 }
23882
23883
23884 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23885 PyObject *resultobj = 0;
23886 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23887 wxWindow *arg2 = (wxWindow *) 0 ;
23888 bool result;
23889 void *argp1 = 0 ;
23890 int res1 = 0 ;
23891 void *argp2 = 0 ;
23892 int res2 = 0 ;
23893 PyObject * obj0 = 0 ;
23894 PyObject * obj1 = 0 ;
23895 char * kwnames[] = {
23896 (char *) "self",(char *) "window", NULL
23897 };
23898
23899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23901 if (!SWIG_IsOK(res1)) {
23902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23903 }
23904 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23905 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23906 if (!SWIG_IsOK(res2)) {
23907 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23908 }
23909 arg2 = reinterpret_cast< wxWindow * >(argp2);
23910 {
23911 PyThreadState* __tstate = wxPyBeginAllowThreads();
23912 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23913 wxPyEndAllowThreads(__tstate);
23914 if (PyErr_Occurred()) SWIG_fail;
23915 }
23916 {
23917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23918 }
23919 return resultobj;
23920 fail:
23921 return NULL;
23922 }
23923
23924
23925 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23926 PyObject *resultobj = 0;
23927 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23928 wxRect *arg2 = (wxRect *) NULL ;
23929 bool result;
23930 void *argp1 = 0 ;
23931 int res1 = 0 ;
23932 void *argp2 = 0 ;
23933 int res2 = 0 ;
23934 PyObject * obj0 = 0 ;
23935 PyObject * obj1 = 0 ;
23936 char * kwnames[] = {
23937 (char *) "self",(char *) "rect", NULL
23938 };
23939
23940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23942 if (!SWIG_IsOK(res1)) {
23943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23944 }
23945 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23946 if (obj1) {
23947 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23948 if (!SWIG_IsOK(res2)) {
23949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23950 }
23951 arg2 = reinterpret_cast< wxRect * >(argp2);
23952 }
23953 {
23954 PyThreadState* __tstate = wxPyBeginAllowThreads();
23955 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23956 wxPyEndAllowThreads(__tstate);
23957 if (PyErr_Occurred()) SWIG_fail;
23958 }
23959 {
23960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23961 }
23962 return resultobj;
23963 fail:
23964 return NULL;
23965 }
23966
23967
23968 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23969 PyObject *resultobj = 0;
23970 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23971 bool result;
23972 void *argp1 = 0 ;
23973 int res1 = 0 ;
23974 PyObject *swig_obj[1] ;
23975
23976 if (!args) SWIG_fail;
23977 swig_obj[0] = args;
23978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23979 if (!SWIG_IsOK(res1)) {
23980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23981 }
23982 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23983 {
23984 PyThreadState* __tstate = wxPyBeginAllowThreads();
23985 result = (bool)(arg1)->EndDrawingOnTop();
23986 wxPyEndAllowThreads(__tstate);
23987 if (PyErr_Occurred()) SWIG_fail;
23988 }
23989 {
23990 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23991 }
23992 return resultobj;
23993 fail:
23994 return NULL;
23995 }
23996
23997
23998 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23999 PyObject *obj;
24000 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24001 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24002 return SWIG_Py_Void();
24003 }
24004
24005 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24006 return SWIG_Python_InitShadowInstance(args);
24007 }
24008
24009 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24010 PyObject *resultobj = 0;
24011 wxWindow *arg1 = (wxWindow *) 0 ;
24012 wxWindowDC *result = 0 ;
24013 void *argp1 = 0 ;
24014 int res1 = 0 ;
24015 PyObject * obj0 = 0 ;
24016 char * kwnames[] = {
24017 (char *) "win", NULL
24018 };
24019
24020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24022 if (!SWIG_IsOK(res1)) {
24023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24024 }
24025 arg1 = reinterpret_cast< wxWindow * >(argp1);
24026 {
24027 if (!wxPyCheckForApp()) SWIG_fail;
24028 PyThreadState* __tstate = wxPyBeginAllowThreads();
24029 result = (wxWindowDC *)new wxWindowDC(arg1);
24030 wxPyEndAllowThreads(__tstate);
24031 if (PyErr_Occurred()) SWIG_fail;
24032 }
24033 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24034 return resultobj;
24035 fail:
24036 return NULL;
24037 }
24038
24039
24040 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24041 PyObject *obj;
24042 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24043 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24044 return SWIG_Py_Void();
24045 }
24046
24047 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24048 return SWIG_Python_InitShadowInstance(args);
24049 }
24050
24051 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24052 PyObject *resultobj = 0;
24053 wxWindow *arg1 = (wxWindow *) 0 ;
24054 wxClientDC *result = 0 ;
24055 void *argp1 = 0 ;
24056 int res1 = 0 ;
24057 PyObject * obj0 = 0 ;
24058 char * kwnames[] = {
24059 (char *) "win", NULL
24060 };
24061
24062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24064 if (!SWIG_IsOK(res1)) {
24065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24066 }
24067 arg1 = reinterpret_cast< wxWindow * >(argp1);
24068 {
24069 if (!wxPyCheckForApp()) SWIG_fail;
24070 PyThreadState* __tstate = wxPyBeginAllowThreads();
24071 result = (wxClientDC *)new wxClientDC(arg1);
24072 wxPyEndAllowThreads(__tstate);
24073 if (PyErr_Occurred()) SWIG_fail;
24074 }
24075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24076 return resultobj;
24077 fail:
24078 return NULL;
24079 }
24080
24081
24082 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24083 PyObject *obj;
24084 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24085 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24086 return SWIG_Py_Void();
24087 }
24088
24089 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24090 return SWIG_Python_InitShadowInstance(args);
24091 }
24092
24093 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24094 PyObject *resultobj = 0;
24095 wxWindow *arg1 = (wxWindow *) 0 ;
24096 wxPaintDC *result = 0 ;
24097 void *argp1 = 0 ;
24098 int res1 = 0 ;
24099 PyObject * obj0 = 0 ;
24100 char * kwnames[] = {
24101 (char *) "win", NULL
24102 };
24103
24104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24106 if (!SWIG_IsOK(res1)) {
24107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24108 }
24109 arg1 = reinterpret_cast< wxWindow * >(argp1);
24110 {
24111 if (!wxPyCheckForApp()) SWIG_fail;
24112 PyThreadState* __tstate = wxPyBeginAllowThreads();
24113 result = (wxPaintDC *)new wxPaintDC(arg1);
24114 wxPyEndAllowThreads(__tstate);
24115 if (PyErr_Occurred()) SWIG_fail;
24116 }
24117 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24118 return resultobj;
24119 fail:
24120 return NULL;
24121 }
24122
24123
24124 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24125 PyObject *obj;
24126 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24127 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24128 return SWIG_Py_Void();
24129 }
24130
24131 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24132 return SWIG_Python_InitShadowInstance(args);
24133 }
24134
24135 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24136 PyObject *resultobj = 0;
24137 wxDC *arg1 = (wxDC *) 0 ;
24138 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24139 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24140 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24141 wxBufferedDC *result = 0 ;
24142 void *argp1 = 0 ;
24143 int res1 = 0 ;
24144 void *argp2 = 0 ;
24145 int res2 = 0 ;
24146 int val3 ;
24147 int ecode3 = 0 ;
24148
24149 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24151 if (!SWIG_IsOK(res1)) {
24152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24153 }
24154 arg1 = reinterpret_cast< wxDC * >(argp1);
24155 if (swig_obj[1]) {
24156 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24157 if (!SWIG_IsOK(res2)) {
24158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24159 }
24160 if (!argp2) {
24161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24162 }
24163 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24164 }
24165 if (swig_obj[2]) {
24166 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24167 if (!SWIG_IsOK(ecode3)) {
24168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24169 }
24170 arg3 = static_cast< int >(val3);
24171 }
24172 {
24173 if (!wxPyCheckForApp()) SWIG_fail;
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24176 wxPyEndAllowThreads(__tstate);
24177 if (PyErr_Occurred()) SWIG_fail;
24178 }
24179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24180 return resultobj;
24181 fail:
24182 return NULL;
24183 }
24184
24185
24186 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24187 PyObject *resultobj = 0;
24188 wxDC *arg1 = (wxDC *) 0 ;
24189 wxSize *arg2 = 0 ;
24190 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24191 wxBufferedDC *result = 0 ;
24192 void *argp1 = 0 ;
24193 int res1 = 0 ;
24194 wxSize temp2 ;
24195 int val3 ;
24196 int ecode3 = 0 ;
24197
24198 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24200 if (!SWIG_IsOK(res1)) {
24201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24202 }
24203 arg1 = reinterpret_cast< wxDC * >(argp1);
24204 {
24205 arg2 = &temp2;
24206 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24207 }
24208 if (swig_obj[2]) {
24209 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24210 if (!SWIG_IsOK(ecode3)) {
24211 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24212 }
24213 arg3 = static_cast< int >(val3);
24214 }
24215 {
24216 if (!wxPyCheckForApp()) SWIG_fail;
24217 PyThreadState* __tstate = wxPyBeginAllowThreads();
24218 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24219 wxPyEndAllowThreads(__tstate);
24220 if (PyErr_Occurred()) SWIG_fail;
24221 }
24222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24223 return resultobj;
24224 fail:
24225 return NULL;
24226 }
24227
24228
24229 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24230 int argc;
24231 PyObject *argv[4];
24232
24233 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24234 --argc;
24235 if ((argc >= 1) && (argc <= 3)) {
24236 int _v = 0;
24237 if (argc > 1) {
24238 {
24239 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24240 _v = SWIG_CheckState(res);
24241 }
24242 if (!_v) goto check_1;
24243 }
24244 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24245 }
24246 check_1:
24247
24248 if ((argc >= 2) && (argc <= 3)) {
24249 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24250 }
24251
24252 fail:
24253 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24254 return NULL;
24255 }
24256
24257
24258 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24259 PyObject *resultobj = 0;
24260 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24261 void *argp1 = 0 ;
24262 int res1 = 0 ;
24263 PyObject *swig_obj[1] ;
24264
24265 if (!args) SWIG_fail;
24266 swig_obj[0] = args;
24267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24268 if (!SWIG_IsOK(res1)) {
24269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24270 }
24271 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24272 {
24273 PyThreadState* __tstate = wxPyBeginAllowThreads();
24274 delete arg1;
24275
24276 wxPyEndAllowThreads(__tstate);
24277 if (PyErr_Occurred()) SWIG_fail;
24278 }
24279 resultobj = SWIG_Py_Void();
24280 return resultobj;
24281 fail:
24282 return NULL;
24283 }
24284
24285
24286 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24287 PyObject *resultobj = 0;
24288 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24289 void *argp1 = 0 ;
24290 int res1 = 0 ;
24291 PyObject *swig_obj[1] ;
24292
24293 if (!args) SWIG_fail;
24294 swig_obj[0] = args;
24295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24296 if (!SWIG_IsOK(res1)) {
24297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24298 }
24299 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24300 {
24301 PyThreadState* __tstate = wxPyBeginAllowThreads();
24302 (arg1)->UnMask();
24303 wxPyEndAllowThreads(__tstate);
24304 if (PyErr_Occurred()) SWIG_fail;
24305 }
24306 resultobj = SWIG_Py_Void();
24307 return resultobj;
24308 fail:
24309 return NULL;
24310 }
24311
24312
24313 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24314 PyObject *obj;
24315 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24316 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24317 return SWIG_Py_Void();
24318 }
24319
24320 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24321 return SWIG_Python_InitShadowInstance(args);
24322 }
24323
24324 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24325 PyObject *resultobj = 0;
24326 wxWindow *arg1 = (wxWindow *) 0 ;
24327 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24328 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24329 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24330 wxBufferedPaintDC *result = 0 ;
24331 void *argp1 = 0 ;
24332 int res1 = 0 ;
24333 void *argp2 = 0 ;
24334 int res2 = 0 ;
24335 int val3 ;
24336 int ecode3 = 0 ;
24337 PyObject * obj0 = 0 ;
24338 PyObject * obj1 = 0 ;
24339 PyObject * obj2 = 0 ;
24340 char * kwnames[] = {
24341 (char *) "window",(char *) "buffer",(char *) "style", NULL
24342 };
24343
24344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24346 if (!SWIG_IsOK(res1)) {
24347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24348 }
24349 arg1 = reinterpret_cast< wxWindow * >(argp1);
24350 if (obj1) {
24351 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24352 if (!SWIG_IsOK(res2)) {
24353 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24354 }
24355 if (!argp2) {
24356 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24357 }
24358 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24359 }
24360 if (obj2) {
24361 ecode3 = SWIG_AsVal_int(obj2, &val3);
24362 if (!SWIG_IsOK(ecode3)) {
24363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24364 }
24365 arg3 = static_cast< int >(val3);
24366 }
24367 {
24368 if (!wxPyCheckForApp()) SWIG_fail;
24369 PyThreadState* __tstate = wxPyBeginAllowThreads();
24370 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24371 wxPyEndAllowThreads(__tstate);
24372 if (PyErr_Occurred()) SWIG_fail;
24373 }
24374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24375 return resultobj;
24376 fail:
24377 return NULL;
24378 }
24379
24380
24381 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24382 PyObject *obj;
24383 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24384 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24385 return SWIG_Py_Void();
24386 }
24387
24388 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24389 return SWIG_Python_InitShadowInstance(args);
24390 }
24391
24392 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24393 PyObject *resultobj = 0;
24394 wxWindow *arg1 = (wxWindow *) 0 ;
24395 wxAutoBufferedPaintDC *result = 0 ;
24396 void *argp1 = 0 ;
24397 int res1 = 0 ;
24398 PyObject * obj0 = 0 ;
24399 char * kwnames[] = {
24400 (char *) "win", NULL
24401 };
24402
24403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24405 if (!SWIG_IsOK(res1)) {
24406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24407 }
24408 arg1 = reinterpret_cast< wxWindow * >(argp1);
24409 {
24410 PyThreadState* __tstate = wxPyBeginAllowThreads();
24411 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24412 wxPyEndAllowThreads(__tstate);
24413 if (PyErr_Occurred()) SWIG_fail;
24414 }
24415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24416 return resultobj;
24417 fail:
24418 return NULL;
24419 }
24420
24421
24422 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24423 PyObject *obj;
24424 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24425 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24426 return SWIG_Py_Void();
24427 }
24428
24429 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24430 return SWIG_Python_InitShadowInstance(args);
24431 }
24432
24433 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24434 PyObject *resultobj = 0;
24435 wxWindow *arg1 = (wxWindow *) 0 ;
24436 wxDC *result = 0 ;
24437 void *argp1 = 0 ;
24438 int res1 = 0 ;
24439 PyObject * obj0 = 0 ;
24440 char * kwnames[] = {
24441 (char *) "window", NULL
24442 };
24443
24444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24446 if (!SWIG_IsOK(res1)) {
24447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24448 }
24449 arg1 = reinterpret_cast< wxWindow * >(argp1);
24450 {
24451 PyThreadState* __tstate = wxPyBeginAllowThreads();
24452 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24453 wxPyEndAllowThreads(__tstate);
24454 if (PyErr_Occurred()) SWIG_fail;
24455 }
24456 {
24457 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24458 }
24459 return resultobj;
24460 fail:
24461 return NULL;
24462 }
24463
24464
24465 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24466 PyObject *resultobj = 0;
24467 wxDC *arg1 = 0 ;
24468 bool arg2 ;
24469 wxMirrorDC *result = 0 ;
24470 void *argp1 = 0 ;
24471 int res1 = 0 ;
24472 bool val2 ;
24473 int ecode2 = 0 ;
24474 PyObject * obj0 = 0 ;
24475 PyObject * obj1 = 0 ;
24476 char * kwnames[] = {
24477 (char *) "dc",(char *) "mirror", NULL
24478 };
24479
24480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24481 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24482 if (!SWIG_IsOK(res1)) {
24483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24484 }
24485 if (!argp1) {
24486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24487 }
24488 arg1 = reinterpret_cast< wxDC * >(argp1);
24489 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24490 if (!SWIG_IsOK(ecode2)) {
24491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24492 }
24493 arg2 = static_cast< bool >(val2);
24494 {
24495 if (!wxPyCheckForApp()) SWIG_fail;
24496 PyThreadState* __tstate = wxPyBeginAllowThreads();
24497 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24498 wxPyEndAllowThreads(__tstate);
24499 if (PyErr_Occurred()) SWIG_fail;
24500 }
24501 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24502 return resultobj;
24503 fail:
24504 return NULL;
24505 }
24506
24507
24508 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24509 PyObject *obj;
24510 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24511 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24512 return SWIG_Py_Void();
24513 }
24514
24515 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24516 return SWIG_Python_InitShadowInstance(args);
24517 }
24518
24519 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24520 PyObject *resultobj = 0;
24521 wxPrintData *arg1 = 0 ;
24522 wxPostScriptDC *result = 0 ;
24523 void *argp1 = 0 ;
24524 int res1 = 0 ;
24525 PyObject * obj0 = 0 ;
24526 char * kwnames[] = {
24527 (char *) "printData", NULL
24528 };
24529
24530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24531 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24532 if (!SWIG_IsOK(res1)) {
24533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24534 }
24535 if (!argp1) {
24536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24537 }
24538 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24539 {
24540 if (!wxPyCheckForApp()) SWIG_fail;
24541 PyThreadState* __tstate = wxPyBeginAllowThreads();
24542 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24543 wxPyEndAllowThreads(__tstate);
24544 if (PyErr_Occurred()) SWIG_fail;
24545 }
24546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24547 return resultobj;
24548 fail:
24549 return NULL;
24550 }
24551
24552
24553 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24554 PyObject *resultobj = 0;
24555 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24556 wxPrintData *result = 0 ;
24557 void *argp1 = 0 ;
24558 int res1 = 0 ;
24559 PyObject *swig_obj[1] ;
24560
24561 if (!args) SWIG_fail;
24562 swig_obj[0] = args;
24563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24564 if (!SWIG_IsOK(res1)) {
24565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24566 }
24567 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24568 {
24569 PyThreadState* __tstate = wxPyBeginAllowThreads();
24570 {
24571 wxPrintData &_result_ref = (arg1)->GetPrintData();
24572 result = (wxPrintData *) &_result_ref;
24573 }
24574 wxPyEndAllowThreads(__tstate);
24575 if (PyErr_Occurred()) SWIG_fail;
24576 }
24577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24578 return resultobj;
24579 fail:
24580 return NULL;
24581 }
24582
24583
24584 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24585 PyObject *resultobj = 0;
24586 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24587 wxPrintData *arg2 = 0 ;
24588 void *argp1 = 0 ;
24589 int res1 = 0 ;
24590 void *argp2 = 0 ;
24591 int res2 = 0 ;
24592 PyObject * obj0 = 0 ;
24593 PyObject * obj1 = 0 ;
24594 char * kwnames[] = {
24595 (char *) "self",(char *) "data", NULL
24596 };
24597
24598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24600 if (!SWIG_IsOK(res1)) {
24601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24602 }
24603 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24604 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24605 if (!SWIG_IsOK(res2)) {
24606 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24607 }
24608 if (!argp2) {
24609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24610 }
24611 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24612 {
24613 PyThreadState* __tstate = wxPyBeginAllowThreads();
24614 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24615 wxPyEndAllowThreads(__tstate);
24616 if (PyErr_Occurred()) SWIG_fail;
24617 }
24618 resultobj = SWIG_Py_Void();
24619 return resultobj;
24620 fail:
24621 return NULL;
24622 }
24623
24624
24625 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24626 PyObject *resultobj = 0;
24627 int arg1 ;
24628 int val1 ;
24629 int ecode1 = 0 ;
24630 PyObject * obj0 = 0 ;
24631 char * kwnames[] = {
24632 (char *) "ppi", NULL
24633 };
24634
24635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24636 ecode1 = SWIG_AsVal_int(obj0, &val1);
24637 if (!SWIG_IsOK(ecode1)) {
24638 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24639 }
24640 arg1 = static_cast< int >(val1);
24641 {
24642 PyThreadState* __tstate = wxPyBeginAllowThreads();
24643 wxPostScriptDC::SetResolution(arg1);
24644 wxPyEndAllowThreads(__tstate);
24645 if (PyErr_Occurred()) SWIG_fail;
24646 }
24647 resultobj = SWIG_Py_Void();
24648 return resultobj;
24649 fail:
24650 return NULL;
24651 }
24652
24653
24654 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24655 PyObject *resultobj = 0;
24656 int result;
24657
24658 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24659 {
24660 PyThreadState* __tstate = wxPyBeginAllowThreads();
24661 result = (int)wxPostScriptDC::GetResolution();
24662 wxPyEndAllowThreads(__tstate);
24663 if (PyErr_Occurred()) SWIG_fail;
24664 }
24665 resultobj = SWIG_From_int(static_cast< int >(result));
24666 return resultobj;
24667 fail:
24668 return NULL;
24669 }
24670
24671
24672 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24673 PyObject *obj;
24674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24675 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24676 return SWIG_Py_Void();
24677 }
24678
24679 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24680 return SWIG_Python_InitShadowInstance(args);
24681 }
24682
24683 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24684 PyObject *resultobj = 0;
24685 wxString const &arg1_defvalue = wxPyEmptyString ;
24686 wxString *arg1 = (wxString *) &arg1_defvalue ;
24687 wxMetaFile *result = 0 ;
24688 bool temp1 = false ;
24689 PyObject * obj0 = 0 ;
24690 char * kwnames[] = {
24691 (char *) "filename", NULL
24692 };
24693
24694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24695 if (obj0) {
24696 {
24697 arg1 = wxString_in_helper(obj0);
24698 if (arg1 == NULL) SWIG_fail;
24699 temp1 = true;
24700 }
24701 }
24702 {
24703 if (!wxPyCheckForApp()) SWIG_fail;
24704 PyThreadState* __tstate = wxPyBeginAllowThreads();
24705 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24706 wxPyEndAllowThreads(__tstate);
24707 if (PyErr_Occurred()) SWIG_fail;
24708 }
24709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24710 {
24711 if (temp1)
24712 delete arg1;
24713 }
24714 return resultobj;
24715 fail:
24716 {
24717 if (temp1)
24718 delete arg1;
24719 }
24720 return NULL;
24721 }
24722
24723
24724 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24725 PyObject *obj;
24726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24727 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24728 return SWIG_Py_Void();
24729 }
24730
24731 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24732 return SWIG_Python_InitShadowInstance(args);
24733 }
24734
24735 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24736 PyObject *resultobj = 0;
24737 wxString const &arg1_defvalue = wxPyEmptyString ;
24738 wxString *arg1 = (wxString *) &arg1_defvalue ;
24739 int arg2 = (int) 0 ;
24740 int arg3 = (int) 0 ;
24741 wxString const &arg4_defvalue = wxPyEmptyString ;
24742 wxString *arg4 = (wxString *) &arg4_defvalue ;
24743 wxMetaFileDC *result = 0 ;
24744 bool temp1 = false ;
24745 int val2 ;
24746 int ecode2 = 0 ;
24747 int val3 ;
24748 int ecode3 = 0 ;
24749 bool temp4 = false ;
24750 PyObject * obj0 = 0 ;
24751 PyObject * obj1 = 0 ;
24752 PyObject * obj2 = 0 ;
24753 PyObject * obj3 = 0 ;
24754 char * kwnames[] = {
24755 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24756 };
24757
24758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24759 if (obj0) {
24760 {
24761 arg1 = wxString_in_helper(obj0);
24762 if (arg1 == NULL) SWIG_fail;
24763 temp1 = true;
24764 }
24765 }
24766 if (obj1) {
24767 ecode2 = SWIG_AsVal_int(obj1, &val2);
24768 if (!SWIG_IsOK(ecode2)) {
24769 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24770 }
24771 arg2 = static_cast< int >(val2);
24772 }
24773 if (obj2) {
24774 ecode3 = SWIG_AsVal_int(obj2, &val3);
24775 if (!SWIG_IsOK(ecode3)) {
24776 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24777 }
24778 arg3 = static_cast< int >(val3);
24779 }
24780 if (obj3) {
24781 {
24782 arg4 = wxString_in_helper(obj3);
24783 if (arg4 == NULL) SWIG_fail;
24784 temp4 = true;
24785 }
24786 }
24787 {
24788 if (!wxPyCheckForApp()) SWIG_fail;
24789 PyThreadState* __tstate = wxPyBeginAllowThreads();
24790 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24791 wxPyEndAllowThreads(__tstate);
24792 if (PyErr_Occurred()) SWIG_fail;
24793 }
24794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24795 {
24796 if (temp1)
24797 delete arg1;
24798 }
24799 {
24800 if (temp4)
24801 delete arg4;
24802 }
24803 return resultobj;
24804 fail:
24805 {
24806 if (temp1)
24807 delete arg1;
24808 }
24809 {
24810 if (temp4)
24811 delete arg4;
24812 }
24813 return NULL;
24814 }
24815
24816
24817 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24818 PyObject *obj;
24819 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24820 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24821 return SWIG_Py_Void();
24822 }
24823
24824 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24825 return SWIG_Python_InitShadowInstance(args);
24826 }
24827
24828 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24829 PyObject *resultobj = 0;
24830 wxPrintData *arg1 = 0 ;
24831 wxPrinterDC *result = 0 ;
24832 void *argp1 = 0 ;
24833 int res1 = 0 ;
24834 PyObject * obj0 = 0 ;
24835 char * kwnames[] = {
24836 (char *) "printData", NULL
24837 };
24838
24839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24840 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24841 if (!SWIG_IsOK(res1)) {
24842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24843 }
24844 if (!argp1) {
24845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24846 }
24847 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24848 {
24849 if (!wxPyCheckForApp()) SWIG_fail;
24850 PyThreadState* __tstate = wxPyBeginAllowThreads();
24851 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24852 wxPyEndAllowThreads(__tstate);
24853 if (PyErr_Occurred()) SWIG_fail;
24854 }
24855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24856 return resultobj;
24857 fail:
24858 return NULL;
24859 }
24860
24861
24862 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24863 PyObject *obj;
24864 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24865 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24866 return SWIG_Py_Void();
24867 }
24868
24869 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24870 return SWIG_Python_InitShadowInstance(args);
24871 }
24872
24873 SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24874 PyObject *resultobj = 0;
24875 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ;
24876 wxGraphicsObject *result = 0 ;
24877 void *argp1 = 0 ;
24878 int res1 = 0 ;
24879 PyObject * obj0 = 0 ;
24880 char * kwnames[] = {
24881 (char *) "renderer", NULL
24882 };
24883
24884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail;
24885 if (obj0) {
24886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
24887 if (!SWIG_IsOK(res1)) {
24888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
24889 }
24890 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
24891 }
24892 {
24893 result = (wxGraphicsObject *)new wxGraphicsObject(arg1);
24894 if (PyErr_Occurred()) SWIG_fail;
24895 }
24896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 );
24897 return resultobj;
24898 fail:
24899 return NULL;
24900 }
24901
24902
24903 SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24904 PyObject *resultobj = 0;
24905 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
24906 void *argp1 = 0 ;
24907 int res1 = 0 ;
24908 PyObject *swig_obj[1] ;
24909
24910 if (!args) SWIG_fail;
24911 swig_obj[0] = args;
24912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 );
24913 if (!SWIG_IsOK(res1)) {
24914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'");
24915 }
24916 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
24917 {
24918 delete arg1;
24919
24920 if (PyErr_Occurred()) SWIG_fail;
24921 }
24922 resultobj = SWIG_Py_Void();
24923 return resultobj;
24924 fail:
24925 return NULL;
24926 }
24927
24928
24929 SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24930 PyObject *resultobj = 0;
24931 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
24932 bool result;
24933 void *argp1 = 0 ;
24934 int res1 = 0 ;
24935 PyObject *swig_obj[1] ;
24936
24937 if (!args) SWIG_fail;
24938 swig_obj[0] = args;
24939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
24940 if (!SWIG_IsOK(res1)) {
24941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
24942 }
24943 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
24944 {
24945 result = (bool)((wxGraphicsObject const *)arg1)->IsNull();
24946 if (PyErr_Occurred()) SWIG_fail;
24947 }
24948 {
24949 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24950 }
24951 return resultobj;
24952 fail:
24953 return NULL;
24954 }
24955
24956
24957 SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24958 PyObject *resultobj = 0;
24959 wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ;
24960 wxGraphicsRenderer *result = 0 ;
24961 void *argp1 = 0 ;
24962 int res1 = 0 ;
24963 PyObject *swig_obj[1] ;
24964
24965 if (!args) SWIG_fail;
24966 swig_obj[0] = args;
24967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 );
24968 if (!SWIG_IsOK(res1)) {
24969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'");
24970 }
24971 arg1 = reinterpret_cast< wxGraphicsObject * >(argp1);
24972 {
24973 result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer();
24974 if (PyErr_Occurred()) SWIG_fail;
24975 }
24976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
24977 return resultobj;
24978 fail:
24979 return NULL;
24980 }
24981
24982
24983 SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24984 PyObject *obj;
24985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24986 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj));
24987 return SWIG_Py_Void();
24988 }
24989
24990 SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24991 return SWIG_Python_InitShadowInstance(args);
24992 }
24993
24994 SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24995 PyObject *resultobj = 0;
24996 wxGraphicsPen *result = 0 ;
24997
24998 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail;
24999 {
25000 result = (wxGraphicsPen *)new wxGraphicsPen();
25001 if (PyErr_Occurred()) SWIG_fail;
25002 }
25003 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 );
25004 return resultobj;
25005 fail:
25006 return NULL;
25007 }
25008
25009
25010 SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25011 PyObject *resultobj = 0;
25012 wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ;
25013 void *argp1 = 0 ;
25014 int res1 = 0 ;
25015 PyObject *swig_obj[1] ;
25016
25017 if (!args) SWIG_fail;
25018 swig_obj[0] = args;
25019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 );
25020 if (!SWIG_IsOK(res1)) {
25021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'");
25022 }
25023 arg1 = reinterpret_cast< wxGraphicsPen * >(argp1);
25024 {
25025 delete arg1;
25026
25027 if (PyErr_Occurred()) SWIG_fail;
25028 }
25029 resultobj = SWIG_Py_Void();
25030 return resultobj;
25031 fail:
25032 return NULL;
25033 }
25034
25035
25036 SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25037 PyObject *obj;
25038 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25039 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj));
25040 return SWIG_Py_Void();
25041 }
25042
25043 SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25044 return SWIG_Python_InitShadowInstance(args);
25045 }
25046
25047 SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25048 PyObject *resultobj = 0;
25049 wxGraphicsBrush *result = 0 ;
25050
25051 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail;
25052 {
25053 result = (wxGraphicsBrush *)new wxGraphicsBrush();
25054 if (PyErr_Occurred()) SWIG_fail;
25055 }
25056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 );
25057 return resultobj;
25058 fail:
25059 return NULL;
25060 }
25061
25062
25063 SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25064 PyObject *resultobj = 0;
25065 wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ;
25066 void *argp1 = 0 ;
25067 int res1 = 0 ;
25068 PyObject *swig_obj[1] ;
25069
25070 if (!args) SWIG_fail;
25071 swig_obj[0] = args;
25072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 );
25073 if (!SWIG_IsOK(res1)) {
25074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'");
25075 }
25076 arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1);
25077 {
25078 delete arg1;
25079
25080 if (PyErr_Occurred()) SWIG_fail;
25081 }
25082 resultobj = SWIG_Py_Void();
25083 return resultobj;
25084 fail:
25085 return NULL;
25086 }
25087
25088
25089 SWIGINTERN PyObject *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25090 PyObject *obj;
25091 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25092 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj));
25093 return SWIG_Py_Void();
25094 }
25095
25096 SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25097 return SWIG_Python_InitShadowInstance(args);
25098 }
25099
25100 SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25101 PyObject *resultobj = 0;
25102 wxGraphicsFont *result = 0 ;
25103
25104 if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail;
25105 {
25106 result = (wxGraphicsFont *)new wxGraphicsFont();
25107 if (PyErr_Occurred()) SWIG_fail;
25108 }
25109 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 );
25110 return resultobj;
25111 fail:
25112 return NULL;
25113 }
25114
25115
25116 SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25117 PyObject *resultobj = 0;
25118 wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ;
25119 void *argp1 = 0 ;
25120 int res1 = 0 ;
25121 PyObject *swig_obj[1] ;
25122
25123 if (!args) SWIG_fail;
25124 swig_obj[0] = args;
25125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 );
25126 if (!SWIG_IsOK(res1)) {
25127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'");
25128 }
25129 arg1 = reinterpret_cast< wxGraphicsFont * >(argp1);
25130 {
25131 delete arg1;
25132
25133 if (PyErr_Occurred()) SWIG_fail;
25134 }
25135 resultobj = SWIG_Py_Void();
25136 return resultobj;
25137 fail:
25138 return NULL;
25139 }
25140
25141
25142 SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25143 PyObject *obj;
25144 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25145 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj));
25146 return SWIG_Py_Void();
25147 }
25148
25149 SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25150 return SWIG_Python_InitShadowInstance(args);
25151 }
25152
25153 SWIGINTERN int NullGraphicsPen_set(PyObject *) {
25154 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only.");
25155 return 1;
25156 }
25157
25158
25159 SWIGINTERN PyObject *NullGraphicsPen_get(void) {
25160 PyObject *pyobj = 0;
25161
25162 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 );
25163 return pyobj;
25164 }
25165
25166
25167 SWIGINTERN int NullGraphicsBrush_set(PyObject *) {
25168 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only.");
25169 return 1;
25170 }
25171
25172
25173 SWIGINTERN PyObject *NullGraphicsBrush_get(void) {
25174 PyObject *pyobj = 0;
25175
25176 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 );
25177 return pyobj;
25178 }
25179
25180
25181 SWIGINTERN int NullGraphicsFont_set(PyObject *) {
25182 SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only.");
25183 return 1;
25184 }
25185
25186
25187 SWIGINTERN PyObject *NullGraphicsFont_get(void) {
25188 PyObject *pyobj = 0;
25189
25190 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 );
25191 return pyobj;
25192 }
25193
25194
25195 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25196 PyObject *resultobj = 0;
25197 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25198 void *argp1 = 0 ;
25199 int res1 = 0 ;
25200 PyObject *swig_obj[1] ;
25201
25202 if (!args) SWIG_fail;
25203 swig_obj[0] = args;
25204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
25205 if (!SWIG_IsOK(res1)) {
25206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25207 }
25208 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25209 {
25210 delete arg1;
25211
25212 if (PyErr_Occurred()) SWIG_fail;
25213 }
25214 resultobj = SWIG_Py_Void();
25215 return resultobj;
25216 fail:
25217 return NULL;
25218 }
25219
25220
25221 SWIGINTERN PyObject *_wrap_GraphicsPath_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25222 PyObject *resultobj = 0;
25223 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25224 wxGraphicsPath *result = 0 ;
25225 void *argp1 = 0 ;
25226 int res1 = 0 ;
25227 PyObject *swig_obj[1] ;
25228
25229 if (!args) SWIG_fail;
25230 swig_obj[0] = args;
25231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25232 if (!SWIG_IsOK(res1)) {
25233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Clone" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
25234 }
25235 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25236 {
25237 result = (wxGraphicsPath *)((wxGraphicsPath const *)arg1)->Clone();
25238 if (PyErr_Occurred()) SWIG_fail;
25239 }
25240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25241 return resultobj;
25242 fail:
25243 return NULL;
25244 }
25245
25246
25247 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25248 PyObject *resultobj = 0;
25249 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25250 wxDouble arg2 ;
25251 wxDouble arg3 ;
25252 void *argp1 = 0 ;
25253 int res1 = 0 ;
25254 double val2 ;
25255 int ecode2 = 0 ;
25256 double val3 ;
25257 int ecode3 = 0 ;
25258
25259 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
25260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25261 if (!SWIG_IsOK(res1)) {
25262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25263 }
25264 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25265 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25266 if (!SWIG_IsOK(ecode2)) {
25267 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25268 }
25269 arg2 = static_cast< wxDouble >(val2);
25270 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25271 if (!SWIG_IsOK(ecode3)) {
25272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25273 }
25274 arg3 = static_cast< wxDouble >(val3);
25275 {
25276 (arg1)->MoveToPoint(arg2,arg3);
25277 if (PyErr_Occurred()) SWIG_fail;
25278 }
25279 resultobj = SWIG_Py_Void();
25280 return resultobj;
25281 fail:
25282 return NULL;
25283 }
25284
25285
25286 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25287 PyObject *resultobj = 0;
25288 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25289 wxPoint2D *arg2 = 0 ;
25290 void *argp1 = 0 ;
25291 int res1 = 0 ;
25292 wxPoint2D temp2 ;
25293
25294 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25296 if (!SWIG_IsOK(res1)) {
25297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25298 }
25299 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25300 {
25301 arg2 = &temp2;
25302 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
25303 }
25304 {
25305 (arg1)->MoveToPoint((wxPoint2D const &)*arg2);
25306 if (PyErr_Occurred()) SWIG_fail;
25307 }
25308 resultobj = SWIG_Py_Void();
25309 return resultobj;
25310 fail:
25311 return NULL;
25312 }
25313
25314
25315 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) {
25316 int argc;
25317 PyObject *argv[4];
25318
25319 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail;
25320 --argc;
25321 if (argc == 2) {
25322 return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv);
25323 }
25324 if (argc == 3) {
25325 return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv);
25326 }
25327
25328 fail:
25329 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'");
25330 return NULL;
25331 }
25332
25333
25334 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25335 PyObject *resultobj = 0;
25336 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25337 wxDouble arg2 ;
25338 wxDouble arg3 ;
25339 void *argp1 = 0 ;
25340 int res1 = 0 ;
25341 double val2 ;
25342 int ecode2 = 0 ;
25343 double val3 ;
25344 int ecode3 = 0 ;
25345
25346 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
25347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25348 if (!SWIG_IsOK(res1)) {
25349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25350 }
25351 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25352 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25353 if (!SWIG_IsOK(ecode2)) {
25354 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25355 }
25356 arg2 = static_cast< wxDouble >(val2);
25357 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25358 if (!SWIG_IsOK(ecode3)) {
25359 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25360 }
25361 arg3 = static_cast< wxDouble >(val3);
25362 {
25363 (arg1)->AddLineToPoint(arg2,arg3);
25364 if (PyErr_Occurred()) SWIG_fail;
25365 }
25366 resultobj = SWIG_Py_Void();
25367 return resultobj;
25368 fail:
25369 return NULL;
25370 }
25371
25372
25373 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25374 PyObject *resultobj = 0;
25375 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25376 wxPoint2D *arg2 = 0 ;
25377 void *argp1 = 0 ;
25378 int res1 = 0 ;
25379 wxPoint2D temp2 ;
25380
25381 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
25382 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25383 if (!SWIG_IsOK(res1)) {
25384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25385 }
25386 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25387 {
25388 arg2 = &temp2;
25389 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
25390 }
25391 {
25392 (arg1)->AddLineToPoint((wxPoint2D const &)*arg2);
25393 if (PyErr_Occurred()) SWIG_fail;
25394 }
25395 resultobj = SWIG_Py_Void();
25396 return resultobj;
25397 fail:
25398 return NULL;
25399 }
25400
25401
25402 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) {
25403 int argc;
25404 PyObject *argv[4];
25405
25406 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail;
25407 --argc;
25408 if (argc == 2) {
25409 return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv);
25410 }
25411 if (argc == 3) {
25412 return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv);
25413 }
25414
25415 fail:
25416 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'");
25417 return NULL;
25418 }
25419
25420
25421 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25422 PyObject *resultobj = 0;
25423 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25424 wxDouble arg2 ;
25425 wxDouble arg3 ;
25426 wxDouble arg4 ;
25427 wxDouble arg5 ;
25428 wxDouble arg6 ;
25429 wxDouble arg7 ;
25430 void *argp1 = 0 ;
25431 int res1 = 0 ;
25432 double val2 ;
25433 int ecode2 = 0 ;
25434 double val3 ;
25435 int ecode3 = 0 ;
25436 double val4 ;
25437 int ecode4 = 0 ;
25438 double val5 ;
25439 int ecode5 = 0 ;
25440 double val6 ;
25441 int ecode6 = 0 ;
25442 double val7 ;
25443 int ecode7 = 0 ;
25444
25445 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
25446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25447 if (!SWIG_IsOK(res1)) {
25448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25449 }
25450 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25451 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25452 if (!SWIG_IsOK(ecode2)) {
25453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25454 }
25455 arg2 = static_cast< wxDouble >(val2);
25456 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25457 if (!SWIG_IsOK(ecode3)) {
25458 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25459 }
25460 arg3 = static_cast< wxDouble >(val3);
25461 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
25462 if (!SWIG_IsOK(ecode4)) {
25463 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25464 }
25465 arg4 = static_cast< wxDouble >(val4);
25466 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
25467 if (!SWIG_IsOK(ecode5)) {
25468 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25469 }
25470 arg5 = static_cast< wxDouble >(val5);
25471 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
25472 if (!SWIG_IsOK(ecode6)) {
25473 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25474 }
25475 arg6 = static_cast< wxDouble >(val6);
25476 ecode7 = SWIG_AsVal_double(swig_obj[6], &val7);
25477 if (!SWIG_IsOK(ecode7)) {
25478 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
25479 }
25480 arg7 = static_cast< wxDouble >(val7);
25481 {
25482 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
25483 if (PyErr_Occurred()) SWIG_fail;
25484 }
25485 resultobj = SWIG_Py_Void();
25486 return resultobj;
25487 fail:
25488 return NULL;
25489 }
25490
25491
25492 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25493 PyObject *resultobj = 0;
25494 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25495 wxPoint2D *arg2 = 0 ;
25496 wxPoint2D *arg3 = 0 ;
25497 wxPoint2D *arg4 = 0 ;
25498 void *argp1 = 0 ;
25499 int res1 = 0 ;
25500 wxPoint2D temp2 ;
25501 wxPoint2D temp3 ;
25502 wxPoint2D temp4 ;
25503
25504 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
25505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25506 if (!SWIG_IsOK(res1)) {
25507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25508 }
25509 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25510 {
25511 arg2 = &temp2;
25512 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
25513 }
25514 {
25515 arg3 = &temp3;
25516 if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail;
25517 }
25518 {
25519 arg4 = &temp4;
25520 if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail;
25521 }
25522 {
25523 (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4);
25524 if (PyErr_Occurred()) SWIG_fail;
25525 }
25526 resultobj = SWIG_Py_Void();
25527 return resultobj;
25528 fail:
25529 return NULL;
25530 }
25531
25532
25533 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) {
25534 int argc;
25535 PyObject *argv[8];
25536
25537 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail;
25538 --argc;
25539 if (argc == 4) {
25540 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv);
25541 }
25542 if (argc == 7) {
25543 return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv);
25544 }
25545
25546 fail:
25547 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'");
25548 return NULL;
25549 }
25550
25551
25552 SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25553 PyObject *resultobj = 0;
25554 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25555 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25556 void *argp1 = 0 ;
25557 int res1 = 0 ;
25558 void *argp2 = 0 ;
25559 int res2 = 0 ;
25560 PyObject * obj0 = 0 ;
25561 PyObject * obj1 = 0 ;
25562 char * kwnames[] = {
25563 (char *) "self",(char *) "path", NULL
25564 };
25565
25566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail;
25567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25568 if (!SWIG_IsOK(res1)) {
25569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25570 }
25571 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25572 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25573 if (!SWIG_IsOK(res2)) {
25574 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25575 }
25576 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25577 {
25578 (arg1)->AddPath((wxGraphicsPath const *)arg2);
25579 if (PyErr_Occurred()) SWIG_fail;
25580 }
25581 resultobj = SWIG_Py_Void();
25582 return resultobj;
25583 fail:
25584 return NULL;
25585 }
25586
25587
25588 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25589 PyObject *resultobj = 0;
25590 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25591 void *argp1 = 0 ;
25592 int res1 = 0 ;
25593 PyObject *swig_obj[1] ;
25594
25595 if (!args) SWIG_fail;
25596 swig_obj[0] = args;
25597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25598 if (!SWIG_IsOK(res1)) {
25599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25600 }
25601 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25602 {
25603 (arg1)->CloseSubpath();
25604 if (PyErr_Occurred()) SWIG_fail;
25605 }
25606 resultobj = SWIG_Py_Void();
25607 return resultobj;
25608 fail:
25609 return NULL;
25610 }
25611
25612
25613 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25614 PyObject *resultobj = 0;
25615 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25616 wxPoint2D result;
25617 void *argp1 = 0 ;
25618 int res1 = 0 ;
25619 PyObject *swig_obj[1] ;
25620
25621 if (!args) SWIG_fail;
25622 swig_obj[0] = args;
25623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25624 if (!SWIG_IsOK(res1)) {
25625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25626 }
25627 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25628 {
25629 result = (arg1)->GetCurrentPoint();
25630 if (PyErr_Occurred()) SWIG_fail;
25631 }
25632 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
25633 return resultobj;
25634 fail:
25635 return NULL;
25636 }
25637
25638
25639 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25640 PyObject *resultobj = 0;
25641 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25642 wxDouble arg2 ;
25643 wxDouble arg3 ;
25644 wxDouble arg4 ;
25645 wxDouble arg5 ;
25646 wxDouble arg6 ;
25647 bool arg7 ;
25648 void *argp1 = 0 ;
25649 int res1 = 0 ;
25650 double val2 ;
25651 int ecode2 = 0 ;
25652 double val3 ;
25653 int ecode3 = 0 ;
25654 double val4 ;
25655 int ecode4 = 0 ;
25656 double val5 ;
25657 int ecode5 = 0 ;
25658 double val6 ;
25659 int ecode6 = 0 ;
25660 bool val7 ;
25661 int ecode7 = 0 ;
25662
25663 if ((nobjs < 7) || (nobjs > 7)) SWIG_fail;
25664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25665 if (!SWIG_IsOK(res1)) {
25666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25667 }
25668 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25669 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
25670 if (!SWIG_IsOK(ecode2)) {
25671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
25672 }
25673 arg2 = static_cast< wxDouble >(val2);
25674 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25675 if (!SWIG_IsOK(ecode3)) {
25676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25677 }
25678 arg3 = static_cast< wxDouble >(val3);
25679 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
25680 if (!SWIG_IsOK(ecode4)) {
25681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25682 }
25683 arg4 = static_cast< wxDouble >(val4);
25684 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
25685 if (!SWIG_IsOK(ecode5)) {
25686 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25687 }
25688 arg5 = static_cast< wxDouble >(val5);
25689 ecode6 = SWIG_AsVal_double(swig_obj[5], &val6);
25690 if (!SWIG_IsOK(ecode6)) {
25691 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
25692 }
25693 arg6 = static_cast< wxDouble >(val6);
25694 ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7);
25695 if (!SWIG_IsOK(ecode7)) {
25696 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
25697 }
25698 arg7 = static_cast< bool >(val7);
25699 {
25700 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
25701 if (PyErr_Occurred()) SWIG_fail;
25702 }
25703 resultobj = SWIG_Py_Void();
25704 return resultobj;
25705 fail:
25706 return NULL;
25707 }
25708
25709
25710 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25711 PyObject *resultobj = 0;
25712 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25713 wxPoint2D *arg2 = 0 ;
25714 wxDouble arg3 ;
25715 wxDouble arg4 ;
25716 wxDouble arg5 ;
25717 bool arg6 ;
25718 void *argp1 = 0 ;
25719 int res1 = 0 ;
25720 wxPoint2D temp2 ;
25721 double val3 ;
25722 int ecode3 = 0 ;
25723 double val4 ;
25724 int ecode4 = 0 ;
25725 double val5 ;
25726 int ecode5 = 0 ;
25727 bool val6 ;
25728 int ecode6 = 0 ;
25729
25730 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
25731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25732 if (!SWIG_IsOK(res1)) {
25733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25734 }
25735 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25736 {
25737 arg2 = &temp2;
25738 if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail;
25739 }
25740 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
25741 if (!SWIG_IsOK(ecode3)) {
25742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25743 }
25744 arg3 = static_cast< wxDouble >(val3);
25745 ecode4 = SWIG_AsVal_double(swig_obj[3], &val4);
25746 if (!SWIG_IsOK(ecode4)) {
25747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25748 }
25749 arg4 = static_cast< wxDouble >(val4);
25750 ecode5 = SWIG_AsVal_double(swig_obj[4], &val5);
25751 if (!SWIG_IsOK(ecode5)) {
25752 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25753 }
25754 arg5 = static_cast< wxDouble >(val5);
25755 ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6);
25756 if (!SWIG_IsOK(ecode6)) {
25757 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'");
25758 }
25759 arg6 = static_cast< bool >(val6);
25760 {
25761 (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6);
25762 if (PyErr_Occurred()) SWIG_fail;
25763 }
25764 resultobj = SWIG_Py_Void();
25765 return resultobj;
25766 fail:
25767 return NULL;
25768 }
25769
25770
25771 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) {
25772 int argc;
25773 PyObject *argv[8];
25774
25775 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail;
25776 --argc;
25777 if (argc == 6) {
25778 return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv);
25779 }
25780 if (argc == 7) {
25781 return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv);
25782 }
25783
25784 fail:
25785 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'");
25786 return NULL;
25787 }
25788
25789
25790 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25791 PyObject *resultobj = 0;
25792 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25793 wxDouble arg2 ;
25794 wxDouble arg3 ;
25795 wxDouble arg4 ;
25796 wxDouble arg5 ;
25797 void *argp1 = 0 ;
25798 int res1 = 0 ;
25799 double val2 ;
25800 int ecode2 = 0 ;
25801 double val3 ;
25802 int ecode3 = 0 ;
25803 double val4 ;
25804 int ecode4 = 0 ;
25805 double val5 ;
25806 int ecode5 = 0 ;
25807 PyObject * obj0 = 0 ;
25808 PyObject * obj1 = 0 ;
25809 PyObject * obj2 = 0 ;
25810 PyObject * obj3 = 0 ;
25811 PyObject * obj4 = 0 ;
25812 char * kwnames[] = {
25813 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
25814 };
25815
25816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25818 if (!SWIG_IsOK(res1)) {
25819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25820 }
25821 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25822 ecode2 = SWIG_AsVal_double(obj1, &val2);
25823 if (!SWIG_IsOK(ecode2)) {
25824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25825 }
25826 arg2 = static_cast< wxDouble >(val2);
25827 ecode3 = SWIG_AsVal_double(obj2, &val3);
25828 if (!SWIG_IsOK(ecode3)) {
25829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25830 }
25831 arg3 = static_cast< wxDouble >(val3);
25832 ecode4 = SWIG_AsVal_double(obj3, &val4);
25833 if (!SWIG_IsOK(ecode4)) {
25834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25835 }
25836 arg4 = static_cast< wxDouble >(val4);
25837 ecode5 = SWIG_AsVal_double(obj4, &val5);
25838 if (!SWIG_IsOK(ecode5)) {
25839 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25840 }
25841 arg5 = static_cast< wxDouble >(val5);
25842 {
25843 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
25844 if (PyErr_Occurred()) SWIG_fail;
25845 }
25846 resultobj = SWIG_Py_Void();
25847 return resultobj;
25848 fail:
25849 return NULL;
25850 }
25851
25852
25853 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25854 PyObject *resultobj = 0;
25855 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25856 wxDouble arg2 ;
25857 wxDouble arg3 ;
25858 wxDouble arg4 ;
25859 wxDouble arg5 ;
25860 void *argp1 = 0 ;
25861 int res1 = 0 ;
25862 double val2 ;
25863 int ecode2 = 0 ;
25864 double val3 ;
25865 int ecode3 = 0 ;
25866 double val4 ;
25867 int ecode4 = 0 ;
25868 double val5 ;
25869 int ecode5 = 0 ;
25870 PyObject * obj0 = 0 ;
25871 PyObject * obj1 = 0 ;
25872 PyObject * obj2 = 0 ;
25873 PyObject * obj3 = 0 ;
25874 PyObject * obj4 = 0 ;
25875 char * kwnames[] = {
25876 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25877 };
25878
25879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25881 if (!SWIG_IsOK(res1)) {
25882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25883 }
25884 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25885 ecode2 = SWIG_AsVal_double(obj1, &val2);
25886 if (!SWIG_IsOK(ecode2)) {
25887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
25888 }
25889 arg2 = static_cast< wxDouble >(val2);
25890 ecode3 = SWIG_AsVal_double(obj2, &val3);
25891 if (!SWIG_IsOK(ecode3)) {
25892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
25893 }
25894 arg3 = static_cast< wxDouble >(val3);
25895 ecode4 = SWIG_AsVal_double(obj3, &val4);
25896 if (!SWIG_IsOK(ecode4)) {
25897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
25898 }
25899 arg4 = static_cast< wxDouble >(val4);
25900 ecode5 = SWIG_AsVal_double(obj4, &val5);
25901 if (!SWIG_IsOK(ecode5)) {
25902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
25903 }
25904 arg5 = static_cast< wxDouble >(val5);
25905 {
25906 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
25907 if (PyErr_Occurred()) SWIG_fail;
25908 }
25909 resultobj = SWIG_Py_Void();
25910 return resultobj;
25911 fail:
25912 return NULL;
25913 }
25914
25915
25916 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25917 PyObject *resultobj = 0;
25918 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25919 wxDouble arg2 ;
25920 wxDouble arg3 ;
25921 wxDouble arg4 ;
25922 void *argp1 = 0 ;
25923 int res1 = 0 ;
25924 double val2 ;
25925 int ecode2 = 0 ;
25926 double val3 ;
25927 int ecode3 = 0 ;
25928 double val4 ;
25929 int ecode4 = 0 ;
25930 PyObject * obj0 = 0 ;
25931 PyObject * obj1 = 0 ;
25932 PyObject * obj2 = 0 ;
25933 PyObject * obj3 = 0 ;
25934 char * kwnames[] = {
25935 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
25936 };
25937
25938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25940 if (!SWIG_IsOK(res1)) {
25941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25942 }
25943 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25944 ecode2 = SWIG_AsVal_double(obj1, &val2);
25945 if (!SWIG_IsOK(ecode2)) {
25946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
25947 }
25948 arg2 = static_cast< wxDouble >(val2);
25949 ecode3 = SWIG_AsVal_double(obj2, &val3);
25950 if (!SWIG_IsOK(ecode3)) {
25951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
25952 }
25953 arg3 = static_cast< wxDouble >(val3);
25954 ecode4 = SWIG_AsVal_double(obj3, &val4);
25955 if (!SWIG_IsOK(ecode4)) {
25956 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
25957 }
25958 arg4 = static_cast< wxDouble >(val4);
25959 {
25960 (arg1)->AddCircle(arg2,arg3,arg4);
25961 if (PyErr_Occurred()) SWIG_fail;
25962 }
25963 resultobj = SWIG_Py_Void();
25964 return resultobj;
25965 fail:
25966 return NULL;
25967 }
25968
25969
25970 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25971 PyObject *resultobj = 0;
25972 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25973 wxDouble arg2 ;
25974 wxDouble arg3 ;
25975 wxDouble arg4 ;
25976 wxDouble arg5 ;
25977 wxDouble arg6 ;
25978 void *argp1 = 0 ;
25979 int res1 = 0 ;
25980 double val2 ;
25981 int ecode2 = 0 ;
25982 double val3 ;
25983 int ecode3 = 0 ;
25984 double val4 ;
25985 int ecode4 = 0 ;
25986 double val5 ;
25987 int ecode5 = 0 ;
25988 double val6 ;
25989 int ecode6 = 0 ;
25990 PyObject * obj0 = 0 ;
25991 PyObject * obj1 = 0 ;
25992 PyObject * obj2 = 0 ;
25993 PyObject * obj3 = 0 ;
25994 PyObject * obj4 = 0 ;
25995 PyObject * obj5 = 0 ;
25996 char * kwnames[] = {
25997 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
25998 };
25999
26000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26002 if (!SWIG_IsOK(res1)) {
26003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26004 }
26005 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26006 ecode2 = SWIG_AsVal_double(obj1, &val2);
26007 if (!SWIG_IsOK(ecode2)) {
26008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26009 }
26010 arg2 = static_cast< wxDouble >(val2);
26011 ecode3 = SWIG_AsVal_double(obj2, &val3);
26012 if (!SWIG_IsOK(ecode3)) {
26013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26014 }
26015 arg3 = static_cast< wxDouble >(val3);
26016 ecode4 = SWIG_AsVal_double(obj3, &val4);
26017 if (!SWIG_IsOK(ecode4)) {
26018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
26019 }
26020 arg4 = static_cast< wxDouble >(val4);
26021 ecode5 = SWIG_AsVal_double(obj4, &val5);
26022 if (!SWIG_IsOK(ecode5)) {
26023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
26024 }
26025 arg5 = static_cast< wxDouble >(val5);
26026 ecode6 = SWIG_AsVal_double(obj5, &val6);
26027 if (!SWIG_IsOK(ecode6)) {
26028 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
26029 }
26030 arg6 = static_cast< wxDouble >(val6);
26031 {
26032 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
26033 if (PyErr_Occurred()) SWIG_fail;
26034 }
26035 resultobj = SWIG_Py_Void();
26036 return resultobj;
26037 fail:
26038 return NULL;
26039 }
26040
26041
26042 SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26043 PyObject *resultobj = 0;
26044 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26045 wxDouble arg2 ;
26046 wxDouble arg3 ;
26047 wxDouble arg4 ;
26048 wxDouble arg5 ;
26049 void *argp1 = 0 ;
26050 int res1 = 0 ;
26051 double val2 ;
26052 int ecode2 = 0 ;
26053 double val3 ;
26054 int ecode3 = 0 ;
26055 double val4 ;
26056 int ecode4 = 0 ;
26057 double val5 ;
26058 int ecode5 = 0 ;
26059 PyObject * obj0 = 0 ;
26060 PyObject * obj1 = 0 ;
26061 PyObject * obj2 = 0 ;
26062 PyObject * obj3 = 0 ;
26063 PyObject * obj4 = 0 ;
26064 char * kwnames[] = {
26065 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26066 };
26067
26068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26070 if (!SWIG_IsOK(res1)) {
26071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26072 }
26073 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26074 ecode2 = SWIG_AsVal_double(obj1, &val2);
26075 if (!SWIG_IsOK(ecode2)) {
26076 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26077 }
26078 arg2 = static_cast< wxDouble >(val2);
26079 ecode3 = SWIG_AsVal_double(obj2, &val3);
26080 if (!SWIG_IsOK(ecode3)) {
26081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26082 }
26083 arg3 = static_cast< wxDouble >(val3);
26084 ecode4 = SWIG_AsVal_double(obj3, &val4);
26085 if (!SWIG_IsOK(ecode4)) {
26086 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26087 }
26088 arg4 = static_cast< wxDouble >(val4);
26089 ecode5 = SWIG_AsVal_double(obj4, &val5);
26090 if (!SWIG_IsOK(ecode5)) {
26091 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26092 }
26093 arg5 = static_cast< wxDouble >(val5);
26094 {
26095 (arg1)->AddEllipse(arg2,arg3,arg4,arg5);
26096 if (PyErr_Occurred()) SWIG_fail;
26097 }
26098 resultobj = SWIG_Py_Void();
26099 return resultobj;
26100 fail:
26101 return NULL;
26102 }
26103
26104
26105 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26106 PyObject *resultobj = 0;
26107 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26108 wxDouble arg2 ;
26109 wxDouble arg3 ;
26110 wxDouble arg4 ;
26111 wxDouble arg5 ;
26112 wxDouble arg6 ;
26113 void *argp1 = 0 ;
26114 int res1 = 0 ;
26115 double val2 ;
26116 int ecode2 = 0 ;
26117 double val3 ;
26118 int ecode3 = 0 ;
26119 double val4 ;
26120 int ecode4 = 0 ;
26121 double val5 ;
26122 int ecode5 = 0 ;
26123 double val6 ;
26124 int ecode6 = 0 ;
26125 PyObject * obj0 = 0 ;
26126 PyObject * obj1 = 0 ;
26127 PyObject * obj2 = 0 ;
26128 PyObject * obj3 = 0 ;
26129 PyObject * obj4 = 0 ;
26130 PyObject * obj5 = 0 ;
26131 char * kwnames[] = {
26132 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26133 };
26134
26135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26137 if (!SWIG_IsOK(res1)) {
26138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26139 }
26140 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26141 ecode2 = SWIG_AsVal_double(obj1, &val2);
26142 if (!SWIG_IsOK(ecode2)) {
26143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26144 }
26145 arg2 = static_cast< wxDouble >(val2);
26146 ecode3 = SWIG_AsVal_double(obj2, &val3);
26147 if (!SWIG_IsOK(ecode3)) {
26148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26149 }
26150 arg3 = static_cast< wxDouble >(val3);
26151 ecode4 = SWIG_AsVal_double(obj3, &val4);
26152 if (!SWIG_IsOK(ecode4)) {
26153 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26154 }
26155 arg4 = static_cast< wxDouble >(val4);
26156 ecode5 = SWIG_AsVal_double(obj4, &val5);
26157 if (!SWIG_IsOK(ecode5)) {
26158 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26159 }
26160 arg5 = static_cast< wxDouble >(val5);
26161 ecode6 = SWIG_AsVal_double(obj5, &val6);
26162 if (!SWIG_IsOK(ecode6)) {
26163 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26164 }
26165 arg6 = static_cast< wxDouble >(val6);
26166 {
26167 (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26168 if (PyErr_Occurred()) SWIG_fail;
26169 }
26170 resultobj = SWIG_Py_Void();
26171 return resultobj;
26172 fail:
26173 return NULL;
26174 }
26175
26176
26177 SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26178 PyObject *resultobj = 0;
26179 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26180 void *result = 0 ;
26181 void *argp1 = 0 ;
26182 int res1 = 0 ;
26183 PyObject *swig_obj[1] ;
26184
26185 if (!args) SWIG_fail;
26186 swig_obj[0] = args;
26187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26188 if (!SWIG_IsOK(res1)) {
26189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'");
26190 }
26191 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26192 {
26193 result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath();
26194 if (PyErr_Occurred()) SWIG_fail;
26195 }
26196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26197 return resultobj;
26198 fail:
26199 return NULL;
26200 }
26201
26202
26203 SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26204 PyObject *resultobj = 0;
26205 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26206 void *arg2 = (void *) 0 ;
26207 void *argp1 = 0 ;
26208 int res1 = 0 ;
26209 int res2 ;
26210 PyObject * obj0 = 0 ;
26211 PyObject * obj1 = 0 ;
26212 char * kwnames[] = {
26213 (char *) "self",(char *) "p", NULL
26214 };
26215
26216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail;
26217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26218 if (!SWIG_IsOK(res1)) {
26219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26220 }
26221 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26222 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
26223 if (!SWIG_IsOK(res2)) {
26224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'");
26225 }
26226 {
26227 (arg1)->UnGetNativePath(arg2);
26228 if (PyErr_Occurred()) SWIG_fail;
26229 }
26230 resultobj = SWIG_Py_Void();
26231 return resultobj;
26232 fail:
26233 return NULL;
26234 }
26235
26236
26237 SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26238 PyObject *resultobj = 0;
26239 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26240 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
26241 void *argp1 = 0 ;
26242 int res1 = 0 ;
26243 void *argp2 = 0 ;
26244 int res2 = 0 ;
26245 PyObject * obj0 = 0 ;
26246 PyObject * obj1 = 0 ;
26247 char * kwnames[] = {
26248 (char *) "self",(char *) "matrix", NULL
26249 };
26250
26251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail;
26252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26253 if (!SWIG_IsOK(res1)) {
26254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26255 }
26256 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26257 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26258 if (!SWIG_IsOK(res2)) {
26259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix *""'");
26260 }
26261 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26262 {
26263 (arg1)->Transform(arg2);
26264 if (PyErr_Occurred()) SWIG_fail;
26265 }
26266 resultobj = SWIG_Py_Void();
26267 return resultobj;
26268 fail:
26269 return NULL;
26270 }
26271
26272
26273 SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26274 PyObject *resultobj = 0;
26275 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26276 wxRect2DDouble result;
26277 void *argp1 = 0 ;
26278 int res1 = 0 ;
26279 PyObject *swig_obj[1] ;
26280
26281 if (!args) SWIG_fail;
26282 swig_obj[0] = args;
26283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26284 if (!SWIG_IsOK(res1)) {
26285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26286 }
26287 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26288 {
26289 result = (arg1)->GetBox();
26290 if (PyErr_Occurred()) SWIG_fail;
26291 }
26292 resultobj = SWIG_NewPointerObj((new wxRect2DDouble(static_cast< const wxRect2DDouble& >(result))), SWIGTYPE_p_wxRect2DDouble, SWIG_POINTER_OWN | 0 );
26293 return resultobj;
26294 fail:
26295 return NULL;
26296 }
26297
26298
26299 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26300 PyObject *resultobj = 0;
26301 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26302 wxDouble arg2 ;
26303 wxDouble arg3 ;
26304 int arg4 = (int) wxWINDING_RULE ;
26305 bool result;
26306 void *argp1 = 0 ;
26307 int res1 = 0 ;
26308 double val2 ;
26309 int ecode2 = 0 ;
26310 double val3 ;
26311 int ecode3 = 0 ;
26312 int val4 ;
26313 int ecode4 = 0 ;
26314
26315 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
26316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26317 if (!SWIG_IsOK(res1)) {
26318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26319 }
26320 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26321 ecode2 = SWIG_AsVal_double(swig_obj[1], &val2);
26322 if (!SWIG_IsOK(ecode2)) {
26323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'");
26324 }
26325 arg2 = static_cast< wxDouble >(val2);
26326 ecode3 = SWIG_AsVal_double(swig_obj[2], &val3);
26327 if (!SWIG_IsOK(ecode3)) {
26328 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'");
26329 }
26330 arg3 = static_cast< wxDouble >(val3);
26331 if (swig_obj[3]) {
26332 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
26333 if (!SWIG_IsOK(ecode4)) {
26334 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'");
26335 }
26336 arg4 = static_cast< int >(val4);
26337 }
26338 {
26339 result = (bool)(arg1)->Contains(arg2,arg3,arg4);
26340 if (PyErr_Occurred()) SWIG_fail;
26341 }
26342 {
26343 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26344 }
26345 return resultobj;
26346 fail:
26347 return NULL;
26348 }
26349
26350
26351 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26352 PyObject *resultobj = 0;
26353 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
26354 wxPoint2DDouble *arg2 = 0 ;
26355 int arg3 = (int) wxWINDING_RULE ;
26356 bool result;
26357 void *argp1 = 0 ;
26358 int res1 = 0 ;
26359 void *argp2 = 0 ;
26360 int res2 = 0 ;
26361 int val3 ;
26362 int ecode3 = 0 ;
26363
26364 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
26365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26366 if (!SWIG_IsOK(res1)) {
26367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
26368 }
26369 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
26370 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPoint2DDouble, 0 | 0);
26371 if (!SWIG_IsOK(res2)) {
26372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
26373 }
26374 if (!argp2) {
26375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxPoint2DDouble const &""'");
26376 }
26377 arg2 = reinterpret_cast< wxPoint2DDouble * >(argp2);
26378 if (swig_obj[2]) {
26379 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
26380 if (!SWIG_IsOK(ecode3)) {
26381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'");
26382 }
26383 arg3 = static_cast< int >(val3);
26384 }
26385 {
26386 result = (bool)(arg1)->Contains((wxPoint2DDouble const &)*arg2,arg3);
26387 if (PyErr_Occurred()) SWIG_fail;
26388 }
26389 {
26390 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26391 }
26392 return resultobj;
26393 fail:
26394 return NULL;
26395 }
26396
26397
26398 SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) {
26399 int argc;
26400 PyObject *argv[5];
26401
26402 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail;
26403 --argc;
26404 if ((argc >= 2) && (argc <= 3)) {
26405 int _v = 0;
26406 {
26407 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxPoint2DDouble, 0);
26408 _v = SWIG_CheckState(res);
26409 }
26410 if (!_v) goto check_1;
26411 if (argc > 2) {
26412 {
26413 {
26414 int res = SWIG_AsVal_int(argv[2], NULL);
26415 _v = SWIG_CheckState(res);
26416 }
26417 }
26418 if (!_v) goto check_1;
26419 }
26420 return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv);
26421 }
26422 check_1:
26423
26424 if ((argc >= 3) && (argc <= 4)) {
26425 return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv);
26426 }
26427
26428 fail:
26429 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'");
26430 return NULL;
26431 }
26432
26433
26434 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26435 PyObject *obj;
26436 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26437 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
26438 return SWIG_Py_Void();
26439 }
26440
26441 SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26442 PyObject *resultobj = 0;
26443 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26444 void *argp1 = 0 ;
26445 int res1 = 0 ;
26446 PyObject *swig_obj[1] ;
26447
26448 if (!args) SWIG_fail;
26449 swig_obj[0] = args;
26450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 );
26451 if (!SWIG_IsOK(res1)) {
26452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26453 }
26454 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26455 {
26456 delete arg1;
26457
26458 if (PyErr_Occurred()) SWIG_fail;
26459 }
26460 resultobj = SWIG_Py_Void();
26461 return resultobj;
26462 fail:
26463 return NULL;
26464 }
26465
26466
26467 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Clone(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26468 PyObject *resultobj = 0;
26469 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26470 wxGraphicsMatrix *result = 0 ;
26471 void *argp1 = 0 ;
26472 int res1 = 0 ;
26473 PyObject *swig_obj[1] ;
26474
26475 if (!args) SWIG_fail;
26476 swig_obj[0] = args;
26477 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26478 if (!SWIG_IsOK(res1)) {
26479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Clone" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26480 }
26481 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26482 {
26483 result = (wxGraphicsMatrix *)((wxGraphicsMatrix const *)arg1)->Clone();
26484 if (PyErr_Occurred()) SWIG_fail;
26485 }
26486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26487 return resultobj;
26488 fail:
26489 return NULL;
26490 }
26491
26492
26493 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26494 PyObject *resultobj = 0;
26495 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26496 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
26497 void *argp1 = 0 ;
26498 int res1 = 0 ;
26499 void *argp2 = 0 ;
26500 int res2 = 0 ;
26501 PyObject * obj0 = 0 ;
26502 PyObject * obj1 = 0 ;
26503 char * kwnames[] = {
26504 (char *) "self",(char *) "t", NULL
26505 };
26506
26507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail;
26508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26509 if (!SWIG_IsOK(res1)) {
26510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26511 }
26512 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26513 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26514 if (!SWIG_IsOK(res2)) {
26515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const *""'");
26516 }
26517 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26518 {
26519 (arg1)->Concat((wxGraphicsMatrix const *)arg2);
26520 if (PyErr_Occurred()) SWIG_fail;
26521 }
26522 resultobj = SWIG_Py_Void();
26523 return resultobj;
26524 fail:
26525 return NULL;
26526 }
26527
26528
26529 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Copy(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26530 PyObject *resultobj = 0;
26531 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26532 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
26533 void *argp1 = 0 ;
26534 int res1 = 0 ;
26535 void *argp2 = 0 ;
26536 int res2 = 0 ;
26537 PyObject * obj0 = 0 ;
26538 PyObject * obj1 = 0 ;
26539 char * kwnames[] = {
26540 (char *) "self",(char *) "t", NULL
26541 };
26542
26543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Copy",kwnames,&obj0,&obj1)) SWIG_fail;
26544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26545 if (!SWIG_IsOK(res1)) {
26546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Copy" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26547 }
26548 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26549 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26550 if (!SWIG_IsOK(res2)) {
26551 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Copy" "', expected argument " "2"" of type '" "wxGraphicsMatrix const *""'");
26552 }
26553 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26554 {
26555 (arg1)->Copy((wxGraphicsMatrix const *)arg2);
26556 if (PyErr_Occurred()) SWIG_fail;
26557 }
26558 resultobj = SWIG_Py_Void();
26559 return resultobj;
26560 fail:
26561 return NULL;
26562 }
26563
26564
26565 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26566 PyObject *resultobj = 0;
26567 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26568 wxDouble arg2 = (wxDouble) 1.0 ;
26569 wxDouble arg3 = (wxDouble) 0.0 ;
26570 wxDouble arg4 = (wxDouble) 0.0 ;
26571 wxDouble arg5 = (wxDouble) 1.0 ;
26572 wxDouble arg6 = (wxDouble) 0.0 ;
26573 wxDouble arg7 = (wxDouble) 0.0 ;
26574 void *argp1 = 0 ;
26575 int res1 = 0 ;
26576 double val2 ;
26577 int ecode2 = 0 ;
26578 double val3 ;
26579 int ecode3 = 0 ;
26580 double val4 ;
26581 int ecode4 = 0 ;
26582 double val5 ;
26583 int ecode5 = 0 ;
26584 double val6 ;
26585 int ecode6 = 0 ;
26586 double val7 ;
26587 int ecode7 = 0 ;
26588 PyObject * obj0 = 0 ;
26589 PyObject * obj1 = 0 ;
26590 PyObject * obj2 = 0 ;
26591 PyObject * obj3 = 0 ;
26592 PyObject * obj4 = 0 ;
26593 PyObject * obj5 = 0 ;
26594 PyObject * obj6 = 0 ;
26595 char * kwnames[] = {
26596 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
26597 };
26598
26599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26601 if (!SWIG_IsOK(res1)) {
26602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26603 }
26604 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26605 if (obj1) {
26606 ecode2 = SWIG_AsVal_double(obj1, &val2);
26607 if (!SWIG_IsOK(ecode2)) {
26608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'");
26609 }
26610 arg2 = static_cast< wxDouble >(val2);
26611 }
26612 if (obj2) {
26613 ecode3 = SWIG_AsVal_double(obj2, &val3);
26614 if (!SWIG_IsOK(ecode3)) {
26615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'");
26616 }
26617 arg3 = static_cast< wxDouble >(val3);
26618 }
26619 if (obj3) {
26620 ecode4 = SWIG_AsVal_double(obj3, &val4);
26621 if (!SWIG_IsOK(ecode4)) {
26622 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'");
26623 }
26624 arg4 = static_cast< wxDouble >(val4);
26625 }
26626 if (obj4) {
26627 ecode5 = SWIG_AsVal_double(obj4, &val5);
26628 if (!SWIG_IsOK(ecode5)) {
26629 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'");
26630 }
26631 arg5 = static_cast< wxDouble >(val5);
26632 }
26633 if (obj5) {
26634 ecode6 = SWIG_AsVal_double(obj5, &val6);
26635 if (!SWIG_IsOK(ecode6)) {
26636 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'");
26637 }
26638 arg6 = static_cast< wxDouble >(val6);
26639 }
26640 if (obj6) {
26641 ecode7 = SWIG_AsVal_double(obj6, &val7);
26642 if (!SWIG_IsOK(ecode7)) {
26643 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'");
26644 }
26645 arg7 = static_cast< wxDouble >(val7);
26646 }
26647 {
26648 (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7);
26649 if (PyErr_Occurred()) SWIG_fail;
26650 }
26651 resultobj = SWIG_Py_Void();
26652 return resultobj;
26653 fail:
26654 return NULL;
26655 }
26656
26657
26658 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26659 PyObject *resultobj = 0;
26660 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26661 void *argp1 = 0 ;
26662 int res1 = 0 ;
26663 PyObject *swig_obj[1] ;
26664
26665 if (!args) SWIG_fail;
26666 swig_obj[0] = args;
26667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26668 if (!SWIG_IsOK(res1)) {
26669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26670 }
26671 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26672 {
26673 (arg1)->Invert();
26674 if (PyErr_Occurred()) SWIG_fail;
26675 }
26676 resultobj = SWIG_Py_Void();
26677 return resultobj;
26678 fail:
26679 return NULL;
26680 }
26681
26682
26683 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26684 PyObject *resultobj = 0;
26685 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26686 wxGraphicsMatrix *arg2 = (wxGraphicsMatrix *) 0 ;
26687 bool result;
26688 void *argp1 = 0 ;
26689 int res1 = 0 ;
26690 void *argp2 = 0 ;
26691 int res2 = 0 ;
26692 PyObject * obj0 = 0 ;
26693 PyObject * obj1 = 0 ;
26694 char * kwnames[] = {
26695 (char *) "self",(char *) "t", NULL
26696 };
26697
26698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
26699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26700 if (!SWIG_IsOK(res1)) {
26701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
26702 }
26703 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26704 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26705 if (!SWIG_IsOK(res2)) {
26706 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const *""'");
26707 }
26708 arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2);
26709 {
26710 result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const *)arg2);
26711 if (PyErr_Occurred()) SWIG_fail;
26712 }
26713 {
26714 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26715 }
26716 return resultobj;
26717 fail:
26718 return NULL;
26719 }
26720
26721
26722 SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26723 PyObject *resultobj = 0;
26724 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26725 bool result;
26726 void *argp1 = 0 ;
26727 int res1 = 0 ;
26728 PyObject *swig_obj[1] ;
26729
26730 if (!args) SWIG_fail;
26731 swig_obj[0] = args;
26732 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26733 if (!SWIG_IsOK(res1)) {
26734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26735 }
26736 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26737 {
26738 result = (bool)(arg1)->IsIdentity();
26739 if (PyErr_Occurred()) SWIG_fail;
26740 }
26741 {
26742 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26743 }
26744 return resultobj;
26745 fail:
26746 return NULL;
26747 }
26748
26749
26750 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26751 PyObject *resultobj = 0;
26752 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26753 wxDouble arg2 ;
26754 wxDouble arg3 ;
26755 void *argp1 = 0 ;
26756 int res1 = 0 ;
26757 double val2 ;
26758 int ecode2 = 0 ;
26759 double val3 ;
26760 int ecode3 = 0 ;
26761 PyObject * obj0 = 0 ;
26762 PyObject * obj1 = 0 ;
26763 PyObject * obj2 = 0 ;
26764 char * kwnames[] = {
26765 (char *) "self",(char *) "dx",(char *) "dy", NULL
26766 };
26767
26768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26770 if (!SWIG_IsOK(res1)) {
26771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26772 }
26773 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26774 ecode2 = SWIG_AsVal_double(obj1, &val2);
26775 if (!SWIG_IsOK(ecode2)) {
26776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26777 }
26778 arg2 = static_cast< wxDouble >(val2);
26779 ecode3 = SWIG_AsVal_double(obj2, &val3);
26780 if (!SWIG_IsOK(ecode3)) {
26781 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26782 }
26783 arg3 = static_cast< wxDouble >(val3);
26784 {
26785 (arg1)->Translate(arg2,arg3);
26786 if (PyErr_Occurred()) SWIG_fail;
26787 }
26788 resultobj = SWIG_Py_Void();
26789 return resultobj;
26790 fail:
26791 return NULL;
26792 }
26793
26794
26795 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26796 PyObject *resultobj = 0;
26797 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26798 wxDouble arg2 ;
26799 wxDouble arg3 ;
26800 void *argp1 = 0 ;
26801 int res1 = 0 ;
26802 double val2 ;
26803 int ecode2 = 0 ;
26804 double val3 ;
26805 int ecode3 = 0 ;
26806 PyObject * obj0 = 0 ;
26807 PyObject * obj1 = 0 ;
26808 PyObject * obj2 = 0 ;
26809 char * kwnames[] = {
26810 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26811 };
26812
26813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26815 if (!SWIG_IsOK(res1)) {
26816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26817 }
26818 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26819 ecode2 = SWIG_AsVal_double(obj1, &val2);
26820 if (!SWIG_IsOK(ecode2)) {
26821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26822 }
26823 arg2 = static_cast< wxDouble >(val2);
26824 ecode3 = SWIG_AsVal_double(obj2, &val3);
26825 if (!SWIG_IsOK(ecode3)) {
26826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26827 }
26828 arg3 = static_cast< wxDouble >(val3);
26829 {
26830 (arg1)->Scale(arg2,arg3);
26831 if (PyErr_Occurred()) SWIG_fail;
26832 }
26833 resultobj = SWIG_Py_Void();
26834 return resultobj;
26835 fail:
26836 return NULL;
26837 }
26838
26839
26840 SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26841 PyObject *resultobj = 0;
26842 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26843 wxDouble arg2 ;
26844 void *argp1 = 0 ;
26845 int res1 = 0 ;
26846 double val2 ;
26847 int ecode2 = 0 ;
26848 PyObject * obj0 = 0 ;
26849 PyObject * obj1 = 0 ;
26850 char * kwnames[] = {
26851 (char *) "self",(char *) "angle", NULL
26852 };
26853
26854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26856 if (!SWIG_IsOK(res1)) {
26857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26858 }
26859 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26860 ecode2 = SWIG_AsVal_double(obj1, &val2);
26861 if (!SWIG_IsOK(ecode2)) {
26862 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26863 }
26864 arg2 = static_cast< wxDouble >(val2);
26865 {
26866 (arg1)->Rotate(arg2);
26867 if (PyErr_Occurred()) SWIG_fail;
26868 }
26869 resultobj = SWIG_Py_Void();
26870 return resultobj;
26871 fail:
26872 return NULL;
26873 }
26874
26875
26876 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26877 PyObject *resultobj = 0;
26878 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26879 wxDouble *arg2 = (wxDouble *) 0 ;
26880 wxDouble *arg3 = (wxDouble *) 0 ;
26881 void *argp1 = 0 ;
26882 int res1 = 0 ;
26883 wxDouble temp2 ;
26884 int res2 = 0 ;
26885 wxDouble temp3 ;
26886 int res3 = 0 ;
26887 PyObject * obj0 = 0 ;
26888 PyObject * obj1 = 0 ;
26889 PyObject * obj2 = 0 ;
26890 char * kwnames[] = {
26891 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26892 };
26893
26894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26896 if (!SWIG_IsOK(res1)) {
26897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26898 }
26899 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26900 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26901 double val;
26902 int ecode = SWIG_AsVal_double(obj1, &val);
26903 if (!SWIG_IsOK(ecode)) {
26904 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'");
26905 }
26906 temp2 = static_cast< wxDouble >(val);
26907 arg2 = &temp2;
26908 res2 = SWIG_AddTmpMask(ecode);
26909 }
26910 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26911 double val;
26912 int ecode = SWIG_AsVal_double(obj2, &val);
26913 if (!SWIG_IsOK(ecode)) {
26914 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'");
26915 }
26916 temp3 = static_cast< wxDouble >(val);
26917 arg3 = &temp3;
26918 res3 = SWIG_AddTmpMask(ecode);
26919 }
26920 {
26921 (arg1)->TransformPoint(arg2,arg3);
26922 if (PyErr_Occurred()) SWIG_fail;
26923 }
26924 resultobj = SWIG_Py_Void();
26925 if (SWIG_IsTmpObj(res2)) {
26926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26927 } else {
26928 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26930 }
26931 if (SWIG_IsTmpObj(res3)) {
26932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26933 } else {
26934 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26936 }
26937 return resultobj;
26938 fail:
26939 return NULL;
26940 }
26941
26942
26943 SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26944 PyObject *resultobj = 0;
26945 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
26946 wxDouble *arg2 = (wxDouble *) 0 ;
26947 wxDouble *arg3 = (wxDouble *) 0 ;
26948 void *argp1 = 0 ;
26949 int res1 = 0 ;
26950 wxDouble temp2 ;
26951 int res2 = 0 ;
26952 wxDouble temp3 ;
26953 int res3 = 0 ;
26954 PyObject * obj0 = 0 ;
26955 PyObject * obj1 = 0 ;
26956 PyObject * obj2 = 0 ;
26957 char * kwnames[] = {
26958 (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL
26959 };
26960
26961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
26963 if (!SWIG_IsOK(res1)) {
26964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'");
26965 }
26966 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
26967 if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) {
26968 double val;
26969 int ecode = SWIG_AsVal_double(obj1, &val);
26970 if (!SWIG_IsOK(ecode)) {
26971 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'");
26972 }
26973 temp2 = static_cast< wxDouble >(val);
26974 arg2 = &temp2;
26975 res2 = SWIG_AddTmpMask(ecode);
26976 }
26977 if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) {
26978 double val;
26979 int ecode = SWIG_AsVal_double(obj2, &val);
26980 if (!SWIG_IsOK(ecode)) {
26981 SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'");
26982 }
26983 temp3 = static_cast< wxDouble >(val);
26984 arg3 = &temp3;
26985 res3 = SWIG_AddTmpMask(ecode);
26986 }
26987 {
26988 (arg1)->TransformDistance(arg2,arg3);
26989 if (PyErr_Occurred()) SWIG_fail;
26990 }
26991 resultobj = SWIG_Py_Void();
26992 if (SWIG_IsTmpObj(res2)) {
26993 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
26994 } else {
26995 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26996 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
26997 }
26998 if (SWIG_IsTmpObj(res3)) {
26999 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
27000 } else {
27001 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27002 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
27003 }
27004 return resultobj;
27005 fail:
27006 return NULL;
27007 }
27008
27009
27010 SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27011 PyObject *resultobj = 0;
27012 wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ;
27013 void *result = 0 ;
27014 void *argp1 = 0 ;
27015 int res1 = 0 ;
27016 PyObject *swig_obj[1] ;
27017
27018 if (!args) SWIG_fail;
27019 swig_obj[0] = args;
27020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 );
27021 if (!SWIG_IsOK(res1)) {
27022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'");
27023 }
27024 arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1);
27025 {
27026 result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix();
27027 if (PyErr_Occurred()) SWIG_fail;
27028 }
27029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27030 return resultobj;
27031 fail:
27032 return NULL;
27033 }
27034
27035
27036 SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27037 PyObject *obj;
27038 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27039 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj));
27040 return SWIG_Py_Void();
27041 }
27042
27043 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27044 PyObject *resultobj = 0;
27045 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27046 void *argp1 = 0 ;
27047 int res1 = 0 ;
27048 PyObject *swig_obj[1] ;
27049
27050 if (!args) SWIG_fail;
27051 swig_obj[0] = args;
27052 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
27053 if (!SWIG_IsOK(res1)) {
27054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27055 }
27056 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27057 {
27058 delete arg1;
27059
27060 if (PyErr_Occurred()) SWIG_fail;
27061 }
27062 resultobj = SWIG_Py_Void();
27063 return resultobj;
27064 fail:
27065 return NULL;
27066 }
27067
27068
27069 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27070 PyObject *resultobj = 0;
27071 wxWindowDC *arg1 = 0 ;
27072 wxGraphicsContext *result = 0 ;
27073 void *argp1 = 0 ;
27074 int res1 = 0 ;
27075
27076 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27078 if (!SWIG_IsOK(res1)) {
27079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27080 }
27081 if (!argp1) {
27082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27083 }
27084 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27085 {
27086 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
27087 if (PyErr_Occurred()) SWIG_fail;
27088 }
27089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27090 return resultobj;
27091 fail:
27092 return NULL;
27093 }
27094
27095
27096 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27097 PyObject *resultobj = 0;
27098 wxWindow *arg1 = (wxWindow *) 0 ;
27099 wxGraphicsContext *result = 0 ;
27100 void *argp1 = 0 ;
27101 int res1 = 0 ;
27102
27103 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
27104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
27105 if (!SWIG_IsOK(res1)) {
27106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
27107 }
27108 arg1 = reinterpret_cast< wxWindow * >(argp1);
27109 {
27110 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
27111 if (PyErr_Occurred()) SWIG_fail;
27112 }
27113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27114 return resultobj;
27115 fail:
27116 return NULL;
27117 }
27118
27119
27120 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
27121 int argc;
27122 PyObject *argv[2];
27123
27124 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
27125 --argc;
27126 if (argc == 1) {
27127 int _v = 0;
27128 {
27129 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
27130 _v = SWIG_CheckState(res);
27131 }
27132 if (!_v) goto check_1;
27133 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
27134 }
27135 check_1:
27136
27137 if (argc == 1) {
27138 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
27139 }
27140
27141 fail:
27142 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
27143 return NULL;
27144 }
27145
27146
27147 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27148 PyObject *resultobj = 0;
27149 void *arg1 = (void *) 0 ;
27150 wxGraphicsContext *result = 0 ;
27151 int res1 ;
27152 PyObject * obj0 = 0 ;
27153 char * kwnames[] = {
27154 (char *) "context", NULL
27155 };
27156
27157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
27158 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27159 if (!SWIG_IsOK(res1)) {
27160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
27161 }
27162 {
27163 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
27164 if (PyErr_Occurred()) SWIG_fail;
27165 }
27166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
27167 return resultobj;
27168 fail:
27169 return NULL;
27170 }
27171
27172
27173 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27174 PyObject *resultobj = 0;
27175 void *arg1 = (void *) 0 ;
27176 wxGraphicsContext *result = 0 ;
27177 int res1 ;
27178 PyObject * obj0 = 0 ;
27179 char * kwnames[] = {
27180 (char *) "window", NULL
27181 };
27182
27183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail;
27184 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
27185 if (!SWIG_IsOK(res1)) {
27186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'");
27187 }
27188 {
27189 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1);
27190 if (PyErr_Occurred()) SWIG_fail;
27191 }
27192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27193 return resultobj;
27194 fail:
27195 return NULL;
27196 }
27197
27198
27199 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27200 PyObject *resultobj = 0;
27201 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27202 wxGraphicsPath *result = 0 ;
27203 void *argp1 = 0 ;
27204 int res1 = 0 ;
27205 PyObject *swig_obj[1] ;
27206
27207 if (!args) SWIG_fail;
27208 swig_obj[0] = args;
27209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27210 if (!SWIG_IsOK(res1)) {
27211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27212 }
27213 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27214 {
27215 result = (wxGraphicsPath *)(arg1)->CreatePath();
27216 if (PyErr_Occurred()) SWIG_fail;
27217 }
27218 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
27219 return resultobj;
27220 fail:
27221 return NULL;
27222 }
27223
27224
27225 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27226 PyObject *resultobj = 0;
27227 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27228 wxPen *arg2 = 0 ;
27229 wxGraphicsPen result;
27230 void *argp1 = 0 ;
27231 int res1 = 0 ;
27232 void *argp2 = 0 ;
27233 int res2 = 0 ;
27234 PyObject * obj0 = 0 ;
27235 PyObject * obj1 = 0 ;
27236 char * kwnames[] = {
27237 (char *) "self",(char *) "pen", NULL
27238 };
27239
27240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
27241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27242 if (!SWIG_IsOK(res1)) {
27243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27244 }
27245 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27246 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27247 if (!SWIG_IsOK(res2)) {
27248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27249 }
27250 if (!argp2) {
27251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
27252 }
27253 arg2 = reinterpret_cast< wxPen * >(argp2);
27254 {
27255 result = (arg1)->CreatePen((wxPen const &)*arg2);
27256 if (PyErr_Occurred()) SWIG_fail;
27257 }
27258 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
27259 return resultobj;
27260 fail:
27261 return NULL;
27262 }
27263
27264
27265 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27266 PyObject *resultobj = 0;
27267 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27268 wxBrush *arg2 = 0 ;
27269 wxGraphicsBrush result;
27270 void *argp1 = 0 ;
27271 int res1 = 0 ;
27272 void *argp2 = 0 ;
27273 int res2 = 0 ;
27274 PyObject * obj0 = 0 ;
27275 PyObject * obj1 = 0 ;
27276 char * kwnames[] = {
27277 (char *) "self",(char *) "brush", NULL
27278 };
27279
27280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
27281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27282 if (!SWIG_IsOK(res1)) {
27283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27284 }
27285 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27286 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
27287 if (!SWIG_IsOK(res2)) {
27288 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27289 }
27290 if (!argp2) {
27291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
27292 }
27293 arg2 = reinterpret_cast< wxBrush * >(argp2);
27294 {
27295 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
27296 if (PyErr_Occurred()) SWIG_fail;
27297 }
27298 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27299 return resultobj;
27300 fail:
27301 return NULL;
27302 }
27303
27304
27305 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27306 PyObject *resultobj = 0;
27307 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27308 wxDouble arg2 ;
27309 wxDouble arg3 ;
27310 wxDouble arg4 ;
27311 wxDouble arg5 ;
27312 wxColour *arg6 = 0 ;
27313 wxColour *arg7 = 0 ;
27314 wxGraphicsBrush result;
27315 void *argp1 = 0 ;
27316 int res1 = 0 ;
27317 double val2 ;
27318 int ecode2 = 0 ;
27319 double val3 ;
27320 int ecode3 = 0 ;
27321 double val4 ;
27322 int ecode4 = 0 ;
27323 double val5 ;
27324 int ecode5 = 0 ;
27325 wxColour temp6 ;
27326 wxColour temp7 ;
27327 PyObject * obj0 = 0 ;
27328 PyObject * obj1 = 0 ;
27329 PyObject * obj2 = 0 ;
27330 PyObject * obj3 = 0 ;
27331 PyObject * obj4 = 0 ;
27332 PyObject * obj5 = 0 ;
27333 PyObject * obj6 = 0 ;
27334 char * kwnames[] = {
27335 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
27336 };
27337
27338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27340 if (!SWIG_IsOK(res1)) {
27341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27342 }
27343 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27344 ecode2 = SWIG_AsVal_double(obj1, &val2);
27345 if (!SWIG_IsOK(ecode2)) {
27346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27347 }
27348 arg2 = static_cast< wxDouble >(val2);
27349 ecode3 = SWIG_AsVal_double(obj2, &val3);
27350 if (!SWIG_IsOK(ecode3)) {
27351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27352 }
27353 arg3 = static_cast< wxDouble >(val3);
27354 ecode4 = SWIG_AsVal_double(obj3, &val4);
27355 if (!SWIG_IsOK(ecode4)) {
27356 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27357 }
27358 arg4 = static_cast< wxDouble >(val4);
27359 ecode5 = SWIG_AsVal_double(obj4, &val5);
27360 if (!SWIG_IsOK(ecode5)) {
27361 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27362 }
27363 arg5 = static_cast< wxDouble >(val5);
27364 {
27365 arg6 = &temp6;
27366 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
27367 }
27368 {
27369 arg7 = &temp7;
27370 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27371 }
27372 {
27373 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
27374 if (PyErr_Occurred()) SWIG_fail;
27375 }
27376 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27377 return resultobj;
27378 fail:
27379 return NULL;
27380 }
27381
27382
27383 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27384 PyObject *resultobj = 0;
27385 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27386 wxDouble arg2 ;
27387 wxDouble arg3 ;
27388 wxDouble arg4 ;
27389 wxDouble arg5 ;
27390 wxDouble arg6 ;
27391 wxColour *arg7 = 0 ;
27392 wxColour *arg8 = 0 ;
27393 wxGraphicsBrush result;
27394 void *argp1 = 0 ;
27395 int res1 = 0 ;
27396 double val2 ;
27397 int ecode2 = 0 ;
27398 double val3 ;
27399 int ecode3 = 0 ;
27400 double val4 ;
27401 int ecode4 = 0 ;
27402 double val5 ;
27403 int ecode5 = 0 ;
27404 double val6 ;
27405 int ecode6 = 0 ;
27406 wxColour temp7 ;
27407 wxColour temp8 ;
27408 PyObject * obj0 = 0 ;
27409 PyObject * obj1 = 0 ;
27410 PyObject * obj2 = 0 ;
27411 PyObject * obj3 = 0 ;
27412 PyObject * obj4 = 0 ;
27413 PyObject * obj5 = 0 ;
27414 PyObject * obj6 = 0 ;
27415 PyObject * obj7 = 0 ;
27416 char * kwnames[] = {
27417 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
27418 };
27419
27420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
27421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27422 if (!SWIG_IsOK(res1)) {
27423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27424 }
27425 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27426 ecode2 = SWIG_AsVal_double(obj1, &val2);
27427 if (!SWIG_IsOK(ecode2)) {
27428 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
27429 }
27430 arg2 = static_cast< wxDouble >(val2);
27431 ecode3 = SWIG_AsVal_double(obj2, &val3);
27432 if (!SWIG_IsOK(ecode3)) {
27433 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
27434 }
27435 arg3 = static_cast< wxDouble >(val3);
27436 ecode4 = SWIG_AsVal_double(obj3, &val4);
27437 if (!SWIG_IsOK(ecode4)) {
27438 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
27439 }
27440 arg4 = static_cast< wxDouble >(val4);
27441 ecode5 = SWIG_AsVal_double(obj4, &val5);
27442 if (!SWIG_IsOK(ecode5)) {
27443 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
27444 }
27445 arg5 = static_cast< wxDouble >(val5);
27446 ecode6 = SWIG_AsVal_double(obj5, &val6);
27447 if (!SWIG_IsOK(ecode6)) {
27448 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
27449 }
27450 arg6 = static_cast< wxDouble >(val6);
27451 {
27452 arg7 = &temp7;
27453 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
27454 }
27455 {
27456 arg8 = &temp8;
27457 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
27458 }
27459 {
27460 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
27461 if (PyErr_Occurred()) SWIG_fail;
27462 }
27463 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
27464 return resultobj;
27465 fail:
27466 return NULL;
27467 }
27468
27469
27470 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27471 PyObject *resultobj = 0;
27472 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27473 wxFont *arg2 = 0 ;
27474 wxColour const &arg3_defvalue = *wxBLACK ;
27475 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
27476 wxGraphicsFont result;
27477 void *argp1 = 0 ;
27478 int res1 = 0 ;
27479 void *argp2 = 0 ;
27480 int res2 = 0 ;
27481 wxColour temp3 ;
27482 PyObject * obj0 = 0 ;
27483 PyObject * obj1 = 0 ;
27484 PyObject * obj2 = 0 ;
27485 char * kwnames[] = {
27486 (char *) "self",(char *) "font",(char *) "col", NULL
27487 };
27488
27489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27491 if (!SWIG_IsOK(res1)) {
27492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27493 }
27494 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27495 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
27496 if (!SWIG_IsOK(res2)) {
27497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27498 }
27499 if (!argp2) {
27500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
27501 }
27502 arg2 = reinterpret_cast< wxFont * >(argp2);
27503 if (obj2) {
27504 {
27505 arg3 = &temp3;
27506 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27507 }
27508 }
27509 {
27510 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
27511 if (PyErr_Occurred()) SWIG_fail;
27512 }
27513 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
27514 return resultobj;
27515 fail:
27516 return NULL;
27517 }
27518
27519
27520 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27521 PyObject *resultobj = 0;
27522 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27523 wxDouble arg2 = (wxDouble) 1.0 ;
27524 wxDouble arg3 = (wxDouble) 0.0 ;
27525 wxDouble arg4 = (wxDouble) 0.0 ;
27526 wxDouble arg5 = (wxDouble) 1.0 ;
27527 wxDouble arg6 = (wxDouble) 0.0 ;
27528 wxDouble arg7 = (wxDouble) 0.0 ;
27529 wxGraphicsMatrix *result = 0 ;
27530 void *argp1 = 0 ;
27531 int res1 = 0 ;
27532 double val2 ;
27533 int ecode2 = 0 ;
27534 double val3 ;
27535 int ecode3 = 0 ;
27536 double val4 ;
27537 int ecode4 = 0 ;
27538 double val5 ;
27539 int ecode5 = 0 ;
27540 double val6 ;
27541 int ecode6 = 0 ;
27542 double val7 ;
27543 int ecode7 = 0 ;
27544 PyObject * obj0 = 0 ;
27545 PyObject * obj1 = 0 ;
27546 PyObject * obj2 = 0 ;
27547 PyObject * obj3 = 0 ;
27548 PyObject * obj4 = 0 ;
27549 PyObject * obj5 = 0 ;
27550 PyObject * obj6 = 0 ;
27551 char * kwnames[] = {
27552 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
27553 };
27554
27555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27557 if (!SWIG_IsOK(res1)) {
27558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27559 }
27560 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27561 if (obj1) {
27562 ecode2 = SWIG_AsVal_double(obj1, &val2);
27563 if (!SWIG_IsOK(ecode2)) {
27564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
27565 }
27566 arg2 = static_cast< wxDouble >(val2);
27567 }
27568 if (obj2) {
27569 ecode3 = SWIG_AsVal_double(obj2, &val3);
27570 if (!SWIG_IsOK(ecode3)) {
27571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
27572 }
27573 arg3 = static_cast< wxDouble >(val3);
27574 }
27575 if (obj3) {
27576 ecode4 = SWIG_AsVal_double(obj3, &val4);
27577 if (!SWIG_IsOK(ecode4)) {
27578 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
27579 }
27580 arg4 = static_cast< wxDouble >(val4);
27581 }
27582 if (obj4) {
27583 ecode5 = SWIG_AsVal_double(obj4, &val5);
27584 if (!SWIG_IsOK(ecode5)) {
27585 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
27586 }
27587 arg5 = static_cast< wxDouble >(val5);
27588 }
27589 if (obj5) {
27590 ecode6 = SWIG_AsVal_double(obj5, &val6);
27591 if (!SWIG_IsOK(ecode6)) {
27592 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
27593 }
27594 arg6 = static_cast< wxDouble >(val6);
27595 }
27596 if (obj6) {
27597 ecode7 = SWIG_AsVal_double(obj6, &val7);
27598 if (!SWIG_IsOK(ecode7)) {
27599 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
27600 }
27601 arg7 = static_cast< wxDouble >(val7);
27602 }
27603 {
27604 result = (wxGraphicsMatrix *)(arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
27605 if (PyErr_Occurred()) SWIG_fail;
27606 }
27607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
27608 return resultobj;
27609 fail:
27610 return NULL;
27611 }
27612
27613
27614 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27615 PyObject *resultobj = 0;
27616 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27617 void *argp1 = 0 ;
27618 int res1 = 0 ;
27619 PyObject *swig_obj[1] ;
27620
27621 if (!args) SWIG_fail;
27622 swig_obj[0] = args;
27623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27624 if (!SWIG_IsOK(res1)) {
27625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27626 }
27627 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27628 {
27629 (arg1)->PushState();
27630 if (PyErr_Occurred()) SWIG_fail;
27631 }
27632 resultobj = SWIG_Py_Void();
27633 return resultobj;
27634 fail:
27635 return NULL;
27636 }
27637
27638
27639 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27640 PyObject *resultobj = 0;
27641 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27642 void *argp1 = 0 ;
27643 int res1 = 0 ;
27644 PyObject *swig_obj[1] ;
27645
27646 if (!args) SWIG_fail;
27647 swig_obj[0] = args;
27648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27649 if (!SWIG_IsOK(res1)) {
27650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27651 }
27652 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27653 {
27654 (arg1)->PopState();
27655 if (PyErr_Occurred()) SWIG_fail;
27656 }
27657 resultobj = SWIG_Py_Void();
27658 return resultobj;
27659 fail:
27660 return NULL;
27661 }
27662
27663
27664 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27665 PyObject *resultobj = 0;
27666 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27667 wxRegion *arg2 = 0 ;
27668 void *argp1 = 0 ;
27669 int res1 = 0 ;
27670 void *argp2 = 0 ;
27671 int res2 = 0 ;
27672 PyObject * obj0 = 0 ;
27673 PyObject * obj1 = 0 ;
27674 char * kwnames[] = {
27675 (char *) "self",(char *) "region", NULL
27676 };
27677
27678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
27679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27680 if (!SWIG_IsOK(res1)) {
27681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27682 }
27683 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
27685 if (!SWIG_IsOK(res2)) {
27686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
27687 }
27688 if (!argp2) {
27689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
27690 }
27691 arg2 = reinterpret_cast< wxRegion * >(argp2);
27692 {
27693 (arg1)->Clip((wxRegion const &)*arg2);
27694 if (PyErr_Occurred()) SWIG_fail;
27695 }
27696 resultobj = SWIG_Py_Void();
27697 return resultobj;
27698 fail:
27699 return NULL;
27700 }
27701
27702
27703 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27704 PyObject *resultobj = 0;
27705 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27706 wxDouble arg2 ;
27707 wxDouble arg3 ;
27708 wxDouble arg4 ;
27709 wxDouble arg5 ;
27710 void *argp1 = 0 ;
27711 int res1 = 0 ;
27712 double val2 ;
27713 int ecode2 = 0 ;
27714 double val3 ;
27715 int ecode3 = 0 ;
27716 double val4 ;
27717 int ecode4 = 0 ;
27718 double val5 ;
27719 int ecode5 = 0 ;
27720 PyObject * obj0 = 0 ;
27721 PyObject * obj1 = 0 ;
27722 PyObject * obj2 = 0 ;
27723 PyObject * obj3 = 0 ;
27724 PyObject * obj4 = 0 ;
27725 char * kwnames[] = {
27726 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27727 };
27728
27729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27731 if (!SWIG_IsOK(res1)) {
27732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27733 }
27734 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27735 ecode2 = SWIG_AsVal_double(obj1, &val2);
27736 if (!SWIG_IsOK(ecode2)) {
27737 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
27738 }
27739 arg2 = static_cast< wxDouble >(val2);
27740 ecode3 = SWIG_AsVal_double(obj2, &val3);
27741 if (!SWIG_IsOK(ecode3)) {
27742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
27743 }
27744 arg3 = static_cast< wxDouble >(val3);
27745 ecode4 = SWIG_AsVal_double(obj3, &val4);
27746 if (!SWIG_IsOK(ecode4)) {
27747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
27748 }
27749 arg4 = static_cast< wxDouble >(val4);
27750 ecode5 = SWIG_AsVal_double(obj4, &val5);
27751 if (!SWIG_IsOK(ecode5)) {
27752 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
27753 }
27754 arg5 = static_cast< wxDouble >(val5);
27755 {
27756 (arg1)->Clip(arg2,arg3,arg4,arg5);
27757 if (PyErr_Occurred()) SWIG_fail;
27758 }
27759 resultobj = SWIG_Py_Void();
27760 return resultobj;
27761 fail:
27762 return NULL;
27763 }
27764
27765
27766 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27767 PyObject *resultobj = 0;
27768 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27769 void *argp1 = 0 ;
27770 int res1 = 0 ;
27771 PyObject *swig_obj[1] ;
27772
27773 if (!args) SWIG_fail;
27774 swig_obj[0] = args;
27775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27776 if (!SWIG_IsOK(res1)) {
27777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27778 }
27779 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27780 {
27781 (arg1)->ResetClip();
27782 if (PyErr_Occurred()) SWIG_fail;
27783 }
27784 resultobj = SWIG_Py_Void();
27785 return resultobj;
27786 fail:
27787 return NULL;
27788 }
27789
27790
27791 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27792 PyObject *resultobj = 0;
27793 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27794 void *result = 0 ;
27795 void *argp1 = 0 ;
27796 int res1 = 0 ;
27797 PyObject *swig_obj[1] ;
27798
27799 if (!args) SWIG_fail;
27800 swig_obj[0] = args;
27801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27802 if (!SWIG_IsOK(res1)) {
27803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27804 }
27805 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27806 {
27807 result = (void *)(arg1)->GetNativeContext();
27808 if (PyErr_Occurred()) SWIG_fail;
27809 }
27810 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
27811 return resultobj;
27812 fail:
27813 return NULL;
27814 }
27815
27816
27817 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27818 PyObject *resultobj = 0;
27819 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27820 wxDouble arg2 ;
27821 wxDouble arg3 ;
27822 void *argp1 = 0 ;
27823 int res1 = 0 ;
27824 double val2 ;
27825 int ecode2 = 0 ;
27826 double val3 ;
27827 int ecode3 = 0 ;
27828 PyObject * obj0 = 0 ;
27829 PyObject * obj1 = 0 ;
27830 PyObject * obj2 = 0 ;
27831 char * kwnames[] = {
27832 (char *) "self",(char *) "dx",(char *) "dy", NULL
27833 };
27834
27835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27837 if (!SWIG_IsOK(res1)) {
27838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27839 }
27840 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27841 ecode2 = SWIG_AsVal_double(obj1, &val2);
27842 if (!SWIG_IsOK(ecode2)) {
27843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
27844 }
27845 arg2 = static_cast< wxDouble >(val2);
27846 ecode3 = SWIG_AsVal_double(obj2, &val3);
27847 if (!SWIG_IsOK(ecode3)) {
27848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
27849 }
27850 arg3 = static_cast< wxDouble >(val3);
27851 {
27852 (arg1)->Translate(arg2,arg3);
27853 if (PyErr_Occurred()) SWIG_fail;
27854 }
27855 resultobj = SWIG_Py_Void();
27856 return resultobj;
27857 fail:
27858 return NULL;
27859 }
27860
27861
27862 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27863 PyObject *resultobj = 0;
27864 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27865 wxDouble arg2 ;
27866 wxDouble arg3 ;
27867 void *argp1 = 0 ;
27868 int res1 = 0 ;
27869 double val2 ;
27870 int ecode2 = 0 ;
27871 double val3 ;
27872 int ecode3 = 0 ;
27873 PyObject * obj0 = 0 ;
27874 PyObject * obj1 = 0 ;
27875 PyObject * obj2 = 0 ;
27876 char * kwnames[] = {
27877 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
27878 };
27879
27880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27882 if (!SWIG_IsOK(res1)) {
27883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27884 }
27885 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27886 ecode2 = SWIG_AsVal_double(obj1, &val2);
27887 if (!SWIG_IsOK(ecode2)) {
27888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
27889 }
27890 arg2 = static_cast< wxDouble >(val2);
27891 ecode3 = SWIG_AsVal_double(obj2, &val3);
27892 if (!SWIG_IsOK(ecode3)) {
27893 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
27894 }
27895 arg3 = static_cast< wxDouble >(val3);
27896 {
27897 (arg1)->Scale(arg2,arg3);
27898 if (PyErr_Occurred()) SWIG_fail;
27899 }
27900 resultobj = SWIG_Py_Void();
27901 return resultobj;
27902 fail:
27903 return NULL;
27904 }
27905
27906
27907 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27908 PyObject *resultobj = 0;
27909 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27910 wxDouble arg2 ;
27911 void *argp1 = 0 ;
27912 int res1 = 0 ;
27913 double val2 ;
27914 int ecode2 = 0 ;
27915 PyObject * obj0 = 0 ;
27916 PyObject * obj1 = 0 ;
27917 char * kwnames[] = {
27918 (char *) "self",(char *) "angle", NULL
27919 };
27920
27921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
27922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27923 if (!SWIG_IsOK(res1)) {
27924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27925 }
27926 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27927 ecode2 = SWIG_AsVal_double(obj1, &val2);
27928 if (!SWIG_IsOK(ecode2)) {
27929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
27930 }
27931 arg2 = static_cast< wxDouble >(val2);
27932 {
27933 (arg1)->Rotate(arg2);
27934 if (PyErr_Occurred()) SWIG_fail;
27935 }
27936 resultobj = SWIG_Py_Void();
27937 return resultobj;
27938 fail:
27939 return NULL;
27940 }
27941
27942
27943 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27944 PyObject *resultobj = 0;
27945 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27946 wxGraphicsPen *arg2 = 0 ;
27947 void *argp1 = 0 ;
27948 int res1 = 0 ;
27949 void *argp2 = 0 ;
27950 int res2 = 0 ;
27951
27952 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27954 if (!SWIG_IsOK(res1)) {
27955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27956 }
27957 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27958 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0);
27959 if (!SWIG_IsOK(res2)) {
27960 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
27961 }
27962 if (!argp2) {
27963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'");
27964 }
27965 arg2 = reinterpret_cast< wxGraphicsPen * >(argp2);
27966 {
27967 (arg1)->SetPen((wxGraphicsPen const &)*arg2);
27968 if (PyErr_Occurred()) SWIG_fail;
27969 }
27970 resultobj = SWIG_Py_Void();
27971 return resultobj;
27972 fail:
27973 return NULL;
27974 }
27975
27976
27977 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27978 PyObject *resultobj = 0;
27979 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27980 wxPen *arg2 = 0 ;
27981 void *argp1 = 0 ;
27982 int res1 = 0 ;
27983 void *argp2 = 0 ;
27984 int res2 = 0 ;
27985
27986 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27988 if (!SWIG_IsOK(res1)) {
27989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27990 }
27991 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27992 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0);
27993 if (!SWIG_IsOK(res2)) {
27994 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
27995 }
27996 if (!argp2) {
27997 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
27998 }
27999 arg2 = reinterpret_cast< wxPen * >(argp2);
28000 {
28001 (arg1)->SetPen((wxPen const &)*arg2);
28002 if (PyErr_Occurred()) SWIG_fail;
28003 }
28004 resultobj = SWIG_Py_Void();
28005 return resultobj;
28006 fail:
28007 return NULL;
28008 }
28009
28010
28011 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) {
28012 int argc;
28013 PyObject *argv[3];
28014
28015 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail;
28016 --argc;
28017 if (argc == 2) {
28018 int _v = 0;
28019 {
28020 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0);
28021 _v = SWIG_CheckState(res);
28022 }
28023 if (!_v) goto check_1;
28024 return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv);
28025 }
28026 check_1:
28027
28028 if (argc == 2) {
28029 return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv);
28030 }
28031
28032 fail:
28033 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'");
28034 return NULL;
28035 }
28036
28037
28038 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28039 PyObject *resultobj = 0;
28040 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28041 wxGraphicsBrush *arg2 = 0 ;
28042 void *argp1 = 0 ;
28043 int res1 = 0 ;
28044 void *argp2 = 0 ;
28045 int res2 = 0 ;
28046
28047 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28049 if (!SWIG_IsOK(res1)) {
28050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28051 }
28052 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28053 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0);
28054 if (!SWIG_IsOK(res2)) {
28055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28056 }
28057 if (!argp2) {
28058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'");
28059 }
28060 arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2);
28061 {
28062 (arg1)->SetBrush((wxGraphicsBrush const &)*arg2);
28063 if (PyErr_Occurred()) SWIG_fail;
28064 }
28065 resultobj = SWIG_Py_Void();
28066 return resultobj;
28067 fail:
28068 return NULL;
28069 }
28070
28071
28072 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28073 PyObject *resultobj = 0;
28074 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28075 wxBrush *arg2 = 0 ;
28076 void *argp1 = 0 ;
28077 int res1 = 0 ;
28078 void *argp2 = 0 ;
28079 int res2 = 0 ;
28080
28081 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28083 if (!SWIG_IsOK(res1)) {
28084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28085 }
28086 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28087 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28088 if (!SWIG_IsOK(res2)) {
28089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28090 }
28091 if (!argp2) {
28092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28093 }
28094 arg2 = reinterpret_cast< wxBrush * >(argp2);
28095 {
28096 (arg1)->SetBrush((wxBrush const &)*arg2);
28097 if (PyErr_Occurred()) SWIG_fail;
28098 }
28099 resultobj = SWIG_Py_Void();
28100 return resultobj;
28101 fail:
28102 return NULL;
28103 }
28104
28105
28106 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) {
28107 int argc;
28108 PyObject *argv[3];
28109
28110 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail;
28111 --argc;
28112 if (argc == 2) {
28113 int _v = 0;
28114 {
28115 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0);
28116 _v = SWIG_CheckState(res);
28117 }
28118 if (!_v) goto check_1;
28119 return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv);
28120 }
28121 check_1:
28122
28123 if (argc == 2) {
28124 return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv);
28125 }
28126
28127 fail:
28128 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'");
28129 return NULL;
28130 }
28131
28132
28133 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28134 PyObject *resultobj = 0;
28135 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28136 wxGraphicsFont *arg2 = 0 ;
28137 void *argp1 = 0 ;
28138 int res1 = 0 ;
28139 void *argp2 = 0 ;
28140 int res2 = 0 ;
28141
28142 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
28143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28144 if (!SWIG_IsOK(res1)) {
28145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28146 }
28147 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28148 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0);
28149 if (!SWIG_IsOK(res2)) {
28150 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28151 }
28152 if (!argp2) {
28153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'");
28154 }
28155 arg2 = reinterpret_cast< wxGraphicsFont * >(argp2);
28156 {
28157 (arg1)->SetFont((wxGraphicsFont const &)*arg2);
28158 if (PyErr_Occurred()) SWIG_fail;
28159 }
28160 resultobj = SWIG_Py_Void();
28161 return resultobj;
28162 fail:
28163 return NULL;
28164 }
28165
28166
28167 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
28168 PyObject *resultobj = 0;
28169 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28170 wxFont *arg2 = 0 ;
28171 wxColour const &arg3_defvalue = *wxBLACK ;
28172 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
28173 void *argp1 = 0 ;
28174 int res1 = 0 ;
28175 void *argp2 = 0 ;
28176 int res2 = 0 ;
28177 wxColour temp3 ;
28178
28179 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
28180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28181 if (!SWIG_IsOK(res1)) {
28182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28183 }
28184 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28185 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28186 if (!SWIG_IsOK(res2)) {
28187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28188 }
28189 if (!argp2) {
28190 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28191 }
28192 arg2 = reinterpret_cast< wxFont * >(argp2);
28193 if (swig_obj[2]) {
28194 {
28195 arg3 = &temp3;
28196 if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail;
28197 }
28198 }
28199 {
28200 (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3);
28201 if (PyErr_Occurred()) SWIG_fail;
28202 }
28203 resultobj = SWIG_Py_Void();
28204 return resultobj;
28205 fail:
28206 return NULL;
28207 }
28208
28209
28210 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) {
28211 int argc;
28212 PyObject *argv[4];
28213
28214 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail;
28215 --argc;
28216 if (argc == 2) {
28217 int _v = 0;
28218 {
28219 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0);
28220 _v = SWIG_CheckState(res);
28221 }
28222 if (!_v) goto check_1;
28223 return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv);
28224 }
28225 check_1:
28226
28227 if ((argc >= 2) && (argc <= 3)) {
28228 return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv);
28229 }
28230
28231 fail:
28232 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'");
28233 return NULL;
28234 }
28235
28236
28237 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28238 PyObject *resultobj = 0;
28239 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28240 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
28241 void *argp1 = 0 ;
28242 int res1 = 0 ;
28243 void *argp2 = 0 ;
28244 int res2 = 0 ;
28245 PyObject * obj0 = 0 ;
28246 PyObject * obj1 = 0 ;
28247 char * kwnames[] = {
28248 (char *) "self",(char *) "path", NULL
28249 };
28250
28251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
28252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28253 if (!SWIG_IsOK(res1)) {
28254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28255 }
28256 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28257 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28258 if (!SWIG_IsOK(res2)) {
28259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
28260 }
28261 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28262 {
28263 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
28264 if (PyErr_Occurred()) SWIG_fail;
28265 }
28266 resultobj = SWIG_Py_Void();
28267 return resultobj;
28268 fail:
28269 return NULL;
28270 }
28271
28272
28273 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28274 PyObject *resultobj = 0;
28275 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28276 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
28277 int arg3 = (int) wxWINDING_RULE ;
28278 void *argp1 = 0 ;
28279 int res1 = 0 ;
28280 void *argp2 = 0 ;
28281 int res2 = 0 ;
28282 int val3 ;
28283 int ecode3 = 0 ;
28284 PyObject * obj0 = 0 ;
28285 PyObject * obj1 = 0 ;
28286 PyObject * obj2 = 0 ;
28287 char * kwnames[] = {
28288 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28289 };
28290
28291 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28292 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28293 if (!SWIG_IsOK(res1)) {
28294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28295 }
28296 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28297 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28298 if (!SWIG_IsOK(res2)) {
28299 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
28300 }
28301 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28302 if (obj2) {
28303 ecode3 = SWIG_AsVal_int(obj2, &val3);
28304 if (!SWIG_IsOK(ecode3)) {
28305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
28306 }
28307 arg3 = static_cast< int >(val3);
28308 }
28309 {
28310 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
28311 if (PyErr_Occurred()) SWIG_fail;
28312 }
28313 resultobj = SWIG_Py_Void();
28314 return resultobj;
28315 fail:
28316 return NULL;
28317 }
28318
28319
28320 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28321 PyObject *resultobj = 0;
28322 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28323 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
28324 int arg3 = (int) wxWINDING_RULE ;
28325 void *argp1 = 0 ;
28326 int res1 = 0 ;
28327 void *argp2 = 0 ;
28328 int res2 = 0 ;
28329 int val3 ;
28330 int ecode3 = 0 ;
28331 PyObject * obj0 = 0 ;
28332 PyObject * obj1 = 0 ;
28333 PyObject * obj2 = 0 ;
28334 char * kwnames[] = {
28335 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
28336 };
28337
28338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28340 if (!SWIG_IsOK(res1)) {
28341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28342 }
28343 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28344 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
28345 if (!SWIG_IsOK(res2)) {
28346 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
28347 }
28348 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
28349 if (obj2) {
28350 ecode3 = SWIG_AsVal_int(obj2, &val3);
28351 if (!SWIG_IsOK(ecode3)) {
28352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
28353 }
28354 arg3 = static_cast< int >(val3);
28355 }
28356 {
28357 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
28358 if (PyErr_Occurred()) SWIG_fail;
28359 }
28360 resultobj = SWIG_Py_Void();
28361 return resultobj;
28362 fail:
28363 return NULL;
28364 }
28365
28366
28367 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28368 PyObject *resultobj = 0;
28369 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28370 wxString *arg2 = 0 ;
28371 wxDouble arg3 ;
28372 wxDouble arg4 ;
28373 void *argp1 = 0 ;
28374 int res1 = 0 ;
28375 bool temp2 = false ;
28376 double val3 ;
28377 int ecode3 = 0 ;
28378 double val4 ;
28379 int ecode4 = 0 ;
28380 PyObject * obj0 = 0 ;
28381 PyObject * obj1 = 0 ;
28382 PyObject * obj2 = 0 ;
28383 PyObject * obj3 = 0 ;
28384 char * kwnames[] = {
28385 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
28386 };
28387
28388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28390 if (!SWIG_IsOK(res1)) {
28391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28392 }
28393 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28394 {
28395 arg2 = wxString_in_helper(obj1);
28396 if (arg2 == NULL) SWIG_fail;
28397 temp2 = true;
28398 }
28399 ecode3 = SWIG_AsVal_double(obj2, &val3);
28400 if (!SWIG_IsOK(ecode3)) {
28401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
28402 }
28403 arg3 = static_cast< wxDouble >(val3);
28404 ecode4 = SWIG_AsVal_double(obj3, &val4);
28405 if (!SWIG_IsOK(ecode4)) {
28406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
28407 }
28408 arg4 = static_cast< wxDouble >(val4);
28409 {
28410 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
28411 if (PyErr_Occurred()) SWIG_fail;
28412 }
28413 resultobj = SWIG_Py_Void();
28414 {
28415 if (temp2)
28416 delete arg2;
28417 }
28418 return resultobj;
28419 fail:
28420 {
28421 if (temp2)
28422 delete arg2;
28423 }
28424 return NULL;
28425 }
28426
28427
28428 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28429 PyObject *resultobj = 0;
28430 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28431 wxString *arg2 = 0 ;
28432 wxDouble arg3 ;
28433 wxDouble arg4 ;
28434 wxDouble arg5 ;
28435 void *argp1 = 0 ;
28436 int res1 = 0 ;
28437 bool temp2 = false ;
28438 double val3 ;
28439 int ecode3 = 0 ;
28440 double val4 ;
28441 int ecode4 = 0 ;
28442 double val5 ;
28443 int ecode5 = 0 ;
28444 PyObject * obj0 = 0 ;
28445 PyObject * obj1 = 0 ;
28446 PyObject * obj2 = 0 ;
28447 PyObject * obj3 = 0 ;
28448 PyObject * obj4 = 0 ;
28449 char * kwnames[] = {
28450 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
28451 };
28452
28453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28455 if (!SWIG_IsOK(res1)) {
28456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28457 }
28458 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28459 {
28460 arg2 = wxString_in_helper(obj1);
28461 if (arg2 == NULL) SWIG_fail;
28462 temp2 = true;
28463 }
28464 ecode3 = SWIG_AsVal_double(obj2, &val3);
28465 if (!SWIG_IsOK(ecode3)) {
28466 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
28467 }
28468 arg3 = static_cast< wxDouble >(val3);
28469 ecode4 = SWIG_AsVal_double(obj3, &val4);
28470 if (!SWIG_IsOK(ecode4)) {
28471 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
28472 }
28473 arg4 = static_cast< wxDouble >(val4);
28474 ecode5 = SWIG_AsVal_double(obj4, &val5);
28475 if (!SWIG_IsOK(ecode5)) {
28476 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
28477 }
28478 arg5 = static_cast< wxDouble >(val5);
28479 {
28480 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
28481 if (PyErr_Occurred()) SWIG_fail;
28482 }
28483 resultobj = SWIG_Py_Void();
28484 {
28485 if (temp2)
28486 delete arg2;
28487 }
28488 return resultobj;
28489 fail:
28490 {
28491 if (temp2)
28492 delete arg2;
28493 }
28494 return NULL;
28495 }
28496
28497
28498 SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28499 PyObject *resultobj = 0;
28500 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28501 wxString *arg2 = 0 ;
28502 wxDouble *arg3 = (wxDouble *) 0 ;
28503 wxDouble *arg4 = (wxDouble *) 0 ;
28504 wxDouble *arg5 = (wxDouble *) 0 ;
28505 wxDouble *arg6 = (wxDouble *) 0 ;
28506 void *argp1 = 0 ;
28507 int res1 = 0 ;
28508 bool temp2 = false ;
28509 wxDouble temp3 ;
28510 int res3 = SWIG_TMPOBJ ;
28511 wxDouble temp4 ;
28512 int res4 = SWIG_TMPOBJ ;
28513 wxDouble temp5 ;
28514 int res5 = SWIG_TMPOBJ ;
28515 wxDouble temp6 ;
28516 int res6 = SWIG_TMPOBJ ;
28517 PyObject * obj0 = 0 ;
28518 PyObject * obj1 = 0 ;
28519 char * kwnames[] = {
28520 (char *) "self",(char *) "text", NULL
28521 };
28522
28523 arg3 = &temp3;
28524 arg4 = &temp4;
28525 arg5 = &temp5;
28526 arg6 = &temp6;
28527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
28528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28529 if (!SWIG_IsOK(res1)) {
28530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
28531 }
28532 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28533 {
28534 arg2 = wxString_in_helper(obj1);
28535 if (arg2 == NULL) SWIG_fail;
28536 temp2 = true;
28537 }
28538 {
28539 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
28540 if (PyErr_Occurred()) SWIG_fail;
28541 }
28542 resultobj = SWIG_Py_Void();
28543 if (SWIG_IsTmpObj(res3)) {
28544 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
28545 } else {
28546 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28547 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
28548 }
28549 if (SWIG_IsTmpObj(res4)) {
28550 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
28551 } else {
28552 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28553 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
28554 }
28555 if (SWIG_IsTmpObj(res5)) {
28556 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
28557 } else {
28558 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28559 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
28560 }
28561 if (SWIG_IsTmpObj(res6)) {
28562 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
28563 } else {
28564 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28565 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
28566 }
28567 {
28568 if (temp2)
28569 delete arg2;
28570 }
28571 return resultobj;
28572 fail:
28573 {
28574 if (temp2)
28575 delete arg2;
28576 }
28577 return NULL;
28578 }
28579
28580
28581 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28582 PyObject *resultobj = 0;
28583 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28584 wxString *arg2 = 0 ;
28585 PyObject *result = 0 ;
28586 void *argp1 = 0 ;
28587 int res1 = 0 ;
28588 bool temp2 = false ;
28589 PyObject * obj0 = 0 ;
28590 PyObject * obj1 = 0 ;
28591 char * kwnames[] = {
28592 (char *) "self",(char *) "text", NULL
28593 };
28594
28595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
28596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28597 if (!SWIG_IsOK(res1)) {
28598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28599 }
28600 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28601 {
28602 arg2 = wxString_in_helper(obj1);
28603 if (arg2 == NULL) SWIG_fail;
28604 temp2 = true;
28605 }
28606 {
28607 result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2);
28608 if (PyErr_Occurred()) SWIG_fail;
28609 }
28610 resultobj = result;
28611 {
28612 if (temp2)
28613 delete arg2;
28614 }
28615 return resultobj;
28616 fail:
28617 {
28618 if (temp2)
28619 delete arg2;
28620 }
28621 return NULL;
28622 }
28623
28624
28625 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28626 PyObject *resultobj = 0;
28627 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28628 wxString *arg2 = 0 ;
28629 wxArrayDouble result;
28630 void *argp1 = 0 ;
28631 int res1 = 0 ;
28632 bool temp2 = false ;
28633 PyObject * obj0 = 0 ;
28634 PyObject * obj1 = 0 ;
28635 char * kwnames[] = {
28636 (char *) "self",(char *) "text", NULL
28637 };
28638
28639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
28640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28641 if (!SWIG_IsOK(res1)) {
28642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28643 }
28644 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28645 {
28646 arg2 = wxString_in_helper(obj1);
28647 if (arg2 == NULL) SWIG_fail;
28648 temp2 = true;
28649 }
28650 {
28651 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
28652 if (PyErr_Occurred()) SWIG_fail;
28653 }
28654 {
28655 resultobj = wxArrayDouble2PyList_helper(result);
28656 }
28657 {
28658 if (temp2)
28659 delete arg2;
28660 }
28661 return resultobj;
28662 fail:
28663 {
28664 if (temp2)
28665 delete arg2;
28666 }
28667 return NULL;
28668 }
28669
28670
28671 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28672 PyObject *resultobj = 0;
28673 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28674 wxBitmap *arg2 = 0 ;
28675 wxDouble arg3 ;
28676 wxDouble arg4 ;
28677 wxDouble arg5 ;
28678 wxDouble arg6 ;
28679 void *argp1 = 0 ;
28680 int res1 = 0 ;
28681 void *argp2 = 0 ;
28682 int res2 = 0 ;
28683 double val3 ;
28684 int ecode3 = 0 ;
28685 double val4 ;
28686 int ecode4 = 0 ;
28687 double val5 ;
28688 int ecode5 = 0 ;
28689 double val6 ;
28690 int ecode6 = 0 ;
28691 PyObject * obj0 = 0 ;
28692 PyObject * obj1 = 0 ;
28693 PyObject * obj2 = 0 ;
28694 PyObject * obj3 = 0 ;
28695 PyObject * obj4 = 0 ;
28696 PyObject * obj5 = 0 ;
28697 char * kwnames[] = {
28698 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28699 };
28700
28701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28703 if (!SWIG_IsOK(res1)) {
28704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28705 }
28706 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28707 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
28708 if (!SWIG_IsOK(res2)) {
28709 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28710 }
28711 if (!argp2) {
28712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28713 }
28714 arg2 = reinterpret_cast< wxBitmap * >(argp2);
28715 ecode3 = SWIG_AsVal_double(obj2, &val3);
28716 if (!SWIG_IsOK(ecode3)) {
28717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
28718 }
28719 arg3 = static_cast< wxDouble >(val3);
28720 ecode4 = SWIG_AsVal_double(obj3, &val4);
28721 if (!SWIG_IsOK(ecode4)) {
28722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
28723 }
28724 arg4 = static_cast< wxDouble >(val4);
28725 ecode5 = SWIG_AsVal_double(obj4, &val5);
28726 if (!SWIG_IsOK(ecode5)) {
28727 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
28728 }
28729 arg5 = static_cast< wxDouble >(val5);
28730 ecode6 = SWIG_AsVal_double(obj5, &val6);
28731 if (!SWIG_IsOK(ecode6)) {
28732 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
28733 }
28734 arg6 = static_cast< wxDouble >(val6);
28735 {
28736 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
28737 if (PyErr_Occurred()) SWIG_fail;
28738 }
28739 resultobj = SWIG_Py_Void();
28740 return resultobj;
28741 fail:
28742 return NULL;
28743 }
28744
28745
28746 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28747 PyObject *resultobj = 0;
28748 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28749 wxIcon *arg2 = 0 ;
28750 wxDouble arg3 ;
28751 wxDouble arg4 ;
28752 wxDouble arg5 ;
28753 wxDouble arg6 ;
28754 void *argp1 = 0 ;
28755 int res1 = 0 ;
28756 void *argp2 = 0 ;
28757 int res2 = 0 ;
28758 double val3 ;
28759 int ecode3 = 0 ;
28760 double val4 ;
28761 int ecode4 = 0 ;
28762 double val5 ;
28763 int ecode5 = 0 ;
28764 double val6 ;
28765 int ecode6 = 0 ;
28766 PyObject * obj0 = 0 ;
28767 PyObject * obj1 = 0 ;
28768 PyObject * obj2 = 0 ;
28769 PyObject * obj3 = 0 ;
28770 PyObject * obj4 = 0 ;
28771 PyObject * obj5 = 0 ;
28772 char * kwnames[] = {
28773 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
28774 };
28775
28776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28778 if (!SWIG_IsOK(res1)) {
28779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28780 }
28781 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28782 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
28783 if (!SWIG_IsOK(res2)) {
28784 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28785 }
28786 if (!argp2) {
28787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28788 }
28789 arg2 = reinterpret_cast< wxIcon * >(argp2);
28790 ecode3 = SWIG_AsVal_double(obj2, &val3);
28791 if (!SWIG_IsOK(ecode3)) {
28792 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
28793 }
28794 arg3 = static_cast< wxDouble >(val3);
28795 ecode4 = SWIG_AsVal_double(obj3, &val4);
28796 if (!SWIG_IsOK(ecode4)) {
28797 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
28798 }
28799 arg4 = static_cast< wxDouble >(val4);
28800 ecode5 = SWIG_AsVal_double(obj4, &val5);
28801 if (!SWIG_IsOK(ecode5)) {
28802 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
28803 }
28804 arg5 = static_cast< wxDouble >(val5);
28805 ecode6 = SWIG_AsVal_double(obj5, &val6);
28806 if (!SWIG_IsOK(ecode6)) {
28807 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
28808 }
28809 arg6 = static_cast< wxDouble >(val6);
28810 {
28811 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
28812 if (PyErr_Occurred()) SWIG_fail;
28813 }
28814 resultobj = SWIG_Py_Void();
28815 return resultobj;
28816 fail:
28817 return NULL;
28818 }
28819
28820
28821 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28822 PyObject *resultobj = 0;
28823 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28824 wxDouble arg2 ;
28825 wxDouble arg3 ;
28826 wxDouble arg4 ;
28827 wxDouble arg5 ;
28828 void *argp1 = 0 ;
28829 int res1 = 0 ;
28830 double val2 ;
28831 int ecode2 = 0 ;
28832 double val3 ;
28833 int ecode3 = 0 ;
28834 double val4 ;
28835 int ecode4 = 0 ;
28836 double val5 ;
28837 int ecode5 = 0 ;
28838 PyObject * obj0 = 0 ;
28839 PyObject * obj1 = 0 ;
28840 PyObject * obj2 = 0 ;
28841 PyObject * obj3 = 0 ;
28842 PyObject * obj4 = 0 ;
28843 char * kwnames[] = {
28844 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
28845 };
28846
28847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28849 if (!SWIG_IsOK(res1)) {
28850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28851 }
28852 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28853 ecode2 = SWIG_AsVal_double(obj1, &val2);
28854 if (!SWIG_IsOK(ecode2)) {
28855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
28856 }
28857 arg2 = static_cast< wxDouble >(val2);
28858 ecode3 = SWIG_AsVal_double(obj2, &val3);
28859 if (!SWIG_IsOK(ecode3)) {
28860 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
28861 }
28862 arg3 = static_cast< wxDouble >(val3);
28863 ecode4 = SWIG_AsVal_double(obj3, &val4);
28864 if (!SWIG_IsOK(ecode4)) {
28865 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
28866 }
28867 arg4 = static_cast< wxDouble >(val4);
28868 ecode5 = SWIG_AsVal_double(obj4, &val5);
28869 if (!SWIG_IsOK(ecode5)) {
28870 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
28871 }
28872 arg5 = static_cast< wxDouble >(val5);
28873 {
28874 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
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_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28885 PyObject *resultobj = 0;
28886 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28887 size_t arg2 ;
28888 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
28889 void *argp1 = 0 ;
28890 int res1 = 0 ;
28891 PyObject * obj0 = 0 ;
28892 PyObject * obj1 = 0 ;
28893 char * kwnames[] = {
28894 (char *) "self",(char *) "points", NULL
28895 };
28896
28897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
28898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28899 if (!SWIG_IsOK(res1)) {
28900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28901 }
28902 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28903 {
28904 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
28905 if (arg3 == NULL) SWIG_fail;
28906 }
28907 {
28908 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
28909 if (PyErr_Occurred()) SWIG_fail;
28910 }
28911 resultobj = SWIG_Py_Void();
28912 {
28913 if (arg3) delete [] arg3;
28914 }
28915 return resultobj;
28916 fail:
28917 {
28918 if (arg3) delete [] arg3;
28919 }
28920 return NULL;
28921 }
28922
28923
28924 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28925 PyObject *resultobj = 0;
28926 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28927 PyObject *arg2 = (PyObject *) 0 ;
28928 PyObject *arg3 = (PyObject *) 0 ;
28929 void *argp1 = 0 ;
28930 int res1 = 0 ;
28931 PyObject * obj0 = 0 ;
28932 PyObject * obj1 = 0 ;
28933 PyObject * obj2 = 0 ;
28934 char * kwnames[] = {
28935 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
28936 };
28937
28938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28940 if (!SWIG_IsOK(res1)) {
28941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28942 }
28943 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28944 arg2 = obj1;
28945 arg3 = obj2;
28946 {
28947 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
28948 if (PyErr_Occurred()) SWIG_fail;
28949 }
28950 resultobj = SWIG_Py_Void();
28951 return resultobj;
28952 fail:
28953 return NULL;
28954 }
28955
28956
28957 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28958 PyObject *resultobj = 0;
28959 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
28960 size_t arg2 ;
28961 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
28962 int arg4 = (int) wxWINDING_RULE ;
28963 void *argp1 = 0 ;
28964 int res1 = 0 ;
28965 int val4 ;
28966 int ecode4 = 0 ;
28967 PyObject * obj0 = 0 ;
28968 PyObject * obj1 = 0 ;
28969 PyObject * obj2 = 0 ;
28970 char * kwnames[] = {
28971 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
28972 };
28973
28974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
28976 if (!SWIG_IsOK(res1)) {
28977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
28978 }
28979 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
28980 {
28981 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
28982 if (arg3 == NULL) SWIG_fail;
28983 }
28984 if (obj2) {
28985 ecode4 = SWIG_AsVal_int(obj2, &val4);
28986 if (!SWIG_IsOK(ecode4)) {
28987 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
28988 }
28989 arg4 = static_cast< int >(val4);
28990 }
28991 {
28992 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
28993 if (PyErr_Occurred()) SWIG_fail;
28994 }
28995 resultobj = SWIG_Py_Void();
28996 {
28997 if (arg3) delete [] arg3;
28998 }
28999 return resultobj;
29000 fail:
29001 {
29002 if (arg3) delete [] arg3;
29003 }
29004 return NULL;
29005 }
29006
29007
29008 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29009 PyObject *resultobj = 0;
29010 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29011 wxDouble arg2 ;
29012 wxDouble arg3 ;
29013 wxDouble arg4 ;
29014 wxDouble arg5 ;
29015 void *argp1 = 0 ;
29016 int res1 = 0 ;
29017 double val2 ;
29018 int ecode2 = 0 ;
29019 double val3 ;
29020 int ecode3 = 0 ;
29021 double val4 ;
29022 int ecode4 = 0 ;
29023 double val5 ;
29024 int ecode5 = 0 ;
29025 PyObject * obj0 = 0 ;
29026 PyObject * obj1 = 0 ;
29027 PyObject * obj2 = 0 ;
29028 PyObject * obj3 = 0 ;
29029 PyObject * obj4 = 0 ;
29030 char * kwnames[] = {
29031 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29032 };
29033
29034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29036 if (!SWIG_IsOK(res1)) {
29037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29038 }
29039 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29040 ecode2 = SWIG_AsVal_double(obj1, &val2);
29041 if (!SWIG_IsOK(ecode2)) {
29042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29043 }
29044 arg2 = static_cast< wxDouble >(val2);
29045 ecode3 = SWIG_AsVal_double(obj2, &val3);
29046 if (!SWIG_IsOK(ecode3)) {
29047 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29048 }
29049 arg3 = static_cast< wxDouble >(val3);
29050 ecode4 = SWIG_AsVal_double(obj3, &val4);
29051 if (!SWIG_IsOK(ecode4)) {
29052 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29053 }
29054 arg4 = static_cast< wxDouble >(val4);
29055 ecode5 = SWIG_AsVal_double(obj4, &val5);
29056 if (!SWIG_IsOK(ecode5)) {
29057 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29058 }
29059 arg5 = static_cast< wxDouble >(val5);
29060 {
29061 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
29062 if (PyErr_Occurred()) SWIG_fail;
29063 }
29064 resultobj = SWIG_Py_Void();
29065 return resultobj;
29066 fail:
29067 return NULL;
29068 }
29069
29070
29071 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29072 PyObject *resultobj = 0;
29073 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29074 wxDouble arg2 ;
29075 wxDouble arg3 ;
29076 wxDouble arg4 ;
29077 wxDouble arg5 ;
29078 void *argp1 = 0 ;
29079 int res1 = 0 ;
29080 double val2 ;
29081 int ecode2 = 0 ;
29082 double val3 ;
29083 int ecode3 = 0 ;
29084 double val4 ;
29085 int ecode4 = 0 ;
29086 double val5 ;
29087 int ecode5 = 0 ;
29088 PyObject * obj0 = 0 ;
29089 PyObject * obj1 = 0 ;
29090 PyObject * obj2 = 0 ;
29091 PyObject * obj3 = 0 ;
29092 PyObject * obj4 = 0 ;
29093 char * kwnames[] = {
29094 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
29095 };
29096
29097 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29098 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29099 if (!SWIG_IsOK(res1)) {
29100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29101 }
29102 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29103 ecode2 = SWIG_AsVal_double(obj1, &val2);
29104 if (!SWIG_IsOK(ecode2)) {
29105 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
29106 }
29107 arg2 = static_cast< wxDouble >(val2);
29108 ecode3 = SWIG_AsVal_double(obj2, &val3);
29109 if (!SWIG_IsOK(ecode3)) {
29110 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
29111 }
29112 arg3 = static_cast< wxDouble >(val3);
29113 ecode4 = SWIG_AsVal_double(obj3, &val4);
29114 if (!SWIG_IsOK(ecode4)) {
29115 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
29116 }
29117 arg4 = static_cast< wxDouble >(val4);
29118 ecode5 = SWIG_AsVal_double(obj4, &val5);
29119 if (!SWIG_IsOK(ecode5)) {
29120 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
29121 }
29122 arg5 = static_cast< wxDouble >(val5);
29123 {
29124 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29125 if (PyErr_Occurred()) SWIG_fail;
29126 }
29127 resultobj = SWIG_Py_Void();
29128 return resultobj;
29129 fail:
29130 return NULL;
29131 }
29132
29133
29134 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29135 PyObject *resultobj = 0;
29136 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29137 wxDouble arg2 ;
29138 wxDouble arg3 ;
29139 wxDouble arg4 ;
29140 wxDouble arg5 ;
29141 wxDouble arg6 ;
29142 void *argp1 = 0 ;
29143 int res1 = 0 ;
29144 double val2 ;
29145 int ecode2 = 0 ;
29146 double val3 ;
29147 int ecode3 = 0 ;
29148 double val4 ;
29149 int ecode4 = 0 ;
29150 double val5 ;
29151 int ecode5 = 0 ;
29152 double val6 ;
29153 int ecode6 = 0 ;
29154 PyObject * obj0 = 0 ;
29155 PyObject * obj1 = 0 ;
29156 PyObject * obj2 = 0 ;
29157 PyObject * obj3 = 0 ;
29158 PyObject * obj4 = 0 ;
29159 PyObject * obj5 = 0 ;
29160 char * kwnames[] = {
29161 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
29162 };
29163
29164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29166 if (!SWIG_IsOK(res1)) {
29167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
29168 }
29169 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29170 ecode2 = SWIG_AsVal_double(obj1, &val2);
29171 if (!SWIG_IsOK(ecode2)) {
29172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
29173 }
29174 arg2 = static_cast< wxDouble >(val2);
29175 ecode3 = SWIG_AsVal_double(obj2, &val3);
29176 if (!SWIG_IsOK(ecode3)) {
29177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
29178 }
29179 arg3 = static_cast< wxDouble >(val3);
29180 ecode4 = SWIG_AsVal_double(obj3, &val4);
29181 if (!SWIG_IsOK(ecode4)) {
29182 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
29183 }
29184 arg4 = static_cast< wxDouble >(val4);
29185 ecode5 = SWIG_AsVal_double(obj4, &val5);
29186 if (!SWIG_IsOK(ecode5)) {
29187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
29188 }
29189 arg5 = static_cast< wxDouble >(val5);
29190 ecode6 = SWIG_AsVal_double(obj5, &val6);
29191 if (!SWIG_IsOK(ecode6)) {
29192 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
29193 }
29194 arg6 = static_cast< wxDouble >(val6);
29195 {
29196 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
29197 if (PyErr_Occurred()) SWIG_fail;
29198 }
29199 resultobj = SWIG_Py_Void();
29200 return resultobj;
29201 fail:
29202 return NULL;
29203 }
29204
29205
29206 SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29207 PyObject *resultobj = 0;
29208 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
29209 bool result;
29210 void *argp1 = 0 ;
29211 int res1 = 0 ;
29212 PyObject *swig_obj[1] ;
29213
29214 if (!args) SWIG_fail;
29215 swig_obj[0] = args;
29216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29217 if (!SWIG_IsOK(res1)) {
29218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
29219 }
29220 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
29221 {
29222 result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset();
29223 if (PyErr_Occurred()) SWIG_fail;
29224 }
29225 {
29226 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29227 }
29228 return resultobj;
29229 fail:
29230 return NULL;
29231 }
29232
29233
29234 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29235 PyObject *obj;
29236 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29237 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
29238 return SWIG_Py_Void();
29239 }
29240
29241 SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29242 PyObject *resultobj = 0;
29243 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29244 void *argp1 = 0 ;
29245 int res1 = 0 ;
29246 PyObject *swig_obj[1] ;
29247
29248 if (!args) SWIG_fail;
29249 swig_obj[0] = args;
29250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 );
29251 if (!SWIG_IsOK(res1)) {
29252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29253 }
29254 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29255 {
29256 delete arg1;
29257
29258 if (PyErr_Occurred()) SWIG_fail;
29259 }
29260 resultobj = SWIG_Py_Void();
29261 return resultobj;
29262 fail:
29263 return NULL;
29264 }
29265
29266
29267 SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29268 PyObject *resultobj = 0;
29269 wxGraphicsRenderer *result = 0 ;
29270
29271 if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail;
29272 {
29273 result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer();
29274 if (PyErr_Occurred()) SWIG_fail;
29275 }
29276 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29277 return resultobj;
29278 fail:
29279 return NULL;
29280 }
29281
29282
29283 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29284 PyObject *resultobj = 0;
29285 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29286 wxWindowDC *arg2 = 0 ;
29287 wxGraphicsContext *result = 0 ;
29288 void *argp1 = 0 ;
29289 int res1 = 0 ;
29290 void *argp2 = 0 ;
29291 int res2 = 0 ;
29292
29293 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29295 if (!SWIG_IsOK(res1)) {
29296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29297 }
29298 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29299 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0);
29300 if (!SWIG_IsOK(res2)) {
29301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29302 }
29303 if (!argp2) {
29304 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'");
29305 }
29306 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
29307 {
29308 result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2);
29309 if (PyErr_Occurred()) SWIG_fail;
29310 }
29311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29312 return resultobj;
29313 fail:
29314 return NULL;
29315 }
29316
29317
29318 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
29319 PyObject *resultobj = 0;
29320 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29321 wxWindow *arg2 = (wxWindow *) 0 ;
29322 wxGraphicsContext *result = 0 ;
29323 void *argp1 = 0 ;
29324 int res1 = 0 ;
29325 void *argp2 = 0 ;
29326 int res2 = 0 ;
29327
29328 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
29329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29330 if (!SWIG_IsOK(res1)) {
29331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29332 }
29333 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29334 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
29335 if (!SWIG_IsOK(res2)) {
29336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'");
29337 }
29338 arg2 = reinterpret_cast< wxWindow * >(argp2);
29339 {
29340 result = (wxGraphicsContext *)(arg1)->CreateContext(arg2);
29341 if (PyErr_Occurred()) SWIG_fail;
29342 }
29343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29344 return resultobj;
29345 fail:
29346 return NULL;
29347 }
29348
29349
29350 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) {
29351 int argc;
29352 PyObject *argv[3];
29353
29354 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail;
29355 --argc;
29356 if (argc == 2) {
29357 int _v = 0;
29358 {
29359 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0);
29360 _v = SWIG_CheckState(res);
29361 }
29362 if (!_v) goto check_1;
29363 return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv);
29364 }
29365 check_1:
29366
29367 if (argc == 2) {
29368 return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv);
29369 }
29370
29371 fail:
29372 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'");
29373 return NULL;
29374 }
29375
29376
29377 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29378 PyObject *resultobj = 0;
29379 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29380 void *arg2 = (void *) 0 ;
29381 wxGraphicsContext *result = 0 ;
29382 void *argp1 = 0 ;
29383 int res1 = 0 ;
29384 int res2 ;
29385 PyObject * obj0 = 0 ;
29386 PyObject * obj1 = 0 ;
29387 char * kwnames[] = {
29388 (char *) "self",(char *) "context", NULL
29389 };
29390
29391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail;
29392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29393 if (!SWIG_IsOK(res1)) {
29394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29395 }
29396 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29397 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29398 if (!SWIG_IsOK(res2)) {
29399 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'");
29400 }
29401 {
29402 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2);
29403 if (PyErr_Occurred()) SWIG_fail;
29404 }
29405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29406 return resultobj;
29407 fail:
29408 return NULL;
29409 }
29410
29411
29412 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29413 PyObject *resultobj = 0;
29414 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29415 void *arg2 = (void *) 0 ;
29416 wxGraphicsContext *result = 0 ;
29417 void *argp1 = 0 ;
29418 int res1 = 0 ;
29419 int res2 ;
29420 PyObject * obj0 = 0 ;
29421 PyObject * obj1 = 0 ;
29422 char * kwnames[] = {
29423 (char *) "self",(char *) "window", NULL
29424 };
29425
29426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail;
29427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29428 if (!SWIG_IsOK(res1)) {
29429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29430 }
29431 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29432 res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0);
29433 if (!SWIG_IsOK(res2)) {
29434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'");
29435 }
29436 {
29437 result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2);
29438 if (PyErr_Occurred()) SWIG_fail;
29439 }
29440 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 );
29441 return resultobj;
29442 fail:
29443 return NULL;
29444 }
29445
29446
29447 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29448 PyObject *resultobj = 0;
29449 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29450 wxGraphicsPath *result = 0 ;
29451 void *argp1 = 0 ;
29452 int res1 = 0 ;
29453 PyObject *swig_obj[1] ;
29454
29455 if (!args) SWIG_fail;
29456 swig_obj[0] = args;
29457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29458 if (!SWIG_IsOK(res1)) {
29459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29460 }
29461 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29462 {
29463 result = (wxGraphicsPath *)(arg1)->CreatePath();
29464 if (PyErr_Occurred()) SWIG_fail;
29465 }
29466 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 );
29467 return resultobj;
29468 fail:
29469 return NULL;
29470 }
29471
29472
29473 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29474 PyObject *resultobj = 0;
29475 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29476 wxDouble arg2 = (wxDouble) 1.0 ;
29477 wxDouble arg3 = (wxDouble) 0.0 ;
29478 wxDouble arg4 = (wxDouble) 0.0 ;
29479 wxDouble arg5 = (wxDouble) 1.0 ;
29480 wxDouble arg6 = (wxDouble) 0.0 ;
29481 wxDouble arg7 = (wxDouble) 0.0 ;
29482 wxGraphicsMatrix *result = 0 ;
29483 void *argp1 = 0 ;
29484 int res1 = 0 ;
29485 double val2 ;
29486 int ecode2 = 0 ;
29487 double val3 ;
29488 int ecode3 = 0 ;
29489 double val4 ;
29490 int ecode4 = 0 ;
29491 double val5 ;
29492 int ecode5 = 0 ;
29493 double val6 ;
29494 int ecode6 = 0 ;
29495 double val7 ;
29496 int ecode7 = 0 ;
29497 PyObject * obj0 = 0 ;
29498 PyObject * obj1 = 0 ;
29499 PyObject * obj2 = 0 ;
29500 PyObject * obj3 = 0 ;
29501 PyObject * obj4 = 0 ;
29502 PyObject * obj5 = 0 ;
29503 PyObject * obj6 = 0 ;
29504 char * kwnames[] = {
29505 (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL
29506 };
29507
29508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29510 if (!SWIG_IsOK(res1)) {
29511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29512 }
29513 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29514 if (obj1) {
29515 ecode2 = SWIG_AsVal_double(obj1, &val2);
29516 if (!SWIG_IsOK(ecode2)) {
29517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'");
29518 }
29519 arg2 = static_cast< wxDouble >(val2);
29520 }
29521 if (obj2) {
29522 ecode3 = SWIG_AsVal_double(obj2, &val3);
29523 if (!SWIG_IsOK(ecode3)) {
29524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'");
29525 }
29526 arg3 = static_cast< wxDouble >(val3);
29527 }
29528 if (obj3) {
29529 ecode4 = SWIG_AsVal_double(obj3, &val4);
29530 if (!SWIG_IsOK(ecode4)) {
29531 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'");
29532 }
29533 arg4 = static_cast< wxDouble >(val4);
29534 }
29535 if (obj4) {
29536 ecode5 = SWIG_AsVal_double(obj4, &val5);
29537 if (!SWIG_IsOK(ecode5)) {
29538 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'");
29539 }
29540 arg5 = static_cast< wxDouble >(val5);
29541 }
29542 if (obj5) {
29543 ecode6 = SWIG_AsVal_double(obj5, &val6);
29544 if (!SWIG_IsOK(ecode6)) {
29545 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'");
29546 }
29547 arg6 = static_cast< wxDouble >(val6);
29548 }
29549 if (obj6) {
29550 ecode7 = SWIG_AsVal_double(obj6, &val7);
29551 if (!SWIG_IsOK(ecode7)) {
29552 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'");
29553 }
29554 arg7 = static_cast< wxDouble >(val7);
29555 }
29556 {
29557 result = (wxGraphicsMatrix *)(arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7);
29558 if (PyErr_Occurred()) SWIG_fail;
29559 }
29560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 );
29561 return resultobj;
29562 fail:
29563 return NULL;
29564 }
29565
29566
29567 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29568 PyObject *resultobj = 0;
29569 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29570 wxPen *arg2 = 0 ;
29571 wxGraphicsPen result;
29572 void *argp1 = 0 ;
29573 int res1 = 0 ;
29574 void *argp2 = 0 ;
29575 int res2 = 0 ;
29576 PyObject * obj0 = 0 ;
29577 PyObject * obj1 = 0 ;
29578 char * kwnames[] = {
29579 (char *) "self",(char *) "pen", NULL
29580 };
29581
29582 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail;
29583 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29584 if (!SWIG_IsOK(res1)) {
29585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29586 }
29587 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29588 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
29589 if (!SWIG_IsOK(res2)) {
29590 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29591 }
29592 if (!argp2) {
29593 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'");
29594 }
29595 arg2 = reinterpret_cast< wxPen * >(argp2);
29596 {
29597 result = (arg1)->CreatePen((wxPen const &)*arg2);
29598 if (PyErr_Occurred()) SWIG_fail;
29599 }
29600 resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 );
29601 return resultobj;
29602 fail:
29603 return NULL;
29604 }
29605
29606
29607 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29608 PyObject *resultobj = 0;
29609 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29610 wxBrush *arg2 = 0 ;
29611 wxGraphicsBrush result;
29612 void *argp1 = 0 ;
29613 int res1 = 0 ;
29614 void *argp2 = 0 ;
29615 int res2 = 0 ;
29616 PyObject * obj0 = 0 ;
29617 PyObject * obj1 = 0 ;
29618 char * kwnames[] = {
29619 (char *) "self",(char *) "brush", NULL
29620 };
29621
29622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29624 if (!SWIG_IsOK(res1)) {
29625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29626 }
29627 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29628 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
29629 if (!SWIG_IsOK(res2)) {
29630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29631 }
29632 if (!argp2) {
29633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
29634 }
29635 arg2 = reinterpret_cast< wxBrush * >(argp2);
29636 {
29637 result = (arg1)->CreateBrush((wxBrush const &)*arg2);
29638 if (PyErr_Occurred()) SWIG_fail;
29639 }
29640 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29641 return resultobj;
29642 fail:
29643 return NULL;
29644 }
29645
29646
29647 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29648 PyObject *resultobj = 0;
29649 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29650 wxDouble arg2 ;
29651 wxDouble arg3 ;
29652 wxDouble arg4 ;
29653 wxDouble arg5 ;
29654 wxColour *arg6 = 0 ;
29655 wxColour *arg7 = 0 ;
29656 wxGraphicsBrush result;
29657 void *argp1 = 0 ;
29658 int res1 = 0 ;
29659 double val2 ;
29660 int ecode2 = 0 ;
29661 double val3 ;
29662 int ecode3 = 0 ;
29663 double val4 ;
29664 int ecode4 = 0 ;
29665 double val5 ;
29666 int ecode5 = 0 ;
29667 wxColour temp6 ;
29668 wxColour temp7 ;
29669 PyObject * obj0 = 0 ;
29670 PyObject * obj1 = 0 ;
29671 PyObject * obj2 = 0 ;
29672 PyObject * obj3 = 0 ;
29673 PyObject * obj4 = 0 ;
29674 PyObject * obj5 = 0 ;
29675 PyObject * obj6 = 0 ;
29676 char * kwnames[] = {
29677 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
29678 };
29679
29680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
29681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29682 if (!SWIG_IsOK(res1)) {
29683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29684 }
29685 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29686 ecode2 = SWIG_AsVal_double(obj1, &val2);
29687 if (!SWIG_IsOK(ecode2)) {
29688 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
29689 }
29690 arg2 = static_cast< wxDouble >(val2);
29691 ecode3 = SWIG_AsVal_double(obj2, &val3);
29692 if (!SWIG_IsOK(ecode3)) {
29693 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
29694 }
29695 arg3 = static_cast< wxDouble >(val3);
29696 ecode4 = SWIG_AsVal_double(obj3, &val4);
29697 if (!SWIG_IsOK(ecode4)) {
29698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
29699 }
29700 arg4 = static_cast< wxDouble >(val4);
29701 ecode5 = SWIG_AsVal_double(obj4, &val5);
29702 if (!SWIG_IsOK(ecode5)) {
29703 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
29704 }
29705 arg5 = static_cast< wxDouble >(val5);
29706 {
29707 arg6 = &temp6;
29708 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29709 }
29710 {
29711 arg7 = &temp7;
29712 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
29713 }
29714 {
29715 result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
29716 if (PyErr_Occurred()) SWIG_fail;
29717 }
29718 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29719 return resultobj;
29720 fail:
29721 return NULL;
29722 }
29723
29724
29725 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29726 PyObject *resultobj = 0;
29727 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29728 wxDouble arg2 ;
29729 wxDouble arg3 ;
29730 wxDouble arg4 ;
29731 wxDouble arg5 ;
29732 wxDouble arg6 ;
29733 wxColour *arg7 = 0 ;
29734 wxColour *arg8 = 0 ;
29735 wxGraphicsBrush result;
29736 void *argp1 = 0 ;
29737 int res1 = 0 ;
29738 double val2 ;
29739 int ecode2 = 0 ;
29740 double val3 ;
29741 int ecode3 = 0 ;
29742 double val4 ;
29743 int ecode4 = 0 ;
29744 double val5 ;
29745 int ecode5 = 0 ;
29746 double val6 ;
29747 int ecode6 = 0 ;
29748 wxColour temp7 ;
29749 wxColour temp8 ;
29750 PyObject * obj0 = 0 ;
29751 PyObject * obj1 = 0 ;
29752 PyObject * obj2 = 0 ;
29753 PyObject * obj3 = 0 ;
29754 PyObject * obj4 = 0 ;
29755 PyObject * obj5 = 0 ;
29756 PyObject * obj6 = 0 ;
29757 PyObject * obj7 = 0 ;
29758 char * kwnames[] = {
29759 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
29760 };
29761
29762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29764 if (!SWIG_IsOK(res1)) {
29765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29766 }
29767 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29768 ecode2 = SWIG_AsVal_double(obj1, &val2);
29769 if (!SWIG_IsOK(ecode2)) {
29770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
29771 }
29772 arg2 = static_cast< wxDouble >(val2);
29773 ecode3 = SWIG_AsVal_double(obj2, &val3);
29774 if (!SWIG_IsOK(ecode3)) {
29775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
29776 }
29777 arg3 = static_cast< wxDouble >(val3);
29778 ecode4 = SWIG_AsVal_double(obj3, &val4);
29779 if (!SWIG_IsOK(ecode4)) {
29780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
29781 }
29782 arg4 = static_cast< wxDouble >(val4);
29783 ecode5 = SWIG_AsVal_double(obj4, &val5);
29784 if (!SWIG_IsOK(ecode5)) {
29785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
29786 }
29787 arg5 = static_cast< wxDouble >(val5);
29788 ecode6 = SWIG_AsVal_double(obj5, &val6);
29789 if (!SWIG_IsOK(ecode6)) {
29790 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
29791 }
29792 arg6 = static_cast< wxDouble >(val6);
29793 {
29794 arg7 = &temp7;
29795 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
29796 }
29797 {
29798 arg8 = &temp8;
29799 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
29800 }
29801 {
29802 result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
29803 if (PyErr_Occurred()) SWIG_fail;
29804 }
29805 resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 );
29806 return resultobj;
29807 fail:
29808 return NULL;
29809 }
29810
29811
29812 SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29813 PyObject *resultobj = 0;
29814 wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
29815 wxFont *arg2 = 0 ;
29816 wxColour const &arg3_defvalue = *wxBLACK ;
29817 wxColour *arg3 = (wxColour *) &arg3_defvalue ;
29818 wxGraphicsFont result;
29819 void *argp1 = 0 ;
29820 int res1 = 0 ;
29821 void *argp2 = 0 ;
29822 int res2 = 0 ;
29823 wxColour temp3 ;
29824 PyObject * obj0 = 0 ;
29825 PyObject * obj1 = 0 ;
29826 PyObject * obj2 = 0 ;
29827 char * kwnames[] = {
29828 (char *) "self",(char *) "font",(char *) "col", NULL
29829 };
29830
29831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
29833 if (!SWIG_IsOK(res1)) {
29834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
29835 }
29836 arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
29837 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
29838 if (!SWIG_IsOK(res2)) {
29839 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29840 }
29841 if (!argp2) {
29842 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'");
29843 }
29844 arg2 = reinterpret_cast< wxFont * >(argp2);
29845 if (obj2) {
29846 {
29847 arg3 = &temp3;
29848 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29849 }
29850 }
29851 {
29852 result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3);
29853 if (PyErr_Occurred()) SWIG_fail;
29854 }
29855 resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 );
29856 return resultobj;
29857 fail:
29858 return NULL;
29859 }
29860
29861
29862 SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29863 PyObject *obj;
29864 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29865 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj));
29866 return SWIG_Py_Void();
29867 }
29868
29869 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29870 PyObject *resultobj = 0;
29871 wxWindowDC *arg1 = 0 ;
29872 wxGCDC *result = 0 ;
29873 void *argp1 = 0 ;
29874 int res1 = 0 ;
29875 PyObject * obj0 = 0 ;
29876 char * kwnames[] = {
29877 (char *) "dc", NULL
29878 };
29879
29880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
29881 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
29882 if (!SWIG_IsOK(res1)) {
29883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
29884 }
29885 if (!argp1) {
29886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
29887 }
29888 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
29889 {
29890 if (!wxPyCheckForApp()) SWIG_fail;
29891 PyThreadState* __tstate = wxPyBeginAllowThreads();
29892 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
29893 wxPyEndAllowThreads(__tstate);
29894 if (PyErr_Occurred()) SWIG_fail;
29895 }
29896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
29897 return resultobj;
29898 fail:
29899 return NULL;
29900 }
29901
29902
29903 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29904 PyObject *resultobj = 0;
29905 wxGCDC *arg1 = (wxGCDC *) 0 ;
29906 void *argp1 = 0 ;
29907 int res1 = 0 ;
29908 PyObject *swig_obj[1] ;
29909
29910 if (!args) SWIG_fail;
29911 swig_obj[0] = args;
29912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
29913 if (!SWIG_IsOK(res1)) {
29914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
29915 }
29916 arg1 = reinterpret_cast< wxGCDC * >(argp1);
29917 {
29918 delete arg1;
29919
29920 if (PyErr_Occurred()) SWIG_fail;
29921 }
29922 resultobj = SWIG_Py_Void();
29923 return resultobj;
29924 fail:
29925 return NULL;
29926 }
29927
29928
29929 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29930 PyObject *resultobj = 0;
29931 wxGCDC *arg1 = (wxGCDC *) 0 ;
29932 wxGraphicsContext *result = 0 ;
29933 void *argp1 = 0 ;
29934 int res1 = 0 ;
29935 PyObject *swig_obj[1] ;
29936
29937 if (!args) SWIG_fail;
29938 swig_obj[0] = args;
29939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
29940 if (!SWIG_IsOK(res1)) {
29941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
29942 }
29943 arg1 = reinterpret_cast< wxGCDC * >(argp1);
29944 {
29945 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
29946 if (PyErr_Occurred()) SWIG_fail;
29947 }
29948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29949 return resultobj;
29950 fail:
29951 return NULL;
29952 }
29953
29954
29955 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29956 PyObject *resultobj = 0;
29957 wxGCDC *arg1 = (wxGCDC *) 0 ;
29958 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
29959 void *argp1 = 0 ;
29960 int res1 = 0 ;
29961 void *argp2 = 0 ;
29962 int res2 = 0 ;
29963 PyObject * obj0 = 0 ;
29964 PyObject * obj1 = 0 ;
29965 char * kwnames[] = {
29966 (char *) "self",(char *) "ctx", NULL
29967 };
29968
29969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
29970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
29971 if (!SWIG_IsOK(res1)) {
29972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
29973 }
29974 arg1 = reinterpret_cast< wxGCDC * >(argp1);
29975 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
29976 if (!SWIG_IsOK(res2)) {
29977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
29978 }
29979 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
29980 {
29981 (arg1)->SetGraphicsContext(arg2);
29982 if (PyErr_Occurred()) SWIG_fail;
29983 }
29984 resultobj = SWIG_Py_Void();
29985 return resultobj;
29986 fail:
29987 return NULL;
29988 }
29989
29990
29991 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29992 PyObject *obj;
29993 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29994 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
29995 return SWIG_Py_Void();
29996 }
29997
29998 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29999 return SWIG_Python_InitShadowInstance(args);
30000 }
30001
30002 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30003 PyObject *resultobj = 0;
30004 wxOverlay *result = 0 ;
30005
30006 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
30007 {
30008 PyThreadState* __tstate = wxPyBeginAllowThreads();
30009 result = (wxOverlay *)new wxOverlay();
30010 wxPyEndAllowThreads(__tstate);
30011 if (PyErr_Occurred()) SWIG_fail;
30012 }
30013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
30014 return resultobj;
30015 fail:
30016 return NULL;
30017 }
30018
30019
30020 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30021 PyObject *resultobj = 0;
30022 wxOverlay *arg1 = (wxOverlay *) 0 ;
30023 void *argp1 = 0 ;
30024 int res1 = 0 ;
30025 PyObject *swig_obj[1] ;
30026
30027 if (!args) SWIG_fail;
30028 swig_obj[0] = args;
30029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
30030 if (!SWIG_IsOK(res1)) {
30031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
30032 }
30033 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30034 {
30035 PyThreadState* __tstate = wxPyBeginAllowThreads();
30036 delete arg1;
30037
30038 wxPyEndAllowThreads(__tstate);
30039 if (PyErr_Occurred()) SWIG_fail;
30040 }
30041 resultobj = SWIG_Py_Void();
30042 return resultobj;
30043 fail:
30044 return NULL;
30045 }
30046
30047
30048 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30049 PyObject *resultobj = 0;
30050 wxOverlay *arg1 = (wxOverlay *) 0 ;
30051 void *argp1 = 0 ;
30052 int res1 = 0 ;
30053 PyObject *swig_obj[1] ;
30054
30055 if (!args) SWIG_fail;
30056 swig_obj[0] = args;
30057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
30058 if (!SWIG_IsOK(res1)) {
30059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
30060 }
30061 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30062 {
30063 PyThreadState* __tstate = wxPyBeginAllowThreads();
30064 (arg1)->Reset();
30065 wxPyEndAllowThreads(__tstate);
30066 if (PyErr_Occurred()) SWIG_fail;
30067 }
30068 resultobj = SWIG_Py_Void();
30069 return resultobj;
30070 fail:
30071 return NULL;
30072 }
30073
30074
30075 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30076 PyObject *obj;
30077 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30078 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
30079 return SWIG_Py_Void();
30080 }
30081
30082 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30083 return SWIG_Python_InitShadowInstance(args);
30084 }
30085
30086 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30087 PyObject *resultobj = 0;
30088 wxOverlay *arg1 = 0 ;
30089 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30090 int arg3 ;
30091 int arg4 ;
30092 int arg5 ;
30093 int arg6 ;
30094 wxDCOverlay *result = 0 ;
30095 void *argp1 = 0 ;
30096 int res1 = 0 ;
30097 void *argp2 = 0 ;
30098 int res2 = 0 ;
30099 int val3 ;
30100 int ecode3 = 0 ;
30101 int val4 ;
30102 int ecode4 = 0 ;
30103 int val5 ;
30104 int ecode5 = 0 ;
30105 int val6 ;
30106 int ecode6 = 0 ;
30107
30108 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
30109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30110 if (!SWIG_IsOK(res1)) {
30111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30112 }
30113 if (!argp1) {
30114 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30115 }
30116 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30117 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30118 if (!SWIG_IsOK(res2)) {
30119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30120 }
30121 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30122 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
30123 if (!SWIG_IsOK(ecode3)) {
30124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
30125 }
30126 arg3 = static_cast< int >(val3);
30127 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
30128 if (!SWIG_IsOK(ecode4)) {
30129 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
30130 }
30131 arg4 = static_cast< int >(val4);
30132 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
30133 if (!SWIG_IsOK(ecode5)) {
30134 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
30135 }
30136 arg5 = static_cast< int >(val5);
30137 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
30138 if (!SWIG_IsOK(ecode6)) {
30139 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
30140 }
30141 arg6 = static_cast< int >(val6);
30142 {
30143 PyThreadState* __tstate = wxPyBeginAllowThreads();
30144 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
30145 wxPyEndAllowThreads(__tstate);
30146 if (PyErr_Occurred()) SWIG_fail;
30147 }
30148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30149 return resultobj;
30150 fail:
30151 return NULL;
30152 }
30153
30154
30155 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
30156 PyObject *resultobj = 0;
30157 wxOverlay *arg1 = 0 ;
30158 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
30159 wxDCOverlay *result = 0 ;
30160 void *argp1 = 0 ;
30161 int res1 = 0 ;
30162 void *argp2 = 0 ;
30163 int res2 = 0 ;
30164
30165 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
30166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
30167 if (!SWIG_IsOK(res1)) {
30168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30169 }
30170 if (!argp1) {
30171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
30172 }
30173 arg1 = reinterpret_cast< wxOverlay * >(argp1);
30174 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
30175 if (!SWIG_IsOK(res2)) {
30176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
30177 }
30178 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
30179 {
30180 PyThreadState* __tstate = wxPyBeginAllowThreads();
30181 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
30182 wxPyEndAllowThreads(__tstate);
30183 if (PyErr_Occurred()) SWIG_fail;
30184 }
30185 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
30186 return resultobj;
30187 fail:
30188 return NULL;
30189 }
30190
30191
30192 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
30193 int argc;
30194 PyObject *argv[7];
30195
30196 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
30197 --argc;
30198 if (argc == 2) {
30199 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
30200 }
30201 if (argc == 6) {
30202 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
30203 }
30204
30205 fail:
30206 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
30207 return NULL;
30208 }
30209
30210
30211 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30212 PyObject *resultobj = 0;
30213 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30214 void *argp1 = 0 ;
30215 int res1 = 0 ;
30216 PyObject *swig_obj[1] ;
30217
30218 if (!args) SWIG_fail;
30219 swig_obj[0] = args;
30220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
30221 if (!SWIG_IsOK(res1)) {
30222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30223 }
30224 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30225 {
30226 PyThreadState* __tstate = wxPyBeginAllowThreads();
30227 delete arg1;
30228
30229 wxPyEndAllowThreads(__tstate);
30230 if (PyErr_Occurred()) SWIG_fail;
30231 }
30232 resultobj = SWIG_Py_Void();
30233 return resultobj;
30234 fail:
30235 return NULL;
30236 }
30237
30238
30239 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30240 PyObject *resultobj = 0;
30241 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
30242 void *argp1 = 0 ;
30243 int res1 = 0 ;
30244 PyObject *swig_obj[1] ;
30245
30246 if (!args) SWIG_fail;
30247 swig_obj[0] = args;
30248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
30249 if (!SWIG_IsOK(res1)) {
30250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
30251 }
30252 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
30253 {
30254 PyThreadState* __tstate = wxPyBeginAllowThreads();
30255 (arg1)->Clear();
30256 wxPyEndAllowThreads(__tstate);
30257 if (PyErr_Occurred()) SWIG_fail;
30258 }
30259 resultobj = SWIG_Py_Void();
30260 return resultobj;
30261 fail:
30262 return NULL;
30263 }
30264
30265
30266 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30267 PyObject *obj;
30268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30269 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
30270 return SWIG_Py_Void();
30271 }
30272
30273 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30274 return SWIG_Python_InitShadowInstance(args);
30275 }
30276
30277 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30278 PyObject *resultobj = 0;
30279 int arg1 ;
30280 int arg2 ;
30281 int arg3 = (int) true ;
30282 int arg4 = (int) 1 ;
30283 wxImageList *result = 0 ;
30284 int val1 ;
30285 int ecode1 = 0 ;
30286 int val2 ;
30287 int ecode2 = 0 ;
30288 int val3 ;
30289 int ecode3 = 0 ;
30290 int val4 ;
30291 int ecode4 = 0 ;
30292 PyObject * obj0 = 0 ;
30293 PyObject * obj1 = 0 ;
30294 PyObject * obj2 = 0 ;
30295 PyObject * obj3 = 0 ;
30296 char * kwnames[] = {
30297 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
30298 };
30299
30300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30301 ecode1 = SWIG_AsVal_int(obj0, &val1);
30302 if (!SWIG_IsOK(ecode1)) {
30303 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
30304 }
30305 arg1 = static_cast< int >(val1);
30306 ecode2 = SWIG_AsVal_int(obj1, &val2);
30307 if (!SWIG_IsOK(ecode2)) {
30308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
30309 }
30310 arg2 = static_cast< int >(val2);
30311 if (obj2) {
30312 ecode3 = SWIG_AsVal_int(obj2, &val3);
30313 if (!SWIG_IsOK(ecode3)) {
30314 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
30315 }
30316 arg3 = static_cast< int >(val3);
30317 }
30318 if (obj3) {
30319 ecode4 = SWIG_AsVal_int(obj3, &val4);
30320 if (!SWIG_IsOK(ecode4)) {
30321 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
30322 }
30323 arg4 = static_cast< int >(val4);
30324 }
30325 {
30326 if (!wxPyCheckForApp()) SWIG_fail;
30327 PyThreadState* __tstate = wxPyBeginAllowThreads();
30328 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
30329 wxPyEndAllowThreads(__tstate);
30330 if (PyErr_Occurred()) SWIG_fail;
30331 }
30332 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
30333 return resultobj;
30334 fail:
30335 return NULL;
30336 }
30337
30338
30339 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30340 PyObject *resultobj = 0;
30341 wxImageList *arg1 = (wxImageList *) 0 ;
30342 void *argp1 = 0 ;
30343 int res1 = 0 ;
30344 PyObject *swig_obj[1] ;
30345
30346 if (!args) SWIG_fail;
30347 swig_obj[0] = args;
30348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
30349 if (!SWIG_IsOK(res1)) {
30350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
30351 }
30352 arg1 = reinterpret_cast< wxImageList * >(argp1);
30353 {
30354 PyThreadState* __tstate = wxPyBeginAllowThreads();
30355 delete arg1;
30356
30357 wxPyEndAllowThreads(__tstate);
30358 if (PyErr_Occurred()) SWIG_fail;
30359 }
30360 resultobj = SWIG_Py_Void();
30361 return resultobj;
30362 fail:
30363 return NULL;
30364 }
30365
30366
30367 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30368 PyObject *resultobj = 0;
30369 wxImageList *arg1 = (wxImageList *) 0 ;
30370 wxBitmap *arg2 = 0 ;
30371 wxBitmap const &arg3_defvalue = wxNullBitmap ;
30372 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
30373 int result;
30374 void *argp1 = 0 ;
30375 int res1 = 0 ;
30376 void *argp2 = 0 ;
30377 int res2 = 0 ;
30378 void *argp3 = 0 ;
30379 int res3 = 0 ;
30380 PyObject * obj0 = 0 ;
30381 PyObject * obj1 = 0 ;
30382 PyObject * obj2 = 0 ;
30383 char * kwnames[] = {
30384 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
30385 };
30386
30387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30389 if (!SWIG_IsOK(res1)) {
30390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
30391 }
30392 arg1 = reinterpret_cast< wxImageList * >(argp1);
30393 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30394 if (!SWIG_IsOK(res2)) {
30395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30396 }
30397 if (!argp2) {
30398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30399 }
30400 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30401 if (obj2) {
30402 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30403 if (!SWIG_IsOK(res3)) {
30404 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30405 }
30406 if (!argp3) {
30407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30408 }
30409 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30410 }
30411 {
30412 PyThreadState* __tstate = wxPyBeginAllowThreads();
30413 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
30414 wxPyEndAllowThreads(__tstate);
30415 if (PyErr_Occurred()) SWIG_fail;
30416 }
30417 resultobj = SWIG_From_int(static_cast< int >(result));
30418 return resultobj;
30419 fail:
30420 return NULL;
30421 }
30422
30423
30424 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30425 PyObject *resultobj = 0;
30426 wxImageList *arg1 = (wxImageList *) 0 ;
30427 wxBitmap *arg2 = 0 ;
30428 wxColour *arg3 = 0 ;
30429 int result;
30430 void *argp1 = 0 ;
30431 int res1 = 0 ;
30432 void *argp2 = 0 ;
30433 int res2 = 0 ;
30434 wxColour temp3 ;
30435 PyObject * obj0 = 0 ;
30436 PyObject * obj1 = 0 ;
30437 PyObject * obj2 = 0 ;
30438 char * kwnames[] = {
30439 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
30440 };
30441
30442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30444 if (!SWIG_IsOK(res1)) {
30445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
30446 }
30447 arg1 = reinterpret_cast< wxImageList * >(argp1);
30448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
30449 if (!SWIG_IsOK(res2)) {
30450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30451 }
30452 if (!argp2) {
30453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
30454 }
30455 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30456 {
30457 arg3 = &temp3;
30458 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30459 }
30460 {
30461 PyThreadState* __tstate = wxPyBeginAllowThreads();
30462 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
30463 wxPyEndAllowThreads(__tstate);
30464 if (PyErr_Occurred()) SWIG_fail;
30465 }
30466 resultobj = SWIG_From_int(static_cast< int >(result));
30467 return resultobj;
30468 fail:
30469 return NULL;
30470 }
30471
30472
30473 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30474 PyObject *resultobj = 0;
30475 wxImageList *arg1 = (wxImageList *) 0 ;
30476 wxIcon *arg2 = 0 ;
30477 int result;
30478 void *argp1 = 0 ;
30479 int res1 = 0 ;
30480 void *argp2 = 0 ;
30481 int res2 = 0 ;
30482 PyObject * obj0 = 0 ;
30483 PyObject * obj1 = 0 ;
30484 char * kwnames[] = {
30485 (char *) "self",(char *) "icon", NULL
30486 };
30487
30488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30490 if (!SWIG_IsOK(res1)) {
30491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
30492 }
30493 arg1 = reinterpret_cast< wxImageList * >(argp1);
30494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
30495 if (!SWIG_IsOK(res2)) {
30496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30497 }
30498 if (!argp2) {
30499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
30500 }
30501 arg2 = reinterpret_cast< wxIcon * >(argp2);
30502 {
30503 PyThreadState* __tstate = wxPyBeginAllowThreads();
30504 result = (int)(arg1)->Add((wxIcon const &)*arg2);
30505 wxPyEndAllowThreads(__tstate);
30506 if (PyErr_Occurred()) SWIG_fail;
30507 }
30508 resultobj = SWIG_From_int(static_cast< int >(result));
30509 return resultobj;
30510 fail:
30511 return NULL;
30512 }
30513
30514
30515 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30516 PyObject *resultobj = 0;
30517 wxImageList *arg1 = (wxImageList *) 0 ;
30518 int arg2 ;
30519 SwigValueWrapper<wxBitmap > result;
30520 void *argp1 = 0 ;
30521 int res1 = 0 ;
30522 int val2 ;
30523 int ecode2 = 0 ;
30524 PyObject * obj0 = 0 ;
30525 PyObject * obj1 = 0 ;
30526 char * kwnames[] = {
30527 (char *) "self",(char *) "index", NULL
30528 };
30529
30530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
30531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30532 if (!SWIG_IsOK(res1)) {
30533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
30534 }
30535 arg1 = reinterpret_cast< wxImageList * >(argp1);
30536 ecode2 = SWIG_AsVal_int(obj1, &val2);
30537 if (!SWIG_IsOK(ecode2)) {
30538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
30539 }
30540 arg2 = static_cast< int >(val2);
30541 {
30542 PyThreadState* __tstate = wxPyBeginAllowThreads();
30543 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
30544 wxPyEndAllowThreads(__tstate);
30545 if (PyErr_Occurred()) SWIG_fail;
30546 }
30547 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
30548 return resultobj;
30549 fail:
30550 return NULL;
30551 }
30552
30553
30554 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30555 PyObject *resultobj = 0;
30556 wxImageList *arg1 = (wxImageList *) 0 ;
30557 int arg2 ;
30558 wxIcon result;
30559 void *argp1 = 0 ;
30560 int res1 = 0 ;
30561 int val2 ;
30562 int ecode2 = 0 ;
30563 PyObject * obj0 = 0 ;
30564 PyObject * obj1 = 0 ;
30565 char * kwnames[] = {
30566 (char *) "self",(char *) "index", NULL
30567 };
30568
30569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
30570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30571 if (!SWIG_IsOK(res1)) {
30572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
30573 }
30574 arg1 = reinterpret_cast< wxImageList * >(argp1);
30575 ecode2 = SWIG_AsVal_int(obj1, &val2);
30576 if (!SWIG_IsOK(ecode2)) {
30577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
30578 }
30579 arg2 = static_cast< int >(val2);
30580 {
30581 PyThreadState* __tstate = wxPyBeginAllowThreads();
30582 result = ((wxImageList const *)arg1)->GetIcon(arg2);
30583 wxPyEndAllowThreads(__tstate);
30584 if (PyErr_Occurred()) SWIG_fail;
30585 }
30586 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
30587 return resultobj;
30588 fail:
30589 return NULL;
30590 }
30591
30592
30593 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30594 PyObject *resultobj = 0;
30595 wxImageList *arg1 = (wxImageList *) 0 ;
30596 int arg2 ;
30597 wxBitmap *arg3 = 0 ;
30598 wxBitmap const &arg4_defvalue = wxNullBitmap ;
30599 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
30600 bool result;
30601 void *argp1 = 0 ;
30602 int res1 = 0 ;
30603 int val2 ;
30604 int ecode2 = 0 ;
30605 void *argp3 = 0 ;
30606 int res3 = 0 ;
30607 void *argp4 = 0 ;
30608 int res4 = 0 ;
30609 PyObject * obj0 = 0 ;
30610 PyObject * obj1 = 0 ;
30611 PyObject * obj2 = 0 ;
30612 PyObject * obj3 = 0 ;
30613 char * kwnames[] = {
30614 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
30615 };
30616
30617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30619 if (!SWIG_IsOK(res1)) {
30620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
30621 }
30622 arg1 = reinterpret_cast< wxImageList * >(argp1);
30623 ecode2 = SWIG_AsVal_int(obj1, &val2);
30624 if (!SWIG_IsOK(ecode2)) {
30625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
30626 }
30627 arg2 = static_cast< int >(val2);
30628 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30629 if (!SWIG_IsOK(res3)) {
30630 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30631 }
30632 if (!argp3) {
30633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30634 }
30635 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30636 if (obj3) {
30637 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
30638 if (!SWIG_IsOK(res4)) {
30639 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
30640 }
30641 if (!argp4) {
30642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
30643 }
30644 arg4 = reinterpret_cast< wxBitmap * >(argp4);
30645 }
30646 {
30647 PyThreadState* __tstate = wxPyBeginAllowThreads();
30648 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
30649 wxPyEndAllowThreads(__tstate);
30650 if (PyErr_Occurred()) SWIG_fail;
30651 }
30652 {
30653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30654 }
30655 return resultobj;
30656 fail:
30657 return NULL;
30658 }
30659
30660
30661 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30662 PyObject *resultobj = 0;
30663 wxImageList *arg1 = (wxImageList *) 0 ;
30664 int arg2 ;
30665 wxDC *arg3 = 0 ;
30666 int arg4 ;
30667 int arg5 ;
30668 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
30669 bool arg7 = (bool) (bool)false ;
30670 bool result;
30671 void *argp1 = 0 ;
30672 int res1 = 0 ;
30673 int val2 ;
30674 int ecode2 = 0 ;
30675 void *argp3 = 0 ;
30676 int res3 = 0 ;
30677 int val4 ;
30678 int ecode4 = 0 ;
30679 int val5 ;
30680 int ecode5 = 0 ;
30681 int val6 ;
30682 int ecode6 = 0 ;
30683 bool val7 ;
30684 int ecode7 = 0 ;
30685 PyObject * obj0 = 0 ;
30686 PyObject * obj1 = 0 ;
30687 PyObject * obj2 = 0 ;
30688 PyObject * obj3 = 0 ;
30689 PyObject * obj4 = 0 ;
30690 PyObject * obj5 = 0 ;
30691 PyObject * obj6 = 0 ;
30692 char * kwnames[] = {
30693 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
30694 };
30695
30696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30698 if (!SWIG_IsOK(res1)) {
30699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
30700 }
30701 arg1 = reinterpret_cast< wxImageList * >(argp1);
30702 ecode2 = SWIG_AsVal_int(obj1, &val2);
30703 if (!SWIG_IsOK(ecode2)) {
30704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
30705 }
30706 arg2 = static_cast< int >(val2);
30707 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30708 if (!SWIG_IsOK(res3)) {
30709 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
30710 }
30711 if (!argp3) {
30712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
30713 }
30714 arg3 = reinterpret_cast< wxDC * >(argp3);
30715 ecode4 = SWIG_AsVal_int(obj3, &val4);
30716 if (!SWIG_IsOK(ecode4)) {
30717 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
30718 }
30719 arg4 = static_cast< int >(val4);
30720 ecode5 = SWIG_AsVal_int(obj4, &val5);
30721 if (!SWIG_IsOK(ecode5)) {
30722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
30723 }
30724 arg5 = static_cast< int >(val5);
30725 if (obj5) {
30726 ecode6 = SWIG_AsVal_int(obj5, &val6);
30727 if (!SWIG_IsOK(ecode6)) {
30728 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
30729 }
30730 arg6 = static_cast< int >(val6);
30731 }
30732 if (obj6) {
30733 ecode7 = SWIG_AsVal_bool(obj6, &val7);
30734 if (!SWIG_IsOK(ecode7)) {
30735 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
30736 }
30737 arg7 = static_cast< bool >(val7);
30738 }
30739 {
30740 PyThreadState* __tstate = wxPyBeginAllowThreads();
30741 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
30742 wxPyEndAllowThreads(__tstate);
30743 if (PyErr_Occurred()) SWIG_fail;
30744 }
30745 {
30746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30747 }
30748 return resultobj;
30749 fail:
30750 return NULL;
30751 }
30752
30753
30754 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30755 PyObject *resultobj = 0;
30756 wxImageList *arg1 = (wxImageList *) 0 ;
30757 int result;
30758 void *argp1 = 0 ;
30759 int res1 = 0 ;
30760 PyObject *swig_obj[1] ;
30761
30762 if (!args) SWIG_fail;
30763 swig_obj[0] = args;
30764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30765 if (!SWIG_IsOK(res1)) {
30766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
30767 }
30768 arg1 = reinterpret_cast< wxImageList * >(argp1);
30769 {
30770 PyThreadState* __tstate = wxPyBeginAllowThreads();
30771 result = (int)(arg1)->GetImageCount();
30772 wxPyEndAllowThreads(__tstate);
30773 if (PyErr_Occurred()) SWIG_fail;
30774 }
30775 resultobj = SWIG_From_int(static_cast< int >(result));
30776 return resultobj;
30777 fail:
30778 return NULL;
30779 }
30780
30781
30782 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30783 PyObject *resultobj = 0;
30784 wxImageList *arg1 = (wxImageList *) 0 ;
30785 int arg2 ;
30786 bool result;
30787 void *argp1 = 0 ;
30788 int res1 = 0 ;
30789 int val2 ;
30790 int ecode2 = 0 ;
30791 PyObject * obj0 = 0 ;
30792 PyObject * obj1 = 0 ;
30793 char * kwnames[] = {
30794 (char *) "self",(char *) "index", NULL
30795 };
30796
30797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
30798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30799 if (!SWIG_IsOK(res1)) {
30800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
30801 }
30802 arg1 = reinterpret_cast< wxImageList * >(argp1);
30803 ecode2 = SWIG_AsVal_int(obj1, &val2);
30804 if (!SWIG_IsOK(ecode2)) {
30805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
30806 }
30807 arg2 = static_cast< int >(val2);
30808 {
30809 PyThreadState* __tstate = wxPyBeginAllowThreads();
30810 result = (bool)(arg1)->Remove(arg2);
30811 wxPyEndAllowThreads(__tstate);
30812 if (PyErr_Occurred()) SWIG_fail;
30813 }
30814 {
30815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30816 }
30817 return resultobj;
30818 fail:
30819 return NULL;
30820 }
30821
30822
30823 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30824 PyObject *resultobj = 0;
30825 wxImageList *arg1 = (wxImageList *) 0 ;
30826 bool result;
30827 void *argp1 = 0 ;
30828 int res1 = 0 ;
30829 PyObject *swig_obj[1] ;
30830
30831 if (!args) SWIG_fail;
30832 swig_obj[0] = args;
30833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30834 if (!SWIG_IsOK(res1)) {
30835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
30836 }
30837 arg1 = reinterpret_cast< wxImageList * >(argp1);
30838 {
30839 PyThreadState* __tstate = wxPyBeginAllowThreads();
30840 result = (bool)(arg1)->RemoveAll();
30841 wxPyEndAllowThreads(__tstate);
30842 if (PyErr_Occurred()) SWIG_fail;
30843 }
30844 {
30845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30846 }
30847 return resultobj;
30848 fail:
30849 return NULL;
30850 }
30851
30852
30853 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30854 PyObject *resultobj = 0;
30855 wxImageList *arg1 = (wxImageList *) 0 ;
30856 int arg2 ;
30857 int *arg3 = 0 ;
30858 int *arg4 = 0 ;
30859 void *argp1 = 0 ;
30860 int res1 = 0 ;
30861 int val2 ;
30862 int ecode2 = 0 ;
30863 int temp3 ;
30864 int res3 = SWIG_TMPOBJ ;
30865 int temp4 ;
30866 int res4 = SWIG_TMPOBJ ;
30867 PyObject * obj0 = 0 ;
30868 PyObject * obj1 = 0 ;
30869 char * kwnames[] = {
30870 (char *) "self",(char *) "index", NULL
30871 };
30872
30873 arg3 = &temp3;
30874 arg4 = &temp4;
30875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
30876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
30877 if (!SWIG_IsOK(res1)) {
30878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
30879 }
30880 arg1 = reinterpret_cast< wxImageList * >(argp1);
30881 ecode2 = SWIG_AsVal_int(obj1, &val2);
30882 if (!SWIG_IsOK(ecode2)) {
30883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
30884 }
30885 arg2 = static_cast< int >(val2);
30886 {
30887 PyThreadState* __tstate = wxPyBeginAllowThreads();
30888 (arg1)->GetSize(arg2,*arg3,*arg4);
30889 wxPyEndAllowThreads(__tstate);
30890 if (PyErr_Occurred()) SWIG_fail;
30891 }
30892 resultobj = SWIG_Py_Void();
30893 if (SWIG_IsTmpObj(res3)) {
30894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
30895 } else {
30896 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
30898 }
30899 if (SWIG_IsTmpObj(res4)) {
30900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
30901 } else {
30902 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
30903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
30904 }
30905 return resultobj;
30906 fail:
30907 return NULL;
30908 }
30909
30910
30911 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30912 PyObject *obj;
30913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30914 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
30915 return SWIG_Py_Void();
30916 }
30917
30918 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30919 return SWIG_Python_InitShadowInstance(args);
30920 }
30921
30922 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30923 PyObject *resultobj = 0;
30924 wxStockGDI *result = 0 ;
30925
30926 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
30927 {
30928 PyThreadState* __tstate = wxPyBeginAllowThreads();
30929 result = (wxStockGDI *)new wxStockGDI();
30930 wxPyEndAllowThreads(__tstate);
30931 if (PyErr_Occurred()) SWIG_fail;
30932 }
30933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
30934 return resultobj;
30935 fail:
30936 return NULL;
30937 }
30938
30939
30940 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30941 PyObject *resultobj = 0;
30942 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
30943 void *argp1 = 0 ;
30944 int res1 = 0 ;
30945 PyObject *swig_obj[1] ;
30946
30947 if (!args) SWIG_fail;
30948 swig_obj[0] = args;
30949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
30950 if (!SWIG_IsOK(res1)) {
30951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
30952 }
30953 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
30954 {
30955 PyThreadState* __tstate = wxPyBeginAllowThreads();
30956 delete arg1;
30957
30958 wxPyEndAllowThreads(__tstate);
30959 if (PyErr_Occurred()) SWIG_fail;
30960 }
30961 resultobj = SWIG_Py_Void();
30962 return resultobj;
30963 fail:
30964 return NULL;
30965 }
30966
30967
30968 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30969 PyObject *resultobj = 0;
30970
30971 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
30972 {
30973 PyThreadState* __tstate = wxPyBeginAllowThreads();
30974 wxStockGDI::DeleteAll();
30975 wxPyEndAllowThreads(__tstate);
30976 if (PyErr_Occurred()) SWIG_fail;
30977 }
30978 resultobj = SWIG_Py_Void();
30979 return resultobj;
30980 fail:
30981 return NULL;
30982 }
30983
30984
30985 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30986 PyObject *resultobj = 0;
30987 wxStockGDI *result = 0 ;
30988
30989 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
30990 {
30991 PyThreadState* __tstate = wxPyBeginAllowThreads();
30992 {
30993 wxStockGDI &_result_ref = wxStockGDI::instance();
30994 result = (wxStockGDI *) &_result_ref;
30995 }
30996 wxPyEndAllowThreads(__tstate);
30997 if (PyErr_Occurred()) SWIG_fail;
30998 }
30999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
31000 return resultobj;
31001 fail:
31002 return NULL;
31003 }
31004
31005
31006 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31007 PyObject *resultobj = 0;
31008 wxStockGDI::Item arg1 ;
31009 wxBrush *result = 0 ;
31010 int val1 ;
31011 int ecode1 = 0 ;
31012 PyObject * obj0 = 0 ;
31013 char * kwnames[] = {
31014 (char *) "item", NULL
31015 };
31016
31017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
31018 ecode1 = SWIG_AsVal_int(obj0, &val1);
31019 if (!SWIG_IsOK(ecode1)) {
31020 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31021 }
31022 arg1 = static_cast< wxStockGDI::Item >(val1);
31023 {
31024 PyThreadState* __tstate = wxPyBeginAllowThreads();
31025 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
31026 wxPyEndAllowThreads(__tstate);
31027 if (PyErr_Occurred()) SWIG_fail;
31028 }
31029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31030 return resultobj;
31031 fail:
31032 return NULL;
31033 }
31034
31035
31036 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31037 PyObject *resultobj = 0;
31038 wxStockGDI::Item arg1 ;
31039 wxColour *result = 0 ;
31040 int val1 ;
31041 int ecode1 = 0 ;
31042 PyObject * obj0 = 0 ;
31043 char * kwnames[] = {
31044 (char *) "item", NULL
31045 };
31046
31047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
31048 ecode1 = SWIG_AsVal_int(obj0, &val1);
31049 if (!SWIG_IsOK(ecode1)) {
31050 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31051 }
31052 arg1 = static_cast< wxStockGDI::Item >(val1);
31053 {
31054 PyThreadState* __tstate = wxPyBeginAllowThreads();
31055 result = (wxColour *)wxStockGDI::GetColour(arg1);
31056 wxPyEndAllowThreads(__tstate);
31057 if (PyErr_Occurred()) SWIG_fail;
31058 }
31059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
31060 return resultobj;
31061 fail:
31062 return NULL;
31063 }
31064
31065
31066 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31067 PyObject *resultobj = 0;
31068 wxStockGDI::Item arg1 ;
31069 wxCursor *result = 0 ;
31070 int val1 ;
31071 int ecode1 = 0 ;
31072 PyObject * obj0 = 0 ;
31073 char * kwnames[] = {
31074 (char *) "item", NULL
31075 };
31076
31077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
31078 ecode1 = SWIG_AsVal_int(obj0, &val1);
31079 if (!SWIG_IsOK(ecode1)) {
31080 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31081 }
31082 arg1 = static_cast< wxStockGDI::Item >(val1);
31083 {
31084 PyThreadState* __tstate = wxPyBeginAllowThreads();
31085 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
31086 wxPyEndAllowThreads(__tstate);
31087 if (PyErr_Occurred()) SWIG_fail;
31088 }
31089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
31090 return resultobj;
31091 fail:
31092 return NULL;
31093 }
31094
31095
31096 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31097 PyObject *resultobj = 0;
31098 wxStockGDI::Item arg1 ;
31099 wxPen *result = 0 ;
31100 int val1 ;
31101 int ecode1 = 0 ;
31102 PyObject * obj0 = 0 ;
31103 char * kwnames[] = {
31104 (char *) "item", NULL
31105 };
31106
31107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
31108 ecode1 = SWIG_AsVal_int(obj0, &val1);
31109 if (!SWIG_IsOK(ecode1)) {
31110 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
31111 }
31112 arg1 = static_cast< wxStockGDI::Item >(val1);
31113 {
31114 PyThreadState* __tstate = wxPyBeginAllowThreads();
31115 result = (wxPen *)wxStockGDI::GetPen(arg1);
31116 wxPyEndAllowThreads(__tstate);
31117 if (PyErr_Occurred()) SWIG_fail;
31118 }
31119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31120 return resultobj;
31121 fail:
31122 return NULL;
31123 }
31124
31125
31126 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31127 PyObject *resultobj = 0;
31128 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
31129 wxStockGDI::Item arg2 ;
31130 wxFont *result = 0 ;
31131 void *argp1 = 0 ;
31132 int res1 = 0 ;
31133 int val2 ;
31134 int ecode2 = 0 ;
31135 PyObject * obj0 = 0 ;
31136 PyObject * obj1 = 0 ;
31137 char * kwnames[] = {
31138 (char *) "self",(char *) "item", NULL
31139 };
31140
31141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
31142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
31143 if (!SWIG_IsOK(res1)) {
31144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
31145 }
31146 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
31147 ecode2 = SWIG_AsVal_int(obj1, &val2);
31148 if (!SWIG_IsOK(ecode2)) {
31149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
31150 }
31151 arg2 = static_cast< wxStockGDI::Item >(val2);
31152 {
31153 PyThreadState* __tstate = wxPyBeginAllowThreads();
31154 result = (wxFont *)(arg1)->GetFont(arg2);
31155 wxPyEndAllowThreads(__tstate);
31156 if (PyErr_Occurred()) SWIG_fail;
31157 }
31158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31159 return resultobj;
31160 fail:
31161 return NULL;
31162 }
31163
31164
31165 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31166 PyObject *obj;
31167 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31168 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
31169 return SWIG_Py_Void();
31170 }
31171
31172 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31173 return SWIG_Python_InitShadowInstance(args);
31174 }
31175
31176 SWIGINTERN int NullBitmap_set(PyObject *) {
31177 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
31178 return 1;
31179 }
31180
31181
31182 SWIGINTERN PyObject *NullBitmap_get(void) {
31183 PyObject *pyobj = 0;
31184
31185 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
31186 return pyobj;
31187 }
31188
31189
31190 SWIGINTERN int NullIcon_set(PyObject *) {
31191 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
31192 return 1;
31193 }
31194
31195
31196 SWIGINTERN PyObject *NullIcon_get(void) {
31197 PyObject *pyobj = 0;
31198
31199 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
31200 return pyobj;
31201 }
31202
31203
31204 SWIGINTERN int NullCursor_set(PyObject *) {
31205 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
31206 return 1;
31207 }
31208
31209
31210 SWIGINTERN PyObject *NullCursor_get(void) {
31211 PyObject *pyobj = 0;
31212
31213 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
31214 return pyobj;
31215 }
31216
31217
31218 SWIGINTERN int NullPen_set(PyObject *) {
31219 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
31220 return 1;
31221 }
31222
31223
31224 SWIGINTERN PyObject *NullPen_get(void) {
31225 PyObject *pyobj = 0;
31226
31227 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
31228 return pyobj;
31229 }
31230
31231
31232 SWIGINTERN int NullBrush_set(PyObject *) {
31233 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
31234 return 1;
31235 }
31236
31237
31238 SWIGINTERN PyObject *NullBrush_get(void) {
31239 PyObject *pyobj = 0;
31240
31241 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
31242 return pyobj;
31243 }
31244
31245
31246 SWIGINTERN int NullPalette_set(PyObject *) {
31247 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
31248 return 1;
31249 }
31250
31251
31252 SWIGINTERN PyObject *NullPalette_get(void) {
31253 PyObject *pyobj = 0;
31254
31255 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
31256 return pyobj;
31257 }
31258
31259
31260 SWIGINTERN int NullFont_set(PyObject *) {
31261 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
31262 return 1;
31263 }
31264
31265
31266 SWIGINTERN PyObject *NullFont_get(void) {
31267 PyObject *pyobj = 0;
31268
31269 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
31270 return pyobj;
31271 }
31272
31273
31274 SWIGINTERN int NullColour_set(PyObject *) {
31275 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
31276 return 1;
31277 }
31278
31279
31280 SWIGINTERN PyObject *NullColour_get(void) {
31281 PyObject *pyobj = 0;
31282
31283 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
31284 return pyobj;
31285 }
31286
31287
31288 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31289 PyObject *resultobj = 0;
31290 wxGDIObjListBase *result = 0 ;
31291
31292 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
31293 {
31294 PyThreadState* __tstate = wxPyBeginAllowThreads();
31295 result = (wxGDIObjListBase *)new wxGDIObjListBase();
31296 wxPyEndAllowThreads(__tstate);
31297 if (PyErr_Occurred()) SWIG_fail;
31298 }
31299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
31300 return resultobj;
31301 fail:
31302 return NULL;
31303 }
31304
31305
31306 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31307 PyObject *resultobj = 0;
31308 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
31309 void *argp1 = 0 ;
31310 int res1 = 0 ;
31311 PyObject *swig_obj[1] ;
31312
31313 if (!args) SWIG_fail;
31314 swig_obj[0] = args;
31315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
31316 if (!SWIG_IsOK(res1)) {
31317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
31318 }
31319 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
31320 {
31321 PyThreadState* __tstate = wxPyBeginAllowThreads();
31322 delete arg1;
31323
31324 wxPyEndAllowThreads(__tstate);
31325 if (PyErr_Occurred()) SWIG_fail;
31326 }
31327 resultobj = SWIG_Py_Void();
31328 return resultobj;
31329 fail:
31330 return NULL;
31331 }
31332
31333
31334 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31335 PyObject *obj;
31336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31337 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
31338 return SWIG_Py_Void();
31339 }
31340
31341 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31342 return SWIG_Python_InitShadowInstance(args);
31343 }
31344
31345 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31346 PyObject *resultobj = 0;
31347 wxPenList *arg1 = (wxPenList *) 0 ;
31348 wxColour *arg2 = 0 ;
31349 int arg3 ;
31350 int arg4 ;
31351 wxPen *result = 0 ;
31352 void *argp1 = 0 ;
31353 int res1 = 0 ;
31354 wxColour temp2 ;
31355 int val3 ;
31356 int ecode3 = 0 ;
31357 int val4 ;
31358 int ecode4 = 0 ;
31359 PyObject * obj0 = 0 ;
31360 PyObject * obj1 = 0 ;
31361 PyObject * obj2 = 0 ;
31362 PyObject * obj3 = 0 ;
31363 char * kwnames[] = {
31364 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
31365 };
31366
31367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31369 if (!SWIG_IsOK(res1)) {
31370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31371 }
31372 arg1 = reinterpret_cast< wxPenList * >(argp1);
31373 {
31374 arg2 = &temp2;
31375 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31376 }
31377 ecode3 = SWIG_AsVal_int(obj2, &val3);
31378 if (!SWIG_IsOK(ecode3)) {
31379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
31380 }
31381 arg3 = static_cast< int >(val3);
31382 ecode4 = SWIG_AsVal_int(obj3, &val4);
31383 if (!SWIG_IsOK(ecode4)) {
31384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
31385 }
31386 arg4 = static_cast< int >(val4);
31387 {
31388 PyThreadState* __tstate = wxPyBeginAllowThreads();
31389 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
31390 wxPyEndAllowThreads(__tstate);
31391 if (PyErr_Occurred()) SWIG_fail;
31392 }
31393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
31394 return resultobj;
31395 fail:
31396 return NULL;
31397 }
31398
31399
31400 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31401 PyObject *resultobj = 0;
31402 wxPenList *arg1 = (wxPenList *) 0 ;
31403 wxPen *arg2 = (wxPen *) 0 ;
31404 void *argp1 = 0 ;
31405 int res1 = 0 ;
31406 void *argp2 = 0 ;
31407 int res2 = 0 ;
31408 PyObject * obj0 = 0 ;
31409 PyObject * obj1 = 0 ;
31410 char * kwnames[] = {
31411 (char *) "self",(char *) "pen", NULL
31412 };
31413
31414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
31415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31416 if (!SWIG_IsOK(res1)) {
31417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
31418 }
31419 arg1 = reinterpret_cast< wxPenList * >(argp1);
31420 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31421 if (!SWIG_IsOK(res2)) {
31422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
31423 }
31424 arg2 = reinterpret_cast< wxPen * >(argp2);
31425 {
31426 PyThreadState* __tstate = wxPyBeginAllowThreads();
31427 (arg1)->AddPen(arg2);
31428 wxPyEndAllowThreads(__tstate);
31429 if (PyErr_Occurred()) SWIG_fail;
31430 }
31431 resultobj = SWIG_Py_Void();
31432 return resultobj;
31433 fail:
31434 return NULL;
31435 }
31436
31437
31438 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31439 PyObject *resultobj = 0;
31440 wxPenList *arg1 = (wxPenList *) 0 ;
31441 wxPen *arg2 = (wxPen *) 0 ;
31442 void *argp1 = 0 ;
31443 int res1 = 0 ;
31444 void *argp2 = 0 ;
31445 int res2 = 0 ;
31446 PyObject * obj0 = 0 ;
31447 PyObject * obj1 = 0 ;
31448 char * kwnames[] = {
31449 (char *) "self",(char *) "pen", NULL
31450 };
31451
31452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
31453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
31454 if (!SWIG_IsOK(res1)) {
31455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
31456 }
31457 arg1 = reinterpret_cast< wxPenList * >(argp1);
31458 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
31459 if (!SWIG_IsOK(res2)) {
31460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
31461 }
31462 arg2 = reinterpret_cast< wxPen * >(argp2);
31463 {
31464 PyThreadState* __tstate = wxPyBeginAllowThreads();
31465 (arg1)->RemovePen(arg2);
31466 wxPyEndAllowThreads(__tstate);
31467 if (PyErr_Occurred()) SWIG_fail;
31468 }
31469 resultobj = SWIG_Py_Void();
31470 return resultobj;
31471 fail:
31472 return NULL;
31473 }
31474
31475
31476 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31477 PyObject *obj;
31478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31479 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
31480 return SWIG_Py_Void();
31481 }
31482
31483 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31484 PyObject *resultobj = 0;
31485 wxBrushList *arg1 = (wxBrushList *) 0 ;
31486 wxColour *arg2 = 0 ;
31487 int arg3 = (int) wxSOLID ;
31488 wxBrush *result = 0 ;
31489 void *argp1 = 0 ;
31490 int res1 = 0 ;
31491 wxColour temp2 ;
31492 int val3 ;
31493 int ecode3 = 0 ;
31494 PyObject * obj0 = 0 ;
31495 PyObject * obj1 = 0 ;
31496 PyObject * obj2 = 0 ;
31497 char * kwnames[] = {
31498 (char *) "self",(char *) "colour",(char *) "style", NULL
31499 };
31500
31501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31503 if (!SWIG_IsOK(res1)) {
31504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31505 }
31506 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31507 {
31508 arg2 = &temp2;
31509 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31510 }
31511 if (obj2) {
31512 ecode3 = SWIG_AsVal_int(obj2, &val3);
31513 if (!SWIG_IsOK(ecode3)) {
31514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
31515 }
31516 arg3 = static_cast< int >(val3);
31517 }
31518 {
31519 PyThreadState* __tstate = wxPyBeginAllowThreads();
31520 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
31521 wxPyEndAllowThreads(__tstate);
31522 if (PyErr_Occurred()) SWIG_fail;
31523 }
31524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
31525 return resultobj;
31526 fail:
31527 return NULL;
31528 }
31529
31530
31531 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31532 PyObject *resultobj = 0;
31533 wxBrushList *arg1 = (wxBrushList *) 0 ;
31534 wxBrush *arg2 = (wxBrush *) 0 ;
31535 void *argp1 = 0 ;
31536 int res1 = 0 ;
31537 void *argp2 = 0 ;
31538 int res2 = 0 ;
31539 PyObject * obj0 = 0 ;
31540 PyObject * obj1 = 0 ;
31541 char * kwnames[] = {
31542 (char *) "self",(char *) "brush", NULL
31543 };
31544
31545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31547 if (!SWIG_IsOK(res1)) {
31548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31549 }
31550 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31551 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31552 if (!SWIG_IsOK(res2)) {
31553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31554 }
31555 arg2 = reinterpret_cast< wxBrush * >(argp2);
31556 {
31557 PyThreadState* __tstate = wxPyBeginAllowThreads();
31558 (arg1)->AddBrush(arg2);
31559 wxPyEndAllowThreads(__tstate);
31560 if (PyErr_Occurred()) SWIG_fail;
31561 }
31562 resultobj = SWIG_Py_Void();
31563 return resultobj;
31564 fail:
31565 return NULL;
31566 }
31567
31568
31569 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31570 PyObject *resultobj = 0;
31571 wxBrushList *arg1 = (wxBrushList *) 0 ;
31572 wxBrush *arg2 = (wxBrush *) 0 ;
31573 void *argp1 = 0 ;
31574 int res1 = 0 ;
31575 void *argp2 = 0 ;
31576 int res2 = 0 ;
31577 PyObject * obj0 = 0 ;
31578 PyObject * obj1 = 0 ;
31579 char * kwnames[] = {
31580 (char *) "self",(char *) "brush", NULL
31581 };
31582
31583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
31584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
31585 if (!SWIG_IsOK(res1)) {
31586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
31587 }
31588 arg1 = reinterpret_cast< wxBrushList * >(argp1);
31589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
31590 if (!SWIG_IsOK(res2)) {
31591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
31592 }
31593 arg2 = reinterpret_cast< wxBrush * >(argp2);
31594 {
31595 PyThreadState* __tstate = wxPyBeginAllowThreads();
31596 (arg1)->RemoveBrush(arg2);
31597 wxPyEndAllowThreads(__tstate);
31598 if (PyErr_Occurred()) SWIG_fail;
31599 }
31600 resultobj = SWIG_Py_Void();
31601 return resultobj;
31602 fail:
31603 return NULL;
31604 }
31605
31606
31607 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31608 PyObject *obj;
31609 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31610 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
31611 return SWIG_Py_Void();
31612 }
31613
31614 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31615 PyObject *resultobj = 0;
31616 wxFontList *arg1 = (wxFontList *) 0 ;
31617 int arg2 ;
31618 int arg3 ;
31619 int arg4 ;
31620 int arg5 ;
31621 bool arg6 = (bool) false ;
31622 wxString const &arg7_defvalue = wxPyEmptyString ;
31623 wxString *arg7 = (wxString *) &arg7_defvalue ;
31624 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
31625 wxFont *result = 0 ;
31626 void *argp1 = 0 ;
31627 int res1 = 0 ;
31628 int val2 ;
31629 int ecode2 = 0 ;
31630 int val3 ;
31631 int ecode3 = 0 ;
31632 int val4 ;
31633 int ecode4 = 0 ;
31634 int val5 ;
31635 int ecode5 = 0 ;
31636 bool val6 ;
31637 int ecode6 = 0 ;
31638 bool temp7 = false ;
31639 int val8 ;
31640 int ecode8 = 0 ;
31641 PyObject * obj0 = 0 ;
31642 PyObject * obj1 = 0 ;
31643 PyObject * obj2 = 0 ;
31644 PyObject * obj3 = 0 ;
31645 PyObject * obj4 = 0 ;
31646 PyObject * obj5 = 0 ;
31647 PyObject * obj6 = 0 ;
31648 PyObject * obj7 = 0 ;
31649 char * kwnames[] = {
31650 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
31651 };
31652
31653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
31654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
31655 if (!SWIG_IsOK(res1)) {
31656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
31657 }
31658 arg1 = reinterpret_cast< wxFontList * >(argp1);
31659 ecode2 = SWIG_AsVal_int(obj1, &val2);
31660 if (!SWIG_IsOK(ecode2)) {
31661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
31662 }
31663 arg2 = static_cast< int >(val2);
31664 ecode3 = SWIG_AsVal_int(obj2, &val3);
31665 if (!SWIG_IsOK(ecode3)) {
31666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
31667 }
31668 arg3 = static_cast< int >(val3);
31669 ecode4 = SWIG_AsVal_int(obj3, &val4);
31670 if (!SWIG_IsOK(ecode4)) {
31671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
31672 }
31673 arg4 = static_cast< int >(val4);
31674 ecode5 = SWIG_AsVal_int(obj4, &val5);
31675 if (!SWIG_IsOK(ecode5)) {
31676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
31677 }
31678 arg5 = static_cast< int >(val5);
31679 if (obj5) {
31680 ecode6 = SWIG_AsVal_bool(obj5, &val6);
31681 if (!SWIG_IsOK(ecode6)) {
31682 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
31683 }
31684 arg6 = static_cast< bool >(val6);
31685 }
31686 if (obj6) {
31687 {
31688 arg7 = wxString_in_helper(obj6);
31689 if (arg7 == NULL) SWIG_fail;
31690 temp7 = true;
31691 }
31692 }
31693 if (obj7) {
31694 ecode8 = SWIG_AsVal_int(obj7, &val8);
31695 if (!SWIG_IsOK(ecode8)) {
31696 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
31697 }
31698 arg8 = static_cast< wxFontEncoding >(val8);
31699 }
31700 {
31701 PyThreadState* __tstate = wxPyBeginAllowThreads();
31702 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
31703 wxPyEndAllowThreads(__tstate);
31704 if (PyErr_Occurred()) SWIG_fail;
31705 }
31706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
31707 {
31708 if (temp7)
31709 delete arg7;
31710 }
31711 return resultobj;
31712 fail:
31713 {
31714 if (temp7)
31715 delete arg7;
31716 }
31717 return NULL;
31718 }
31719
31720
31721 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31722 PyObject *resultobj = 0;
31723 wxFontList *arg1 = (wxFontList *) 0 ;
31724 wxFont *arg2 = (wxFont *) 0 ;
31725 void *argp1 = 0 ;
31726 int res1 = 0 ;
31727 void *argp2 = 0 ;
31728 int res2 = 0 ;
31729 PyObject * obj0 = 0 ;
31730 PyObject * obj1 = 0 ;
31731 char * kwnames[] = {
31732 (char *) "self",(char *) "font", NULL
31733 };
31734
31735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
31736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
31737 if (!SWIG_IsOK(res1)) {
31738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
31739 }
31740 arg1 = reinterpret_cast< wxFontList * >(argp1);
31741 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
31742 if (!SWIG_IsOK(res2)) {
31743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
31744 }
31745 arg2 = reinterpret_cast< wxFont * >(argp2);
31746 {
31747 PyThreadState* __tstate = wxPyBeginAllowThreads();
31748 (arg1)->AddFont(arg2);
31749 wxPyEndAllowThreads(__tstate);
31750 if (PyErr_Occurred()) SWIG_fail;
31751 }
31752 resultobj = SWIG_Py_Void();
31753 return resultobj;
31754 fail:
31755 return NULL;
31756 }
31757
31758
31759 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31760 PyObject *resultobj = 0;
31761 wxFontList *arg1 = (wxFontList *) 0 ;
31762 wxFont *arg2 = (wxFont *) 0 ;
31763 void *argp1 = 0 ;
31764 int res1 = 0 ;
31765 void *argp2 = 0 ;
31766 int res2 = 0 ;
31767 PyObject * obj0 = 0 ;
31768 PyObject * obj1 = 0 ;
31769 char * kwnames[] = {
31770 (char *) "self",(char *) "font", NULL
31771 };
31772
31773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
31774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
31775 if (!SWIG_IsOK(res1)) {
31776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
31777 }
31778 arg1 = reinterpret_cast< wxFontList * >(argp1);
31779 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
31780 if (!SWIG_IsOK(res2)) {
31781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
31782 }
31783 arg2 = reinterpret_cast< wxFont * >(argp2);
31784 {
31785 PyThreadState* __tstate = wxPyBeginAllowThreads();
31786 (arg1)->RemoveFont(arg2);
31787 wxPyEndAllowThreads(__tstate);
31788 if (PyErr_Occurred()) SWIG_fail;
31789 }
31790 resultobj = SWIG_Py_Void();
31791 return resultobj;
31792 fail:
31793 return NULL;
31794 }
31795
31796
31797 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31798 PyObject *obj;
31799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31800 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
31801 return SWIG_Py_Void();
31802 }
31803
31804 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31805 PyObject *resultobj = 0;
31806 wxColourDatabase *result = 0 ;
31807
31808 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
31809 {
31810 if (!wxPyCheckForApp()) SWIG_fail;
31811 PyThreadState* __tstate = wxPyBeginAllowThreads();
31812 result = (wxColourDatabase *)new wxColourDatabase();
31813 wxPyEndAllowThreads(__tstate);
31814 if (PyErr_Occurred()) SWIG_fail;
31815 }
31816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
31817 return resultobj;
31818 fail:
31819 return NULL;
31820 }
31821
31822
31823 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31824 PyObject *resultobj = 0;
31825 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
31826 void *argp1 = 0 ;
31827 int res1 = 0 ;
31828 PyObject *swig_obj[1] ;
31829
31830 if (!args) SWIG_fail;
31831 swig_obj[0] = args;
31832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
31833 if (!SWIG_IsOK(res1)) {
31834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
31835 }
31836 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
31837 {
31838 PyThreadState* __tstate = wxPyBeginAllowThreads();
31839 delete arg1;
31840
31841 wxPyEndAllowThreads(__tstate);
31842 if (PyErr_Occurred()) SWIG_fail;
31843 }
31844 resultobj = SWIG_Py_Void();
31845 return resultobj;
31846 fail:
31847 return NULL;
31848 }
31849
31850
31851 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31852 PyObject *resultobj = 0;
31853 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
31854 wxString *arg2 = 0 ;
31855 wxColour result;
31856 void *argp1 = 0 ;
31857 int res1 = 0 ;
31858 bool temp2 = false ;
31859 PyObject * obj0 = 0 ;
31860 PyObject * obj1 = 0 ;
31861 char * kwnames[] = {
31862 (char *) "self",(char *) "name", NULL
31863 };
31864
31865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
31866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
31867 if (!SWIG_IsOK(res1)) {
31868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
31869 }
31870 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
31871 {
31872 arg2 = wxString_in_helper(obj1);
31873 if (arg2 == NULL) SWIG_fail;
31874 temp2 = true;
31875 }
31876 {
31877 PyThreadState* __tstate = wxPyBeginAllowThreads();
31878 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
31879 wxPyEndAllowThreads(__tstate);
31880 if (PyErr_Occurred()) SWIG_fail;
31881 }
31882 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
31883 {
31884 if (temp2)
31885 delete arg2;
31886 }
31887 return resultobj;
31888 fail:
31889 {
31890 if (temp2)
31891 delete arg2;
31892 }
31893 return NULL;
31894 }
31895
31896
31897 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31898 PyObject *resultobj = 0;
31899 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
31900 wxColour *arg2 = 0 ;
31901 wxString result;
31902 void *argp1 = 0 ;
31903 int res1 = 0 ;
31904 wxColour temp2 ;
31905 PyObject * obj0 = 0 ;
31906 PyObject * obj1 = 0 ;
31907 char * kwnames[] = {
31908 (char *) "self",(char *) "colour", NULL
31909 };
31910
31911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
31912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
31913 if (!SWIG_IsOK(res1)) {
31914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
31915 }
31916 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
31917 {
31918 arg2 = &temp2;
31919 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
31920 }
31921 {
31922 PyThreadState* __tstate = wxPyBeginAllowThreads();
31923 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
31924 wxPyEndAllowThreads(__tstate);
31925 if (PyErr_Occurred()) SWIG_fail;
31926 }
31927 {
31928 #if wxUSE_UNICODE
31929 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
31930 #else
31931 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
31932 #endif
31933 }
31934 return resultobj;
31935 fail:
31936 return NULL;
31937 }
31938
31939
31940 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31941 PyObject *resultobj = 0;
31942 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
31943 wxString *arg2 = 0 ;
31944 wxColour *arg3 = 0 ;
31945 void *argp1 = 0 ;
31946 int res1 = 0 ;
31947 bool temp2 = false ;
31948 wxColour temp3 ;
31949 PyObject * obj0 = 0 ;
31950 PyObject * obj1 = 0 ;
31951 PyObject * obj2 = 0 ;
31952 char * kwnames[] = {
31953 (char *) "self",(char *) "name",(char *) "colour", NULL
31954 };
31955
31956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
31958 if (!SWIG_IsOK(res1)) {
31959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
31960 }
31961 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
31962 {
31963 arg2 = wxString_in_helper(obj1);
31964 if (arg2 == NULL) SWIG_fail;
31965 temp2 = true;
31966 }
31967 {
31968 arg3 = &temp3;
31969 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
31970 }
31971 {
31972 PyThreadState* __tstate = wxPyBeginAllowThreads();
31973 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
31974 wxPyEndAllowThreads(__tstate);
31975 if (PyErr_Occurred()) SWIG_fail;
31976 }
31977 resultobj = SWIG_Py_Void();
31978 {
31979 if (temp2)
31980 delete arg2;
31981 }
31982 return resultobj;
31983 fail:
31984 {
31985 if (temp2)
31986 delete arg2;
31987 }
31988 return NULL;
31989 }
31990
31991
31992 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31993 PyObject *resultobj = 0;
31994 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
31995 wxString *arg2 = 0 ;
31996 int arg3 ;
31997 int arg4 ;
31998 int arg5 ;
31999 void *argp1 = 0 ;
32000 int res1 = 0 ;
32001 bool temp2 = false ;
32002 int val3 ;
32003 int ecode3 = 0 ;
32004 int val4 ;
32005 int ecode4 = 0 ;
32006 int val5 ;
32007 int ecode5 = 0 ;
32008 PyObject * obj0 = 0 ;
32009 PyObject * obj1 = 0 ;
32010 PyObject * obj2 = 0 ;
32011 PyObject * obj3 = 0 ;
32012 PyObject * obj4 = 0 ;
32013 char * kwnames[] = {
32014 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
32015 };
32016
32017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32019 if (!SWIG_IsOK(res1)) {
32020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
32021 }
32022 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
32023 {
32024 arg2 = wxString_in_helper(obj1);
32025 if (arg2 == NULL) SWIG_fail;
32026 temp2 = true;
32027 }
32028 ecode3 = SWIG_AsVal_int(obj2, &val3);
32029 if (!SWIG_IsOK(ecode3)) {
32030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
32031 }
32032 arg3 = static_cast< int >(val3);
32033 ecode4 = SWIG_AsVal_int(obj3, &val4);
32034 if (!SWIG_IsOK(ecode4)) {
32035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
32036 }
32037 arg4 = static_cast< int >(val4);
32038 ecode5 = SWIG_AsVal_int(obj4, &val5);
32039 if (!SWIG_IsOK(ecode5)) {
32040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
32041 }
32042 arg5 = static_cast< int >(val5);
32043 {
32044 PyThreadState* __tstate = wxPyBeginAllowThreads();
32045 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
32046 wxPyEndAllowThreads(__tstate);
32047 if (PyErr_Occurred()) SWIG_fail;
32048 }
32049 resultobj = SWIG_Py_Void();
32050 {
32051 if (temp2)
32052 delete arg2;
32053 }
32054 return resultobj;
32055 fail:
32056 {
32057 if (temp2)
32058 delete arg2;
32059 }
32060 return NULL;
32061 }
32062
32063
32064 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32065 PyObject *obj;
32066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32067 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
32068 return SWIG_Py_Void();
32069 }
32070
32071 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32072 return SWIG_Python_InitShadowInstance(args);
32073 }
32074
32075 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32076 PyObject *resultobj = 0;
32077 wxFontList *result = 0 ;
32078
32079 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
32080 {
32081 PyThreadState* __tstate = wxPyBeginAllowThreads();
32082 result = (wxFontList *)_wxPyInitTheFontList();
32083 wxPyEndAllowThreads(__tstate);
32084 if (PyErr_Occurred()) SWIG_fail;
32085 }
32086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
32087 return resultobj;
32088 fail:
32089 return NULL;
32090 }
32091
32092
32093 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32094 PyObject *resultobj = 0;
32095 wxPenList *result = 0 ;
32096
32097 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
32098 {
32099 PyThreadState* __tstate = wxPyBeginAllowThreads();
32100 result = (wxPenList *)_wxPyInitThePenList();
32101 wxPyEndAllowThreads(__tstate);
32102 if (PyErr_Occurred()) SWIG_fail;
32103 }
32104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
32105 return resultobj;
32106 fail:
32107 return NULL;
32108 }
32109
32110
32111 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32112 PyObject *resultobj = 0;
32113 wxBrushList *result = 0 ;
32114
32115 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
32116 {
32117 PyThreadState* __tstate = wxPyBeginAllowThreads();
32118 result = (wxBrushList *)_wxPyInitTheBrushList();
32119 wxPyEndAllowThreads(__tstate);
32120 if (PyErr_Occurred()) SWIG_fail;
32121 }
32122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
32123 return resultobj;
32124 fail:
32125 return NULL;
32126 }
32127
32128
32129 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32130 PyObject *resultobj = 0;
32131 wxColourDatabase *result = 0 ;
32132
32133 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
32134 {
32135 PyThreadState* __tstate = wxPyBeginAllowThreads();
32136 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
32137 wxPyEndAllowThreads(__tstate);
32138 if (PyErr_Occurred()) SWIG_fail;
32139 }
32140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
32141 return resultobj;
32142 fail:
32143 return NULL;
32144 }
32145
32146
32147 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32148 PyObject *resultobj = 0;
32149 wxEffects *result = 0 ;
32150
32151 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
32152 {
32153 PyThreadState* __tstate = wxPyBeginAllowThreads();
32154 result = (wxEffects *)new wxEffects();
32155 wxPyEndAllowThreads(__tstate);
32156 if (PyErr_Occurred()) SWIG_fail;
32157 }
32158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
32159 return resultobj;
32160 fail:
32161 return NULL;
32162 }
32163
32164
32165 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32166 PyObject *resultobj = 0;
32167 wxEffects *arg1 = (wxEffects *) 0 ;
32168 wxColour result;
32169 void *argp1 = 0 ;
32170 int res1 = 0 ;
32171 PyObject *swig_obj[1] ;
32172
32173 if (!args) SWIG_fail;
32174 swig_obj[0] = args;
32175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32176 if (!SWIG_IsOK(res1)) {
32177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32178 }
32179 arg1 = reinterpret_cast< wxEffects * >(argp1);
32180 {
32181 PyThreadState* __tstate = wxPyBeginAllowThreads();
32182 result = ((wxEffects const *)arg1)->GetHighlightColour();
32183 wxPyEndAllowThreads(__tstate);
32184 if (PyErr_Occurred()) SWIG_fail;
32185 }
32186 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32187 return resultobj;
32188 fail:
32189 return NULL;
32190 }
32191
32192
32193 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32194 PyObject *resultobj = 0;
32195 wxEffects *arg1 = (wxEffects *) 0 ;
32196 wxColour result;
32197 void *argp1 = 0 ;
32198 int res1 = 0 ;
32199 PyObject *swig_obj[1] ;
32200
32201 if (!args) SWIG_fail;
32202 swig_obj[0] = args;
32203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32204 if (!SWIG_IsOK(res1)) {
32205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32206 }
32207 arg1 = reinterpret_cast< wxEffects * >(argp1);
32208 {
32209 PyThreadState* __tstate = wxPyBeginAllowThreads();
32210 result = ((wxEffects const *)arg1)->GetLightShadow();
32211 wxPyEndAllowThreads(__tstate);
32212 if (PyErr_Occurred()) SWIG_fail;
32213 }
32214 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32215 return resultobj;
32216 fail:
32217 return NULL;
32218 }
32219
32220
32221 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32222 PyObject *resultobj = 0;
32223 wxEffects *arg1 = (wxEffects *) 0 ;
32224 wxColour result;
32225 void *argp1 = 0 ;
32226 int res1 = 0 ;
32227 PyObject *swig_obj[1] ;
32228
32229 if (!args) SWIG_fail;
32230 swig_obj[0] = args;
32231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32232 if (!SWIG_IsOK(res1)) {
32233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
32234 }
32235 arg1 = reinterpret_cast< wxEffects * >(argp1);
32236 {
32237 PyThreadState* __tstate = wxPyBeginAllowThreads();
32238 result = ((wxEffects const *)arg1)->GetFaceColour();
32239 wxPyEndAllowThreads(__tstate);
32240 if (PyErr_Occurred()) SWIG_fail;
32241 }
32242 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32243 return resultobj;
32244 fail:
32245 return NULL;
32246 }
32247
32248
32249 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32250 PyObject *resultobj = 0;
32251 wxEffects *arg1 = (wxEffects *) 0 ;
32252 wxColour result;
32253 void *argp1 = 0 ;
32254 int res1 = 0 ;
32255 PyObject *swig_obj[1] ;
32256
32257 if (!args) SWIG_fail;
32258 swig_obj[0] = args;
32259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32260 if (!SWIG_IsOK(res1)) {
32261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32262 }
32263 arg1 = reinterpret_cast< wxEffects * >(argp1);
32264 {
32265 PyThreadState* __tstate = wxPyBeginAllowThreads();
32266 result = ((wxEffects const *)arg1)->GetMediumShadow();
32267 wxPyEndAllowThreads(__tstate);
32268 if (PyErr_Occurred()) SWIG_fail;
32269 }
32270 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32271 return resultobj;
32272 fail:
32273 return NULL;
32274 }
32275
32276
32277 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32278 PyObject *resultobj = 0;
32279 wxEffects *arg1 = (wxEffects *) 0 ;
32280 wxColour result;
32281 void *argp1 = 0 ;
32282 int res1 = 0 ;
32283 PyObject *swig_obj[1] ;
32284
32285 if (!args) SWIG_fail;
32286 swig_obj[0] = args;
32287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32288 if (!SWIG_IsOK(res1)) {
32289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
32290 }
32291 arg1 = reinterpret_cast< wxEffects * >(argp1);
32292 {
32293 PyThreadState* __tstate = wxPyBeginAllowThreads();
32294 result = ((wxEffects const *)arg1)->GetDarkShadow();
32295 wxPyEndAllowThreads(__tstate);
32296 if (PyErr_Occurred()) SWIG_fail;
32297 }
32298 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
32299 return resultobj;
32300 fail:
32301 return NULL;
32302 }
32303
32304
32305 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32306 PyObject *resultobj = 0;
32307 wxEffects *arg1 = (wxEffects *) 0 ;
32308 wxColour *arg2 = 0 ;
32309 void *argp1 = 0 ;
32310 int res1 = 0 ;
32311 wxColour temp2 ;
32312 PyObject * obj0 = 0 ;
32313 PyObject * obj1 = 0 ;
32314 char * kwnames[] = {
32315 (char *) "self",(char *) "c", NULL
32316 };
32317
32318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
32319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32320 if (!SWIG_IsOK(res1)) {
32321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32322 }
32323 arg1 = reinterpret_cast< wxEffects * >(argp1);
32324 {
32325 arg2 = &temp2;
32326 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32327 }
32328 {
32329 PyThreadState* __tstate = wxPyBeginAllowThreads();
32330 (arg1)->SetHighlightColour((wxColour const &)*arg2);
32331 wxPyEndAllowThreads(__tstate);
32332 if (PyErr_Occurred()) SWIG_fail;
32333 }
32334 resultobj = SWIG_Py_Void();
32335 return resultobj;
32336 fail:
32337 return NULL;
32338 }
32339
32340
32341 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32342 PyObject *resultobj = 0;
32343 wxEffects *arg1 = (wxEffects *) 0 ;
32344 wxColour *arg2 = 0 ;
32345 void *argp1 = 0 ;
32346 int res1 = 0 ;
32347 wxColour temp2 ;
32348 PyObject * obj0 = 0 ;
32349 PyObject * obj1 = 0 ;
32350 char * kwnames[] = {
32351 (char *) "self",(char *) "c", NULL
32352 };
32353
32354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32356 if (!SWIG_IsOK(res1)) {
32357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32358 }
32359 arg1 = reinterpret_cast< wxEffects * >(argp1);
32360 {
32361 arg2 = &temp2;
32362 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32363 }
32364 {
32365 PyThreadState* __tstate = wxPyBeginAllowThreads();
32366 (arg1)->SetLightShadow((wxColour const &)*arg2);
32367 wxPyEndAllowThreads(__tstate);
32368 if (PyErr_Occurred()) SWIG_fail;
32369 }
32370 resultobj = SWIG_Py_Void();
32371 return resultobj;
32372 fail:
32373 return NULL;
32374 }
32375
32376
32377 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32378 PyObject *resultobj = 0;
32379 wxEffects *arg1 = (wxEffects *) 0 ;
32380 wxColour *arg2 = 0 ;
32381 void *argp1 = 0 ;
32382 int res1 = 0 ;
32383 wxColour temp2 ;
32384 PyObject * obj0 = 0 ;
32385 PyObject * obj1 = 0 ;
32386 char * kwnames[] = {
32387 (char *) "self",(char *) "c", NULL
32388 };
32389
32390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
32391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32392 if (!SWIG_IsOK(res1)) {
32393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
32394 }
32395 arg1 = reinterpret_cast< wxEffects * >(argp1);
32396 {
32397 arg2 = &temp2;
32398 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32399 }
32400 {
32401 PyThreadState* __tstate = wxPyBeginAllowThreads();
32402 (arg1)->SetFaceColour((wxColour const &)*arg2);
32403 wxPyEndAllowThreads(__tstate);
32404 if (PyErr_Occurred()) SWIG_fail;
32405 }
32406 resultobj = SWIG_Py_Void();
32407 return resultobj;
32408 fail:
32409 return NULL;
32410 }
32411
32412
32413 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32414 PyObject *resultobj = 0;
32415 wxEffects *arg1 = (wxEffects *) 0 ;
32416 wxColour *arg2 = 0 ;
32417 void *argp1 = 0 ;
32418 int res1 = 0 ;
32419 wxColour temp2 ;
32420 PyObject * obj0 = 0 ;
32421 PyObject * obj1 = 0 ;
32422 char * kwnames[] = {
32423 (char *) "self",(char *) "c", NULL
32424 };
32425
32426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32428 if (!SWIG_IsOK(res1)) {
32429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32430 }
32431 arg1 = reinterpret_cast< wxEffects * >(argp1);
32432 {
32433 arg2 = &temp2;
32434 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32435 }
32436 {
32437 PyThreadState* __tstate = wxPyBeginAllowThreads();
32438 (arg1)->SetMediumShadow((wxColour const &)*arg2);
32439 wxPyEndAllowThreads(__tstate);
32440 if (PyErr_Occurred()) SWIG_fail;
32441 }
32442 resultobj = SWIG_Py_Void();
32443 return resultobj;
32444 fail:
32445 return NULL;
32446 }
32447
32448
32449 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32450 PyObject *resultobj = 0;
32451 wxEffects *arg1 = (wxEffects *) 0 ;
32452 wxColour *arg2 = 0 ;
32453 void *argp1 = 0 ;
32454 int res1 = 0 ;
32455 wxColour temp2 ;
32456 PyObject * obj0 = 0 ;
32457 PyObject * obj1 = 0 ;
32458 char * kwnames[] = {
32459 (char *) "self",(char *) "c", NULL
32460 };
32461
32462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
32463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32464 if (!SWIG_IsOK(res1)) {
32465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
32466 }
32467 arg1 = reinterpret_cast< wxEffects * >(argp1);
32468 {
32469 arg2 = &temp2;
32470 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32471 }
32472 {
32473 PyThreadState* __tstate = wxPyBeginAllowThreads();
32474 (arg1)->SetDarkShadow((wxColour const &)*arg2);
32475 wxPyEndAllowThreads(__tstate);
32476 if (PyErr_Occurred()) SWIG_fail;
32477 }
32478 resultobj = SWIG_Py_Void();
32479 return resultobj;
32480 fail:
32481 return NULL;
32482 }
32483
32484
32485 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32486 PyObject *resultobj = 0;
32487 wxEffects *arg1 = (wxEffects *) 0 ;
32488 wxColour *arg2 = 0 ;
32489 wxColour *arg3 = 0 ;
32490 wxColour *arg4 = 0 ;
32491 wxColour *arg5 = 0 ;
32492 wxColour *arg6 = 0 ;
32493 void *argp1 = 0 ;
32494 int res1 = 0 ;
32495 wxColour temp2 ;
32496 wxColour temp3 ;
32497 wxColour temp4 ;
32498 wxColour temp5 ;
32499 wxColour temp6 ;
32500 PyObject * obj0 = 0 ;
32501 PyObject * obj1 = 0 ;
32502 PyObject * obj2 = 0 ;
32503 PyObject * obj3 = 0 ;
32504 PyObject * obj4 = 0 ;
32505 PyObject * obj5 = 0 ;
32506 char * kwnames[] = {
32507 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
32508 };
32509
32510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
32511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32512 if (!SWIG_IsOK(res1)) {
32513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
32514 }
32515 arg1 = reinterpret_cast< wxEffects * >(argp1);
32516 {
32517 arg2 = &temp2;
32518 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
32519 }
32520 {
32521 arg3 = &temp3;
32522 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32523 }
32524 {
32525 arg4 = &temp4;
32526 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32527 }
32528 {
32529 arg5 = &temp5;
32530 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
32531 }
32532 {
32533 arg6 = &temp6;
32534 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
32535 }
32536 {
32537 PyThreadState* __tstate = wxPyBeginAllowThreads();
32538 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
32539 wxPyEndAllowThreads(__tstate);
32540 if (PyErr_Occurred()) SWIG_fail;
32541 }
32542 resultobj = SWIG_Py_Void();
32543 return resultobj;
32544 fail:
32545 return NULL;
32546 }
32547
32548
32549 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32550 PyObject *resultobj = 0;
32551 wxEffects *arg1 = (wxEffects *) 0 ;
32552 wxDC *arg2 = 0 ;
32553 wxRect *arg3 = 0 ;
32554 int arg4 = (int) 1 ;
32555 void *argp1 = 0 ;
32556 int res1 = 0 ;
32557 void *argp2 = 0 ;
32558 int res2 = 0 ;
32559 wxRect temp3 ;
32560 int val4 ;
32561 int ecode4 = 0 ;
32562 PyObject * obj0 = 0 ;
32563 PyObject * obj1 = 0 ;
32564 PyObject * obj2 = 0 ;
32565 PyObject * obj3 = 0 ;
32566 char * kwnames[] = {
32567 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
32568 };
32569
32570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32572 if (!SWIG_IsOK(res1)) {
32573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
32574 }
32575 arg1 = reinterpret_cast< wxEffects * >(argp1);
32576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
32577 if (!SWIG_IsOK(res2)) {
32578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
32579 }
32580 if (!argp2) {
32581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
32582 }
32583 arg2 = reinterpret_cast< wxDC * >(argp2);
32584 {
32585 arg3 = &temp3;
32586 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32587 }
32588 if (obj3) {
32589 ecode4 = SWIG_AsVal_int(obj3, &val4);
32590 if (!SWIG_IsOK(ecode4)) {
32591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
32592 }
32593 arg4 = static_cast< int >(val4);
32594 }
32595 {
32596 PyThreadState* __tstate = wxPyBeginAllowThreads();
32597 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
32598 wxPyEndAllowThreads(__tstate);
32599 if (PyErr_Occurred()) SWIG_fail;
32600 }
32601 resultobj = SWIG_Py_Void();
32602 return resultobj;
32603 fail:
32604 return NULL;
32605 }
32606
32607
32608 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32609 PyObject *resultobj = 0;
32610 wxEffects *arg1 = (wxEffects *) 0 ;
32611 wxRect *arg2 = 0 ;
32612 wxDC *arg3 = 0 ;
32613 wxBitmap *arg4 = 0 ;
32614 bool result;
32615 void *argp1 = 0 ;
32616 int res1 = 0 ;
32617 wxRect temp2 ;
32618 void *argp3 = 0 ;
32619 int res3 = 0 ;
32620 void *argp4 = 0 ;
32621 int res4 = 0 ;
32622 PyObject * obj0 = 0 ;
32623 PyObject * obj1 = 0 ;
32624 PyObject * obj2 = 0 ;
32625 PyObject * obj3 = 0 ;
32626 char * kwnames[] = {
32627 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
32628 };
32629
32630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
32632 if (!SWIG_IsOK(res1)) {
32633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
32634 }
32635 arg1 = reinterpret_cast< wxEffects * >(argp1);
32636 {
32637 arg2 = &temp2;
32638 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32639 }
32640 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
32641 if (!SWIG_IsOK(res3)) {
32642 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
32643 }
32644 if (!argp3) {
32645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
32646 }
32647 arg3 = reinterpret_cast< wxDC * >(argp3);
32648 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
32649 if (!SWIG_IsOK(res4)) {
32650 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
32651 }
32652 if (!argp4) {
32653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
32654 }
32655 arg4 = reinterpret_cast< wxBitmap * >(argp4);
32656 {
32657 PyThreadState* __tstate = wxPyBeginAllowThreads();
32658 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
32659 wxPyEndAllowThreads(__tstate);
32660 if (PyErr_Occurred()) SWIG_fail;
32661 }
32662 {
32663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32664 }
32665 return resultobj;
32666 fail:
32667 return NULL;
32668 }
32669
32670
32671 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32672 PyObject *obj;
32673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32674 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
32675 return SWIG_Py_Void();
32676 }
32677
32678 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32679 return SWIG_Python_InitShadowInstance(args);
32680 }
32681
32682 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32683 PyObject *resultobj = 0;
32684 int arg1 ;
32685 int arg2 ;
32686 bool arg3 ;
32687 wxSplitterRenderParams *result = 0 ;
32688 int val1 ;
32689 int ecode1 = 0 ;
32690 int val2 ;
32691 int ecode2 = 0 ;
32692 bool val3 ;
32693 int ecode3 = 0 ;
32694 PyObject * obj0 = 0 ;
32695 PyObject * obj1 = 0 ;
32696 PyObject * obj2 = 0 ;
32697 char * kwnames[] = {
32698 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
32699 };
32700
32701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32702 ecode1 = SWIG_AsVal_int(obj0, &val1);
32703 if (!SWIG_IsOK(ecode1)) {
32704 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
32705 }
32706 arg1 = static_cast< int >(val1);
32707 ecode2 = SWIG_AsVal_int(obj1, &val2);
32708 if (!SWIG_IsOK(ecode2)) {
32709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
32710 }
32711 arg2 = static_cast< int >(val2);
32712 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32713 if (!SWIG_IsOK(ecode3)) {
32714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
32715 }
32716 arg3 = static_cast< bool >(val3);
32717 {
32718 PyThreadState* __tstate = wxPyBeginAllowThreads();
32719 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
32720 wxPyEndAllowThreads(__tstate);
32721 if (PyErr_Occurred()) SWIG_fail;
32722 }
32723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
32724 return resultobj;
32725 fail:
32726 return NULL;
32727 }
32728
32729
32730 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32731 PyObject *resultobj = 0;
32732 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
32733 void *argp1 = 0 ;
32734 int res1 = 0 ;
32735 PyObject *swig_obj[1] ;
32736
32737 if (!args) SWIG_fail;
32738 swig_obj[0] = args;
32739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
32740 if (!SWIG_IsOK(res1)) {
32741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
32742 }
32743 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
32744 {
32745 PyThreadState* __tstate = wxPyBeginAllowThreads();
32746 delete arg1;
32747
32748 wxPyEndAllowThreads(__tstate);
32749 if (PyErr_Occurred()) SWIG_fail;
32750 }
32751 resultobj = SWIG_Py_Void();
32752 return resultobj;
32753 fail:
32754 return NULL;
32755 }
32756
32757
32758 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32759 PyObject *resultobj = 0;
32760 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
32761 int result;
32762 void *argp1 = 0 ;
32763 int res1 = 0 ;
32764 PyObject *swig_obj[1] ;
32765
32766 if (!args) SWIG_fail;
32767 swig_obj[0] = args;
32768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
32769 if (!SWIG_IsOK(res1)) {
32770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
32771 }
32772 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
32773 result = (int)(int) ((arg1)->widthSash);
32774 resultobj = SWIG_From_int(static_cast< int >(result));
32775 return resultobj;
32776 fail:
32777 return NULL;
32778 }
32779
32780
32781 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32782 PyObject *resultobj = 0;
32783 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
32784 int result;
32785 void *argp1 = 0 ;
32786 int res1 = 0 ;
32787 PyObject *swig_obj[1] ;
32788
32789 if (!args) SWIG_fail;
32790 swig_obj[0] = args;
32791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
32792 if (!SWIG_IsOK(res1)) {
32793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
32794 }
32795 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
32796 result = (int)(int) ((arg1)->border);
32797 resultobj = SWIG_From_int(static_cast< int >(result));
32798 return resultobj;
32799 fail:
32800 return NULL;
32801 }
32802
32803
32804 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32805 PyObject *resultobj = 0;
32806 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
32807 bool result;
32808 void *argp1 = 0 ;
32809 int res1 = 0 ;
32810 PyObject *swig_obj[1] ;
32811
32812 if (!args) SWIG_fail;
32813 swig_obj[0] = args;
32814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
32815 if (!SWIG_IsOK(res1)) {
32816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
32817 }
32818 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
32819 result = (bool)(bool) ((arg1)->isHotSensitive);
32820 resultobj = SWIG_From_bool(static_cast< bool >(result));
32821 return resultobj;
32822 fail:
32823 return NULL;
32824 }
32825
32826
32827 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32828 PyObject *obj;
32829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32830 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
32831 return SWIG_Py_Void();
32832 }
32833
32834 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32835 return SWIG_Python_InitShadowInstance(args);
32836 }
32837
32838 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32839 PyObject *resultobj = 0;
32840 wxHeaderButtonParams *result = 0 ;
32841
32842 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
32843 {
32844 PyThreadState* __tstate = wxPyBeginAllowThreads();
32845 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
32846 wxPyEndAllowThreads(__tstate);
32847 if (PyErr_Occurred()) SWIG_fail;
32848 }
32849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
32850 return resultobj;
32851 fail:
32852 return NULL;
32853 }
32854
32855
32856 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32857 PyObject *resultobj = 0;
32858 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
32859 void *argp1 = 0 ;
32860 int res1 = 0 ;
32861 PyObject *swig_obj[1] ;
32862
32863 if (!args) SWIG_fail;
32864 swig_obj[0] = args;
32865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
32866 if (!SWIG_IsOK(res1)) {
32867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
32868 }
32869 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
32870 {
32871 PyThreadState* __tstate = wxPyBeginAllowThreads();
32872 delete arg1;
32873
32874 wxPyEndAllowThreads(__tstate);
32875 if (PyErr_Occurred()) SWIG_fail;
32876 }
32877 resultobj = SWIG_Py_Void();
32878 return resultobj;
32879 fail:
32880 return NULL;
32881 }
32882
32883
32884 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32885 PyObject *resultobj = 0;
32886 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
32887 wxColour *arg2 = (wxColour *) 0 ;
32888 void *argp1 = 0 ;
32889 int res1 = 0 ;
32890 wxColour temp2 ;
32891 PyObject *swig_obj[2] ;
32892
32893 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
32894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
32895 if (!SWIG_IsOK(res1)) {
32896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
32897 }
32898 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
32899 {
32900 arg2 = &temp2;
32901 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
32902 }
32903 if (arg1) (arg1)->m_arrowColour = *arg2;
32904
32905 resultobj = SWIG_Py_Void();
32906 return resultobj;
32907 fail:
32908 return NULL;
32909 }
32910
32911
32912 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32913 PyObject *resultobj = 0;
32914 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
32915 wxColour *result = 0 ;
32916 void *argp1 = 0 ;
32917 int res1 = 0 ;
32918 PyObject *swig_obj[1] ;
32919
32920 if (!args) SWIG_fail;
32921 swig_obj[0] = args;
32922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
32923 if (!SWIG_IsOK(res1)) {
32924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
32925 }
32926 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
32927 result = (wxColour *)& ((arg1)->m_arrowColour);
32928 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32929 return resultobj;
32930 fail:
32931 return NULL;
32932 }
32933
32934
32935 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32936 PyObject *resultobj = 0;
32937 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
32938 wxColour *arg2 = (wxColour *) 0 ;
32939 void *argp1 = 0 ;
32940 int res1 = 0 ;
32941 wxColour temp2 ;
32942 PyObject *swig_obj[2] ;
32943
32944 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
32945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
32946 if (!SWIG_IsOK(res1)) {
32947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
32948 }
32949 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
32950 {
32951 arg2 = &temp2;
32952 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
32953 }
32954 if (arg1) (arg1)->m_selectionColour = *arg2;
32955
32956 resultobj = SWIG_Py_Void();
32957 return resultobj;
32958 fail:
32959 return NULL;
32960 }
32961
32962
32963 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32964 PyObject *resultobj = 0;
32965 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
32966 wxColour *result = 0 ;
32967 void *argp1 = 0 ;
32968 int res1 = 0 ;
32969 PyObject *swig_obj[1] ;
32970
32971 if (!args) SWIG_fail;
32972 swig_obj[0] = args;
32973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
32974 if (!SWIG_IsOK(res1)) {
32975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
32976 }
32977 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
32978 result = (wxColour *)& ((arg1)->m_selectionColour);
32979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
32980 return resultobj;
32981 fail:
32982 return NULL;
32983 }
32984
32985
32986 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32987 PyObject *resultobj = 0;
32988 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
32989 wxString *arg2 = (wxString *) 0 ;
32990 void *argp1 = 0 ;
32991 int res1 = 0 ;
32992 bool temp2 = false ;
32993 PyObject *swig_obj[2] ;
32994
32995 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
32996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
32997 if (!SWIG_IsOK(res1)) {
32998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
32999 }
33000 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33001 {
33002 arg2 = wxString_in_helper(swig_obj[1]);
33003 if (arg2 == NULL) SWIG_fail;
33004 temp2 = true;
33005 }
33006 if (arg1) (arg1)->m_labelText = *arg2;
33007
33008 resultobj = SWIG_Py_Void();
33009 {
33010 if (temp2)
33011 delete arg2;
33012 }
33013 return resultobj;
33014 fail:
33015 {
33016 if (temp2)
33017 delete arg2;
33018 }
33019 return NULL;
33020 }
33021
33022
33023 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33024 PyObject *resultobj = 0;
33025 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33026 wxString *result = 0 ;
33027 void *argp1 = 0 ;
33028 int res1 = 0 ;
33029 PyObject *swig_obj[1] ;
33030
33031 if (!args) SWIG_fail;
33032 swig_obj[0] = args;
33033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33034 if (!SWIG_IsOK(res1)) {
33035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33036 }
33037 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33038 result = (wxString *)& ((arg1)->m_labelText);
33039 {
33040 #if wxUSE_UNICODE
33041 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
33042 #else
33043 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
33044 #endif
33045 }
33046 return resultobj;
33047 fail:
33048 return NULL;
33049 }
33050
33051
33052 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33053 PyObject *resultobj = 0;
33054 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33055 wxFont *arg2 = (wxFont *) 0 ;
33056 void *argp1 = 0 ;
33057 int res1 = 0 ;
33058 void *argp2 = 0 ;
33059 int res2 = 0 ;
33060 PyObject *swig_obj[2] ;
33061
33062 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
33063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33064 if (!SWIG_IsOK(res1)) {
33065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33066 }
33067 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33068 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
33069 if (!SWIG_IsOK(res2)) {
33070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
33071 }
33072 arg2 = reinterpret_cast< wxFont * >(argp2);
33073 if (arg1) (arg1)->m_labelFont = *arg2;
33074
33075 resultobj = SWIG_Py_Void();
33076 return resultobj;
33077 fail:
33078 return NULL;
33079 }
33080
33081
33082 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33083 PyObject *resultobj = 0;
33084 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33085 wxFont *result = 0 ;
33086 void *argp1 = 0 ;
33087 int res1 = 0 ;
33088 PyObject *swig_obj[1] ;
33089
33090 if (!args) SWIG_fail;
33091 swig_obj[0] = args;
33092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33093 if (!SWIG_IsOK(res1)) {
33094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33095 }
33096 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33097 result = (wxFont *)& ((arg1)->m_labelFont);
33098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
33099 return resultobj;
33100 fail:
33101 return NULL;
33102 }
33103
33104
33105 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33106 PyObject *resultobj = 0;
33107 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33108 wxColour *arg2 = (wxColour *) 0 ;
33109 void *argp1 = 0 ;
33110 int res1 = 0 ;
33111 wxColour temp2 ;
33112 PyObject *swig_obj[2] ;
33113
33114 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
33115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33116 if (!SWIG_IsOK(res1)) {
33117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33118 }
33119 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33120 {
33121 arg2 = &temp2;
33122 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
33123 }
33124 if (arg1) (arg1)->m_labelColour = *arg2;
33125
33126 resultobj = SWIG_Py_Void();
33127 return resultobj;
33128 fail:
33129 return NULL;
33130 }
33131
33132
33133 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33134 PyObject *resultobj = 0;
33135 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33136 wxColour *result = 0 ;
33137 void *argp1 = 0 ;
33138 int res1 = 0 ;
33139 PyObject *swig_obj[1] ;
33140
33141 if (!args) SWIG_fail;
33142 swig_obj[0] = args;
33143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33144 if (!SWIG_IsOK(res1)) {
33145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33146 }
33147 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33148 result = (wxColour *)& ((arg1)->m_labelColour);
33149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
33150 return resultobj;
33151 fail:
33152 return NULL;
33153 }
33154
33155
33156 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33157 PyObject *resultobj = 0;
33158 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33159 wxBitmap *arg2 = (wxBitmap *) 0 ;
33160 void *argp1 = 0 ;
33161 int res1 = 0 ;
33162 void *argp2 = 0 ;
33163 int res2 = 0 ;
33164 PyObject *swig_obj[2] ;
33165
33166 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
33167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33168 if (!SWIG_IsOK(res1)) {
33169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33170 }
33171 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33172 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
33173 if (!SWIG_IsOK(res2)) {
33174 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
33175 }
33176 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33177 if (arg1) (arg1)->m_labelBitmap = *arg2;
33178
33179 resultobj = SWIG_Py_Void();
33180 return resultobj;
33181 fail:
33182 return NULL;
33183 }
33184
33185
33186 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33187 PyObject *resultobj = 0;
33188 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33189 wxBitmap *result = 0 ;
33190 void *argp1 = 0 ;
33191 int res1 = 0 ;
33192 PyObject *swig_obj[1] ;
33193
33194 if (!args) SWIG_fail;
33195 swig_obj[0] = args;
33196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33197 if (!SWIG_IsOK(res1)) {
33198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33199 }
33200 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33201 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
33202 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
33203 return resultobj;
33204 fail:
33205 return NULL;
33206 }
33207
33208
33209 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33210 PyObject *resultobj = 0;
33211 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33212 int arg2 ;
33213 void *argp1 = 0 ;
33214 int res1 = 0 ;
33215 int val2 ;
33216 int ecode2 = 0 ;
33217 PyObject *swig_obj[2] ;
33218
33219 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
33220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33221 if (!SWIG_IsOK(res1)) {
33222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33223 }
33224 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33225 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
33226 if (!SWIG_IsOK(ecode2)) {
33227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
33228 }
33229 arg2 = static_cast< int >(val2);
33230 if (arg1) (arg1)->m_labelAlignment = arg2;
33231
33232 resultobj = SWIG_Py_Void();
33233 return resultobj;
33234 fail:
33235 return NULL;
33236 }
33237
33238
33239 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33240 PyObject *resultobj = 0;
33241 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
33242 int result;
33243 void *argp1 = 0 ;
33244 int res1 = 0 ;
33245 PyObject *swig_obj[1] ;
33246
33247 if (!args) SWIG_fail;
33248 swig_obj[0] = args;
33249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33250 if (!SWIG_IsOK(res1)) {
33251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
33252 }
33253 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
33254 result = (int) ((arg1)->m_labelAlignment);
33255 resultobj = SWIG_From_int(static_cast< int >(result));
33256 return resultobj;
33257 fail:
33258 return NULL;
33259 }
33260
33261
33262 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33263 PyObject *obj;
33264 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33265 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
33266 return SWIG_Py_Void();
33267 }
33268
33269 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33270 return SWIG_Python_InitShadowInstance(args);
33271 }
33272
33273 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33274 PyObject *resultobj = 0;
33275 int arg1 ;
33276 int arg2 ;
33277 wxRendererVersion *result = 0 ;
33278 int val1 ;
33279 int ecode1 = 0 ;
33280 int val2 ;
33281 int ecode2 = 0 ;
33282 PyObject * obj0 = 0 ;
33283 PyObject * obj1 = 0 ;
33284 char * kwnames[] = {
33285 (char *) "version_",(char *) "age_", NULL
33286 };
33287
33288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
33289 ecode1 = SWIG_AsVal_int(obj0, &val1);
33290 if (!SWIG_IsOK(ecode1)) {
33291 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
33292 }
33293 arg1 = static_cast< int >(val1);
33294 ecode2 = SWIG_AsVal_int(obj1, &val2);
33295 if (!SWIG_IsOK(ecode2)) {
33296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
33297 }
33298 arg2 = static_cast< int >(val2);
33299 {
33300 PyThreadState* __tstate = wxPyBeginAllowThreads();
33301 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
33302 wxPyEndAllowThreads(__tstate);
33303 if (PyErr_Occurred()) SWIG_fail;
33304 }
33305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
33306 return resultobj;
33307 fail:
33308 return NULL;
33309 }
33310
33311
33312 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33313 PyObject *resultobj = 0;
33314 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33315 void *argp1 = 0 ;
33316 int res1 = 0 ;
33317 PyObject *swig_obj[1] ;
33318
33319 if (!args) SWIG_fail;
33320 swig_obj[0] = args;
33321 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
33322 if (!SWIG_IsOK(res1)) {
33323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33324 }
33325 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33326 {
33327 PyThreadState* __tstate = wxPyBeginAllowThreads();
33328 delete arg1;
33329
33330 wxPyEndAllowThreads(__tstate);
33331 if (PyErr_Occurred()) SWIG_fail;
33332 }
33333 resultobj = SWIG_Py_Void();
33334 return resultobj;
33335 fail:
33336 return NULL;
33337 }
33338
33339
33340 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33341 PyObject *resultobj = 0;
33342 wxRendererVersion *arg1 = 0 ;
33343 bool result;
33344 void *argp1 = 0 ;
33345 int res1 = 0 ;
33346 PyObject * obj0 = 0 ;
33347 char * kwnames[] = {
33348 (char *) "ver", NULL
33349 };
33350
33351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
33352 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
33353 if (!SWIG_IsOK(res1)) {
33354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33355 }
33356 if (!argp1) {
33357 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
33358 }
33359 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33360 {
33361 PyThreadState* __tstate = wxPyBeginAllowThreads();
33362 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
33363 wxPyEndAllowThreads(__tstate);
33364 if (PyErr_Occurred()) SWIG_fail;
33365 }
33366 {
33367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
33368 }
33369 return resultobj;
33370 fail:
33371 return NULL;
33372 }
33373
33374
33375 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33376 PyObject *resultobj = 0;
33377 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33378 int result;
33379 void *argp1 = 0 ;
33380 int res1 = 0 ;
33381 PyObject *swig_obj[1] ;
33382
33383 if (!args) SWIG_fail;
33384 swig_obj[0] = args;
33385 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33386 if (!SWIG_IsOK(res1)) {
33387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33388 }
33389 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33390 result = (int)(int) ((arg1)->version);
33391 resultobj = SWIG_From_int(static_cast< int >(result));
33392 return resultobj;
33393 fail:
33394 return NULL;
33395 }
33396
33397
33398 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33399 PyObject *resultobj = 0;
33400 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
33401 int result;
33402 void *argp1 = 0 ;
33403 int res1 = 0 ;
33404 PyObject *swig_obj[1] ;
33405
33406 if (!args) SWIG_fail;
33407 swig_obj[0] = args;
33408 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
33409 if (!SWIG_IsOK(res1)) {
33410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
33411 }
33412 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
33413 result = (int)(int) ((arg1)->age);
33414 resultobj = SWIG_From_int(static_cast< int >(result));
33415 return resultobj;
33416 fail:
33417 return NULL;
33418 }
33419
33420
33421 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33422 PyObject *obj;
33423 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
33424 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
33425 return SWIG_Py_Void();
33426 }
33427
33428 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
33429 return SWIG_Python_InitShadowInstance(args);
33430 }
33431
33432 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33433 PyObject *resultobj = 0;
33434 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33435 wxWindow *arg2 = (wxWindow *) 0 ;
33436 wxDC *arg3 = 0 ;
33437 wxRect *arg4 = 0 ;
33438 int arg5 = (int) 0 ;
33439 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33440 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
33441 void *argp1 = 0 ;
33442 int res1 = 0 ;
33443 void *argp2 = 0 ;
33444 int res2 = 0 ;
33445 void *argp3 = 0 ;
33446 int res3 = 0 ;
33447 wxRect temp4 ;
33448 int val5 ;
33449 int ecode5 = 0 ;
33450 int val6 ;
33451 int ecode6 = 0 ;
33452 void *argp7 = 0 ;
33453 int res7 = 0 ;
33454 PyObject * obj0 = 0 ;
33455 PyObject * obj1 = 0 ;
33456 PyObject * obj2 = 0 ;
33457 PyObject * obj3 = 0 ;
33458 PyObject * obj4 = 0 ;
33459 PyObject * obj5 = 0 ;
33460 PyObject * obj6 = 0 ;
33461 char * kwnames[] = {
33462 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
33463 };
33464
33465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33467 if (!SWIG_IsOK(res1)) {
33468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33469 }
33470 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33471 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33472 if (!SWIG_IsOK(res2)) {
33473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33474 }
33475 arg2 = reinterpret_cast< wxWindow * >(argp2);
33476 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33477 if (!SWIG_IsOK(res3)) {
33478 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33479 }
33480 if (!argp3) {
33481 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
33482 }
33483 arg3 = reinterpret_cast< wxDC * >(argp3);
33484 {
33485 arg4 = &temp4;
33486 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33487 }
33488 if (obj4) {
33489 ecode5 = SWIG_AsVal_int(obj4, &val5);
33490 if (!SWIG_IsOK(ecode5)) {
33491 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
33492 }
33493 arg5 = static_cast< int >(val5);
33494 }
33495 if (obj5) {
33496 ecode6 = SWIG_AsVal_int(obj5, &val6);
33497 if (!SWIG_IsOK(ecode6)) {
33498 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33499 }
33500 arg6 = static_cast< wxHeaderSortIconType >(val6);
33501 }
33502 if (obj6) {
33503 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33504 if (!SWIG_IsOK(res7)) {
33505 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33506 }
33507 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33508 }
33509 {
33510 PyThreadState* __tstate = wxPyBeginAllowThreads();
33511 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33512 wxPyEndAllowThreads(__tstate);
33513 if (PyErr_Occurred()) SWIG_fail;
33514 }
33515 resultobj = SWIG_Py_Void();
33516 return resultobj;
33517 fail:
33518 return NULL;
33519 }
33520
33521
33522 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33523 PyObject *resultobj = 0;
33524 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33525 wxWindow *arg2 = (wxWindow *) 0 ;
33526 wxDC *arg3 = 0 ;
33527 wxRect *arg4 = 0 ;
33528 int arg5 = (int) 0 ;
33529 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
33530 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
33531 void *argp1 = 0 ;
33532 int res1 = 0 ;
33533 void *argp2 = 0 ;
33534 int res2 = 0 ;
33535 void *argp3 = 0 ;
33536 int res3 = 0 ;
33537 wxRect temp4 ;
33538 int val5 ;
33539 int ecode5 = 0 ;
33540 int val6 ;
33541 int ecode6 = 0 ;
33542 void *argp7 = 0 ;
33543 int res7 = 0 ;
33544 PyObject * obj0 = 0 ;
33545 PyObject * obj1 = 0 ;
33546 PyObject * obj2 = 0 ;
33547 PyObject * obj3 = 0 ;
33548 PyObject * obj4 = 0 ;
33549 PyObject * obj5 = 0 ;
33550 PyObject * obj6 = 0 ;
33551 char * kwnames[] = {
33552 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
33553 };
33554
33555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33557 if (!SWIG_IsOK(res1)) {
33558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33559 }
33560 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33561 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33562 if (!SWIG_IsOK(res2)) {
33563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
33564 }
33565 arg2 = reinterpret_cast< wxWindow * >(argp2);
33566 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33567 if (!SWIG_IsOK(res3)) {
33568 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33569 }
33570 if (!argp3) {
33571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
33572 }
33573 arg3 = reinterpret_cast< wxDC * >(argp3);
33574 {
33575 arg4 = &temp4;
33576 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33577 }
33578 if (obj4) {
33579 ecode5 = SWIG_AsVal_int(obj4, &val5);
33580 if (!SWIG_IsOK(ecode5)) {
33581 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
33582 }
33583 arg5 = static_cast< int >(val5);
33584 }
33585 if (obj5) {
33586 ecode6 = SWIG_AsVal_int(obj5, &val6);
33587 if (!SWIG_IsOK(ecode6)) {
33588 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
33589 }
33590 arg6 = static_cast< wxHeaderSortIconType >(val6);
33591 }
33592 if (obj6) {
33593 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
33594 if (!SWIG_IsOK(res7)) {
33595 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
33596 }
33597 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
33598 }
33599 {
33600 PyThreadState* __tstate = wxPyBeginAllowThreads();
33601 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
33602 wxPyEndAllowThreads(__tstate);
33603 if (PyErr_Occurred()) SWIG_fail;
33604 }
33605 resultobj = SWIG_Py_Void();
33606 return resultobj;
33607 fail:
33608 return NULL;
33609 }
33610
33611
33612 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33613 PyObject *resultobj = 0;
33614 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33615 wxWindow *arg2 = (wxWindow *) 0 ;
33616 int result;
33617 void *argp1 = 0 ;
33618 int res1 = 0 ;
33619 void *argp2 = 0 ;
33620 int res2 = 0 ;
33621 PyObject * obj0 = 0 ;
33622 PyObject * obj1 = 0 ;
33623 char * kwnames[] = {
33624 (char *) "self",(char *) "win", NULL
33625 };
33626
33627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
33628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33629 if (!SWIG_IsOK(res1)) {
33630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33631 }
33632 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33634 if (!SWIG_IsOK(res2)) {
33635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
33636 }
33637 arg2 = reinterpret_cast< wxWindow * >(argp2);
33638 {
33639 PyThreadState* __tstate = wxPyBeginAllowThreads();
33640 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
33641 wxPyEndAllowThreads(__tstate);
33642 if (PyErr_Occurred()) SWIG_fail;
33643 }
33644 resultobj = SWIG_From_int(static_cast< int >(result));
33645 return resultobj;
33646 fail:
33647 return NULL;
33648 }
33649
33650
33651 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33652 PyObject *resultobj = 0;
33653 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33654 wxWindow *arg2 = (wxWindow *) 0 ;
33655 wxDC *arg3 = 0 ;
33656 wxRect *arg4 = 0 ;
33657 int arg5 = (int) 0 ;
33658 void *argp1 = 0 ;
33659 int res1 = 0 ;
33660 void *argp2 = 0 ;
33661 int res2 = 0 ;
33662 void *argp3 = 0 ;
33663 int res3 = 0 ;
33664 wxRect temp4 ;
33665 int val5 ;
33666 int ecode5 = 0 ;
33667 PyObject * obj0 = 0 ;
33668 PyObject * obj1 = 0 ;
33669 PyObject * obj2 = 0 ;
33670 PyObject * obj3 = 0 ;
33671 PyObject * obj4 = 0 ;
33672 char * kwnames[] = {
33673 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
33674 };
33675
33676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33678 if (!SWIG_IsOK(res1)) {
33679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33680 }
33681 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33682 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33683 if (!SWIG_IsOK(res2)) {
33684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33685 }
33686 arg2 = reinterpret_cast< wxWindow * >(argp2);
33687 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33688 if (!SWIG_IsOK(res3)) {
33689 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
33690 }
33691 if (!argp3) {
33692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
33693 }
33694 arg3 = reinterpret_cast< wxDC * >(argp3);
33695 {
33696 arg4 = &temp4;
33697 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33698 }
33699 if (obj4) {
33700 ecode5 = SWIG_AsVal_int(obj4, &val5);
33701 if (!SWIG_IsOK(ecode5)) {
33702 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
33703 }
33704 arg5 = static_cast< int >(val5);
33705 }
33706 {
33707 PyThreadState* __tstate = wxPyBeginAllowThreads();
33708 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
33709 wxPyEndAllowThreads(__tstate);
33710 if (PyErr_Occurred()) SWIG_fail;
33711 }
33712 resultobj = SWIG_Py_Void();
33713 return resultobj;
33714 fail:
33715 return NULL;
33716 }
33717
33718
33719 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33720 PyObject *resultobj = 0;
33721 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33722 wxWindow *arg2 = (wxWindow *) 0 ;
33723 wxDC *arg3 = 0 ;
33724 wxRect *arg4 = 0 ;
33725 int arg5 = (int) 0 ;
33726 void *argp1 = 0 ;
33727 int res1 = 0 ;
33728 void *argp2 = 0 ;
33729 int res2 = 0 ;
33730 void *argp3 = 0 ;
33731 int res3 = 0 ;
33732 wxRect temp4 ;
33733 int val5 ;
33734 int ecode5 = 0 ;
33735 PyObject * obj0 = 0 ;
33736 PyObject * obj1 = 0 ;
33737 PyObject * obj2 = 0 ;
33738 PyObject * obj3 = 0 ;
33739 PyObject * obj4 = 0 ;
33740 char * kwnames[] = {
33741 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
33742 };
33743
33744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33745 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33746 if (!SWIG_IsOK(res1)) {
33747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33748 }
33749 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33750 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33751 if (!SWIG_IsOK(res2)) {
33752 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
33753 }
33754 arg2 = reinterpret_cast< wxWindow * >(argp2);
33755 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33756 if (!SWIG_IsOK(res3)) {
33757 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
33758 }
33759 if (!argp3) {
33760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
33761 }
33762 arg3 = reinterpret_cast< wxDC * >(argp3);
33763 {
33764 arg4 = &temp4;
33765 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33766 }
33767 if (obj4) {
33768 ecode5 = SWIG_AsVal_int(obj4, &val5);
33769 if (!SWIG_IsOK(ecode5)) {
33770 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
33771 }
33772 arg5 = static_cast< int >(val5);
33773 }
33774 {
33775 PyThreadState* __tstate = wxPyBeginAllowThreads();
33776 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
33777 wxPyEndAllowThreads(__tstate);
33778 if (PyErr_Occurred()) SWIG_fail;
33779 }
33780 resultobj = SWIG_Py_Void();
33781 return resultobj;
33782 fail:
33783 return NULL;
33784 }
33785
33786
33787 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33788 PyObject *resultobj = 0;
33789 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33790 wxWindow *arg2 = (wxWindow *) 0 ;
33791 wxDC *arg3 = 0 ;
33792 wxSize *arg4 = 0 ;
33793 int arg5 ;
33794 wxOrientation arg6 ;
33795 int arg7 = (int) 0 ;
33796 void *argp1 = 0 ;
33797 int res1 = 0 ;
33798 void *argp2 = 0 ;
33799 int res2 = 0 ;
33800 void *argp3 = 0 ;
33801 int res3 = 0 ;
33802 wxSize temp4 ;
33803 int val5 ;
33804 int ecode5 = 0 ;
33805 int val6 ;
33806 int ecode6 = 0 ;
33807 int val7 ;
33808 int ecode7 = 0 ;
33809 PyObject * obj0 = 0 ;
33810 PyObject * obj1 = 0 ;
33811 PyObject * obj2 = 0 ;
33812 PyObject * obj3 = 0 ;
33813 PyObject * obj4 = 0 ;
33814 PyObject * obj5 = 0 ;
33815 PyObject * obj6 = 0 ;
33816 char * kwnames[] = {
33817 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
33818 };
33819
33820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33822 if (!SWIG_IsOK(res1)) {
33823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33824 }
33825 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33826 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33827 if (!SWIG_IsOK(res2)) {
33828 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
33829 }
33830 arg2 = reinterpret_cast< wxWindow * >(argp2);
33831 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33832 if (!SWIG_IsOK(res3)) {
33833 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
33834 }
33835 if (!argp3) {
33836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
33837 }
33838 arg3 = reinterpret_cast< wxDC * >(argp3);
33839 {
33840 arg4 = &temp4;
33841 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
33842 }
33843 ecode5 = SWIG_AsVal_int(obj4, &val5);
33844 if (!SWIG_IsOK(ecode5)) {
33845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
33846 }
33847 arg5 = static_cast< int >(val5);
33848 ecode6 = SWIG_AsVal_int(obj5, &val6);
33849 if (!SWIG_IsOK(ecode6)) {
33850 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
33851 }
33852 arg6 = static_cast< wxOrientation >(val6);
33853 if (obj6) {
33854 ecode7 = SWIG_AsVal_int(obj6, &val7);
33855 if (!SWIG_IsOK(ecode7)) {
33856 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
33857 }
33858 arg7 = static_cast< int >(val7);
33859 }
33860 {
33861 PyThreadState* __tstate = wxPyBeginAllowThreads();
33862 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
33863 wxPyEndAllowThreads(__tstate);
33864 if (PyErr_Occurred()) SWIG_fail;
33865 }
33866 resultobj = SWIG_Py_Void();
33867 return resultobj;
33868 fail:
33869 return NULL;
33870 }
33871
33872
33873 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33874 PyObject *resultobj = 0;
33875 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33876 wxWindow *arg2 = (wxWindow *) 0 ;
33877 wxDC *arg3 = 0 ;
33878 wxRect *arg4 = 0 ;
33879 int arg5 = (int) 0 ;
33880 void *argp1 = 0 ;
33881 int res1 = 0 ;
33882 void *argp2 = 0 ;
33883 int res2 = 0 ;
33884 void *argp3 = 0 ;
33885 int res3 = 0 ;
33886 wxRect temp4 ;
33887 int val5 ;
33888 int ecode5 = 0 ;
33889 PyObject * obj0 = 0 ;
33890 PyObject * obj1 = 0 ;
33891 PyObject * obj2 = 0 ;
33892 PyObject * obj3 = 0 ;
33893 PyObject * obj4 = 0 ;
33894 char * kwnames[] = {
33895 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
33896 };
33897
33898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33900 if (!SWIG_IsOK(res1)) {
33901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33902 }
33903 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33904 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33905 if (!SWIG_IsOK(res2)) {
33906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
33907 }
33908 arg2 = reinterpret_cast< wxWindow * >(argp2);
33909 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33910 if (!SWIG_IsOK(res3)) {
33911 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
33912 }
33913 if (!argp3) {
33914 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
33915 }
33916 arg3 = reinterpret_cast< wxDC * >(argp3);
33917 {
33918 arg4 = &temp4;
33919 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33920 }
33921 if (obj4) {
33922 ecode5 = SWIG_AsVal_int(obj4, &val5);
33923 if (!SWIG_IsOK(ecode5)) {
33924 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
33925 }
33926 arg5 = static_cast< int >(val5);
33927 }
33928 {
33929 PyThreadState* __tstate = wxPyBeginAllowThreads();
33930 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
33931 wxPyEndAllowThreads(__tstate);
33932 if (PyErr_Occurred()) SWIG_fail;
33933 }
33934 resultobj = SWIG_Py_Void();
33935 return resultobj;
33936 fail:
33937 return NULL;
33938 }
33939
33940
33941 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33942 PyObject *resultobj = 0;
33943 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
33944 wxWindow *arg2 = (wxWindow *) 0 ;
33945 wxDC *arg3 = 0 ;
33946 wxRect *arg4 = 0 ;
33947 int arg5 = (int) 0 ;
33948 void *argp1 = 0 ;
33949 int res1 = 0 ;
33950 void *argp2 = 0 ;
33951 int res2 = 0 ;
33952 void *argp3 = 0 ;
33953 int res3 = 0 ;
33954 wxRect temp4 ;
33955 int val5 ;
33956 int ecode5 = 0 ;
33957 PyObject * obj0 = 0 ;
33958 PyObject * obj1 = 0 ;
33959 PyObject * obj2 = 0 ;
33960 PyObject * obj3 = 0 ;
33961 PyObject * obj4 = 0 ;
33962 char * kwnames[] = {
33963 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
33964 };
33965
33966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
33968 if (!SWIG_IsOK(res1)) {
33969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
33970 }
33971 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
33972 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
33973 if (!SWIG_IsOK(res2)) {
33974 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
33975 }
33976 arg2 = reinterpret_cast< wxWindow * >(argp2);
33977 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
33978 if (!SWIG_IsOK(res3)) {
33979 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
33980 }
33981 if (!argp3) {
33982 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
33983 }
33984 arg3 = reinterpret_cast< wxDC * >(argp3);
33985 {
33986 arg4 = &temp4;
33987 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
33988 }
33989 if (obj4) {
33990 ecode5 = SWIG_AsVal_int(obj4, &val5);
33991 if (!SWIG_IsOK(ecode5)) {
33992 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
33993 }
33994 arg5 = static_cast< int >(val5);
33995 }
33996 {
33997 PyThreadState* __tstate = wxPyBeginAllowThreads();
33998 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
33999 wxPyEndAllowThreads(__tstate);
34000 if (PyErr_Occurred()) SWIG_fail;
34001 }
34002 resultobj = SWIG_Py_Void();
34003 return resultobj;
34004 fail:
34005 return NULL;
34006 }
34007
34008
34009 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34010 PyObject *resultobj = 0;
34011 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34012 wxWindow *arg2 = (wxWindow *) 0 ;
34013 wxDC *arg3 = 0 ;
34014 wxRect *arg4 = 0 ;
34015 int arg5 = (int) 0 ;
34016 void *argp1 = 0 ;
34017 int res1 = 0 ;
34018 void *argp2 = 0 ;
34019 int res2 = 0 ;
34020 void *argp3 = 0 ;
34021 int res3 = 0 ;
34022 wxRect temp4 ;
34023 int val5 ;
34024 int ecode5 = 0 ;
34025 PyObject * obj0 = 0 ;
34026 PyObject * obj1 = 0 ;
34027 PyObject * obj2 = 0 ;
34028 PyObject * obj3 = 0 ;
34029 PyObject * obj4 = 0 ;
34030 char * kwnames[] = {
34031 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34032 };
34033
34034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34036 if (!SWIG_IsOK(res1)) {
34037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34038 }
34039 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34040 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34041 if (!SWIG_IsOK(res2)) {
34042 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
34043 }
34044 arg2 = reinterpret_cast< wxWindow * >(argp2);
34045 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34046 if (!SWIG_IsOK(res3)) {
34047 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34048 }
34049 if (!argp3) {
34050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
34051 }
34052 arg3 = reinterpret_cast< wxDC * >(argp3);
34053 {
34054 arg4 = &temp4;
34055 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34056 }
34057 if (obj4) {
34058 ecode5 = SWIG_AsVal_int(obj4, &val5);
34059 if (!SWIG_IsOK(ecode5)) {
34060 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
34061 }
34062 arg5 = static_cast< int >(val5);
34063 }
34064 {
34065 PyThreadState* __tstate = wxPyBeginAllowThreads();
34066 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
34067 wxPyEndAllowThreads(__tstate);
34068 if (PyErr_Occurred()) SWIG_fail;
34069 }
34070 resultobj = SWIG_Py_Void();
34071 return resultobj;
34072 fail:
34073 return NULL;
34074 }
34075
34076
34077 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34078 PyObject *resultobj = 0;
34079 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34080 wxWindow *arg2 = (wxWindow *) 0 ;
34081 wxDC *arg3 = 0 ;
34082 wxRect *arg4 = 0 ;
34083 int arg5 = (int) 0 ;
34084 void *argp1 = 0 ;
34085 int res1 = 0 ;
34086 void *argp2 = 0 ;
34087 int res2 = 0 ;
34088 void *argp3 = 0 ;
34089 int res3 = 0 ;
34090 wxRect temp4 ;
34091 int val5 ;
34092 int ecode5 = 0 ;
34093 PyObject * obj0 = 0 ;
34094 PyObject * obj1 = 0 ;
34095 PyObject * obj2 = 0 ;
34096 PyObject * obj3 = 0 ;
34097 PyObject * obj4 = 0 ;
34098 char * kwnames[] = {
34099 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34100 };
34101
34102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34104 if (!SWIG_IsOK(res1)) {
34105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34106 }
34107 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34108 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34109 if (!SWIG_IsOK(res2)) {
34110 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
34111 }
34112 arg2 = reinterpret_cast< wxWindow * >(argp2);
34113 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34114 if (!SWIG_IsOK(res3)) {
34115 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34116 }
34117 if (!argp3) {
34118 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
34119 }
34120 arg3 = reinterpret_cast< wxDC * >(argp3);
34121 {
34122 arg4 = &temp4;
34123 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34124 }
34125 if (obj4) {
34126 ecode5 = SWIG_AsVal_int(obj4, &val5);
34127 if (!SWIG_IsOK(ecode5)) {
34128 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
34129 }
34130 arg5 = static_cast< int >(val5);
34131 }
34132 {
34133 PyThreadState* __tstate = wxPyBeginAllowThreads();
34134 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
34135 wxPyEndAllowThreads(__tstate);
34136 if (PyErr_Occurred()) SWIG_fail;
34137 }
34138 resultobj = SWIG_Py_Void();
34139 return resultobj;
34140 fail:
34141 return NULL;
34142 }
34143
34144
34145 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34146 PyObject *resultobj = 0;
34147 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34148 wxWindow *arg2 = (wxWindow *) 0 ;
34149 wxDC *arg3 = 0 ;
34150 wxRect *arg4 = 0 ;
34151 int arg5 = (int) 0 ;
34152 void *argp1 = 0 ;
34153 int res1 = 0 ;
34154 void *argp2 = 0 ;
34155 int res2 = 0 ;
34156 void *argp3 = 0 ;
34157 int res3 = 0 ;
34158 wxRect temp4 ;
34159 int val5 ;
34160 int ecode5 = 0 ;
34161 PyObject * obj0 = 0 ;
34162 PyObject * obj1 = 0 ;
34163 PyObject * obj2 = 0 ;
34164 PyObject * obj3 = 0 ;
34165 PyObject * obj4 = 0 ;
34166 char * kwnames[] = {
34167 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
34168 };
34169
34170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34172 if (!SWIG_IsOK(res1)) {
34173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34174 }
34175 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34176 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34177 if (!SWIG_IsOK(res2)) {
34178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
34179 }
34180 arg2 = reinterpret_cast< wxWindow * >(argp2);
34181 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
34182 if (!SWIG_IsOK(res3)) {
34183 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34184 }
34185 if (!argp3) {
34186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
34187 }
34188 arg3 = reinterpret_cast< wxDC * >(argp3);
34189 {
34190 arg4 = &temp4;
34191 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34192 }
34193 if (obj4) {
34194 ecode5 = SWIG_AsVal_int(obj4, &val5);
34195 if (!SWIG_IsOK(ecode5)) {
34196 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
34197 }
34198 arg5 = static_cast< int >(val5);
34199 }
34200 {
34201 PyThreadState* __tstate = wxPyBeginAllowThreads();
34202 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
34203 wxPyEndAllowThreads(__tstate);
34204 if (PyErr_Occurred()) SWIG_fail;
34205 }
34206 resultobj = SWIG_Py_Void();
34207 return resultobj;
34208 fail:
34209 return NULL;
34210 }
34211
34212
34213 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34214 PyObject *resultobj = 0;
34215 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34216 wxWindow *arg2 = (wxWindow *) 0 ;
34217 SwigValueWrapper<wxSplitterRenderParams > result;
34218 void *argp1 = 0 ;
34219 int res1 = 0 ;
34220 void *argp2 = 0 ;
34221 int res2 = 0 ;
34222 PyObject * obj0 = 0 ;
34223 PyObject * obj1 = 0 ;
34224 char * kwnames[] = {
34225 (char *) "self",(char *) "win", NULL
34226 };
34227
34228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
34229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34230 if (!SWIG_IsOK(res1)) {
34231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34232 }
34233 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34234 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
34235 if (!SWIG_IsOK(res2)) {
34236 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
34237 }
34238 arg2 = reinterpret_cast< wxWindow * >(argp2);
34239 {
34240 PyThreadState* __tstate = wxPyBeginAllowThreads();
34241 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
34242 wxPyEndAllowThreads(__tstate);
34243 if (PyErr_Occurred()) SWIG_fail;
34244 }
34245 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
34246 return resultobj;
34247 fail:
34248 return NULL;
34249 }
34250
34251
34252 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34253 PyObject *resultobj = 0;
34254 wxRendererNative *result = 0 ;
34255
34256 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
34257 {
34258 if (!wxPyCheckForApp()) SWIG_fail;
34259 PyThreadState* __tstate = wxPyBeginAllowThreads();
34260 {
34261 wxRendererNative &_result_ref = wxRendererNative::Get();
34262 result = (wxRendererNative *) &_result_ref;
34263 }
34264 wxPyEndAllowThreads(__tstate);
34265 if (PyErr_Occurred()) SWIG_fail;
34266 }
34267 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34268 return resultobj;
34269 fail:
34270 return NULL;
34271 }
34272
34273
34274 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34275 PyObject *resultobj = 0;
34276 wxRendererNative *result = 0 ;
34277
34278 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
34279 {
34280 if (!wxPyCheckForApp()) SWIG_fail;
34281 PyThreadState* __tstate = wxPyBeginAllowThreads();
34282 {
34283 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
34284 result = (wxRendererNative *) &_result_ref;
34285 }
34286 wxPyEndAllowThreads(__tstate);
34287 if (PyErr_Occurred()) SWIG_fail;
34288 }
34289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34290 return resultobj;
34291 fail:
34292 return NULL;
34293 }
34294
34295
34296 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34297 PyObject *resultobj = 0;
34298 wxRendererNative *result = 0 ;
34299
34300 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
34301 {
34302 if (!wxPyCheckForApp()) SWIG_fail;
34303 PyThreadState* __tstate = wxPyBeginAllowThreads();
34304 {
34305 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
34306 result = (wxRendererNative *) &_result_ref;
34307 }
34308 wxPyEndAllowThreads(__tstate);
34309 if (PyErr_Occurred()) SWIG_fail;
34310 }
34311 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34312 return resultobj;
34313 fail:
34314 return NULL;
34315 }
34316
34317
34318 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34319 PyObject *resultobj = 0;
34320 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34321 wxRendererNative *result = 0 ;
34322 void *argp1 = 0 ;
34323 int res1 = 0 ;
34324 PyObject * obj0 = 0 ;
34325 char * kwnames[] = {
34326 (char *) "renderer", NULL
34327 };
34328
34329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
34330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34331 if (!SWIG_IsOK(res1)) {
34332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
34333 }
34334 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34335 {
34336 if (!wxPyCheckForApp()) SWIG_fail;
34337 PyThreadState* __tstate = wxPyBeginAllowThreads();
34338 result = (wxRendererNative *)wxRendererNative::Set(arg1);
34339 wxPyEndAllowThreads(__tstate);
34340 if (PyErr_Occurred()) SWIG_fail;
34341 }
34342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
34343 return resultobj;
34344 fail:
34345 return NULL;
34346 }
34347
34348
34349 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34350 PyObject *resultobj = 0;
34351 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
34352 SwigValueWrapper<wxRendererVersion > result;
34353 void *argp1 = 0 ;
34354 int res1 = 0 ;
34355 PyObject *swig_obj[1] ;
34356
34357 if (!args) SWIG_fail;
34358 swig_obj[0] = args;
34359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
34360 if (!SWIG_IsOK(res1)) {
34361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
34362 }
34363 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
34364 {
34365 PyThreadState* __tstate = wxPyBeginAllowThreads();
34366 result = ((wxRendererNative const *)arg1)->GetVersion();
34367 wxPyEndAllowThreads(__tstate);
34368 if (PyErr_Occurred()) SWIG_fail;
34369 }
34370 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
34371 return resultobj;
34372 fail:
34373 return NULL;
34374 }
34375
34376
34377 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34378 PyObject *obj;
34379 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34380 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
34381 return SWIG_Py_Void();
34382 }
34383
34384 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34385 PyObject *resultobj = 0;
34386 wxPseudoDC *result = 0 ;
34387
34388 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
34389 {
34390 PyThreadState* __tstate = wxPyBeginAllowThreads();
34391 result = (wxPseudoDC *)new wxPseudoDC();
34392 wxPyEndAllowThreads(__tstate);
34393 if (PyErr_Occurred()) SWIG_fail;
34394 }
34395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
34396 return resultobj;
34397 fail:
34398 return NULL;
34399 }
34400
34401
34402 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34403 PyObject *resultobj = 0;
34404 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34405 void *argp1 = 0 ;
34406 int res1 = 0 ;
34407 PyObject *swig_obj[1] ;
34408
34409 if (!args) SWIG_fail;
34410 swig_obj[0] = args;
34411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34412 if (!SWIG_IsOK(res1)) {
34413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34414 }
34415 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34416 {
34417 PyThreadState* __tstate = wxPyBeginAllowThreads();
34418 (arg1)->BeginDrawing();
34419 wxPyEndAllowThreads(__tstate);
34420 if (PyErr_Occurred()) SWIG_fail;
34421 }
34422 resultobj = SWIG_Py_Void();
34423 return resultobj;
34424 fail:
34425 return NULL;
34426 }
34427
34428
34429 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34430 PyObject *resultobj = 0;
34431 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34432 void *argp1 = 0 ;
34433 int res1 = 0 ;
34434 PyObject *swig_obj[1] ;
34435
34436 if (!args) SWIG_fail;
34437 swig_obj[0] = args;
34438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34439 if (!SWIG_IsOK(res1)) {
34440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34441 }
34442 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34443 {
34444 PyThreadState* __tstate = wxPyBeginAllowThreads();
34445 (arg1)->EndDrawing();
34446 wxPyEndAllowThreads(__tstate);
34447 if (PyErr_Occurred()) SWIG_fail;
34448 }
34449 resultobj = SWIG_Py_Void();
34450 return resultobj;
34451 fail:
34452 return NULL;
34453 }
34454
34455
34456 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34457 PyObject *resultobj = 0;
34458 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34459 void *argp1 = 0 ;
34460 int res1 = 0 ;
34461 PyObject *swig_obj[1] ;
34462
34463 if (!args) SWIG_fail;
34464 swig_obj[0] = args;
34465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
34466 if (!SWIG_IsOK(res1)) {
34467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34468 }
34469 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34470 {
34471 PyThreadState* __tstate = wxPyBeginAllowThreads();
34472 delete arg1;
34473
34474 wxPyEndAllowThreads(__tstate);
34475 if (PyErr_Occurred()) SWIG_fail;
34476 }
34477 resultobj = SWIG_Py_Void();
34478 return resultobj;
34479 fail:
34480 return NULL;
34481 }
34482
34483
34484 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34485 PyObject *resultobj = 0;
34486 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34487 void *argp1 = 0 ;
34488 int res1 = 0 ;
34489 PyObject *swig_obj[1] ;
34490
34491 if (!args) SWIG_fail;
34492 swig_obj[0] = args;
34493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34494 if (!SWIG_IsOK(res1)) {
34495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34496 }
34497 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34498 {
34499 PyThreadState* __tstate = wxPyBeginAllowThreads();
34500 (arg1)->RemoveAll();
34501 wxPyEndAllowThreads(__tstate);
34502 if (PyErr_Occurred()) SWIG_fail;
34503 }
34504 resultobj = SWIG_Py_Void();
34505 return resultobj;
34506 fail:
34507 return NULL;
34508 }
34509
34510
34511 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34512 PyObject *resultobj = 0;
34513 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34514 int result;
34515 void *argp1 = 0 ;
34516 int res1 = 0 ;
34517 PyObject *swig_obj[1] ;
34518
34519 if (!args) SWIG_fail;
34520 swig_obj[0] = args;
34521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34522 if (!SWIG_IsOK(res1)) {
34523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34524 }
34525 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34526 {
34527 PyThreadState* __tstate = wxPyBeginAllowThreads();
34528 result = (int)(arg1)->GetLen();
34529 wxPyEndAllowThreads(__tstate);
34530 if (PyErr_Occurred()) SWIG_fail;
34531 }
34532 resultobj = SWIG_From_int(static_cast< int >(result));
34533 return resultobj;
34534 fail:
34535 return NULL;
34536 }
34537
34538
34539 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34540 PyObject *resultobj = 0;
34541 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34542 int arg2 ;
34543 void *argp1 = 0 ;
34544 int res1 = 0 ;
34545 int val2 ;
34546 int ecode2 = 0 ;
34547 PyObject * obj0 = 0 ;
34548 PyObject * obj1 = 0 ;
34549 char * kwnames[] = {
34550 (char *) "self",(char *) "id", NULL
34551 };
34552
34553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
34554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34555 if (!SWIG_IsOK(res1)) {
34556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34557 }
34558 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34559 ecode2 = SWIG_AsVal_int(obj1, &val2);
34560 if (!SWIG_IsOK(ecode2)) {
34561 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
34562 }
34563 arg2 = static_cast< int >(val2);
34564 {
34565 PyThreadState* __tstate = wxPyBeginAllowThreads();
34566 (arg1)->SetId(arg2);
34567 wxPyEndAllowThreads(__tstate);
34568 if (PyErr_Occurred()) SWIG_fail;
34569 }
34570 resultobj = SWIG_Py_Void();
34571 return resultobj;
34572 fail:
34573 return NULL;
34574 }
34575
34576
34577 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34578 PyObject *resultobj = 0;
34579 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34580 int arg2 ;
34581 void *argp1 = 0 ;
34582 int res1 = 0 ;
34583 int val2 ;
34584 int ecode2 = 0 ;
34585 PyObject * obj0 = 0 ;
34586 PyObject * obj1 = 0 ;
34587 char * kwnames[] = {
34588 (char *) "self",(char *) "id", NULL
34589 };
34590
34591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
34592 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34593 if (!SWIG_IsOK(res1)) {
34594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34595 }
34596 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34597 ecode2 = SWIG_AsVal_int(obj1, &val2);
34598 if (!SWIG_IsOK(ecode2)) {
34599 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
34600 }
34601 arg2 = static_cast< int >(val2);
34602 {
34603 PyThreadState* __tstate = wxPyBeginAllowThreads();
34604 (arg1)->ClearId(arg2);
34605 wxPyEndAllowThreads(__tstate);
34606 if (PyErr_Occurred()) SWIG_fail;
34607 }
34608 resultobj = SWIG_Py_Void();
34609 return resultobj;
34610 fail:
34611 return NULL;
34612 }
34613
34614
34615 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34616 PyObject *resultobj = 0;
34617 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34618 int arg2 ;
34619 void *argp1 = 0 ;
34620 int res1 = 0 ;
34621 int val2 ;
34622 int ecode2 = 0 ;
34623 PyObject * obj0 = 0 ;
34624 PyObject * obj1 = 0 ;
34625 char * kwnames[] = {
34626 (char *) "self",(char *) "id", NULL
34627 };
34628
34629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
34630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34631 if (!SWIG_IsOK(res1)) {
34632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34633 }
34634 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34635 ecode2 = SWIG_AsVal_int(obj1, &val2);
34636 if (!SWIG_IsOK(ecode2)) {
34637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
34638 }
34639 arg2 = static_cast< int >(val2);
34640 {
34641 PyThreadState* __tstate = wxPyBeginAllowThreads();
34642 (arg1)->RemoveId(arg2);
34643 wxPyEndAllowThreads(__tstate);
34644 if (PyErr_Occurred()) SWIG_fail;
34645 }
34646 resultobj = SWIG_Py_Void();
34647 return resultobj;
34648 fail:
34649 return NULL;
34650 }
34651
34652
34653 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34654 PyObject *resultobj = 0;
34655 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34656 int arg2 ;
34657 int arg3 ;
34658 int arg4 ;
34659 void *argp1 = 0 ;
34660 int res1 = 0 ;
34661 int val2 ;
34662 int ecode2 = 0 ;
34663 int val3 ;
34664 int ecode3 = 0 ;
34665 int val4 ;
34666 int ecode4 = 0 ;
34667 PyObject * obj0 = 0 ;
34668 PyObject * obj1 = 0 ;
34669 PyObject * obj2 = 0 ;
34670 PyObject * obj3 = 0 ;
34671 char * kwnames[] = {
34672 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
34673 };
34674
34675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34677 if (!SWIG_IsOK(res1)) {
34678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34679 }
34680 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34681 ecode2 = SWIG_AsVal_int(obj1, &val2);
34682 if (!SWIG_IsOK(ecode2)) {
34683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
34684 }
34685 arg2 = static_cast< int >(val2);
34686 ecode3 = SWIG_AsVal_int(obj2, &val3);
34687 if (!SWIG_IsOK(ecode3)) {
34688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
34689 }
34690 arg3 = static_cast< int >(val3);
34691 ecode4 = SWIG_AsVal_int(obj3, &val4);
34692 if (!SWIG_IsOK(ecode4)) {
34693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
34694 }
34695 arg4 = static_cast< int >(val4);
34696 {
34697 PyThreadState* __tstate = wxPyBeginAllowThreads();
34698 (arg1)->TranslateId(arg2,arg3,arg4);
34699 wxPyEndAllowThreads(__tstate);
34700 if (PyErr_Occurred()) SWIG_fail;
34701 }
34702 resultobj = SWIG_Py_Void();
34703 return resultobj;
34704 fail:
34705 return NULL;
34706 }
34707
34708
34709 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34710 PyObject *resultobj = 0;
34711 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34712 int arg2 ;
34713 bool arg3 = (bool) true ;
34714 void *argp1 = 0 ;
34715 int res1 = 0 ;
34716 int val2 ;
34717 int ecode2 = 0 ;
34718 bool val3 ;
34719 int ecode3 = 0 ;
34720 PyObject * obj0 = 0 ;
34721 PyObject * obj1 = 0 ;
34722 PyObject * obj2 = 0 ;
34723 char * kwnames[] = {
34724 (char *) "self",(char *) "id",(char *) "greyout", NULL
34725 };
34726
34727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34729 if (!SWIG_IsOK(res1)) {
34730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34731 }
34732 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34733 ecode2 = SWIG_AsVal_int(obj1, &val2);
34734 if (!SWIG_IsOK(ecode2)) {
34735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
34736 }
34737 arg2 = static_cast< int >(val2);
34738 if (obj2) {
34739 ecode3 = SWIG_AsVal_bool(obj2, &val3);
34740 if (!SWIG_IsOK(ecode3)) {
34741 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
34742 }
34743 arg3 = static_cast< bool >(val3);
34744 }
34745 {
34746 PyThreadState* __tstate = wxPyBeginAllowThreads();
34747 (arg1)->SetIdGreyedOut(arg2,arg3);
34748 wxPyEndAllowThreads(__tstate);
34749 if (PyErr_Occurred()) SWIG_fail;
34750 }
34751 resultobj = SWIG_Py_Void();
34752 return resultobj;
34753 fail:
34754 return NULL;
34755 }
34756
34757
34758 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34759 PyObject *resultobj = 0;
34760 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34761 int arg2 ;
34762 bool result;
34763 void *argp1 = 0 ;
34764 int res1 = 0 ;
34765 int val2 ;
34766 int ecode2 = 0 ;
34767 PyObject * obj0 = 0 ;
34768 PyObject * obj1 = 0 ;
34769 char * kwnames[] = {
34770 (char *) "self",(char *) "id", NULL
34771 };
34772
34773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
34774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34775 if (!SWIG_IsOK(res1)) {
34776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34777 }
34778 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34779 ecode2 = SWIG_AsVal_int(obj1, &val2);
34780 if (!SWIG_IsOK(ecode2)) {
34781 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
34782 }
34783 arg2 = static_cast< int >(val2);
34784 {
34785 PyThreadState* __tstate = wxPyBeginAllowThreads();
34786 result = (bool)(arg1)->GetIdGreyedOut(arg2);
34787 wxPyEndAllowThreads(__tstate);
34788 if (PyErr_Occurred()) SWIG_fail;
34789 }
34790 {
34791 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
34792 }
34793 return resultobj;
34794 fail:
34795 return NULL;
34796 }
34797
34798
34799 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34800 PyObject *resultobj = 0;
34801 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34802 int arg2 ;
34803 int arg3 ;
34804 int arg4 = (int) 1 ;
34805 wxColor const &arg5_defvalue = *wxWHITE ;
34806 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
34807 PyObject *result = 0 ;
34808 void *argp1 = 0 ;
34809 int res1 = 0 ;
34810 int val2 ;
34811 int ecode2 = 0 ;
34812 int val3 ;
34813 int ecode3 = 0 ;
34814 int val4 ;
34815 int ecode4 = 0 ;
34816 void *argp5 = 0 ;
34817 int res5 = 0 ;
34818 PyObject * obj0 = 0 ;
34819 PyObject * obj1 = 0 ;
34820 PyObject * obj2 = 0 ;
34821 PyObject * obj3 = 0 ;
34822 PyObject * obj4 = 0 ;
34823 char * kwnames[] = {
34824 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
34825 };
34826
34827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34829 if (!SWIG_IsOK(res1)) {
34830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34831 }
34832 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34833 ecode2 = SWIG_AsVal_int(obj1, &val2);
34834 if (!SWIG_IsOK(ecode2)) {
34835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
34836 }
34837 arg2 = static_cast< int >(val2);
34838 ecode3 = SWIG_AsVal_int(obj2, &val3);
34839 if (!SWIG_IsOK(ecode3)) {
34840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
34841 }
34842 arg3 = static_cast< int >(val3);
34843 if (obj3) {
34844 ecode4 = SWIG_AsVal_int(obj3, &val4);
34845 if (!SWIG_IsOK(ecode4)) {
34846 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
34847 }
34848 arg4 = static_cast< int >(val4);
34849 }
34850 if (obj4) {
34851 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
34852 if (!SWIG_IsOK(res5)) {
34853 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
34854 }
34855 if (!argp5) {
34856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
34857 }
34858 arg5 = reinterpret_cast< wxColor * >(argp5);
34859 }
34860 {
34861 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
34862 if (PyErr_Occurred()) SWIG_fail;
34863 }
34864 resultobj = result;
34865 return resultobj;
34866 fail:
34867 return NULL;
34868 }
34869
34870
34871 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34872 PyObject *resultobj = 0;
34873 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34874 int arg2 ;
34875 int arg3 ;
34876 PyObject *result = 0 ;
34877 void *argp1 = 0 ;
34878 int res1 = 0 ;
34879 int val2 ;
34880 int ecode2 = 0 ;
34881 int val3 ;
34882 int ecode3 = 0 ;
34883 PyObject * obj0 = 0 ;
34884 PyObject * obj1 = 0 ;
34885 PyObject * obj2 = 0 ;
34886 char * kwnames[] = {
34887 (char *) "self",(char *) "x",(char *) "y", NULL
34888 };
34889
34890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34892 if (!SWIG_IsOK(res1)) {
34893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34894 }
34895 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34896 ecode2 = SWIG_AsVal_int(obj1, &val2);
34897 if (!SWIG_IsOK(ecode2)) {
34898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
34899 }
34900 arg2 = static_cast< int >(val2);
34901 ecode3 = SWIG_AsVal_int(obj2, &val3);
34902 if (!SWIG_IsOK(ecode3)) {
34903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
34904 }
34905 arg3 = static_cast< int >(val3);
34906 {
34907 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
34908 if (PyErr_Occurred()) SWIG_fail;
34909 }
34910 resultobj = result;
34911 return resultobj;
34912 fail:
34913 return NULL;
34914 }
34915
34916
34917 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34918 PyObject *resultobj = 0;
34919 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34920 int arg2 ;
34921 wxDC *arg3 = (wxDC *) 0 ;
34922 void *argp1 = 0 ;
34923 int res1 = 0 ;
34924 int val2 ;
34925 int ecode2 = 0 ;
34926 void *argp3 = 0 ;
34927 int res3 = 0 ;
34928 PyObject * obj0 = 0 ;
34929 PyObject * obj1 = 0 ;
34930 PyObject * obj2 = 0 ;
34931 char * kwnames[] = {
34932 (char *) "self",(char *) "id",(char *) "dc", NULL
34933 };
34934
34935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34937 if (!SWIG_IsOK(res1)) {
34938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34939 }
34940 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34941 ecode2 = SWIG_AsVal_int(obj1, &val2);
34942 if (!SWIG_IsOK(ecode2)) {
34943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
34944 }
34945 arg2 = static_cast< int >(val2);
34946 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
34947 if (!SWIG_IsOK(res3)) {
34948 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
34949 }
34950 arg3 = reinterpret_cast< wxDC * >(argp3);
34951 {
34952 PyThreadState* __tstate = wxPyBeginAllowThreads();
34953 (arg1)->DrawIdToDC(arg2,arg3);
34954 wxPyEndAllowThreads(__tstate);
34955 if (PyErr_Occurred()) SWIG_fail;
34956 }
34957 resultobj = SWIG_Py_Void();
34958 return resultobj;
34959 fail:
34960 return NULL;
34961 }
34962
34963
34964 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34965 PyObject *resultobj = 0;
34966 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34967 int arg2 ;
34968 wxRect *arg3 = 0 ;
34969 void *argp1 = 0 ;
34970 int res1 = 0 ;
34971 int val2 ;
34972 int ecode2 = 0 ;
34973 wxRect temp3 ;
34974 PyObject * obj0 = 0 ;
34975 PyObject * obj1 = 0 ;
34976 PyObject * obj2 = 0 ;
34977 char * kwnames[] = {
34978 (char *) "self",(char *) "id",(char *) "rect", NULL
34979 };
34980
34981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34983 if (!SWIG_IsOK(res1)) {
34984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34985 }
34986 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34987 ecode2 = SWIG_AsVal_int(obj1, &val2);
34988 if (!SWIG_IsOK(ecode2)) {
34989 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
34990 }
34991 arg2 = static_cast< int >(val2);
34992 {
34993 arg3 = &temp3;
34994 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34995 }
34996 {
34997 PyThreadState* __tstate = wxPyBeginAllowThreads();
34998 (arg1)->SetIdBounds(arg2,*arg3);
34999 wxPyEndAllowThreads(__tstate);
35000 if (PyErr_Occurred()) SWIG_fail;
35001 }
35002 resultobj = SWIG_Py_Void();
35003 return resultobj;
35004 fail:
35005 return NULL;
35006 }
35007
35008
35009 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35010 PyObject *resultobj = 0;
35011 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35012 int arg2 ;
35013 wxRect result;
35014 void *argp1 = 0 ;
35015 int res1 = 0 ;
35016 int val2 ;
35017 int ecode2 = 0 ;
35018 PyObject * obj0 = 0 ;
35019 PyObject * obj1 = 0 ;
35020 char * kwnames[] = {
35021 (char *) "self",(char *) "id", NULL
35022 };
35023
35024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
35025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35026 if (!SWIG_IsOK(res1)) {
35027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35028 }
35029 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35030 ecode2 = SWIG_AsVal_int(obj1, &val2);
35031 if (!SWIG_IsOK(ecode2)) {
35032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
35033 }
35034 arg2 = static_cast< int >(val2);
35035 {
35036 PyThreadState* __tstate = wxPyBeginAllowThreads();
35037 result = wxPseudoDC_GetIdBounds(arg1,arg2);
35038 wxPyEndAllowThreads(__tstate);
35039 if (PyErr_Occurred()) SWIG_fail;
35040 }
35041 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
35042 return resultobj;
35043 fail:
35044 return NULL;
35045 }
35046
35047
35048 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35049 PyObject *resultobj = 0;
35050 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35051 wxDC *arg2 = (wxDC *) 0 ;
35052 wxRect *arg3 = 0 ;
35053 void *argp1 = 0 ;
35054 int res1 = 0 ;
35055 void *argp2 = 0 ;
35056 int res2 = 0 ;
35057 wxRect temp3 ;
35058 PyObject * obj0 = 0 ;
35059 PyObject * obj1 = 0 ;
35060 PyObject * obj2 = 0 ;
35061 char * kwnames[] = {
35062 (char *) "self",(char *) "dc",(char *) "rect", NULL
35063 };
35064
35065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35067 if (!SWIG_IsOK(res1)) {
35068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35069 }
35070 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35071 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35072 if (!SWIG_IsOK(res2)) {
35073 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
35074 }
35075 arg2 = reinterpret_cast< wxDC * >(argp2);
35076 {
35077 arg3 = &temp3;
35078 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
35079 }
35080 {
35081 PyThreadState* __tstate = wxPyBeginAllowThreads();
35082 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
35083 wxPyEndAllowThreads(__tstate);
35084 if (PyErr_Occurred()) SWIG_fail;
35085 }
35086 resultobj = SWIG_Py_Void();
35087 return resultobj;
35088 fail:
35089 return NULL;
35090 }
35091
35092
35093 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35094 PyObject *resultobj = 0;
35095 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35096 wxDC *arg2 = (wxDC *) 0 ;
35097 wxRegion *arg3 = 0 ;
35098 void *argp1 = 0 ;
35099 int res1 = 0 ;
35100 void *argp2 = 0 ;
35101 int res2 = 0 ;
35102 void *argp3 = 0 ;
35103 int res3 = 0 ;
35104 PyObject * obj0 = 0 ;
35105 PyObject * obj1 = 0 ;
35106 PyObject * obj2 = 0 ;
35107 char * kwnames[] = {
35108 (char *) "self",(char *) "dc",(char *) "region", NULL
35109 };
35110
35111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35113 if (!SWIG_IsOK(res1)) {
35114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35115 }
35116 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35117 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35118 if (!SWIG_IsOK(res2)) {
35119 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
35120 }
35121 arg2 = reinterpret_cast< wxDC * >(argp2);
35122 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
35123 if (!SWIG_IsOK(res3)) {
35124 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35125 }
35126 if (!argp3) {
35127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
35128 }
35129 arg3 = reinterpret_cast< wxRegion * >(argp3);
35130 {
35131 PyThreadState* __tstate = wxPyBeginAllowThreads();
35132 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
35133 wxPyEndAllowThreads(__tstate);
35134 if (PyErr_Occurred()) SWIG_fail;
35135 }
35136 resultobj = SWIG_Py_Void();
35137 return resultobj;
35138 fail:
35139 return NULL;
35140 }
35141
35142
35143 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35144 PyObject *resultobj = 0;
35145 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35146 wxDC *arg2 = (wxDC *) 0 ;
35147 void *argp1 = 0 ;
35148 int res1 = 0 ;
35149 void *argp2 = 0 ;
35150 int res2 = 0 ;
35151 PyObject * obj0 = 0 ;
35152 PyObject * obj1 = 0 ;
35153 char * kwnames[] = {
35154 (char *) "self",(char *) "dc", NULL
35155 };
35156
35157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
35158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35159 if (!SWIG_IsOK(res1)) {
35160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35161 }
35162 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35163 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
35164 if (!SWIG_IsOK(res2)) {
35165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
35166 }
35167 arg2 = reinterpret_cast< wxDC * >(argp2);
35168 {
35169 PyThreadState* __tstate = wxPyBeginAllowThreads();
35170 (arg1)->DrawToDC(arg2);
35171 wxPyEndAllowThreads(__tstate);
35172 if (PyErr_Occurred()) SWIG_fail;
35173 }
35174 resultobj = SWIG_Py_Void();
35175 return resultobj;
35176 fail:
35177 return NULL;
35178 }
35179
35180
35181 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35182 PyObject *resultobj = 0;
35183 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35184 int arg2 ;
35185 int arg3 ;
35186 wxColour *arg4 = 0 ;
35187 int arg5 = (int) wxFLOOD_SURFACE ;
35188 void *argp1 = 0 ;
35189 int res1 = 0 ;
35190 int val2 ;
35191 int ecode2 = 0 ;
35192 int val3 ;
35193 int ecode3 = 0 ;
35194 wxColour temp4 ;
35195 int val5 ;
35196 int ecode5 = 0 ;
35197 PyObject * obj0 = 0 ;
35198 PyObject * obj1 = 0 ;
35199 PyObject * obj2 = 0 ;
35200 PyObject * obj3 = 0 ;
35201 PyObject * obj4 = 0 ;
35202 char * kwnames[] = {
35203 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
35204 };
35205
35206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35207 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35208 if (!SWIG_IsOK(res1)) {
35209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35210 }
35211 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35212 ecode2 = SWIG_AsVal_int(obj1, &val2);
35213 if (!SWIG_IsOK(ecode2)) {
35214 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
35215 }
35216 arg2 = static_cast< int >(val2);
35217 ecode3 = SWIG_AsVal_int(obj2, &val3);
35218 if (!SWIG_IsOK(ecode3)) {
35219 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
35220 }
35221 arg3 = static_cast< int >(val3);
35222 {
35223 arg4 = &temp4;
35224 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
35225 }
35226 if (obj4) {
35227 ecode5 = SWIG_AsVal_int(obj4, &val5);
35228 if (!SWIG_IsOK(ecode5)) {
35229 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
35230 }
35231 arg5 = static_cast< int >(val5);
35232 }
35233 {
35234 PyThreadState* __tstate = wxPyBeginAllowThreads();
35235 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
35236 wxPyEndAllowThreads(__tstate);
35237 if (PyErr_Occurred()) SWIG_fail;
35238 }
35239 resultobj = SWIG_Py_Void();
35240 return resultobj;
35241 fail:
35242 return NULL;
35243 }
35244
35245
35246 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35247 PyObject *resultobj = 0;
35248 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35249 wxPoint *arg2 = 0 ;
35250 wxColour *arg3 = 0 ;
35251 int arg4 = (int) wxFLOOD_SURFACE ;
35252 void *argp1 = 0 ;
35253 int res1 = 0 ;
35254 wxPoint temp2 ;
35255 wxColour temp3 ;
35256 int val4 ;
35257 int ecode4 = 0 ;
35258 PyObject * obj0 = 0 ;
35259 PyObject * obj1 = 0 ;
35260 PyObject * obj2 = 0 ;
35261 PyObject * obj3 = 0 ;
35262 char * kwnames[] = {
35263 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
35264 };
35265
35266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35268 if (!SWIG_IsOK(res1)) {
35269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35270 }
35271 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35272 {
35273 arg2 = &temp2;
35274 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35275 }
35276 {
35277 arg3 = &temp3;
35278 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
35279 }
35280 if (obj3) {
35281 ecode4 = SWIG_AsVal_int(obj3, &val4);
35282 if (!SWIG_IsOK(ecode4)) {
35283 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
35284 }
35285 arg4 = static_cast< int >(val4);
35286 }
35287 {
35288 PyThreadState* __tstate = wxPyBeginAllowThreads();
35289 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
35290 wxPyEndAllowThreads(__tstate);
35291 if (PyErr_Occurred()) SWIG_fail;
35292 }
35293 resultobj = SWIG_Py_Void();
35294 return resultobj;
35295 fail:
35296 return NULL;
35297 }
35298
35299
35300 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35301 PyObject *resultobj = 0;
35302 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35303 int arg2 ;
35304 int arg3 ;
35305 int arg4 ;
35306 int arg5 ;
35307 void *argp1 = 0 ;
35308 int res1 = 0 ;
35309 int val2 ;
35310 int ecode2 = 0 ;
35311 int val3 ;
35312 int ecode3 = 0 ;
35313 int val4 ;
35314 int ecode4 = 0 ;
35315 int val5 ;
35316 int ecode5 = 0 ;
35317 PyObject * obj0 = 0 ;
35318 PyObject * obj1 = 0 ;
35319 PyObject * obj2 = 0 ;
35320 PyObject * obj3 = 0 ;
35321 PyObject * obj4 = 0 ;
35322 char * kwnames[] = {
35323 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
35324 };
35325
35326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35328 if (!SWIG_IsOK(res1)) {
35329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35330 }
35331 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35332 ecode2 = SWIG_AsVal_int(obj1, &val2);
35333 if (!SWIG_IsOK(ecode2)) {
35334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
35335 }
35336 arg2 = static_cast< int >(val2);
35337 ecode3 = SWIG_AsVal_int(obj2, &val3);
35338 if (!SWIG_IsOK(ecode3)) {
35339 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
35340 }
35341 arg3 = static_cast< int >(val3);
35342 ecode4 = SWIG_AsVal_int(obj3, &val4);
35343 if (!SWIG_IsOK(ecode4)) {
35344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
35345 }
35346 arg4 = static_cast< int >(val4);
35347 ecode5 = SWIG_AsVal_int(obj4, &val5);
35348 if (!SWIG_IsOK(ecode5)) {
35349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
35350 }
35351 arg5 = static_cast< int >(val5);
35352 {
35353 PyThreadState* __tstate = wxPyBeginAllowThreads();
35354 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
35355 wxPyEndAllowThreads(__tstate);
35356 if (PyErr_Occurred()) SWIG_fail;
35357 }
35358 resultobj = SWIG_Py_Void();
35359 return resultobj;
35360 fail:
35361 return NULL;
35362 }
35363
35364
35365 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35366 PyObject *resultobj = 0;
35367 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35368 wxPoint *arg2 = 0 ;
35369 wxPoint *arg3 = 0 ;
35370 void *argp1 = 0 ;
35371 int res1 = 0 ;
35372 wxPoint temp2 ;
35373 wxPoint temp3 ;
35374 PyObject * obj0 = 0 ;
35375 PyObject * obj1 = 0 ;
35376 PyObject * obj2 = 0 ;
35377 char * kwnames[] = {
35378 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
35379 };
35380
35381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35383 if (!SWIG_IsOK(res1)) {
35384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35385 }
35386 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35387 {
35388 arg2 = &temp2;
35389 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35390 }
35391 {
35392 arg3 = &temp3;
35393 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35394 }
35395 {
35396 PyThreadState* __tstate = wxPyBeginAllowThreads();
35397 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
35398 wxPyEndAllowThreads(__tstate);
35399 if (PyErr_Occurred()) SWIG_fail;
35400 }
35401 resultobj = SWIG_Py_Void();
35402 return resultobj;
35403 fail:
35404 return NULL;
35405 }
35406
35407
35408 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35409 PyObject *resultobj = 0;
35410 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35411 int arg2 ;
35412 int arg3 ;
35413 void *argp1 = 0 ;
35414 int res1 = 0 ;
35415 int val2 ;
35416 int ecode2 = 0 ;
35417 int val3 ;
35418 int ecode3 = 0 ;
35419 PyObject * obj0 = 0 ;
35420 PyObject * obj1 = 0 ;
35421 PyObject * obj2 = 0 ;
35422 char * kwnames[] = {
35423 (char *) "self",(char *) "x",(char *) "y", NULL
35424 };
35425
35426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35428 if (!SWIG_IsOK(res1)) {
35429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35430 }
35431 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35432 ecode2 = SWIG_AsVal_int(obj1, &val2);
35433 if (!SWIG_IsOK(ecode2)) {
35434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
35435 }
35436 arg2 = static_cast< int >(val2);
35437 ecode3 = SWIG_AsVal_int(obj2, &val3);
35438 if (!SWIG_IsOK(ecode3)) {
35439 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
35440 }
35441 arg3 = static_cast< int >(val3);
35442 {
35443 PyThreadState* __tstate = wxPyBeginAllowThreads();
35444 (arg1)->CrossHair(arg2,arg3);
35445 wxPyEndAllowThreads(__tstate);
35446 if (PyErr_Occurred()) SWIG_fail;
35447 }
35448 resultobj = SWIG_Py_Void();
35449 return resultobj;
35450 fail:
35451 return NULL;
35452 }
35453
35454
35455 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35456 PyObject *resultobj = 0;
35457 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35458 wxPoint *arg2 = 0 ;
35459 void *argp1 = 0 ;
35460 int res1 = 0 ;
35461 wxPoint temp2 ;
35462 PyObject * obj0 = 0 ;
35463 PyObject * obj1 = 0 ;
35464 char * kwnames[] = {
35465 (char *) "self",(char *) "pt", NULL
35466 };
35467
35468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
35469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35470 if (!SWIG_IsOK(res1)) {
35471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35472 }
35473 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35474 {
35475 arg2 = &temp2;
35476 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35477 }
35478 {
35479 PyThreadState* __tstate = wxPyBeginAllowThreads();
35480 (arg1)->CrossHair((wxPoint const &)*arg2);
35481 wxPyEndAllowThreads(__tstate);
35482 if (PyErr_Occurred()) SWIG_fail;
35483 }
35484 resultobj = SWIG_Py_Void();
35485 return resultobj;
35486 fail:
35487 return NULL;
35488 }
35489
35490
35491 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35492 PyObject *resultobj = 0;
35493 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35494 int arg2 ;
35495 int arg3 ;
35496 int arg4 ;
35497 int arg5 ;
35498 int arg6 ;
35499 int arg7 ;
35500 void *argp1 = 0 ;
35501 int res1 = 0 ;
35502 int val2 ;
35503 int ecode2 = 0 ;
35504 int val3 ;
35505 int ecode3 = 0 ;
35506 int val4 ;
35507 int ecode4 = 0 ;
35508 int val5 ;
35509 int ecode5 = 0 ;
35510 int val6 ;
35511 int ecode6 = 0 ;
35512 int val7 ;
35513 int ecode7 = 0 ;
35514 PyObject * obj0 = 0 ;
35515 PyObject * obj1 = 0 ;
35516 PyObject * obj2 = 0 ;
35517 PyObject * obj3 = 0 ;
35518 PyObject * obj4 = 0 ;
35519 PyObject * obj5 = 0 ;
35520 PyObject * obj6 = 0 ;
35521 char * kwnames[] = {
35522 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
35523 };
35524
35525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35527 if (!SWIG_IsOK(res1)) {
35528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35529 }
35530 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35531 ecode2 = SWIG_AsVal_int(obj1, &val2);
35532 if (!SWIG_IsOK(ecode2)) {
35533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
35534 }
35535 arg2 = static_cast< int >(val2);
35536 ecode3 = SWIG_AsVal_int(obj2, &val3);
35537 if (!SWIG_IsOK(ecode3)) {
35538 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
35539 }
35540 arg3 = static_cast< int >(val3);
35541 ecode4 = SWIG_AsVal_int(obj3, &val4);
35542 if (!SWIG_IsOK(ecode4)) {
35543 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
35544 }
35545 arg4 = static_cast< int >(val4);
35546 ecode5 = SWIG_AsVal_int(obj4, &val5);
35547 if (!SWIG_IsOK(ecode5)) {
35548 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
35549 }
35550 arg5 = static_cast< int >(val5);
35551 ecode6 = SWIG_AsVal_int(obj5, &val6);
35552 if (!SWIG_IsOK(ecode6)) {
35553 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
35554 }
35555 arg6 = static_cast< int >(val6);
35556 ecode7 = SWIG_AsVal_int(obj6, &val7);
35557 if (!SWIG_IsOK(ecode7)) {
35558 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
35559 }
35560 arg7 = static_cast< int >(val7);
35561 {
35562 PyThreadState* __tstate = wxPyBeginAllowThreads();
35563 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
35564 wxPyEndAllowThreads(__tstate);
35565 if (PyErr_Occurred()) SWIG_fail;
35566 }
35567 resultobj = SWIG_Py_Void();
35568 return resultobj;
35569 fail:
35570 return NULL;
35571 }
35572
35573
35574 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35575 PyObject *resultobj = 0;
35576 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35577 wxPoint *arg2 = 0 ;
35578 wxPoint *arg3 = 0 ;
35579 wxPoint *arg4 = 0 ;
35580 void *argp1 = 0 ;
35581 int res1 = 0 ;
35582 wxPoint temp2 ;
35583 wxPoint temp3 ;
35584 wxPoint temp4 ;
35585 PyObject * obj0 = 0 ;
35586 PyObject * obj1 = 0 ;
35587 PyObject * obj2 = 0 ;
35588 PyObject * obj3 = 0 ;
35589 char * kwnames[] = {
35590 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
35591 };
35592
35593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
35594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35595 if (!SWIG_IsOK(res1)) {
35596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35597 }
35598 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35599 {
35600 arg2 = &temp2;
35601 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35602 }
35603 {
35604 arg3 = &temp3;
35605 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
35606 }
35607 {
35608 arg4 = &temp4;
35609 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
35610 }
35611 {
35612 PyThreadState* __tstate = wxPyBeginAllowThreads();
35613 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
35614 wxPyEndAllowThreads(__tstate);
35615 if (PyErr_Occurred()) SWIG_fail;
35616 }
35617 resultobj = SWIG_Py_Void();
35618 return resultobj;
35619 fail:
35620 return NULL;
35621 }
35622
35623
35624 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35625 PyObject *resultobj = 0;
35626 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35627 int arg2 ;
35628 int arg3 ;
35629 int arg4 ;
35630 int arg5 ;
35631 void *argp1 = 0 ;
35632 int res1 = 0 ;
35633 int val2 ;
35634 int ecode2 = 0 ;
35635 int val3 ;
35636 int ecode3 = 0 ;
35637 int val4 ;
35638 int ecode4 = 0 ;
35639 int val5 ;
35640 int ecode5 = 0 ;
35641 PyObject * obj0 = 0 ;
35642 PyObject * obj1 = 0 ;
35643 PyObject * obj2 = 0 ;
35644 PyObject * obj3 = 0 ;
35645 PyObject * obj4 = 0 ;
35646 char * kwnames[] = {
35647 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
35648 };
35649
35650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35652 if (!SWIG_IsOK(res1)) {
35653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35654 }
35655 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35656 ecode2 = SWIG_AsVal_int(obj1, &val2);
35657 if (!SWIG_IsOK(ecode2)) {
35658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
35659 }
35660 arg2 = static_cast< int >(val2);
35661 ecode3 = SWIG_AsVal_int(obj2, &val3);
35662 if (!SWIG_IsOK(ecode3)) {
35663 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
35664 }
35665 arg3 = static_cast< int >(val3);
35666 ecode4 = SWIG_AsVal_int(obj3, &val4);
35667 if (!SWIG_IsOK(ecode4)) {
35668 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
35669 }
35670 arg4 = static_cast< int >(val4);
35671 ecode5 = SWIG_AsVal_int(obj4, &val5);
35672 if (!SWIG_IsOK(ecode5)) {
35673 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
35674 }
35675 arg5 = static_cast< int >(val5);
35676 {
35677 PyThreadState* __tstate = wxPyBeginAllowThreads();
35678 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
35679 wxPyEndAllowThreads(__tstate);
35680 if (PyErr_Occurred()) SWIG_fail;
35681 }
35682 resultobj = SWIG_Py_Void();
35683 return resultobj;
35684 fail:
35685 return NULL;
35686 }
35687
35688
35689 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35690 PyObject *resultobj = 0;
35691 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35692 wxRect *arg2 = 0 ;
35693 void *argp1 = 0 ;
35694 int res1 = 0 ;
35695 wxRect temp2 ;
35696 PyObject * obj0 = 0 ;
35697 PyObject * obj1 = 0 ;
35698 char * kwnames[] = {
35699 (char *) "self",(char *) "rect", NULL
35700 };
35701
35702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
35703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35704 if (!SWIG_IsOK(res1)) {
35705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35706 }
35707 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35708 {
35709 arg2 = &temp2;
35710 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
35711 }
35712 {
35713 PyThreadState* __tstate = wxPyBeginAllowThreads();
35714 (arg1)->DrawCheckMark((wxRect const &)*arg2);
35715 wxPyEndAllowThreads(__tstate);
35716 if (PyErr_Occurred()) SWIG_fail;
35717 }
35718 resultobj = SWIG_Py_Void();
35719 return resultobj;
35720 fail:
35721 return NULL;
35722 }
35723
35724
35725 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35726 PyObject *resultobj = 0;
35727 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35728 int arg2 ;
35729 int arg3 ;
35730 int arg4 ;
35731 int arg5 ;
35732 double arg6 ;
35733 double arg7 ;
35734 void *argp1 = 0 ;
35735 int res1 = 0 ;
35736 int val2 ;
35737 int ecode2 = 0 ;
35738 int val3 ;
35739 int ecode3 = 0 ;
35740 int val4 ;
35741 int ecode4 = 0 ;
35742 int val5 ;
35743 int ecode5 = 0 ;
35744 double val6 ;
35745 int ecode6 = 0 ;
35746 double val7 ;
35747 int ecode7 = 0 ;
35748 PyObject * obj0 = 0 ;
35749 PyObject * obj1 = 0 ;
35750 PyObject * obj2 = 0 ;
35751 PyObject * obj3 = 0 ;
35752 PyObject * obj4 = 0 ;
35753 PyObject * obj5 = 0 ;
35754 PyObject * obj6 = 0 ;
35755 char * kwnames[] = {
35756 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
35757 };
35758
35759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
35760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35761 if (!SWIG_IsOK(res1)) {
35762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35763 }
35764 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35765 ecode2 = SWIG_AsVal_int(obj1, &val2);
35766 if (!SWIG_IsOK(ecode2)) {
35767 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
35768 }
35769 arg2 = static_cast< int >(val2);
35770 ecode3 = SWIG_AsVal_int(obj2, &val3);
35771 if (!SWIG_IsOK(ecode3)) {
35772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
35773 }
35774 arg3 = static_cast< int >(val3);
35775 ecode4 = SWIG_AsVal_int(obj3, &val4);
35776 if (!SWIG_IsOK(ecode4)) {
35777 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
35778 }
35779 arg4 = static_cast< int >(val4);
35780 ecode5 = SWIG_AsVal_int(obj4, &val5);
35781 if (!SWIG_IsOK(ecode5)) {
35782 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
35783 }
35784 arg5 = static_cast< int >(val5);
35785 ecode6 = SWIG_AsVal_double(obj5, &val6);
35786 if (!SWIG_IsOK(ecode6)) {
35787 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
35788 }
35789 arg6 = static_cast< double >(val6);
35790 ecode7 = SWIG_AsVal_double(obj6, &val7);
35791 if (!SWIG_IsOK(ecode7)) {
35792 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
35793 }
35794 arg7 = static_cast< double >(val7);
35795 {
35796 PyThreadState* __tstate = wxPyBeginAllowThreads();
35797 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
35798 wxPyEndAllowThreads(__tstate);
35799 if (PyErr_Occurred()) SWIG_fail;
35800 }
35801 resultobj = SWIG_Py_Void();
35802 return resultobj;
35803 fail:
35804 return NULL;
35805 }
35806
35807
35808 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35809 PyObject *resultobj = 0;
35810 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35811 wxPoint *arg2 = 0 ;
35812 wxSize *arg3 = 0 ;
35813 double arg4 ;
35814 double arg5 ;
35815 void *argp1 = 0 ;
35816 int res1 = 0 ;
35817 wxPoint temp2 ;
35818 wxSize temp3 ;
35819 double val4 ;
35820 int ecode4 = 0 ;
35821 double val5 ;
35822 int ecode5 = 0 ;
35823 PyObject * obj0 = 0 ;
35824 PyObject * obj1 = 0 ;
35825 PyObject * obj2 = 0 ;
35826 PyObject * obj3 = 0 ;
35827 PyObject * obj4 = 0 ;
35828 char * kwnames[] = {
35829 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
35830 };
35831
35832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35834 if (!SWIG_IsOK(res1)) {
35835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35836 }
35837 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35838 {
35839 arg2 = &temp2;
35840 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35841 }
35842 {
35843 arg3 = &temp3;
35844 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
35845 }
35846 ecode4 = SWIG_AsVal_double(obj3, &val4);
35847 if (!SWIG_IsOK(ecode4)) {
35848 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
35849 }
35850 arg4 = static_cast< double >(val4);
35851 ecode5 = SWIG_AsVal_double(obj4, &val5);
35852 if (!SWIG_IsOK(ecode5)) {
35853 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
35854 }
35855 arg5 = static_cast< double >(val5);
35856 {
35857 PyThreadState* __tstate = wxPyBeginAllowThreads();
35858 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
35859 wxPyEndAllowThreads(__tstate);
35860 if (PyErr_Occurred()) SWIG_fail;
35861 }
35862 resultobj = SWIG_Py_Void();
35863 return resultobj;
35864 fail:
35865 return NULL;
35866 }
35867
35868
35869 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35870 PyObject *resultobj = 0;
35871 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35872 int arg2 ;
35873 int arg3 ;
35874 void *argp1 = 0 ;
35875 int res1 = 0 ;
35876 int val2 ;
35877 int ecode2 = 0 ;
35878 int val3 ;
35879 int ecode3 = 0 ;
35880 PyObject * obj0 = 0 ;
35881 PyObject * obj1 = 0 ;
35882 PyObject * obj2 = 0 ;
35883 char * kwnames[] = {
35884 (char *) "self",(char *) "x",(char *) "y", NULL
35885 };
35886
35887 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
35888 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35889 if (!SWIG_IsOK(res1)) {
35890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35891 }
35892 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35893 ecode2 = SWIG_AsVal_int(obj1, &val2);
35894 if (!SWIG_IsOK(ecode2)) {
35895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
35896 }
35897 arg2 = static_cast< int >(val2);
35898 ecode3 = SWIG_AsVal_int(obj2, &val3);
35899 if (!SWIG_IsOK(ecode3)) {
35900 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
35901 }
35902 arg3 = static_cast< int >(val3);
35903 {
35904 PyThreadState* __tstate = wxPyBeginAllowThreads();
35905 (arg1)->DrawPoint(arg2,arg3);
35906 wxPyEndAllowThreads(__tstate);
35907 if (PyErr_Occurred()) SWIG_fail;
35908 }
35909 resultobj = SWIG_Py_Void();
35910 return resultobj;
35911 fail:
35912 return NULL;
35913 }
35914
35915
35916 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35917 PyObject *resultobj = 0;
35918 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35919 wxPoint *arg2 = 0 ;
35920 void *argp1 = 0 ;
35921 int res1 = 0 ;
35922 wxPoint temp2 ;
35923 PyObject * obj0 = 0 ;
35924 PyObject * obj1 = 0 ;
35925 char * kwnames[] = {
35926 (char *) "self",(char *) "pt", NULL
35927 };
35928
35929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
35930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35931 if (!SWIG_IsOK(res1)) {
35932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35933 }
35934 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35935 {
35936 arg2 = &temp2;
35937 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
35938 }
35939 {
35940 PyThreadState* __tstate = wxPyBeginAllowThreads();
35941 (arg1)->DrawPoint((wxPoint const &)*arg2);
35942 wxPyEndAllowThreads(__tstate);
35943 if (PyErr_Occurred()) SWIG_fail;
35944 }
35945 resultobj = SWIG_Py_Void();
35946 return resultobj;
35947 fail:
35948 return NULL;
35949 }
35950
35951
35952 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35953 PyObject *resultobj = 0;
35954 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35955 int arg2 ;
35956 int arg3 ;
35957 int arg4 ;
35958 int arg5 ;
35959 void *argp1 = 0 ;
35960 int res1 = 0 ;
35961 int val2 ;
35962 int ecode2 = 0 ;
35963 int val3 ;
35964 int ecode3 = 0 ;
35965 int val4 ;
35966 int ecode4 = 0 ;
35967 int val5 ;
35968 int ecode5 = 0 ;
35969 PyObject * obj0 = 0 ;
35970 PyObject * obj1 = 0 ;
35971 PyObject * obj2 = 0 ;
35972 PyObject * obj3 = 0 ;
35973 PyObject * obj4 = 0 ;
35974 char * kwnames[] = {
35975 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
35976 };
35977
35978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
35979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35980 if (!SWIG_IsOK(res1)) {
35981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35982 }
35983 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35984 ecode2 = SWIG_AsVal_int(obj1, &val2);
35985 if (!SWIG_IsOK(ecode2)) {
35986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
35987 }
35988 arg2 = static_cast< int >(val2);
35989 ecode3 = SWIG_AsVal_int(obj2, &val3);
35990 if (!SWIG_IsOK(ecode3)) {
35991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
35992 }
35993 arg3 = static_cast< int >(val3);
35994 ecode4 = SWIG_AsVal_int(obj3, &val4);
35995 if (!SWIG_IsOK(ecode4)) {
35996 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
35997 }
35998 arg4 = static_cast< int >(val4);
35999 ecode5 = SWIG_AsVal_int(obj4, &val5);
36000 if (!SWIG_IsOK(ecode5)) {
36001 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
36002 }
36003 arg5 = static_cast< int >(val5);
36004 {
36005 PyThreadState* __tstate = wxPyBeginAllowThreads();
36006 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
36007 wxPyEndAllowThreads(__tstate);
36008 if (PyErr_Occurred()) SWIG_fail;
36009 }
36010 resultobj = SWIG_Py_Void();
36011 return resultobj;
36012 fail:
36013 return NULL;
36014 }
36015
36016
36017 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36018 PyObject *resultobj = 0;
36019 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36020 wxRect *arg2 = 0 ;
36021 void *argp1 = 0 ;
36022 int res1 = 0 ;
36023 wxRect temp2 ;
36024 PyObject * obj0 = 0 ;
36025 PyObject * obj1 = 0 ;
36026 char * kwnames[] = {
36027 (char *) "self",(char *) "rect", NULL
36028 };
36029
36030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
36031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36032 if (!SWIG_IsOK(res1)) {
36033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36034 }
36035 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36036 {
36037 arg2 = &temp2;
36038 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36039 }
36040 {
36041 PyThreadState* __tstate = wxPyBeginAllowThreads();
36042 (arg1)->DrawRectangle((wxRect const &)*arg2);
36043 wxPyEndAllowThreads(__tstate);
36044 if (PyErr_Occurred()) SWIG_fail;
36045 }
36046 resultobj = SWIG_Py_Void();
36047 return resultobj;
36048 fail:
36049 return NULL;
36050 }
36051
36052
36053 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36054 PyObject *resultobj = 0;
36055 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36056 wxPoint *arg2 = 0 ;
36057 wxSize *arg3 = 0 ;
36058 void *argp1 = 0 ;
36059 int res1 = 0 ;
36060 wxPoint temp2 ;
36061 wxSize temp3 ;
36062 PyObject * obj0 = 0 ;
36063 PyObject * obj1 = 0 ;
36064 PyObject * obj2 = 0 ;
36065 char * kwnames[] = {
36066 (char *) "self",(char *) "pt",(char *) "sz", NULL
36067 };
36068
36069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36071 if (!SWIG_IsOK(res1)) {
36072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36073 }
36074 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36075 {
36076 arg2 = &temp2;
36077 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36078 }
36079 {
36080 arg3 = &temp3;
36081 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36082 }
36083 {
36084 PyThreadState* __tstate = wxPyBeginAllowThreads();
36085 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
36086 wxPyEndAllowThreads(__tstate);
36087 if (PyErr_Occurred()) SWIG_fail;
36088 }
36089 resultobj = SWIG_Py_Void();
36090 return resultobj;
36091 fail:
36092 return NULL;
36093 }
36094
36095
36096 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36097 PyObject *resultobj = 0;
36098 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36099 int arg2 ;
36100 int arg3 ;
36101 int arg4 ;
36102 int arg5 ;
36103 double arg6 ;
36104 void *argp1 = 0 ;
36105 int res1 = 0 ;
36106 int val2 ;
36107 int ecode2 = 0 ;
36108 int val3 ;
36109 int ecode3 = 0 ;
36110 int val4 ;
36111 int ecode4 = 0 ;
36112 int val5 ;
36113 int ecode5 = 0 ;
36114 double val6 ;
36115 int ecode6 = 0 ;
36116 PyObject * obj0 = 0 ;
36117 PyObject * obj1 = 0 ;
36118 PyObject * obj2 = 0 ;
36119 PyObject * obj3 = 0 ;
36120 PyObject * obj4 = 0 ;
36121 PyObject * obj5 = 0 ;
36122 char * kwnames[] = {
36123 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
36124 };
36125
36126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
36127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36128 if (!SWIG_IsOK(res1)) {
36129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36130 }
36131 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36132 ecode2 = SWIG_AsVal_int(obj1, &val2);
36133 if (!SWIG_IsOK(ecode2)) {
36134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
36135 }
36136 arg2 = static_cast< int >(val2);
36137 ecode3 = SWIG_AsVal_int(obj2, &val3);
36138 if (!SWIG_IsOK(ecode3)) {
36139 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
36140 }
36141 arg3 = static_cast< int >(val3);
36142 ecode4 = SWIG_AsVal_int(obj3, &val4);
36143 if (!SWIG_IsOK(ecode4)) {
36144 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
36145 }
36146 arg4 = static_cast< int >(val4);
36147 ecode5 = SWIG_AsVal_int(obj4, &val5);
36148 if (!SWIG_IsOK(ecode5)) {
36149 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
36150 }
36151 arg5 = static_cast< int >(val5);
36152 ecode6 = SWIG_AsVal_double(obj5, &val6);
36153 if (!SWIG_IsOK(ecode6)) {
36154 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
36155 }
36156 arg6 = static_cast< double >(val6);
36157 {
36158 PyThreadState* __tstate = wxPyBeginAllowThreads();
36159 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
36160 wxPyEndAllowThreads(__tstate);
36161 if (PyErr_Occurred()) SWIG_fail;
36162 }
36163 resultobj = SWIG_Py_Void();
36164 return resultobj;
36165 fail:
36166 return NULL;
36167 }
36168
36169
36170 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36171 PyObject *resultobj = 0;
36172 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36173 wxRect *arg2 = 0 ;
36174 double arg3 ;
36175 void *argp1 = 0 ;
36176 int res1 = 0 ;
36177 wxRect temp2 ;
36178 double val3 ;
36179 int ecode3 = 0 ;
36180 PyObject * obj0 = 0 ;
36181 PyObject * obj1 = 0 ;
36182 PyObject * obj2 = 0 ;
36183 char * kwnames[] = {
36184 (char *) "self",(char *) "r",(char *) "radius", NULL
36185 };
36186
36187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36189 if (!SWIG_IsOK(res1)) {
36190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36191 }
36192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36193 {
36194 arg2 = &temp2;
36195 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36196 }
36197 ecode3 = SWIG_AsVal_double(obj2, &val3);
36198 if (!SWIG_IsOK(ecode3)) {
36199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
36200 }
36201 arg3 = static_cast< double >(val3);
36202 {
36203 PyThreadState* __tstate = wxPyBeginAllowThreads();
36204 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
36205 wxPyEndAllowThreads(__tstate);
36206 if (PyErr_Occurred()) SWIG_fail;
36207 }
36208 resultobj = SWIG_Py_Void();
36209 return resultobj;
36210 fail:
36211 return NULL;
36212 }
36213
36214
36215 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36216 PyObject *resultobj = 0;
36217 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36218 wxPoint *arg2 = 0 ;
36219 wxSize *arg3 = 0 ;
36220 double arg4 ;
36221 void *argp1 = 0 ;
36222 int res1 = 0 ;
36223 wxPoint temp2 ;
36224 wxSize temp3 ;
36225 double val4 ;
36226 int ecode4 = 0 ;
36227 PyObject * obj0 = 0 ;
36228 PyObject * obj1 = 0 ;
36229 PyObject * obj2 = 0 ;
36230 PyObject * obj3 = 0 ;
36231 char * kwnames[] = {
36232 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
36233 };
36234
36235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36237 if (!SWIG_IsOK(res1)) {
36238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36239 }
36240 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36241 {
36242 arg2 = &temp2;
36243 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36244 }
36245 {
36246 arg3 = &temp3;
36247 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36248 }
36249 ecode4 = SWIG_AsVal_double(obj3, &val4);
36250 if (!SWIG_IsOK(ecode4)) {
36251 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
36252 }
36253 arg4 = static_cast< double >(val4);
36254 {
36255 PyThreadState* __tstate = wxPyBeginAllowThreads();
36256 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
36257 wxPyEndAllowThreads(__tstate);
36258 if (PyErr_Occurred()) SWIG_fail;
36259 }
36260 resultobj = SWIG_Py_Void();
36261 return resultobj;
36262 fail:
36263 return NULL;
36264 }
36265
36266
36267 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36268 PyObject *resultobj = 0;
36269 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36270 int arg2 ;
36271 int arg3 ;
36272 int arg4 ;
36273 void *argp1 = 0 ;
36274 int res1 = 0 ;
36275 int val2 ;
36276 int ecode2 = 0 ;
36277 int val3 ;
36278 int ecode3 = 0 ;
36279 int val4 ;
36280 int ecode4 = 0 ;
36281 PyObject * obj0 = 0 ;
36282 PyObject * obj1 = 0 ;
36283 PyObject * obj2 = 0 ;
36284 PyObject * obj3 = 0 ;
36285 char * kwnames[] = {
36286 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
36287 };
36288
36289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36291 if (!SWIG_IsOK(res1)) {
36292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36293 }
36294 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36295 ecode2 = SWIG_AsVal_int(obj1, &val2);
36296 if (!SWIG_IsOK(ecode2)) {
36297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
36298 }
36299 arg2 = static_cast< int >(val2);
36300 ecode3 = SWIG_AsVal_int(obj2, &val3);
36301 if (!SWIG_IsOK(ecode3)) {
36302 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
36303 }
36304 arg3 = static_cast< int >(val3);
36305 ecode4 = SWIG_AsVal_int(obj3, &val4);
36306 if (!SWIG_IsOK(ecode4)) {
36307 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
36308 }
36309 arg4 = static_cast< int >(val4);
36310 {
36311 PyThreadState* __tstate = wxPyBeginAllowThreads();
36312 (arg1)->DrawCircle(arg2,arg3,arg4);
36313 wxPyEndAllowThreads(__tstate);
36314 if (PyErr_Occurred()) SWIG_fail;
36315 }
36316 resultobj = SWIG_Py_Void();
36317 return resultobj;
36318 fail:
36319 return NULL;
36320 }
36321
36322
36323 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36324 PyObject *resultobj = 0;
36325 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36326 wxPoint *arg2 = 0 ;
36327 int arg3 ;
36328 void *argp1 = 0 ;
36329 int res1 = 0 ;
36330 wxPoint temp2 ;
36331 int val3 ;
36332 int ecode3 = 0 ;
36333 PyObject * obj0 = 0 ;
36334 PyObject * obj1 = 0 ;
36335 PyObject * obj2 = 0 ;
36336 char * kwnames[] = {
36337 (char *) "self",(char *) "pt",(char *) "radius", NULL
36338 };
36339
36340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36342 if (!SWIG_IsOK(res1)) {
36343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36344 }
36345 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36346 {
36347 arg2 = &temp2;
36348 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36349 }
36350 ecode3 = SWIG_AsVal_int(obj2, &val3);
36351 if (!SWIG_IsOK(ecode3)) {
36352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
36353 }
36354 arg3 = static_cast< int >(val3);
36355 {
36356 PyThreadState* __tstate = wxPyBeginAllowThreads();
36357 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
36358 wxPyEndAllowThreads(__tstate);
36359 if (PyErr_Occurred()) SWIG_fail;
36360 }
36361 resultobj = SWIG_Py_Void();
36362 return resultobj;
36363 fail:
36364 return NULL;
36365 }
36366
36367
36368 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36369 PyObject *resultobj = 0;
36370 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36371 int arg2 ;
36372 int arg3 ;
36373 int arg4 ;
36374 int arg5 ;
36375 void *argp1 = 0 ;
36376 int res1 = 0 ;
36377 int val2 ;
36378 int ecode2 = 0 ;
36379 int val3 ;
36380 int ecode3 = 0 ;
36381 int val4 ;
36382 int ecode4 = 0 ;
36383 int val5 ;
36384 int ecode5 = 0 ;
36385 PyObject * obj0 = 0 ;
36386 PyObject * obj1 = 0 ;
36387 PyObject * obj2 = 0 ;
36388 PyObject * obj3 = 0 ;
36389 PyObject * obj4 = 0 ;
36390 char * kwnames[] = {
36391 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
36392 };
36393
36394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36396 if (!SWIG_IsOK(res1)) {
36397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36398 }
36399 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36400 ecode2 = SWIG_AsVal_int(obj1, &val2);
36401 if (!SWIG_IsOK(ecode2)) {
36402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
36403 }
36404 arg2 = static_cast< int >(val2);
36405 ecode3 = SWIG_AsVal_int(obj2, &val3);
36406 if (!SWIG_IsOK(ecode3)) {
36407 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
36408 }
36409 arg3 = static_cast< int >(val3);
36410 ecode4 = SWIG_AsVal_int(obj3, &val4);
36411 if (!SWIG_IsOK(ecode4)) {
36412 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
36413 }
36414 arg4 = static_cast< int >(val4);
36415 ecode5 = SWIG_AsVal_int(obj4, &val5);
36416 if (!SWIG_IsOK(ecode5)) {
36417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
36418 }
36419 arg5 = static_cast< int >(val5);
36420 {
36421 PyThreadState* __tstate = wxPyBeginAllowThreads();
36422 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
36423 wxPyEndAllowThreads(__tstate);
36424 if (PyErr_Occurred()) SWIG_fail;
36425 }
36426 resultobj = SWIG_Py_Void();
36427 return resultobj;
36428 fail:
36429 return NULL;
36430 }
36431
36432
36433 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36434 PyObject *resultobj = 0;
36435 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36436 wxRect *arg2 = 0 ;
36437 void *argp1 = 0 ;
36438 int res1 = 0 ;
36439 wxRect temp2 ;
36440 PyObject * obj0 = 0 ;
36441 PyObject * obj1 = 0 ;
36442 char * kwnames[] = {
36443 (char *) "self",(char *) "rect", NULL
36444 };
36445
36446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
36447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36448 if (!SWIG_IsOK(res1)) {
36449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36450 }
36451 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36452 {
36453 arg2 = &temp2;
36454 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
36455 }
36456 {
36457 PyThreadState* __tstate = wxPyBeginAllowThreads();
36458 (arg1)->DrawEllipse((wxRect const &)*arg2);
36459 wxPyEndAllowThreads(__tstate);
36460 if (PyErr_Occurred()) SWIG_fail;
36461 }
36462 resultobj = SWIG_Py_Void();
36463 return resultobj;
36464 fail:
36465 return NULL;
36466 }
36467
36468
36469 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36470 PyObject *resultobj = 0;
36471 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36472 wxPoint *arg2 = 0 ;
36473 wxSize *arg3 = 0 ;
36474 void *argp1 = 0 ;
36475 int res1 = 0 ;
36476 wxPoint temp2 ;
36477 wxSize temp3 ;
36478 PyObject * obj0 = 0 ;
36479 PyObject * obj1 = 0 ;
36480 PyObject * obj2 = 0 ;
36481 char * kwnames[] = {
36482 (char *) "self",(char *) "pt",(char *) "sz", NULL
36483 };
36484
36485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36487 if (!SWIG_IsOK(res1)) {
36488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36489 }
36490 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36491 {
36492 arg2 = &temp2;
36493 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
36494 }
36495 {
36496 arg3 = &temp3;
36497 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
36498 }
36499 {
36500 PyThreadState* __tstate = wxPyBeginAllowThreads();
36501 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
36502 wxPyEndAllowThreads(__tstate);
36503 if (PyErr_Occurred()) SWIG_fail;
36504 }
36505 resultobj = SWIG_Py_Void();
36506 return resultobj;
36507 fail:
36508 return NULL;
36509 }
36510
36511
36512 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36513 PyObject *resultobj = 0;
36514 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36515 wxIcon *arg2 = 0 ;
36516 int arg3 ;
36517 int arg4 ;
36518 void *argp1 = 0 ;
36519 int res1 = 0 ;
36520 void *argp2 = 0 ;
36521 int res2 = 0 ;
36522 int val3 ;
36523 int ecode3 = 0 ;
36524 int val4 ;
36525 int ecode4 = 0 ;
36526 PyObject * obj0 = 0 ;
36527 PyObject * obj1 = 0 ;
36528 PyObject * obj2 = 0 ;
36529 PyObject * obj3 = 0 ;
36530 char * kwnames[] = {
36531 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
36532 };
36533
36534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36536 if (!SWIG_IsOK(res1)) {
36537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36538 }
36539 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36540 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36541 if (!SWIG_IsOK(res2)) {
36542 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36543 }
36544 if (!argp2) {
36545 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
36546 }
36547 arg2 = reinterpret_cast< wxIcon * >(argp2);
36548 ecode3 = SWIG_AsVal_int(obj2, &val3);
36549 if (!SWIG_IsOK(ecode3)) {
36550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
36551 }
36552 arg3 = static_cast< int >(val3);
36553 ecode4 = SWIG_AsVal_int(obj3, &val4);
36554 if (!SWIG_IsOK(ecode4)) {
36555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
36556 }
36557 arg4 = static_cast< int >(val4);
36558 {
36559 PyThreadState* __tstate = wxPyBeginAllowThreads();
36560 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
36561 wxPyEndAllowThreads(__tstate);
36562 if (PyErr_Occurred()) SWIG_fail;
36563 }
36564 resultobj = SWIG_Py_Void();
36565 return resultobj;
36566 fail:
36567 return NULL;
36568 }
36569
36570
36571 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36572 PyObject *resultobj = 0;
36573 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36574 wxIcon *arg2 = 0 ;
36575 wxPoint *arg3 = 0 ;
36576 void *argp1 = 0 ;
36577 int res1 = 0 ;
36578 void *argp2 = 0 ;
36579 int res2 = 0 ;
36580 wxPoint temp3 ;
36581 PyObject * obj0 = 0 ;
36582 PyObject * obj1 = 0 ;
36583 PyObject * obj2 = 0 ;
36584 char * kwnames[] = {
36585 (char *) "self",(char *) "icon",(char *) "pt", NULL
36586 };
36587
36588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36589 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36590 if (!SWIG_IsOK(res1)) {
36591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36592 }
36593 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36594 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
36595 if (!SWIG_IsOK(res2)) {
36596 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
36597 }
36598 if (!argp2) {
36599 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
36600 }
36601 arg2 = reinterpret_cast< wxIcon * >(argp2);
36602 {
36603 arg3 = &temp3;
36604 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36605 }
36606 {
36607 PyThreadState* __tstate = wxPyBeginAllowThreads();
36608 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
36609 wxPyEndAllowThreads(__tstate);
36610 if (PyErr_Occurred()) SWIG_fail;
36611 }
36612 resultobj = SWIG_Py_Void();
36613 return resultobj;
36614 fail:
36615 return NULL;
36616 }
36617
36618
36619 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36620 PyObject *resultobj = 0;
36621 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36622 wxBitmap *arg2 = 0 ;
36623 int arg3 ;
36624 int arg4 ;
36625 bool arg5 = (bool) false ;
36626 void *argp1 = 0 ;
36627 int res1 = 0 ;
36628 void *argp2 = 0 ;
36629 int res2 = 0 ;
36630 int val3 ;
36631 int ecode3 = 0 ;
36632 int val4 ;
36633 int ecode4 = 0 ;
36634 bool val5 ;
36635 int ecode5 = 0 ;
36636 PyObject * obj0 = 0 ;
36637 PyObject * obj1 = 0 ;
36638 PyObject * obj2 = 0 ;
36639 PyObject * obj3 = 0 ;
36640 PyObject * obj4 = 0 ;
36641 char * kwnames[] = {
36642 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
36643 };
36644
36645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36647 if (!SWIG_IsOK(res1)) {
36648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36649 }
36650 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
36652 if (!SWIG_IsOK(res2)) {
36653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36654 }
36655 if (!argp2) {
36656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36657 }
36658 arg2 = reinterpret_cast< wxBitmap * >(argp2);
36659 ecode3 = SWIG_AsVal_int(obj2, &val3);
36660 if (!SWIG_IsOK(ecode3)) {
36661 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
36662 }
36663 arg3 = static_cast< int >(val3);
36664 ecode4 = SWIG_AsVal_int(obj3, &val4);
36665 if (!SWIG_IsOK(ecode4)) {
36666 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
36667 }
36668 arg4 = static_cast< int >(val4);
36669 if (obj4) {
36670 ecode5 = SWIG_AsVal_bool(obj4, &val5);
36671 if (!SWIG_IsOK(ecode5)) {
36672 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
36673 }
36674 arg5 = static_cast< bool >(val5);
36675 }
36676 {
36677 PyThreadState* __tstate = wxPyBeginAllowThreads();
36678 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
36679 wxPyEndAllowThreads(__tstate);
36680 if (PyErr_Occurred()) SWIG_fail;
36681 }
36682 resultobj = SWIG_Py_Void();
36683 return resultobj;
36684 fail:
36685 return NULL;
36686 }
36687
36688
36689 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36690 PyObject *resultobj = 0;
36691 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36692 wxBitmap *arg2 = 0 ;
36693 wxPoint *arg3 = 0 ;
36694 bool arg4 = (bool) false ;
36695 void *argp1 = 0 ;
36696 int res1 = 0 ;
36697 void *argp2 = 0 ;
36698 int res2 = 0 ;
36699 wxPoint temp3 ;
36700 bool val4 ;
36701 int ecode4 = 0 ;
36702 PyObject * obj0 = 0 ;
36703 PyObject * obj1 = 0 ;
36704 PyObject * obj2 = 0 ;
36705 PyObject * obj3 = 0 ;
36706 char * kwnames[] = {
36707 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
36708 };
36709
36710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36712 if (!SWIG_IsOK(res1)) {
36713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36714 }
36715 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36716 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
36717 if (!SWIG_IsOK(res2)) {
36718 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36719 }
36720 if (!argp2) {
36721 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
36722 }
36723 arg2 = reinterpret_cast< wxBitmap * >(argp2);
36724 {
36725 arg3 = &temp3;
36726 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36727 }
36728 if (obj3) {
36729 ecode4 = SWIG_AsVal_bool(obj3, &val4);
36730 if (!SWIG_IsOK(ecode4)) {
36731 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
36732 }
36733 arg4 = static_cast< bool >(val4);
36734 }
36735 {
36736 PyThreadState* __tstate = wxPyBeginAllowThreads();
36737 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
36738 wxPyEndAllowThreads(__tstate);
36739 if (PyErr_Occurred()) SWIG_fail;
36740 }
36741 resultobj = SWIG_Py_Void();
36742 return resultobj;
36743 fail:
36744 return NULL;
36745 }
36746
36747
36748 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36749 PyObject *resultobj = 0;
36750 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36751 wxString *arg2 = 0 ;
36752 int arg3 ;
36753 int arg4 ;
36754 void *argp1 = 0 ;
36755 int res1 = 0 ;
36756 bool temp2 = false ;
36757 int val3 ;
36758 int ecode3 = 0 ;
36759 int val4 ;
36760 int ecode4 = 0 ;
36761 PyObject * obj0 = 0 ;
36762 PyObject * obj1 = 0 ;
36763 PyObject * obj2 = 0 ;
36764 PyObject * obj3 = 0 ;
36765 char * kwnames[] = {
36766 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
36767 };
36768
36769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36771 if (!SWIG_IsOK(res1)) {
36772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36773 }
36774 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36775 {
36776 arg2 = wxString_in_helper(obj1);
36777 if (arg2 == NULL) SWIG_fail;
36778 temp2 = true;
36779 }
36780 ecode3 = SWIG_AsVal_int(obj2, &val3);
36781 if (!SWIG_IsOK(ecode3)) {
36782 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
36783 }
36784 arg3 = static_cast< int >(val3);
36785 ecode4 = SWIG_AsVal_int(obj3, &val4);
36786 if (!SWIG_IsOK(ecode4)) {
36787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
36788 }
36789 arg4 = static_cast< int >(val4);
36790 {
36791 PyThreadState* __tstate = wxPyBeginAllowThreads();
36792 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
36793 wxPyEndAllowThreads(__tstate);
36794 if (PyErr_Occurred()) SWIG_fail;
36795 }
36796 resultobj = SWIG_Py_Void();
36797 {
36798 if (temp2)
36799 delete arg2;
36800 }
36801 return resultobj;
36802 fail:
36803 {
36804 if (temp2)
36805 delete arg2;
36806 }
36807 return NULL;
36808 }
36809
36810
36811 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36812 PyObject *resultobj = 0;
36813 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36814 wxString *arg2 = 0 ;
36815 wxPoint *arg3 = 0 ;
36816 void *argp1 = 0 ;
36817 int res1 = 0 ;
36818 bool temp2 = false ;
36819 wxPoint temp3 ;
36820 PyObject * obj0 = 0 ;
36821 PyObject * obj1 = 0 ;
36822 PyObject * obj2 = 0 ;
36823 char * kwnames[] = {
36824 (char *) "self",(char *) "text",(char *) "pt", NULL
36825 };
36826
36827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
36828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36829 if (!SWIG_IsOK(res1)) {
36830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36831 }
36832 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36833 {
36834 arg2 = wxString_in_helper(obj1);
36835 if (arg2 == NULL) SWIG_fail;
36836 temp2 = true;
36837 }
36838 {
36839 arg3 = &temp3;
36840 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36841 }
36842 {
36843 PyThreadState* __tstate = wxPyBeginAllowThreads();
36844 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
36845 wxPyEndAllowThreads(__tstate);
36846 if (PyErr_Occurred()) SWIG_fail;
36847 }
36848 resultobj = SWIG_Py_Void();
36849 {
36850 if (temp2)
36851 delete arg2;
36852 }
36853 return resultobj;
36854 fail:
36855 {
36856 if (temp2)
36857 delete arg2;
36858 }
36859 return NULL;
36860 }
36861
36862
36863 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36864 PyObject *resultobj = 0;
36865 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36866 wxString *arg2 = 0 ;
36867 int arg3 ;
36868 int arg4 ;
36869 double arg5 ;
36870 void *argp1 = 0 ;
36871 int res1 = 0 ;
36872 bool temp2 = false ;
36873 int val3 ;
36874 int ecode3 = 0 ;
36875 int val4 ;
36876 int ecode4 = 0 ;
36877 double val5 ;
36878 int ecode5 = 0 ;
36879 PyObject * obj0 = 0 ;
36880 PyObject * obj1 = 0 ;
36881 PyObject * obj2 = 0 ;
36882 PyObject * obj3 = 0 ;
36883 PyObject * obj4 = 0 ;
36884 char * kwnames[] = {
36885 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
36886 };
36887
36888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
36889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36890 if (!SWIG_IsOK(res1)) {
36891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36892 }
36893 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36894 {
36895 arg2 = wxString_in_helper(obj1);
36896 if (arg2 == NULL) SWIG_fail;
36897 temp2 = true;
36898 }
36899 ecode3 = SWIG_AsVal_int(obj2, &val3);
36900 if (!SWIG_IsOK(ecode3)) {
36901 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
36902 }
36903 arg3 = static_cast< int >(val3);
36904 ecode4 = SWIG_AsVal_int(obj3, &val4);
36905 if (!SWIG_IsOK(ecode4)) {
36906 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
36907 }
36908 arg4 = static_cast< int >(val4);
36909 ecode5 = SWIG_AsVal_double(obj4, &val5);
36910 if (!SWIG_IsOK(ecode5)) {
36911 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
36912 }
36913 arg5 = static_cast< double >(val5);
36914 {
36915 PyThreadState* __tstate = wxPyBeginAllowThreads();
36916 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
36917 wxPyEndAllowThreads(__tstate);
36918 if (PyErr_Occurred()) SWIG_fail;
36919 }
36920 resultobj = SWIG_Py_Void();
36921 {
36922 if (temp2)
36923 delete arg2;
36924 }
36925 return resultobj;
36926 fail:
36927 {
36928 if (temp2)
36929 delete arg2;
36930 }
36931 return NULL;
36932 }
36933
36934
36935 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36936 PyObject *resultobj = 0;
36937 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36938 wxString *arg2 = 0 ;
36939 wxPoint *arg3 = 0 ;
36940 double arg4 ;
36941 void *argp1 = 0 ;
36942 int res1 = 0 ;
36943 bool temp2 = false ;
36944 wxPoint temp3 ;
36945 double val4 ;
36946 int ecode4 = 0 ;
36947 PyObject * obj0 = 0 ;
36948 PyObject * obj1 = 0 ;
36949 PyObject * obj2 = 0 ;
36950 PyObject * obj3 = 0 ;
36951 char * kwnames[] = {
36952 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
36953 };
36954
36955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
36956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
36957 if (!SWIG_IsOK(res1)) {
36958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
36959 }
36960 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
36961 {
36962 arg2 = wxString_in_helper(obj1);
36963 if (arg2 == NULL) SWIG_fail;
36964 temp2 = true;
36965 }
36966 {
36967 arg3 = &temp3;
36968 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
36969 }
36970 ecode4 = SWIG_AsVal_double(obj3, &val4);
36971 if (!SWIG_IsOK(ecode4)) {
36972 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
36973 }
36974 arg4 = static_cast< double >(val4);
36975 {
36976 PyThreadState* __tstate = wxPyBeginAllowThreads();
36977 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
36978 wxPyEndAllowThreads(__tstate);
36979 if (PyErr_Occurred()) SWIG_fail;
36980 }
36981 resultobj = SWIG_Py_Void();
36982 {
36983 if (temp2)
36984 delete arg2;
36985 }
36986 return resultobj;
36987 fail:
36988 {
36989 if (temp2)
36990 delete arg2;
36991 }
36992 return NULL;
36993 }
36994
36995
36996 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
36997 PyObject *resultobj = 0;
36998 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
36999 int arg2 ;
37000 wxPoint *arg3 = (wxPoint *) 0 ;
37001 int arg4 = (int) 0 ;
37002 int arg5 = (int) 0 ;
37003 void *argp1 = 0 ;
37004 int res1 = 0 ;
37005 int val4 ;
37006 int ecode4 = 0 ;
37007 int val5 ;
37008 int ecode5 = 0 ;
37009 PyObject * obj0 = 0 ;
37010 PyObject * obj1 = 0 ;
37011 PyObject * obj2 = 0 ;
37012 PyObject * obj3 = 0 ;
37013 char * kwnames[] = {
37014 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
37015 };
37016
37017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
37018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37019 if (!SWIG_IsOK(res1)) {
37020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37021 }
37022 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37023 {
37024 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37025 if (arg3 == NULL) SWIG_fail;
37026 }
37027 if (obj2) {
37028 ecode4 = SWIG_AsVal_int(obj2, &val4);
37029 if (!SWIG_IsOK(ecode4)) {
37030 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
37031 }
37032 arg4 = static_cast< int >(val4);
37033 }
37034 if (obj3) {
37035 ecode5 = SWIG_AsVal_int(obj3, &val5);
37036 if (!SWIG_IsOK(ecode5)) {
37037 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
37038 }
37039 arg5 = static_cast< int >(val5);
37040 }
37041 {
37042 PyThreadState* __tstate = wxPyBeginAllowThreads();
37043 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
37044 wxPyEndAllowThreads(__tstate);
37045 if (PyErr_Occurred()) SWIG_fail;
37046 }
37047 resultobj = SWIG_Py_Void();
37048 {
37049 if (arg3) delete [] arg3;
37050 }
37051 return resultobj;
37052 fail:
37053 {
37054 if (arg3) delete [] arg3;
37055 }
37056 return NULL;
37057 }
37058
37059
37060 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37061 PyObject *resultobj = 0;
37062 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37063 int arg2 ;
37064 wxPoint *arg3 = (wxPoint *) 0 ;
37065 int arg4 = (int) 0 ;
37066 int arg5 = (int) 0 ;
37067 int arg6 = (int) wxODDEVEN_RULE ;
37068 void *argp1 = 0 ;
37069 int res1 = 0 ;
37070 int val4 ;
37071 int ecode4 = 0 ;
37072 int val5 ;
37073 int ecode5 = 0 ;
37074 int val6 ;
37075 int ecode6 = 0 ;
37076 PyObject * obj0 = 0 ;
37077 PyObject * obj1 = 0 ;
37078 PyObject * obj2 = 0 ;
37079 PyObject * obj3 = 0 ;
37080 PyObject * obj4 = 0 ;
37081 char * kwnames[] = {
37082 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
37083 };
37084
37085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37087 if (!SWIG_IsOK(res1)) {
37088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37089 }
37090 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37091 {
37092 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37093 if (arg3 == NULL) SWIG_fail;
37094 }
37095 if (obj2) {
37096 ecode4 = SWIG_AsVal_int(obj2, &val4);
37097 if (!SWIG_IsOK(ecode4)) {
37098 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
37099 }
37100 arg4 = static_cast< int >(val4);
37101 }
37102 if (obj3) {
37103 ecode5 = SWIG_AsVal_int(obj3, &val5);
37104 if (!SWIG_IsOK(ecode5)) {
37105 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
37106 }
37107 arg5 = static_cast< int >(val5);
37108 }
37109 if (obj4) {
37110 ecode6 = SWIG_AsVal_int(obj4, &val6);
37111 if (!SWIG_IsOK(ecode6)) {
37112 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
37113 }
37114 arg6 = static_cast< int >(val6);
37115 }
37116 {
37117 PyThreadState* __tstate = wxPyBeginAllowThreads();
37118 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
37119 wxPyEndAllowThreads(__tstate);
37120 if (PyErr_Occurred()) SWIG_fail;
37121 }
37122 resultobj = SWIG_Py_Void();
37123 {
37124 if (arg3) delete [] arg3;
37125 }
37126 return resultobj;
37127 fail:
37128 {
37129 if (arg3) delete [] arg3;
37130 }
37131 return NULL;
37132 }
37133
37134
37135 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37136 PyObject *resultobj = 0;
37137 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37138 wxString *arg2 = 0 ;
37139 wxRect *arg3 = 0 ;
37140 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37141 int arg5 = (int) -1 ;
37142 void *argp1 = 0 ;
37143 int res1 = 0 ;
37144 bool temp2 = false ;
37145 wxRect temp3 ;
37146 int val4 ;
37147 int ecode4 = 0 ;
37148 int val5 ;
37149 int ecode5 = 0 ;
37150 PyObject * obj0 = 0 ;
37151 PyObject * obj1 = 0 ;
37152 PyObject * obj2 = 0 ;
37153 PyObject * obj3 = 0 ;
37154 PyObject * obj4 = 0 ;
37155 char * kwnames[] = {
37156 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37157 };
37158
37159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
37160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37161 if (!SWIG_IsOK(res1)) {
37162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37163 }
37164 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37165 {
37166 arg2 = wxString_in_helper(obj1);
37167 if (arg2 == NULL) SWIG_fail;
37168 temp2 = true;
37169 }
37170 {
37171 arg3 = &temp3;
37172 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
37173 }
37174 if (obj3) {
37175 ecode4 = SWIG_AsVal_int(obj3, &val4);
37176 if (!SWIG_IsOK(ecode4)) {
37177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
37178 }
37179 arg4 = static_cast< int >(val4);
37180 }
37181 if (obj4) {
37182 ecode5 = SWIG_AsVal_int(obj4, &val5);
37183 if (!SWIG_IsOK(ecode5)) {
37184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
37185 }
37186 arg5 = static_cast< int >(val5);
37187 }
37188 {
37189 PyThreadState* __tstate = wxPyBeginAllowThreads();
37190 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
37191 wxPyEndAllowThreads(__tstate);
37192 if (PyErr_Occurred()) SWIG_fail;
37193 }
37194 resultobj = SWIG_Py_Void();
37195 {
37196 if (temp2)
37197 delete arg2;
37198 }
37199 return resultobj;
37200 fail:
37201 {
37202 if (temp2)
37203 delete arg2;
37204 }
37205 return NULL;
37206 }
37207
37208
37209 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37210 PyObject *resultobj = 0;
37211 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37212 wxString *arg2 = 0 ;
37213 wxBitmap *arg3 = 0 ;
37214 wxRect *arg4 = 0 ;
37215 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
37216 int arg6 = (int) -1 ;
37217 void *argp1 = 0 ;
37218 int res1 = 0 ;
37219 bool temp2 = false ;
37220 void *argp3 = 0 ;
37221 int res3 = 0 ;
37222 wxRect temp4 ;
37223 int val5 ;
37224 int ecode5 = 0 ;
37225 int val6 ;
37226 int ecode6 = 0 ;
37227 PyObject * obj0 = 0 ;
37228 PyObject * obj1 = 0 ;
37229 PyObject * obj2 = 0 ;
37230 PyObject * obj3 = 0 ;
37231 PyObject * obj4 = 0 ;
37232 PyObject * obj5 = 0 ;
37233 char * kwnames[] = {
37234 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
37235 };
37236
37237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
37238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37239 if (!SWIG_IsOK(res1)) {
37240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37241 }
37242 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37243 {
37244 arg2 = wxString_in_helper(obj1);
37245 if (arg2 == NULL) SWIG_fail;
37246 temp2 = true;
37247 }
37248 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
37249 if (!SWIG_IsOK(res3)) {
37250 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37251 }
37252 if (!argp3) {
37253 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
37254 }
37255 arg3 = reinterpret_cast< wxBitmap * >(argp3);
37256 {
37257 arg4 = &temp4;
37258 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
37259 }
37260 if (obj4) {
37261 ecode5 = SWIG_AsVal_int(obj4, &val5);
37262 if (!SWIG_IsOK(ecode5)) {
37263 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
37264 }
37265 arg5 = static_cast< int >(val5);
37266 }
37267 if (obj5) {
37268 ecode6 = SWIG_AsVal_int(obj5, &val6);
37269 if (!SWIG_IsOK(ecode6)) {
37270 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
37271 }
37272 arg6 = static_cast< int >(val6);
37273 }
37274 {
37275 PyThreadState* __tstate = wxPyBeginAllowThreads();
37276 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
37277 wxPyEndAllowThreads(__tstate);
37278 if (PyErr_Occurred()) SWIG_fail;
37279 }
37280 resultobj = SWIG_Py_Void();
37281 {
37282 if (temp2)
37283 delete arg2;
37284 }
37285 return resultobj;
37286 fail:
37287 {
37288 if (temp2)
37289 delete arg2;
37290 }
37291 return NULL;
37292 }
37293
37294
37295 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37296 PyObject *resultobj = 0;
37297 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37298 int arg2 ;
37299 wxPoint *arg3 = (wxPoint *) 0 ;
37300 void *argp1 = 0 ;
37301 int res1 = 0 ;
37302 PyObject * obj0 = 0 ;
37303 PyObject * obj1 = 0 ;
37304 char * kwnames[] = {
37305 (char *) "self",(char *) "points", NULL
37306 };
37307
37308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
37309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37310 if (!SWIG_IsOK(res1)) {
37311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37312 }
37313 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37314 {
37315 arg3 = wxPoint_LIST_helper(obj1, &arg2);
37316 if (arg3 == NULL) SWIG_fail;
37317 }
37318 {
37319 PyThreadState* __tstate = wxPyBeginAllowThreads();
37320 (arg1)->DrawSpline(arg2,arg3);
37321 wxPyEndAllowThreads(__tstate);
37322 if (PyErr_Occurred()) SWIG_fail;
37323 }
37324 resultobj = SWIG_Py_Void();
37325 {
37326 if (arg3) delete [] arg3;
37327 }
37328 return resultobj;
37329 fail:
37330 {
37331 if (arg3) delete [] arg3;
37332 }
37333 return NULL;
37334 }
37335
37336
37337 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37338 PyObject *resultobj = 0;
37339 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37340 void *argp1 = 0 ;
37341 int res1 = 0 ;
37342 PyObject *swig_obj[1] ;
37343
37344 if (!args) SWIG_fail;
37345 swig_obj[0] = args;
37346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37347 if (!SWIG_IsOK(res1)) {
37348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37349 }
37350 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37351 {
37352 PyThreadState* __tstate = wxPyBeginAllowThreads();
37353 (arg1)->Clear();
37354 wxPyEndAllowThreads(__tstate);
37355 if (PyErr_Occurred()) SWIG_fail;
37356 }
37357 resultobj = SWIG_Py_Void();
37358 return resultobj;
37359 fail:
37360 return NULL;
37361 }
37362
37363
37364 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37365 PyObject *resultobj = 0;
37366 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37367 wxFont *arg2 = 0 ;
37368 void *argp1 = 0 ;
37369 int res1 = 0 ;
37370 void *argp2 = 0 ;
37371 int res2 = 0 ;
37372 PyObject * obj0 = 0 ;
37373 PyObject * obj1 = 0 ;
37374 char * kwnames[] = {
37375 (char *) "self",(char *) "font", NULL
37376 };
37377
37378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
37379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37380 if (!SWIG_IsOK(res1)) {
37381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37382 }
37383 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37384 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
37385 if (!SWIG_IsOK(res2)) {
37386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37387 }
37388 if (!argp2) {
37389 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
37390 }
37391 arg2 = reinterpret_cast< wxFont * >(argp2);
37392 {
37393 PyThreadState* __tstate = wxPyBeginAllowThreads();
37394 (arg1)->SetFont((wxFont const &)*arg2);
37395 wxPyEndAllowThreads(__tstate);
37396 if (PyErr_Occurred()) SWIG_fail;
37397 }
37398 resultobj = SWIG_Py_Void();
37399 return resultobj;
37400 fail:
37401 return NULL;
37402 }
37403
37404
37405 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37406 PyObject *resultobj = 0;
37407 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37408 wxPen *arg2 = 0 ;
37409 void *argp1 = 0 ;
37410 int res1 = 0 ;
37411 void *argp2 = 0 ;
37412 int res2 = 0 ;
37413 PyObject * obj0 = 0 ;
37414 PyObject * obj1 = 0 ;
37415 char * kwnames[] = {
37416 (char *) "self",(char *) "pen", NULL
37417 };
37418
37419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
37420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37421 if (!SWIG_IsOK(res1)) {
37422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37423 }
37424 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37425 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
37426 if (!SWIG_IsOK(res2)) {
37427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37428 }
37429 if (!argp2) {
37430 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
37431 }
37432 arg2 = reinterpret_cast< wxPen * >(argp2);
37433 {
37434 PyThreadState* __tstate = wxPyBeginAllowThreads();
37435 (arg1)->SetPen((wxPen const &)*arg2);
37436 wxPyEndAllowThreads(__tstate);
37437 if (PyErr_Occurred()) SWIG_fail;
37438 }
37439 resultobj = SWIG_Py_Void();
37440 return resultobj;
37441 fail:
37442 return NULL;
37443 }
37444
37445
37446 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37447 PyObject *resultobj = 0;
37448 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37449 wxBrush *arg2 = 0 ;
37450 void *argp1 = 0 ;
37451 int res1 = 0 ;
37452 void *argp2 = 0 ;
37453 int res2 = 0 ;
37454 PyObject * obj0 = 0 ;
37455 PyObject * obj1 = 0 ;
37456 char * kwnames[] = {
37457 (char *) "self",(char *) "brush", NULL
37458 };
37459
37460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
37461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37462 if (!SWIG_IsOK(res1)) {
37463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37464 }
37465 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37466 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37467 if (!SWIG_IsOK(res2)) {
37468 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37469 }
37470 if (!argp2) {
37471 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
37472 }
37473 arg2 = reinterpret_cast< wxBrush * >(argp2);
37474 {
37475 PyThreadState* __tstate = wxPyBeginAllowThreads();
37476 (arg1)->SetBrush((wxBrush const &)*arg2);
37477 wxPyEndAllowThreads(__tstate);
37478 if (PyErr_Occurred()) SWIG_fail;
37479 }
37480 resultobj = SWIG_Py_Void();
37481 return resultobj;
37482 fail:
37483 return NULL;
37484 }
37485
37486
37487 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37488 PyObject *resultobj = 0;
37489 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37490 wxBrush *arg2 = 0 ;
37491 void *argp1 = 0 ;
37492 int res1 = 0 ;
37493 void *argp2 = 0 ;
37494 int res2 = 0 ;
37495 PyObject * obj0 = 0 ;
37496 PyObject * obj1 = 0 ;
37497 char * kwnames[] = {
37498 (char *) "self",(char *) "brush", NULL
37499 };
37500
37501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37503 if (!SWIG_IsOK(res1)) {
37504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37505 }
37506 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37507 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
37508 if (!SWIG_IsOK(res2)) {
37509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37510 }
37511 if (!argp2) {
37512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
37513 }
37514 arg2 = reinterpret_cast< wxBrush * >(argp2);
37515 {
37516 PyThreadState* __tstate = wxPyBeginAllowThreads();
37517 (arg1)->SetBackground((wxBrush const &)*arg2);
37518 wxPyEndAllowThreads(__tstate);
37519 if (PyErr_Occurred()) SWIG_fail;
37520 }
37521 resultobj = SWIG_Py_Void();
37522 return resultobj;
37523 fail:
37524 return NULL;
37525 }
37526
37527
37528 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37529 PyObject *resultobj = 0;
37530 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37531 int arg2 ;
37532 void *argp1 = 0 ;
37533 int res1 = 0 ;
37534 int val2 ;
37535 int ecode2 = 0 ;
37536 PyObject * obj0 = 0 ;
37537 PyObject * obj1 = 0 ;
37538 char * kwnames[] = {
37539 (char *) "self",(char *) "mode", NULL
37540 };
37541
37542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
37543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37544 if (!SWIG_IsOK(res1)) {
37545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37546 }
37547 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37548 ecode2 = SWIG_AsVal_int(obj1, &val2);
37549 if (!SWIG_IsOK(ecode2)) {
37550 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
37551 }
37552 arg2 = static_cast< int >(val2);
37553 {
37554 PyThreadState* __tstate = wxPyBeginAllowThreads();
37555 (arg1)->SetBackgroundMode(arg2);
37556 wxPyEndAllowThreads(__tstate);
37557 if (PyErr_Occurred()) SWIG_fail;
37558 }
37559 resultobj = SWIG_Py_Void();
37560 return resultobj;
37561 fail:
37562 return NULL;
37563 }
37564
37565
37566 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37567 PyObject *resultobj = 0;
37568 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37569 wxPalette *arg2 = 0 ;
37570 void *argp1 = 0 ;
37571 int res1 = 0 ;
37572 void *argp2 = 0 ;
37573 int res2 = 0 ;
37574 PyObject * obj0 = 0 ;
37575 PyObject * obj1 = 0 ;
37576 char * kwnames[] = {
37577 (char *) "self",(char *) "palette", NULL
37578 };
37579
37580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
37581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37582 if (!SWIG_IsOK(res1)) {
37583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37584 }
37585 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37586 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
37587 if (!SWIG_IsOK(res2)) {
37588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
37589 }
37590 if (!argp2) {
37591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
37592 }
37593 arg2 = reinterpret_cast< wxPalette * >(argp2);
37594 {
37595 PyThreadState* __tstate = wxPyBeginAllowThreads();
37596 (arg1)->SetPalette((wxPalette const &)*arg2);
37597 wxPyEndAllowThreads(__tstate);
37598 if (PyErr_Occurred()) SWIG_fail;
37599 }
37600 resultobj = SWIG_Py_Void();
37601 return resultobj;
37602 fail:
37603 return NULL;
37604 }
37605
37606
37607 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37608 PyObject *resultobj = 0;
37609 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37610 wxColour *arg2 = 0 ;
37611 void *argp1 = 0 ;
37612 int res1 = 0 ;
37613 wxColour temp2 ;
37614 PyObject * obj0 = 0 ;
37615 PyObject * obj1 = 0 ;
37616 char * kwnames[] = {
37617 (char *) "self",(char *) "colour", NULL
37618 };
37619
37620 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
37621 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37622 if (!SWIG_IsOK(res1)) {
37623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37624 }
37625 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37626 {
37627 arg2 = &temp2;
37628 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
37629 }
37630 {
37631 PyThreadState* __tstate = wxPyBeginAllowThreads();
37632 (arg1)->SetTextForeground((wxColour const &)*arg2);
37633 wxPyEndAllowThreads(__tstate);
37634 if (PyErr_Occurred()) SWIG_fail;
37635 }
37636 resultobj = SWIG_Py_Void();
37637 return resultobj;
37638 fail:
37639 return NULL;
37640 }
37641
37642
37643 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37644 PyObject *resultobj = 0;
37645 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37646 wxColour *arg2 = 0 ;
37647 void *argp1 = 0 ;
37648 int res1 = 0 ;
37649 wxColour temp2 ;
37650 PyObject * obj0 = 0 ;
37651 PyObject * obj1 = 0 ;
37652 char * kwnames[] = {
37653 (char *) "self",(char *) "colour", NULL
37654 };
37655
37656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
37657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37658 if (!SWIG_IsOK(res1)) {
37659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37660 }
37661 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37662 {
37663 arg2 = &temp2;
37664 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
37665 }
37666 {
37667 PyThreadState* __tstate = wxPyBeginAllowThreads();
37668 (arg1)->SetTextBackground((wxColour const &)*arg2);
37669 wxPyEndAllowThreads(__tstate);
37670 if (PyErr_Occurred()) SWIG_fail;
37671 }
37672 resultobj = SWIG_Py_Void();
37673 return resultobj;
37674 fail:
37675 return NULL;
37676 }
37677
37678
37679 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
37680 PyObject *resultobj = 0;
37681 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
37682 int arg2 ;
37683 void *argp1 = 0 ;
37684 int res1 = 0 ;
37685 int val2 ;
37686 int ecode2 = 0 ;
37687 PyObject * obj0 = 0 ;
37688 PyObject * obj1 = 0 ;
37689 char * kwnames[] = {
37690 (char *) "self",(char *) "function", NULL
37691 };
37692
37693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
37694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
37695 if (!SWIG_IsOK(res1)) {
37696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
37697 }
37698 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
37699 ecode2 = SWIG_AsVal_int(obj1, &val2);
37700 if (!SWIG_IsOK(ecode2)) {
37701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
37702 }
37703 arg2 = static_cast< int >(val2);
37704 {
37705 PyThreadState* __tstate = wxPyBeginAllowThreads();
37706 (arg1)->SetLogicalFunction(arg2);
37707 wxPyEndAllowThreads(__tstate);
37708 if (PyErr_Occurred()) SWIG_fail;
37709 }
37710 resultobj = SWIG_Py_Void();
37711 return resultobj;
37712 fail:
37713 return NULL;
37714 }
37715
37716
37717 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37718 PyObject *obj;
37719 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
37720 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
37721 return SWIG_Py_Void();
37722 }
37723
37724 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
37725 return SWIG_Python_InitShadowInstance(args);
37726 }
37727
37728 static PyMethodDef SwigMethods[] = {
37729 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
37730 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
37731 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
37732 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
37733 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
37734 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
37735 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
37736 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
37737 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
37738 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
37739 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
37740 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
37741 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
37742 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
37743 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
37744 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
37745 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
37746 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
37747 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
37748 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
37749 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
37750 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
37751 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
37752 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
37753 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
37754 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
37755 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
37756 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
37757 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
37758 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
37759 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
37760 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
37761 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
37762 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
37763 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
37764 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
37765 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
37766 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
37767 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
37768 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
37769 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
37770 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
37771 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
37772 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
37773 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
37774 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
37775 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
37776 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
37777 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
37778 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
37779 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
37780 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
37781 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
37782 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
37783 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
37784 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
37785 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
37786 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
37787 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
37788 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
37789 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
37790 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
37791 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
37792 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
37793 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
37794 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
37795 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
37796 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
37797 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
37798 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
37799 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
37800 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
37801 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
37802 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
37803 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
37804 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
37805 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
37806 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
37807 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
37808 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
37809 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
37810 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
37811 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
37812 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
37813 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
37814 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
37815 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
37816 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
37817 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
37818 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
37819 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
37820 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
37821 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
37822 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
37823 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
37824 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
37825 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
37826 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
37827 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
37828 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
37829 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
37830 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
37831 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
37832 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
37833 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
37834 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
37835 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
37836 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
37837 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
37838 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
37839 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
37840 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
37841 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
37842 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
37843 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
37844 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
37845 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
37846 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
37847 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
37848 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
37849 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
37850 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
37851 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
37852 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
37853 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
37854 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
37855 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
37856 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
37857 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
37858 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
37859 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
37860 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
37861 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
37862 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
37863 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
37864 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
37865 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
37866 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
37867 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
37868 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
37869 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
37870 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
37871 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
37872 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
37873 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
37874 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
37875 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
37876 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
37877 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
37878 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
37879 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
37880 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
37881 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
37882 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
37883 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
37884 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
37885 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
37886 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
37887 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
37888 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
37889 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
37890 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
37891 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
37892 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
37893 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
37894 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
37895 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
37896 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
37897 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
37898 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
37899 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
37900 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
37901 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
37902 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
37903 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
37904 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
37905 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
37906 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
37907 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
37908 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
37909 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
37910 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
37911 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
37912 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
37913 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
37914 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
37915 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
37916 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
37917 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
37918 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
37919 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
37920 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
37921 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
37922 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
37923 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
37924 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
37925 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
37926 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
37927 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
37928 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
37929 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
37930 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
37931 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
37932 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
37933 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
37934 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
37935 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
37936 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
37937 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
37938 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
37939 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
37940 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
37941 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
37942 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
37943 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
37944 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
37945 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
37946 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
37947 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
37948 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
37949 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
37950 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
37951 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
37952 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
37953 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
37954 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
37955 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
37956 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
37957 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
37958 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
37959 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
37960 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
37961 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
37962 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
37963 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
37964 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
37965 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
37966 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
37967 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
37968 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
37969 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
37970 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
37971 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
37972 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
37973 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
37974 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
37975 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
37976 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
37977 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
37978 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
37979 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
37980 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
37981 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
37982 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
37983 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
37984 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
37985 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
37986 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
37987 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
37988 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
37989 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
37990 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
37991 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
37992 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
37993 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
37994 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
37995 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
37996 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
37997 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
37998 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
37999 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
38000 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
38001 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38002 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38003 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
38004 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
38005 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
38006 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38007 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38008 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
38009 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38010 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
38011 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
38012 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
38013 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
38014 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
38015 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38016 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38017 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
38018 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
38019 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
38020 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
38021 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
38022 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
38023 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38024 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
38025 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
38026 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38027 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38028 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
38029 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
38030 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
38031 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
38032 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
38033 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
38034 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
38035 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
38036 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
38037 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
38038 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
38039 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
38040 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
38041 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
38042 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
38043 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
38044 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38045 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
38046 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
38047 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
38048 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
38049 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
38050 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
38051 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38052 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38053 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
38054 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
38055 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
38056 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
38057 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
38058 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
38059 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
38060 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
38061 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
38062 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
38063 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
38064 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
38065 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
38066 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38067 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
38068 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
38069 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
38070 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
38071 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
38072 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
38073 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
38074 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
38075 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
38076 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
38077 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
38078 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
38079 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
38080 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
38081 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
38082 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
38083 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
38084 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
38085 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
38086 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
38087 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
38088 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
38089 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
38090 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
38091 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
38092 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
38093 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
38094 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
38095 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
38096 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
38097 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38098 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
38099 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38100 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
38101 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
38102 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
38103 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
38104 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
38105 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
38106 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
38107 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
38108 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
38109 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
38110 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
38111 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
38112 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
38113 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
38114 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
38115 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
38116 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
38117 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
38118 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38119 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
38120 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
38121 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
38122 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
38123 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
38124 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38125 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38126 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
38127 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
38128 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
38129 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38130 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38131 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38132 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38133 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38134 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38135 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38136 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38137 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38138 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38139 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38140 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38141 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38142 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38143 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38144 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38145 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38146 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38147 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38148 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38149 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38150 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38151 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38152 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38153 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38154 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38155 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38156 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38157 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38158 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38159 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38160 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38161 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
38162 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38163 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38164 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38165 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38166 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
38167 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38168 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38169 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38170 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38171 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38172 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
38173 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
38174 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
38175 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
38176 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
38177 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38178 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38179 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38180 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38181 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38182 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38183 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
38184 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
38185 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
38186 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
38187 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
38188 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38189 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38190 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38191 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38192 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
38193 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
38194 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
38195 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
38196 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
38197 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
38198 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38199 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38200 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
38201 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
38202 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
38203 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
38204 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
38205 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
38206 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
38207 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
38208 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
38209 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
38210 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
38211 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
38212 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
38213 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
38214 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
38215 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
38216 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38217 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38218 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
38219 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
38220 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
38221 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
38222 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
38223 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
38224 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
38225 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
38226 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38227 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38228 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
38229 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
38230 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
38231 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38232 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
38233 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
38234 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38235 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
38236 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
38237 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38238 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
38239 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
38240 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
38241 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
38242 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
38243 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
38244 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
38245 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
38246 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
38247 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
38248 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
38249 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
38250 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
38251 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
38252 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
38253 { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38254 { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL},
38255 { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL},
38256 { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL},
38257 { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38258 { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL},
38259 { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL},
38260 { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL},
38261 { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL},
38262 { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL},
38263 { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL},
38264 { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL},
38265 { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL},
38266 { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL},
38267 { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL},
38268 { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL},
38269 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
38270 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
38271 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
38272 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
38273 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
38274 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
38275 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
38276 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
38277 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
38278 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
38279 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
38280 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
38281 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
38282 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
38283 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
38284 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
38285 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
38286 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38287 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
38288 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
38289 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
38290 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
38291 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
38292 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
38293 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
38294 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38295 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
38296 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
38297 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
38298 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
38299 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
38300 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
38301 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
38302 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
38303 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
38304 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
38305 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
38306 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
38307 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
38308 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
38309 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
38310 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
38311 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
38312 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
38313 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
38314 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
38315 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
38316 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
38317 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
38318 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
38319 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
38320 { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL},
38321 { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL},
38322 { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL},
38323 { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL},
38324 { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL},
38325 { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL},
38326 { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL},
38327 { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL},
38328 { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL},
38329 { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL},
38330 { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL},
38331 { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL},
38332 { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL},
38333 { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL},
38334 { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL},
38335 { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL},
38336 { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL},
38337 { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL},
38338 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
38339 { (char *)"GraphicsPath_Clone", (PyCFunction)_wrap_GraphicsPath_Clone, METH_O, NULL},
38340 { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL},
38341 { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL},
38342 { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL},
38343 { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL},
38344 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
38345 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
38346 { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL},
38347 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38348 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38349 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38350 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38351 { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38352 { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38353 { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL},
38354 { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL},
38355 { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL},
38356 { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL},
38357 { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL},
38358 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
38359 { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL},
38360 { (char *)"GraphicsMatrix_Clone", (PyCFunction)_wrap_GraphicsMatrix_Clone, METH_O, NULL},
38361 { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL},
38362 { (char *)"GraphicsMatrix_Copy", (PyCFunction) _wrap_GraphicsMatrix_Copy, METH_VARARGS | METH_KEYWORDS, NULL},
38363 { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38364 { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL},
38365 { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
38366 { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL},
38367 { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38368 { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38369 { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38370 { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38371 { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL},
38372 { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL},
38373 { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL},
38374 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
38375 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
38376 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
38377 { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38378 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
38379 { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38380 { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38381 { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38382 { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38383 { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38384 { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38385 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
38386 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
38387 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
38388 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
38389 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
38390 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
38391 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
38392 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
38393 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
38394 { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL},
38395 { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL},
38396 { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL},
38397 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
38398 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
38399 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
38400 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38401 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38402 { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38403 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
38404 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
38405 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38406 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38407 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
38408 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
38409 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
38410 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38411 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38412 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38413 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38414 { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL},
38415 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
38416 { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL},
38417 { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL},
38418 { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL},
38419 { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL},
38420 { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL},
38421 { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL},
38422 { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL},
38423 { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38424 { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38425 { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38426 { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38427 { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38428 { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
38429 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
38430 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
38431 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
38432 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
38433 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
38434 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
38435 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
38436 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
38437 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
38438 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
38439 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
38440 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
38441 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
38442 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
38443 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
38444 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
38445 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
38446 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
38447 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
38448 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
38449 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38450 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38451 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38452 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
38453 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
38454 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
38455 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
38456 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
38457 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
38458 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
38459 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
38460 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
38461 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
38462 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
38463 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
38464 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38465 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
38466 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
38467 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38468 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38469 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
38470 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
38471 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
38472 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
38473 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
38474 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
38475 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
38476 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
38477 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
38478 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
38479 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38480 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38481 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38482 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
38483 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
38484 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
38485 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
38486 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
38487 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
38488 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
38489 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
38490 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
38491 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
38492 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
38493 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
38494 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
38495 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
38496 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
38497 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
38498 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
38499 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
38500 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
38501 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
38502 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
38503 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
38504 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
38505 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
38506 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38507 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
38508 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38509 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
38510 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38511 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
38512 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38513 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
38514 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
38515 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
38516 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
38517 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
38518 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
38519 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
38520 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
38521 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
38522 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
38523 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
38524 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
38525 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
38526 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
38527 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
38528 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
38529 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
38530 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
38531 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
38532 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
38533 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
38534 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
38535 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
38536 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
38537 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
38538 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
38539 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
38540 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
38541 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
38542 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
38543 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
38544 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
38545 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
38546 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
38547 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
38548 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
38549 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
38550 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
38551 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
38552 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
38553 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
38554 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
38555 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
38556 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
38557 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
38558 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
38559 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
38560 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
38561 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
38562 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
38563 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
38564 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
38565 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
38566 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
38567 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
38568 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
38569 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
38570 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
38571 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
38572 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
38573 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
38574 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
38575 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
38576 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
38577 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
38578 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
38579 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
38580 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
38581 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
38582 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
38583 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
38584 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
38585 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
38586 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38587 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
38588 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38589 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
38590 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38591 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
38592 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38593 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
38594 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
38595 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
38596 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38597 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38598 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38599 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38600 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38601 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38602 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
38603 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
38604 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38605 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
38606 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
38607 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
38608 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
38609 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
38610 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
38611 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38612 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
38613 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38614 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
38615 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38616 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
38617 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
38618 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
38619 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
38620 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38621 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
38622 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
38623 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
38624 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
38625 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
38626 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
38627 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38628 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
38629 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
38630 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
38631 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
38632 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
38633 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
38634 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
38635 { NULL, NULL, 0, NULL }
38636 };
38637
38638
38639 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
38640
38641 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
38642 return (void *)((wxClientDC *) ((wxPaintDC *) x));
38643 }
38644 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
38645 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
38646 }
38647 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
38648 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
38649 }
38650 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
38651 return (void *)((wxWindowDC *) ((wxClientDC *) x));
38652 }
38653 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
38654 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
38655 }
38656 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
38657 return (void *)((wxLocale *) ((wxPyLocale *) x));
38658 }
38659 static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) {
38660 return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x));
38661 }
38662 static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) {
38663 return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x));
38664 }
38665 static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) {
38666 return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x));
38667 }
38668 static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) {
38669 return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x));
38670 }
38671 static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) {
38672 return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x));
38673 }
38674 static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) {
38675 return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x));
38676 }
38677 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
38678 return (void *)((wxGDIObject *) ((wxIcon *) x));
38679 }
38680 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
38681 return (void *)((wxGDIObject *) ((wxPalette *) x));
38682 }
38683 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
38684 return (void *)((wxGDIObject *) ((wxPen *) x));
38685 }
38686 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
38687 return (void *)((wxGDIObject *) ((wxFont *) x));
38688 }
38689 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
38690 return (void *)((wxGDIObject *) ((wxCursor *) x));
38691 }
38692 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
38693 return (void *)((wxGDIObject *) ((wxBitmap *) x));
38694 }
38695 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
38696 return (void *)((wxGDIObject *) ((wxRegion *) x));
38697 }
38698 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
38699 return (void *)((wxGDIObject *) ((wxBrush *) x));
38700 }
38701 static void *_p_wxGCDCTo_p_wxDC(void *x) {
38702 return (void *)((wxDC *) ((wxGCDC *) x));
38703 }
38704 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
38705 return (void *)((wxDC *) ((wxScreenDC *) x));
38706 }
38707 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
38708 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
38709 }
38710 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
38711 return (void *)((wxDC *) ((wxMirrorDC *) x));
38712 }
38713 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
38714 return (void *)((wxDC *) ((wxMemoryDC *) x));
38715 }
38716 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
38717 return (void *)((wxDC *) ((wxWindowDC *) x));
38718 }
38719 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
38720 return (void *)((wxDC *) ((wxMetaFileDC *) x));
38721 }
38722 static void *_p_wxClientDCTo_p_wxDC(void *x) {
38723 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
38724 }
38725 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
38726 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
38727 }
38728 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
38729 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
38730 }
38731 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
38732 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
38733 }
38734 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
38735 return (void *)((wxDC *) ((wxPostScriptDC *) x));
38736 }
38737 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
38738 return (void *)((wxDC *) ((wxPrinterDC *) x));
38739 }
38740 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
38741 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
38742 }
38743 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
38744 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
38745 }
38746 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
38747 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
38748 }
38749 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
38750 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
38751 }
38752 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
38753 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
38754 }
38755 static void *_p_wxPenTo_p_wxObject(void *x) {
38756 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
38757 }
38758 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
38759 return (void *)((wxObject *) ((wxRegionIterator *) x));
38760 }
38761 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
38762 return (void *)((wxObject *) ((wxSizerItem *) x));
38763 }
38764 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
38765 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
38766 }
38767 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
38768 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
38769 }
38770 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
38771 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
38772 }
38773 static void *_p_wxIconTo_p_wxObject(void *x) {
38774 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
38775 }
38776 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
38777 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
38778 }
38779 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
38780 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
38781 }
38782 static void *_p_wxSizerTo_p_wxObject(void *x) {
38783 return (void *)((wxObject *) ((wxSizer *) x));
38784 }
38785 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
38786 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
38787 }
38788 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
38789 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
38790 }
38791 static void *_p_wxEventTo_p_wxObject(void *x) {
38792 return (void *)((wxObject *) ((wxEvent *) x));
38793 }
38794 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
38795 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
38796 }
38797 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
38798 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
38799 }
38800 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
38801 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
38802 }
38803 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
38804 return (void *)((wxObject *) ((wxPseudoDC *) x));
38805 }
38806 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
38807 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
38808 }
38809 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
38810 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
38811 }
38812 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
38813 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
38814 }
38815 static void *_p_wxDCTo_p_wxObject(void *x) {
38816 return (void *)((wxObject *) ((wxDC *) x));
38817 }
38818 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
38819 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
38820 }
38821 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
38822 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
38823 }
38824 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
38825 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
38826 }
38827 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
38828 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
38829 }
38830 static void *_p_wxControlTo_p_wxObject(void *x) {
38831 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
38832 }
38833 static void *_p_wxGraphicsPenTo_p_wxObject(void *x) {
38834 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x));
38835 }
38836 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
38837 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
38838 }
38839 static void *_p_wxClientDCTo_p_wxObject(void *x) {
38840 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
38841 }
38842 static void *_p_wxFSFileTo_p_wxObject(void *x) {
38843 return (void *)((wxObject *) ((wxFSFile *) x));
38844 }
38845 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
38846 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
38847 }
38848 static void *_p_wxRegionTo_p_wxObject(void *x) {
38849 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
38850 }
38851 static void *_p_wxPySizerTo_p_wxObject(void *x) {
38852 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
38853 }
38854 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
38855 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
38856 }
38857 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
38858 return (void *)((wxObject *) ((wxGDIObject *) x));
38859 }
38860 static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) {
38861 return (void *)((wxObject *) ((wxGraphicsObject *) x));
38862 }
38863 static void *_p_wxGraphicsPathTo_p_wxObject(void *x) {
38864 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x));
38865 }
38866 static void *_p_wxEffectsTo_p_wxObject(void *x) {
38867 return (void *)((wxObject *) ((wxEffects *) x));
38868 }
38869 static void *_p_wxPyEventTo_p_wxObject(void *x) {
38870 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
38871 }
38872 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
38873 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
38874 }
38875 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
38876 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
38877 }
38878 static void *_p_wxGraphicsContextTo_p_wxObject(void *x) {
38879 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x));
38880 }
38881 static void *_p_wxShowEventTo_p_wxObject(void *x) {
38882 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
38883 }
38884 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
38885 return (void *)((wxObject *) ((wxMenuItem *) x));
38886 }
38887 static void *_p_wxDateEventTo_p_wxObject(void *x) {
38888 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
38889 }
38890 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
38891 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
38892 }
38893 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
38894 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
38895 }
38896 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
38897 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
38898 }
38899 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
38900 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
38901 }
38902 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
38903 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
38904 }
38905 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
38906 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
38907 }
38908 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
38909 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
38910 }
38911 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
38912 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
38913 }
38914 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
38915 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
38916 }
38917 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
38918 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
38919 }
38920 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
38921 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
38922 }
38923 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
38924 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
38925 }
38926 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
38927 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
38928 }
38929 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
38930 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
38931 }
38932 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
38933 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
38934 }
38935 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
38936 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
38937 }
38938 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
38939 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
38940 }
38941 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
38942 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
38943 }
38944 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
38945 return (void *)((wxObject *) ((wxImageHandler *) x));
38946 }
38947 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
38948 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
38949 }
38950 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
38951 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
38952 }
38953 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
38954 return (void *)((wxObject *) ((wxEvtHandler *) x));
38955 }
38956 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
38957 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
38958 }
38959 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
38960 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
38961 }
38962 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
38963 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
38964 }
38965 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
38966 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
38967 }
38968 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
38969 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
38970 }
38971 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
38972 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
38973 }
38974 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
38975 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
38976 }
38977 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
38978 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
38979 }
38980 static void *_p_wxImageTo_p_wxObject(void *x) {
38981 return (void *)((wxObject *) ((wxImage *) x));
38982 }
38983 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
38984 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
38985 }
38986 static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) {
38987 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x));
38988 }
38989 static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) {
38990 return (void *)((wxObject *) ((wxGraphicsRenderer *) x));
38991 }
38992 static void *_p_wxPaletteTo_p_wxObject(void *x) {
38993 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
38994 }
38995 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
38996 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
38997 }
38998 static void *_p_wxImageListTo_p_wxObject(void *x) {
38999 return (void *)((wxObject *) ((wxImageList *) x));
39000 }
39001 static void *_p_wxGCDCTo_p_wxObject(void *x) {
39002 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
39003 }
39004 static void *_p_wxCursorTo_p_wxObject(void *x) {
39005 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
39006 }
39007 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
39008 return (void *)((wxObject *) ((wxEncodingConverter *) x));
39009 }
39010 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
39011 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
39012 }
39013 static void *_p_wxGraphicsFontTo_p_wxObject(void *x) {
39014 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x));
39015 }
39016 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
39017 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
39018 }
39019 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
39020 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
39021 }
39022 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
39023 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
39024 }
39025 static void *_p_wxWindowTo_p_wxObject(void *x) {
39026 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
39027 }
39028 static void *_p_wxMenuTo_p_wxObject(void *x) {
39029 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
39030 }
39031 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
39032 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
39033 }
39034 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
39035 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
39036 }
39037 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
39038 return (void *)((wxObject *) ((wxFileSystem *) x));
39039 }
39040 static void *_p_wxBitmapTo_p_wxObject(void *x) {
39041 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
39042 }
39043 static void *_p_wxMaskTo_p_wxObject(void *x) {
39044 return (void *)((wxObject *) ((wxMask *) x));
39045 }
39046 static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) {
39047 return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x));
39048 }
39049 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
39050 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
39051 }
39052 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
39053 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
39054 }
39055 static void *_p_wxPyAppTo_p_wxObject(void *x) {
39056 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
39057 }
39058 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
39059 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
39060 }
39061 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
39062 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
39063 }
39064 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
39065 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
39066 }
39067 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
39068 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
39069 }
39070 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
39071 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
39072 }
39073 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
39074 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
39075 }
39076 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
39077 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
39078 }
39079 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
39080 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
39081 }
39082 static void *_p_wxFontTo_p_wxObject(void *x) {
39083 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
39084 }
39085 static void *_p_wxBrushTo_p_wxObject(void *x) {
39086 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
39087 }
39088 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
39089 return (void *)((wxObject *) ((wxMetaFile *) x));
39090 }
39091 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
39092 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
39093 }
39094 static void *_p_wxColourTo_p_wxObject(void *x) {
39095 return (void *)((wxObject *) ((wxColour *) x));
39096 }
39097 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
39098 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
39099 }
39100 static void *_p_wxValidatorTo_p_wxObject(void *x) {
39101 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
39102 }
39103 static void *_p_wxControlTo_p_wxWindow(void *x) {
39104 return (void *)((wxWindow *) ((wxControl *) x));
39105 }
39106 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
39107 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
39108 }
39109 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
39110 return (void *)((wxWindow *) ((wxMenuBar *) x));
39111 }
39112 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
39113 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
39114 }
39115 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
39116 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
39117 }
39118 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
39119 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
39120 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
39121 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};
39122 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
39123 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
39124 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
39125 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
39126 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
39127 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
39128 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
39129 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
39130 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
39131 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
39132 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
39133 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
39134 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
39135 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
39136 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
39137 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
39138 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
39139 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
39140 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
39141 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
39142 static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0};
39143 static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0};
39144 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
39145 static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0};
39146 static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0};
39147 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
39148 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
39149 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
39150 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
39151 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
39152 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
39153 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
39154 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
39155 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
39156 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
39157 static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0};
39158 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
39159 static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0};
39160 static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0};
39161 static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0};
39162 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
39163 static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0};
39164 static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0};
39165 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
39166 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
39167 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
39168 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
39169 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
39170 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
39171 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
39172 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
39173 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
39174 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
39175 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
39176 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
39177 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
39178 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
39179 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
39180 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
39181 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
39182 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
39183 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
39184 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
39185 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
39186 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
39187 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
39188 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
39189 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
39190 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
39191 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
39192 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
39193 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
39194 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
39195 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
39196 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
39197 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
39198 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
39199 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
39200 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
39201 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
39202 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
39203 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
39204 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
39205 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
39206 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
39207 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
39208 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
39209 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
39210 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
39211 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
39212 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
39213 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
39214 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
39215 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
39216 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
39217 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
39218 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
39219 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
39220 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
39221 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
39222 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
39223 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
39224 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
39225 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
39226 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
39227 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
39228 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
39229 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
39230 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
39231 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
39232 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
39233 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
39234 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
39235 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
39236 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
39237 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
39238 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
39239 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
39240 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
39241 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
39242 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
39243 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
39244 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
39245 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
39246 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
39247 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
39248 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
39249 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
39250 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
39251 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
39252 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
39253 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
39254 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
39255 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
39256 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
39257 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
39258 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
39259 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
39260 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
39261 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
39262 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
39263 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
39264 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
39265 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
39266 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
39267 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
39268 static swig_type_info _swigt__p_wxPoint2DDouble = {"_p_wxPoint2DDouble", "wxPoint2DDouble *", 0, 0, (void*)0, 0};
39269 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
39270 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
39271 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
39272 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
39273 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
39274 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
39275 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
39276 static swig_type_info _swigt__p_wxRect2DDouble = {"_p_wxRect2DDouble", "wxRect2DDouble *", 0, 0, (void*)0, 0};
39277 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
39278 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
39279 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
39280 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
39281 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
39282 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
39283 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
39284 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
39285 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
39286 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
39287 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
39288
39289 static swig_type_info *swig_type_initial[] = {
39290 &_swigt__p_buffer,
39291 &_swigt__p_char,
39292 &_swigt__p_double,
39293 &_swigt__p_form_ops_t,
39294 &_swigt__p_int,
39295 &_swigt__p_unsigned_char,
39296 &_swigt__p_unsigned_int,
39297 &_swigt__p_unsigned_long,
39298 &_swigt__p_void,
39299 &_swigt__p_wxANIHandler,
39300 &_swigt__p_wxAcceleratorTable,
39301 &_swigt__p_wxActivateEvent,
39302 &_swigt__p_wxAlphaPixelData,
39303 &_swigt__p_wxAlphaPixelData_Accessor,
39304 &_swigt__p_wxAutoBufferedPaintDC,
39305 &_swigt__p_wxBMPHandler,
39306 &_swigt__p_wxBitmap,
39307 &_swigt__p_wxBoxSizer,
39308 &_swigt__p_wxBrush,
39309 &_swigt__p_wxBrushList,
39310 &_swigt__p_wxBufferedDC,
39311 &_swigt__p_wxBufferedPaintDC,
39312 &_swigt__p_wxCURHandler,
39313 &_swigt__p_wxChar,
39314 &_swigt__p_wxChildFocusEvent,
39315 &_swigt__p_wxClientDC,
39316 &_swigt__p_wxClipboardTextEvent,
39317 &_swigt__p_wxCloseEvent,
39318 &_swigt__p_wxColor,
39319 &_swigt__p_wxColour,
39320 &_swigt__p_wxColourDatabase,
39321 &_swigt__p_wxCommandEvent,
39322 &_swigt__p_wxContextMenuEvent,
39323 &_swigt__p_wxControl,
39324 &_swigt__p_wxControlWithItems,
39325 &_swigt__p_wxCursor,
39326 &_swigt__p_wxDC,
39327 &_swigt__p_wxDCBrushChanger,
39328 &_swigt__p_wxDCClipper,
39329 &_swigt__p_wxDCOverlay,
39330 &_swigt__p_wxDCPenChanger,
39331 &_swigt__p_wxDCTextColourChanger,
39332 &_swigt__p_wxDash,
39333 &_swigt__p_wxDateEvent,
39334 &_swigt__p_wxDisplayChangedEvent,
39335 &_swigt__p_wxDropFilesEvent,
39336 &_swigt__p_wxDuplexMode,
39337 &_swigt__p_wxEffects,
39338 &_swigt__p_wxEncodingConverter,
39339 &_swigt__p_wxEraseEvent,
39340 &_swigt__p_wxEvent,
39341 &_swigt__p_wxEvtHandler,
39342 &_swigt__p_wxFSFile,
39343 &_swigt__p_wxFileSystem,
39344 &_swigt__p_wxFlexGridSizer,
39345 &_swigt__p_wxFocusEvent,
39346 &_swigt__p_wxFont,
39347 &_swigt__p_wxFontList,
39348 &_swigt__p_wxFontMapper,
39349 &_swigt__p_wxGBSizerItem,
39350 &_swigt__p_wxGCDC,
39351 &_swigt__p_wxGDIObjListBase,
39352 &_swigt__p_wxGDIObject,
39353 &_swigt__p_wxGIFHandler,
39354 &_swigt__p_wxGraphicsBrush,
39355 &_swigt__p_wxGraphicsContext,
39356 &_swigt__p_wxGraphicsFont,
39357 &_swigt__p_wxGraphicsMatrix,
39358 &_swigt__p_wxGraphicsObject,
39359 &_swigt__p_wxGraphicsPath,
39360 &_swigt__p_wxGraphicsPen,
39361 &_swigt__p_wxGraphicsRenderer,
39362 &_swigt__p_wxGridBagSizer,
39363 &_swigt__p_wxGridSizer,
39364 &_swigt__p_wxHeaderButtonParams,
39365 &_swigt__p_wxICOHandler,
39366 &_swigt__p_wxIcon,
39367 &_swigt__p_wxIconBundle,
39368 &_swigt__p_wxIconLocation,
39369 &_swigt__p_wxIconizeEvent,
39370 &_swigt__p_wxIdleEvent,
39371 &_swigt__p_wxImage,
39372 &_swigt__p_wxImageHandler,
39373 &_swigt__p_wxImageList,
39374 &_swigt__p_wxIndividualLayoutConstraint,
39375 &_swigt__p_wxInitDialogEvent,
39376 &_swigt__p_wxJPEGHandler,
39377 &_swigt__p_wxKeyEvent,
39378 &_swigt__p_wxLanguageInfo,
39379 &_swigt__p_wxLayoutConstraints,
39380 &_swigt__p_wxLocale,
39381 &_swigt__p_wxMask,
39382 &_swigt__p_wxMaximizeEvent,
39383 &_swigt__p_wxMemoryDC,
39384 &_swigt__p_wxMenu,
39385 &_swigt__p_wxMenuBar,
39386 &_swigt__p_wxMenuEvent,
39387 &_swigt__p_wxMenuItem,
39388 &_swigt__p_wxMetaFile,
39389 &_swigt__p_wxMetaFileDC,
39390 &_swigt__p_wxMirrorDC,
39391 &_swigt__p_wxMouseCaptureChangedEvent,
39392 &_swigt__p_wxMouseCaptureLostEvent,
39393 &_swigt__p_wxMouseEvent,
39394 &_swigt__p_wxMoveEvent,
39395 &_swigt__p_wxNativeEncodingInfo,
39396 &_swigt__p_wxNativeFontInfo,
39397 &_swigt__p_wxNativePixelData,
39398 &_swigt__p_wxNativePixelData_Accessor,
39399 &_swigt__p_wxNavigationKeyEvent,
39400 &_swigt__p_wxNcPaintEvent,
39401 &_swigt__p_wxNotifyEvent,
39402 &_swigt__p_wxObject,
39403 &_swigt__p_wxOverlay,
39404 &_swigt__p_wxPCXHandler,
39405 &_swigt__p_wxPNGHandler,
39406 &_swigt__p_wxPNMHandler,
39407 &_swigt__p_wxPaintDC,
39408 &_swigt__p_wxPaintEvent,
39409 &_swigt__p_wxPalette,
39410 &_swigt__p_wxPaletteChangedEvent,
39411 &_swigt__p_wxPaperSize,
39412 &_swigt__p_wxPen,
39413 &_swigt__p_wxPenList,
39414 &_swigt__p_wxPixelDataBase,
39415 &_swigt__p_wxPoint,
39416 &_swigt__p_wxPoint2D,
39417 &_swigt__p_wxPoint2DDouble,
39418 &_swigt__p_wxPostScriptDC,
39419 &_swigt__p_wxPrintData,
39420 &_swigt__p_wxPrinterDC,
39421 &_swigt__p_wxPseudoDC,
39422 &_swigt__p_wxPyApp,
39423 &_swigt__p_wxPyCommandEvent,
39424 &_swigt__p_wxPyEvent,
39425 &_swigt__p_wxPyFontEnumerator,
39426 &_swigt__p_wxPyImageHandler,
39427 &_swigt__p_wxPyLocale,
39428 &_swigt__p_wxPySizer,
39429 &_swigt__p_wxPyValidator,
39430 &_swigt__p_wxQueryNewPaletteEvent,
39431 &_swigt__p_wxRect,
39432 &_swigt__p_wxRect2DDouble,
39433 &_swigt__p_wxRegion,
39434 &_swigt__p_wxRegionIterator,
39435 &_swigt__p_wxRendererNative,
39436 &_swigt__p_wxRendererVersion,
39437 &_swigt__p_wxScreenDC,
39438 &_swigt__p_wxScrollEvent,
39439 &_swigt__p_wxScrollWinEvent,
39440 &_swigt__p_wxSetCursorEvent,
39441 &_swigt__p_wxShowEvent,
39442 &_swigt__p_wxSize,
39443 &_swigt__p_wxSizeEvent,
39444 &_swigt__p_wxSizer,
39445 &_swigt__p_wxSizerItem,
39446 &_swigt__p_wxSplitterRenderParams,
39447 &_swigt__p_wxStaticBoxSizer,
39448 &_swigt__p_wxStdDialogButtonSizer,
39449 &_swigt__p_wxStockGDI,
39450 &_swigt__p_wxString,
39451 &_swigt__p_wxSysColourChangedEvent,
39452 &_swigt__p_wxTIFFHandler,
39453 &_swigt__p_wxUpdateUIEvent,
39454 &_swigt__p_wxValidator,
39455 &_swigt__p_wxWindow,
39456 &_swigt__p_wxWindowCreateEvent,
39457 &_swigt__p_wxWindowDC,
39458 &_swigt__p_wxWindowDestroyEvent,
39459 &_swigt__p_wxXPMHandler,
39460 };
39461
39462 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
39463 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
39464 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
39465 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
39466 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
39467 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
39468 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
39469 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
39470 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
39471 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
39472 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
39473 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
39474 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
39475 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
39476 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
39477 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}};
39478 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
39479 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
39480 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}};
39481 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
39482 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
39483 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
39484 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
39485 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
39486 static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}};
39487 static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}};
39488 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
39489 static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}};
39490 static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}};
39491 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
39492 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
39493 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
39494 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
39495 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
39496 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
39497 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
39498 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
39499 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}};
39500 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}};
39501 static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}};
39502 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
39503 static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}};
39504 static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}};
39505 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}};
39506 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
39507 static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}};
39508 static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}};
39509 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
39510 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
39511 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
39512 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
39513 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
39514 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
39515 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
39516 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}};
39517 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
39518 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}};
39519 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
39520 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
39521 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
39522 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
39523 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
39524 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
39525 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
39526 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
39527 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
39528 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
39529 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
39530 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
39531 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39532 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
39533 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
39534 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
39535 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
39536 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
39537 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
39538 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39539 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
39540 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
39541 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
39542 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39543 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
39544 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39545 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39546 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39547 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
39548 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
39549 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
39550 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
39551 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
39552 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
39553 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
39554 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
39555 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
39556 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
39557 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
39558 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
39559 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
39560 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39561 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39562 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
39563 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
39564 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
39565 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
39566 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
39567 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
39568 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
39569 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
39570 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
39571 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
39572 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
39573 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
39574 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
39575 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
39576 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
39577 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
39578 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
39579 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
39580 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
39581 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
39582 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
39583 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
39584 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
39585 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
39586 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
39587 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
39588 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
39589 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
39590 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
39591 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
39592 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
39593 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
39594 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
39595 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
39596 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
39597 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
39598 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
39599 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
39600 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
39601 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
39602 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
39603 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
39604 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
39605 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
39606 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
39607 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
39608 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
39609 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}};
39610 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
39611 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
39612 static swig_cast_info _swigc__p_wxPoint2DDouble[] = { {&_swigt__p_wxPoint2DDouble, 0, 0, 0},{0, 0, 0, 0}};
39613 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
39614 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
39615 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
39616 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
39617 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
39618 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
39619 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
39620 static swig_cast_info _swigc__p_wxRect2DDouble[] = { {&_swigt__p_wxRect2DDouble, 0, 0, 0},{0, 0, 0, 0}};
39621 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
39622 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
39623 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
39624 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
39625 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
39626 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
39627 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
39628 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
39629 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
39630 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}};
39631 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
39632
39633 static swig_cast_info *swig_cast_initial[] = {
39634 _swigc__p_buffer,
39635 _swigc__p_char,
39636 _swigc__p_double,
39637 _swigc__p_form_ops_t,
39638 _swigc__p_int,
39639 _swigc__p_unsigned_char,
39640 _swigc__p_unsigned_int,
39641 _swigc__p_unsigned_long,
39642 _swigc__p_void,
39643 _swigc__p_wxANIHandler,
39644 _swigc__p_wxAcceleratorTable,
39645 _swigc__p_wxActivateEvent,
39646 _swigc__p_wxAlphaPixelData,
39647 _swigc__p_wxAlphaPixelData_Accessor,
39648 _swigc__p_wxAutoBufferedPaintDC,
39649 _swigc__p_wxBMPHandler,
39650 _swigc__p_wxBitmap,
39651 _swigc__p_wxBoxSizer,
39652 _swigc__p_wxBrush,
39653 _swigc__p_wxBrushList,
39654 _swigc__p_wxBufferedDC,
39655 _swigc__p_wxBufferedPaintDC,
39656 _swigc__p_wxCURHandler,
39657 _swigc__p_wxChar,
39658 _swigc__p_wxChildFocusEvent,
39659 _swigc__p_wxClientDC,
39660 _swigc__p_wxClipboardTextEvent,
39661 _swigc__p_wxCloseEvent,
39662 _swigc__p_wxColor,
39663 _swigc__p_wxColour,
39664 _swigc__p_wxColourDatabase,
39665 _swigc__p_wxCommandEvent,
39666 _swigc__p_wxContextMenuEvent,
39667 _swigc__p_wxControl,
39668 _swigc__p_wxControlWithItems,
39669 _swigc__p_wxCursor,
39670 _swigc__p_wxDC,
39671 _swigc__p_wxDCBrushChanger,
39672 _swigc__p_wxDCClipper,
39673 _swigc__p_wxDCOverlay,
39674 _swigc__p_wxDCPenChanger,
39675 _swigc__p_wxDCTextColourChanger,
39676 _swigc__p_wxDash,
39677 _swigc__p_wxDateEvent,
39678 _swigc__p_wxDisplayChangedEvent,
39679 _swigc__p_wxDropFilesEvent,
39680 _swigc__p_wxDuplexMode,
39681 _swigc__p_wxEffects,
39682 _swigc__p_wxEncodingConverter,
39683 _swigc__p_wxEraseEvent,
39684 _swigc__p_wxEvent,
39685 _swigc__p_wxEvtHandler,
39686 _swigc__p_wxFSFile,
39687 _swigc__p_wxFileSystem,
39688 _swigc__p_wxFlexGridSizer,
39689 _swigc__p_wxFocusEvent,
39690 _swigc__p_wxFont,
39691 _swigc__p_wxFontList,
39692 _swigc__p_wxFontMapper,
39693 _swigc__p_wxGBSizerItem,
39694 _swigc__p_wxGCDC,
39695 _swigc__p_wxGDIObjListBase,
39696 _swigc__p_wxGDIObject,
39697 _swigc__p_wxGIFHandler,
39698 _swigc__p_wxGraphicsBrush,
39699 _swigc__p_wxGraphicsContext,
39700 _swigc__p_wxGraphicsFont,
39701 _swigc__p_wxGraphicsMatrix,
39702 _swigc__p_wxGraphicsObject,
39703 _swigc__p_wxGraphicsPath,
39704 _swigc__p_wxGraphicsPen,
39705 _swigc__p_wxGraphicsRenderer,
39706 _swigc__p_wxGridBagSizer,
39707 _swigc__p_wxGridSizer,
39708 _swigc__p_wxHeaderButtonParams,
39709 _swigc__p_wxICOHandler,
39710 _swigc__p_wxIcon,
39711 _swigc__p_wxIconBundle,
39712 _swigc__p_wxIconLocation,
39713 _swigc__p_wxIconizeEvent,
39714 _swigc__p_wxIdleEvent,
39715 _swigc__p_wxImage,
39716 _swigc__p_wxImageHandler,
39717 _swigc__p_wxImageList,
39718 _swigc__p_wxIndividualLayoutConstraint,
39719 _swigc__p_wxInitDialogEvent,
39720 _swigc__p_wxJPEGHandler,
39721 _swigc__p_wxKeyEvent,
39722 _swigc__p_wxLanguageInfo,
39723 _swigc__p_wxLayoutConstraints,
39724 _swigc__p_wxLocale,
39725 _swigc__p_wxMask,
39726 _swigc__p_wxMaximizeEvent,
39727 _swigc__p_wxMemoryDC,
39728 _swigc__p_wxMenu,
39729 _swigc__p_wxMenuBar,
39730 _swigc__p_wxMenuEvent,
39731 _swigc__p_wxMenuItem,
39732 _swigc__p_wxMetaFile,
39733 _swigc__p_wxMetaFileDC,
39734 _swigc__p_wxMirrorDC,
39735 _swigc__p_wxMouseCaptureChangedEvent,
39736 _swigc__p_wxMouseCaptureLostEvent,
39737 _swigc__p_wxMouseEvent,
39738 _swigc__p_wxMoveEvent,
39739 _swigc__p_wxNativeEncodingInfo,
39740 _swigc__p_wxNativeFontInfo,
39741 _swigc__p_wxNativePixelData,
39742 _swigc__p_wxNativePixelData_Accessor,
39743 _swigc__p_wxNavigationKeyEvent,
39744 _swigc__p_wxNcPaintEvent,
39745 _swigc__p_wxNotifyEvent,
39746 _swigc__p_wxObject,
39747 _swigc__p_wxOverlay,
39748 _swigc__p_wxPCXHandler,
39749 _swigc__p_wxPNGHandler,
39750 _swigc__p_wxPNMHandler,
39751 _swigc__p_wxPaintDC,
39752 _swigc__p_wxPaintEvent,
39753 _swigc__p_wxPalette,
39754 _swigc__p_wxPaletteChangedEvent,
39755 _swigc__p_wxPaperSize,
39756 _swigc__p_wxPen,
39757 _swigc__p_wxPenList,
39758 _swigc__p_wxPixelDataBase,
39759 _swigc__p_wxPoint,
39760 _swigc__p_wxPoint2D,
39761 _swigc__p_wxPoint2DDouble,
39762 _swigc__p_wxPostScriptDC,
39763 _swigc__p_wxPrintData,
39764 _swigc__p_wxPrinterDC,
39765 _swigc__p_wxPseudoDC,
39766 _swigc__p_wxPyApp,
39767 _swigc__p_wxPyCommandEvent,
39768 _swigc__p_wxPyEvent,
39769 _swigc__p_wxPyFontEnumerator,
39770 _swigc__p_wxPyImageHandler,
39771 _swigc__p_wxPyLocale,
39772 _swigc__p_wxPySizer,
39773 _swigc__p_wxPyValidator,
39774 _swigc__p_wxQueryNewPaletteEvent,
39775 _swigc__p_wxRect,
39776 _swigc__p_wxRect2DDouble,
39777 _swigc__p_wxRegion,
39778 _swigc__p_wxRegionIterator,
39779 _swigc__p_wxRendererNative,
39780 _swigc__p_wxRendererVersion,
39781 _swigc__p_wxScreenDC,
39782 _swigc__p_wxScrollEvent,
39783 _swigc__p_wxScrollWinEvent,
39784 _swigc__p_wxSetCursorEvent,
39785 _swigc__p_wxShowEvent,
39786 _swigc__p_wxSize,
39787 _swigc__p_wxSizeEvent,
39788 _swigc__p_wxSizer,
39789 _swigc__p_wxSizerItem,
39790 _swigc__p_wxSplitterRenderParams,
39791 _swigc__p_wxStaticBoxSizer,
39792 _swigc__p_wxStdDialogButtonSizer,
39793 _swigc__p_wxStockGDI,
39794 _swigc__p_wxString,
39795 _swigc__p_wxSysColourChangedEvent,
39796 _swigc__p_wxTIFFHandler,
39797 _swigc__p_wxUpdateUIEvent,
39798 _swigc__p_wxValidator,
39799 _swigc__p_wxWindow,
39800 _swigc__p_wxWindowCreateEvent,
39801 _swigc__p_wxWindowDC,
39802 _swigc__p_wxWindowDestroyEvent,
39803 _swigc__p_wxXPMHandler,
39804 };
39805
39806
39807 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
39808
39809 static swig_const_info swig_const_table[] = {
39810 {0, 0, 0, 0.0, 0, 0}};
39811
39812 #ifdef __cplusplus
39813 }
39814 #endif
39815 /* -----------------------------------------------------------------------------
39816 * Type initialization:
39817 * This problem is tough by the requirement that no dynamic
39818 * memory is used. Also, since swig_type_info structures store pointers to
39819 * swig_cast_info structures and swig_cast_info structures store pointers back
39820 * to swig_type_info structures, we need some lookup code at initialization.
39821 * The idea is that swig generates all the structures that are needed.
39822 * The runtime then collects these partially filled structures.
39823 * The SWIG_InitializeModule function takes these initial arrays out of
39824 * swig_module, and does all the lookup, filling in the swig_module.types
39825 * array with the correct data and linking the correct swig_cast_info
39826 * structures together.
39827 *
39828 * The generated swig_type_info structures are assigned staticly to an initial
39829 * array. We just loop though that array, and handle each type individually.
39830 * First we lookup if this type has been already loaded, and if so, use the
39831 * loaded structure instead of the generated one. Then we have to fill in the
39832 * cast linked list. The cast data is initially stored in something like a
39833 * two-dimensional array. Each row corresponds to a type (there are the same
39834 * number of rows as there are in the swig_type_initial array). Each entry in
39835 * a column is one of the swig_cast_info structures for that type.
39836 * The cast_initial array is actually an array of arrays, because each row has
39837 * a variable number of columns. So to actually build the cast linked list,
39838 * we find the array of casts associated with the type, and loop through it
39839 * adding the casts to the list. The one last trick we need to do is making
39840 * sure the type pointer in the swig_cast_info struct is correct.
39841 *
39842 * First off, we lookup the cast->type name to see if it is already loaded.
39843 * There are three cases to handle:
39844 * 1) If the cast->type has already been loaded AND the type we are adding
39845 * casting info to has not been loaded (it is in this module), THEN we
39846 * replace the cast->type pointer with the type pointer that has already
39847 * been loaded.
39848 * 2) If BOTH types (the one we are adding casting info to, and the
39849 * cast->type) are loaded, THEN the cast info has already been loaded by
39850 * the previous module so we just ignore it.
39851 * 3) Finally, if cast->type has not already been loaded, then we add that
39852 * swig_cast_info to the linked list (because the cast->type) pointer will
39853 * be correct.
39854 * ----------------------------------------------------------------------------- */
39855
39856 #ifdef __cplusplus
39857 extern "C" {
39858 #if 0
39859 } /* c-mode */
39860 #endif
39861 #endif
39862
39863 #if 0
39864 #define SWIGRUNTIME_DEBUG
39865 #endif
39866
39867 SWIGRUNTIME void
39868 SWIG_InitializeModule(void *clientdata) {
39869 size_t i;
39870 swig_module_info *module_head;
39871 static int init_run = 0;
39872
39873 clientdata = clientdata;
39874
39875 if (init_run) return;
39876 init_run = 1;
39877
39878 /* Initialize the swig_module */
39879 swig_module.type_initial = swig_type_initial;
39880 swig_module.cast_initial = swig_cast_initial;
39881
39882 /* Try and load any already created modules */
39883 module_head = SWIG_GetModule(clientdata);
39884 if (module_head) {
39885 swig_module.next = module_head->next;
39886 module_head->next = &swig_module;
39887 } else {
39888 /* This is the first module loaded */
39889 swig_module.next = &swig_module;
39890 SWIG_SetModule(clientdata, &swig_module);
39891 }
39892
39893 /* Now work on filling in swig_module.types */
39894 #ifdef SWIGRUNTIME_DEBUG
39895 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
39896 #endif
39897 for (i = 0; i < swig_module.size; ++i) {
39898 swig_type_info *type = 0;
39899 swig_type_info *ret;
39900 swig_cast_info *cast;
39901
39902 #ifdef SWIGRUNTIME_DEBUG
39903 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
39904 #endif
39905
39906 /* if there is another module already loaded */
39907 if (swig_module.next != &swig_module) {
39908 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
39909 }
39910 if (type) {
39911 /* Overwrite clientdata field */
39912 #ifdef SWIGRUNTIME_DEBUG
39913 printf("SWIG_InitializeModule: found type %s\n", type->name);
39914 #endif
39915 if (swig_module.type_initial[i]->clientdata) {
39916 type->clientdata = swig_module.type_initial[i]->clientdata;
39917 #ifdef SWIGRUNTIME_DEBUG
39918 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
39919 #endif
39920 }
39921 } else {
39922 type = swig_module.type_initial[i];
39923 }
39924
39925 /* Insert casting types */
39926 cast = swig_module.cast_initial[i];
39927 while (cast->type) {
39928 /* Don't need to add information already in the list */
39929 ret = 0;
39930 #ifdef SWIGRUNTIME_DEBUG
39931 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
39932 #endif
39933 if (swig_module.next != &swig_module) {
39934 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
39935 #ifdef SWIGRUNTIME_DEBUG
39936 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
39937 #endif
39938 }
39939 if (ret) {
39940 if (type == swig_module.type_initial[i]) {
39941 #ifdef SWIGRUNTIME_DEBUG
39942 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
39943 #endif
39944 cast->type = ret;
39945 ret = 0;
39946 } else {
39947 /* Check for casting already in the list */
39948 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
39949 #ifdef SWIGRUNTIME_DEBUG
39950 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
39951 #endif
39952 if (!ocast) ret = 0;
39953 }
39954 }
39955
39956 if (!ret) {
39957 #ifdef SWIGRUNTIME_DEBUG
39958 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
39959 #endif
39960 if (type->cast) {
39961 type->cast->prev = cast;
39962 cast->next = type->cast;
39963 }
39964 type->cast = cast;
39965 }
39966 cast++;
39967 }
39968 /* Set entry in modules->types array equal to the type */
39969 swig_module.types[i] = type;
39970 }
39971 swig_module.types[i] = 0;
39972
39973 #ifdef SWIGRUNTIME_DEBUG
39974 printf("**** SWIG_InitializeModule: Cast List ******\n");
39975 for (i = 0; i < swig_module.size; ++i) {
39976 int j = 0;
39977 swig_cast_info *cast = swig_module.cast_initial[i];
39978 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
39979 while (cast->type) {
39980 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
39981 cast++;
39982 ++j;
39983 }
39984 printf("---- Total casts: %d\n",j);
39985 }
39986 printf("**** SWIG_InitializeModule: Cast List ******\n");
39987 #endif
39988 }
39989
39990 /* This function will propagate the clientdata field of type to
39991 * any new swig_type_info structures that have been added into the list
39992 * of equivalent types. It is like calling
39993 * SWIG_TypeClientData(type, clientdata) a second time.
39994 */
39995 SWIGRUNTIME void
39996 SWIG_PropagateClientData(void) {
39997 size_t i;
39998 swig_cast_info *equiv;
39999 static int init_run = 0;
40000
40001 if (init_run) return;
40002 init_run = 1;
40003
40004 for (i = 0; i < swig_module.size; i++) {
40005 if (swig_module.types[i]->clientdata) {
40006 equiv = swig_module.types[i]->cast;
40007 while (equiv) {
40008 if (!equiv->converter) {
40009 if (equiv->type && !equiv->type->clientdata)
40010 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
40011 }
40012 equiv = equiv->next;
40013 }
40014 }
40015 }
40016 }
40017
40018 #ifdef __cplusplus
40019 #if 0
40020 {
40021 /* c-mode */
40022 #endif
40023 }
40024 #endif
40025
40026
40027
40028 #ifdef __cplusplus
40029 extern "C" {
40030 #endif
40031
40032 /* Python-specific SWIG API */
40033 #define SWIG_newvarlink() SWIG_Python_newvarlink()
40034 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
40035 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
40036
40037 /* -----------------------------------------------------------------------------
40038 * global variable support code.
40039 * ----------------------------------------------------------------------------- */
40040
40041 typedef struct swig_globalvar {
40042 char *name; /* Name of global variable */
40043 PyObject *(*get_attr)(void); /* Return the current value */
40044 int (*set_attr)(PyObject *); /* Set the value */
40045 struct swig_globalvar *next;
40046 } swig_globalvar;
40047
40048 typedef struct swig_varlinkobject {
40049 PyObject_HEAD
40050 swig_globalvar *vars;
40051 } swig_varlinkobject;
40052
40053 SWIGINTERN PyObject *
40054 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
40055 return PyString_FromString("<Swig global variables>");
40056 }
40057
40058 SWIGINTERN PyObject *
40059 swig_varlink_str(swig_varlinkobject *v) {
40060 PyObject *str = PyString_FromString("(");
40061 swig_globalvar *var;
40062 for (var = v->vars; var; var=var->next) {
40063 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
40064 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
40065 }
40066 PyString_ConcatAndDel(&str,PyString_FromString(")"));
40067 return str;
40068 }
40069
40070 SWIGINTERN int
40071 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
40072 PyObject *str = swig_varlink_str(v);
40073 fprintf(fp,"Swig global variables ");
40074 fprintf(fp,"%s\n", PyString_AsString(str));
40075 Py_DECREF(str);
40076 return 0;
40077 }
40078
40079 SWIGINTERN void
40080 swig_varlink_dealloc(swig_varlinkobject *v) {
40081 swig_globalvar *var = v->vars;
40082 while (var) {
40083 swig_globalvar *n = var->next;
40084 free(var->name);
40085 free(var);
40086 var = n;
40087 }
40088 }
40089
40090 SWIGINTERN PyObject *
40091 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
40092 PyObject *res = NULL;
40093 swig_globalvar *var = v->vars;
40094 while (var) {
40095 if (strcmp(var->name,n) == 0) {
40096 res = (*var->get_attr)();
40097 break;
40098 }
40099 var = var->next;
40100 }
40101 if (res == NULL && !PyErr_Occurred()) {
40102 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40103 }
40104 return res;
40105 }
40106
40107 SWIGINTERN int
40108 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
40109 int res = 1;
40110 swig_globalvar *var = v->vars;
40111 while (var) {
40112 if (strcmp(var->name,n) == 0) {
40113 res = (*var->set_attr)(p);
40114 break;
40115 }
40116 var = var->next;
40117 }
40118 if (res == 1 && !PyErr_Occurred()) {
40119 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
40120 }
40121 return res;
40122 }
40123
40124 SWIGINTERN PyTypeObject*
40125 swig_varlink_type(void) {
40126 static char varlink__doc__[] = "Swig var link object";
40127 static PyTypeObject varlink_type;
40128 static int type_init = 0;
40129 if (!type_init) {
40130 const PyTypeObject tmp
40131 = {
40132 PyObject_HEAD_INIT(NULL)
40133 0, /* Number of items in variable part (ob_size) */
40134 (char *)"swigvarlink", /* Type name (tp_name) */
40135 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
40136 0, /* Itemsize (tp_itemsize) */
40137 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
40138 (printfunc) swig_varlink_print, /* Print (tp_print) */
40139 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
40140 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
40141 0, /* tp_compare */
40142 (reprfunc) swig_varlink_repr, /* tp_repr */
40143 0, /* tp_as_number */
40144 0, /* tp_as_sequence */
40145 0, /* tp_as_mapping */
40146 0, /* tp_hash */
40147 0, /* tp_call */
40148 (reprfunc)swig_varlink_str, /* tp_str */
40149 0, /* tp_getattro */
40150 0, /* tp_setattro */
40151 0, /* tp_as_buffer */
40152 0, /* tp_flags */
40153 varlink__doc__, /* tp_doc */
40154 0, /* tp_traverse */
40155 0, /* tp_clear */
40156 0, /* tp_richcompare */
40157 0, /* tp_weaklistoffset */
40158 #if PY_VERSION_HEX >= 0x02020000
40159 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
40160 #endif
40161 #if PY_VERSION_HEX >= 0x02030000
40162 0, /* tp_del */
40163 #endif
40164 #ifdef COUNT_ALLOCS
40165 0,0,0,0 /* tp_alloc -> tp_next */
40166 #endif
40167 };
40168 varlink_type = tmp;
40169 varlink_type.ob_type = &PyType_Type;
40170 type_init = 1;
40171 }
40172 return &varlink_type;
40173 }
40174
40175 /* Create a variable linking object for use later */
40176 SWIGINTERN PyObject *
40177 SWIG_Python_newvarlink(void) {
40178 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
40179 if (result) {
40180 result->vars = 0;
40181 }
40182 return ((PyObject*) result);
40183 }
40184
40185 SWIGINTERN void
40186 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
40187 swig_varlinkobject *v = (swig_varlinkobject *) p;
40188 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
40189 if (gv) {
40190 size_t size = strlen(name)+1;
40191 gv->name = (char *)malloc(size);
40192 if (gv->name) {
40193 strncpy(gv->name,name,size);
40194 gv->get_attr = get_attr;
40195 gv->set_attr = set_attr;
40196 gv->next = v->vars;
40197 }
40198 }
40199 v->vars = gv;
40200 }
40201
40202 SWIGINTERN PyObject *
40203 SWIG_globals() {
40204 static PyObject *_SWIG_globals = 0;
40205 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
40206 return _SWIG_globals;
40207 }
40208
40209 /* -----------------------------------------------------------------------------
40210 * constants/methods manipulation
40211 * ----------------------------------------------------------------------------- */
40212
40213 /* Install Constants */
40214 SWIGINTERN void
40215 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
40216 PyObject *obj = 0;
40217 size_t i;
40218 for (i = 0; constants[i].type; ++i) {
40219 switch(constants[i].type) {
40220 case SWIG_PY_POINTER:
40221 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
40222 break;
40223 case SWIG_PY_BINARY:
40224 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
40225 break;
40226 default:
40227 obj = 0;
40228 break;
40229 }
40230 if (obj) {
40231 PyDict_SetItemString(d, constants[i].name, obj);
40232 Py_DECREF(obj);
40233 }
40234 }
40235 }
40236
40237 /* -----------------------------------------------------------------------------*/
40238 /* Fix SwigMethods to carry the callback ptrs when needed */
40239 /* -----------------------------------------------------------------------------*/
40240
40241 SWIGINTERN void
40242 SWIG_Python_FixMethods(PyMethodDef *methods,
40243 swig_const_info *const_table,
40244 swig_type_info **types,
40245 swig_type_info **types_initial) {
40246 size_t i;
40247 for (i = 0; methods[i].ml_name; ++i) {
40248 const char *c = methods[i].ml_doc;
40249 if (c && (c = strstr(c, "swig_ptr: "))) {
40250 int j;
40251 swig_const_info *ci = 0;
40252 const char *name = c + 10;
40253 for (j = 0; const_table[j].type; ++j) {
40254 if (strncmp(const_table[j].name, name,
40255 strlen(const_table[j].name)) == 0) {
40256 ci = &(const_table[j]);
40257 break;
40258 }
40259 }
40260 if (ci) {
40261 size_t shift = (ci->ptype) - types;
40262 swig_type_info *ty = types_initial[shift];
40263 size_t ldoc = (c - methods[i].ml_doc);
40264 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
40265 char *ndoc = (char*)malloc(ldoc + lptr + 10);
40266 if (ndoc) {
40267 char *buff = ndoc;
40268 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
40269 if (ptr) {
40270 strncpy(buff, methods[i].ml_doc, ldoc);
40271 buff += ldoc;
40272 strncpy(buff, "swig_ptr: ", 10);
40273 buff += 10;
40274 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
40275 methods[i].ml_doc = ndoc;
40276 }
40277 }
40278 }
40279 }
40280 }
40281 }
40282
40283 #ifdef __cplusplus
40284 }
40285 #endif
40286
40287 /* -----------------------------------------------------------------------------*
40288 * Partial Init method
40289 * -----------------------------------------------------------------------------*/
40290
40291 #ifdef __cplusplus
40292 extern "C"
40293 #endif
40294 SWIGEXPORT void SWIG_init(void) {
40295 PyObject *m, *d;
40296
40297 /* Fix SwigMethods to carry the callback ptrs when needed */
40298 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
40299
40300 m = Py_InitModule((char *) SWIG_name, SwigMethods);
40301 d = PyModule_GetDict(m);
40302
40303 SWIG_InitializeModule(0);
40304 SWIG_InstallConstants(d,swig_const_table);
40305
40306
40307 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
40308 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
40309 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
40310 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
40311 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
40312 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
40313 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
40314 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
40315 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
40316 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
40317 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
40318 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
40319 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
40320 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
40321 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
40322 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
40323 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
40324 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
40325 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
40326 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
40327 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
40328 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
40329 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
40330 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
40331 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
40332 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
40333 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
40334 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
40335 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
40336 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
40337 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
40338 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
40339 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
40340 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
40341 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
40342 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
40343 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
40344 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
40345 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
40346 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
40347 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
40348 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
40349 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
40350 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
40351 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
40352 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
40353 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
40354 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
40355 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
40356 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
40357 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
40358 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
40359 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
40360 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
40361 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
40362 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
40363 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
40364 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
40365 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
40366 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
40367 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
40368 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
40369 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
40370 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
40371 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
40372 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
40373 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
40374 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
40375 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
40376 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
40377 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
40378 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
40379 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
40380 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
40381 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
40382 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
40383 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
40384 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
40385 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
40386 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
40387 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
40388 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
40389 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
40390 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
40391 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
40392 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
40393 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
40394 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
40395 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
40396 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
40397 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
40398 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
40399 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
40400 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
40401 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
40402 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
40403 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
40404 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
40405 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
40406 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
40407 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
40408 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
40409 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
40410 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
40411 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
40412 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
40413 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
40414 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
40415 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
40416 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
40417 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
40418 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
40419 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
40420 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
40421 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
40422 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
40423 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
40424 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
40425 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
40426 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
40427 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
40428 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
40429 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
40430 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
40431 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
40432 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
40433 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
40434 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
40435 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
40436 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
40437 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
40438 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
40439
40440 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
40441
40442 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
40443 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
40444 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
40445 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
40446 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
40447 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
40448 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
40449 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
40450 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
40451 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
40452 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
40453 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
40454 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
40455 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
40456 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
40457 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
40458 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
40459 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
40460 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
40461 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
40462 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
40463 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
40464 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
40465 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
40466 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
40467 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
40468 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
40469 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
40470 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
40471 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
40472 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
40473 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
40474 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
40475 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
40476 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
40477 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
40478 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
40479 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
40480 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
40481 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
40482 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
40483 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
40484 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
40485 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
40486 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
40487 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
40488 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
40489 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
40490 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
40491 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
40492 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
40493 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
40494 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
40495 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
40496 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
40497 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
40498 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
40499 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
40500 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
40501 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
40502 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
40503 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
40504 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
40505 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
40506 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
40507 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
40508 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
40509 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
40510 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
40511 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
40512 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
40513 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
40514 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
40515 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
40516 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
40517 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
40518 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
40519 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
40520 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
40521 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
40522 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
40523 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
40524 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
40525 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
40526 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
40527 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
40528 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
40529 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
40530 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
40531 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
40532 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
40533 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
40534 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
40535 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
40536 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
40537 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
40538 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
40539 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
40540 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
40541 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
40542 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
40543 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
40544 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
40545 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
40546 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
40547 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
40548 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
40549 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
40550 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
40551 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
40552 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
40553 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
40554 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
40555 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
40556 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
40557 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
40558 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
40559 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
40560 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
40561 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
40562 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
40563 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
40564 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
40565 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
40566 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
40567 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
40568 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
40569 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
40570 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
40571 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
40572 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
40573 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
40574 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
40575 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
40576 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
40577 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
40578 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
40579 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
40580 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
40581 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
40582 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
40583 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
40584 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
40585 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
40586 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
40587 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
40588 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
40589 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
40590 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
40591 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
40592 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
40593 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
40594 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
40595 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
40596 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
40597 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
40598 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
40599 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
40600 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
40601 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
40602 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
40603 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
40604 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
40605 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
40606 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
40607 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
40608 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
40609 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
40610 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
40611 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
40612 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
40613 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
40614 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
40615 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
40616 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
40617 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
40618 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
40619 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
40620 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
40621 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
40622 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
40623 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
40624 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
40625 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
40626 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
40627 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
40628 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
40629 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
40630 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
40631 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
40632 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
40633 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
40634 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
40635 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
40636 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
40637 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
40638 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
40639 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
40640 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
40641 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
40642 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
40643 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
40644 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
40645 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
40646 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
40647 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
40648 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
40649 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
40650 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
40651 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
40652 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
40653 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
40654 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
40655 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
40656 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
40657 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
40658 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
40659 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
40660 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
40661 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
40662 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
40663 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
40664 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
40665 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
40666 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
40667 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
40668 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
40669 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
40670 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
40671 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
40672 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
40673 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
40674 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
40675 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
40676 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
40677 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
40678 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
40679 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
40680 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
40681 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
40682 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
40683 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
40684 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
40685 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
40686 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
40687 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
40688 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
40689 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
40690 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
40691 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set);
40692 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set);
40693 SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set);
40694 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
40695 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
40696 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
40697 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
40698 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
40699 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
40700 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
40701 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
40702 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
40703 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
40704 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
40705 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
40706 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
40707 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
40708 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
40709 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
40710 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
40711 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
40712 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
40713 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
40714 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
40715 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
40716 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
40717 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
40718 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
40719 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
40720 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
40721 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
40722 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
40723 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
40724 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
40725 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
40726 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
40727 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
40728 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
40729 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
40730 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
40731 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
40732 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
40733 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
40734 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
40735 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
40736 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
40737 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
40738 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
40739 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
40740 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
40741 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
40742 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
40743 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
40744 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
40745 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
40746 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
40747 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
40748 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
40749 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
40750 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
40751 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
40752 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
40753 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
40754 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
40755 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
40756 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
40757 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
40758 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
40759 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
40760 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
40761 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
40762 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
40763 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
40764
40765 // Work around a chicken/egg problem in drawlist.cpp
40766 wxPyDrawList_SetAPIPtr();
40767
40768 }
40769