]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/mac/_gdi_wrap.cpp
added wxSimpleHtmlListBox (patch 1576109 by Francesco)
[wxWidgets.git] / wxPython / src / mac / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_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_wxDCOverlay swig_types[37]
2504 #define SWIGTYPE_p_wxDash swig_types[38]
2505 #define SWIGTYPE_p_wxDateEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[40]
2507 #define SWIGTYPE_p_wxDropFilesEvent swig_types[41]
2508 #define SWIGTYPE_p_wxDuplexMode swig_types[42]
2509 #define SWIGTYPE_p_wxEffects swig_types[43]
2510 #define SWIGTYPE_p_wxEncodingConverter swig_types[44]
2511 #define SWIGTYPE_p_wxEraseEvent swig_types[45]
2512 #define SWIGTYPE_p_wxEvent swig_types[46]
2513 #define SWIGTYPE_p_wxEvtHandler swig_types[47]
2514 #define SWIGTYPE_p_wxFSFile swig_types[48]
2515 #define SWIGTYPE_p_wxFileSystem swig_types[49]
2516 #define SWIGTYPE_p_wxFlexGridSizer swig_types[50]
2517 #define SWIGTYPE_p_wxFocusEvent swig_types[51]
2518 #define SWIGTYPE_p_wxFont swig_types[52]
2519 #define SWIGTYPE_p_wxFontList swig_types[53]
2520 #define SWIGTYPE_p_wxFontMapper swig_types[54]
2521 #define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2522 #define SWIGTYPE_p_wxGCDC swig_types[56]
2523 #define SWIGTYPE_p_wxGDIObjListBase swig_types[57]
2524 #define SWIGTYPE_p_wxGDIObject swig_types[58]
2525 #define SWIGTYPE_p_wxGIFHandler swig_types[59]
2526 #define SWIGTYPE_p_wxGraphicsContext swig_types[60]
2527 #define SWIGTYPE_p_wxGraphicsPath swig_types[61]
2528 #define SWIGTYPE_p_wxGridBagSizer swig_types[62]
2529 #define SWIGTYPE_p_wxGridSizer swig_types[63]
2530 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[64]
2531 #define SWIGTYPE_p_wxICOHandler swig_types[65]
2532 #define SWIGTYPE_p_wxIcon swig_types[66]
2533 #define SWIGTYPE_p_wxIconBundle swig_types[67]
2534 #define SWIGTYPE_p_wxIconLocation swig_types[68]
2535 #define SWIGTYPE_p_wxIconizeEvent swig_types[69]
2536 #define SWIGTYPE_p_wxIdleEvent swig_types[70]
2537 #define SWIGTYPE_p_wxImage swig_types[71]
2538 #define SWIGTYPE_p_wxImageHandler swig_types[72]
2539 #define SWIGTYPE_p_wxImageList swig_types[73]
2540 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[74]
2541 #define SWIGTYPE_p_wxInitDialogEvent swig_types[75]
2542 #define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2543 #define SWIGTYPE_p_wxKeyEvent swig_types[77]
2544 #define SWIGTYPE_p_wxLanguageInfo swig_types[78]
2545 #define SWIGTYPE_p_wxLayoutConstraints swig_types[79]
2546 #define SWIGTYPE_p_wxLocale swig_types[80]
2547 #define SWIGTYPE_p_wxMask swig_types[81]
2548 #define SWIGTYPE_p_wxMaximizeEvent swig_types[82]
2549 #define SWIGTYPE_p_wxMemoryDC swig_types[83]
2550 #define SWIGTYPE_p_wxMenu swig_types[84]
2551 #define SWIGTYPE_p_wxMenuBar swig_types[85]
2552 #define SWIGTYPE_p_wxMenuEvent swig_types[86]
2553 #define SWIGTYPE_p_wxMenuItem swig_types[87]
2554 #define SWIGTYPE_p_wxMetaFile swig_types[88]
2555 #define SWIGTYPE_p_wxMetaFileDC swig_types[89]
2556 #define SWIGTYPE_p_wxMirrorDC swig_types[90]
2557 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMouseEvent swig_types[93]
2560 #define SWIGTYPE_p_wxMoveEvent swig_types[94]
2561 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[95]
2562 #define SWIGTYPE_p_wxNativeFontInfo swig_types[96]
2563 #define SWIGTYPE_p_wxNativePixelData swig_types[97]
2564 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[98]
2565 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[99]
2566 #define SWIGTYPE_p_wxNcPaintEvent swig_types[100]
2567 #define SWIGTYPE_p_wxNotifyEvent swig_types[101]
2568 #define SWIGTYPE_p_wxObject swig_types[102]
2569 #define SWIGTYPE_p_wxOverlay swig_types[103]
2570 #define SWIGTYPE_p_wxPCXHandler swig_types[104]
2571 #define SWIGTYPE_p_wxPNGHandler swig_types[105]
2572 #define SWIGTYPE_p_wxPNMHandler swig_types[106]
2573 #define SWIGTYPE_p_wxPaintDC swig_types[107]
2574 #define SWIGTYPE_p_wxPaintEvent swig_types[108]
2575 #define SWIGTYPE_p_wxPalette swig_types[109]
2576 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110]
2577 #define SWIGTYPE_p_wxPaperSize swig_types[111]
2578 #define SWIGTYPE_p_wxPen swig_types[112]
2579 #define SWIGTYPE_p_wxPenList swig_types[113]
2580 #define SWIGTYPE_p_wxPixelDataBase swig_types[114]
2581 #define SWIGTYPE_p_wxPoint swig_types[115]
2582 #define SWIGTYPE_p_wxPoint2D swig_types[116]
2583 #define SWIGTYPE_p_wxPostScriptDC swig_types[117]
2584 #define SWIGTYPE_p_wxPrintData swig_types[118]
2585 #define SWIGTYPE_p_wxPrinterDC swig_types[119]
2586 #define SWIGTYPE_p_wxPseudoDC swig_types[120]
2587 #define SWIGTYPE_p_wxPyApp swig_types[121]
2588 #define SWIGTYPE_p_wxPyCommandEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyEvent swig_types[123]
2590 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[124]
2591 #define SWIGTYPE_p_wxPyImageHandler swig_types[125]
2592 #define SWIGTYPE_p_wxPyLocale swig_types[126]
2593 #define SWIGTYPE_p_wxPySizer swig_types[127]
2594 #define SWIGTYPE_p_wxPyValidator swig_types[128]
2595 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596 #define SWIGTYPE_p_wxRect swig_types[130]
2597 #define SWIGTYPE_p_wxRegion swig_types[131]
2598 #define SWIGTYPE_p_wxRegionIterator swig_types[132]
2599 #define SWIGTYPE_p_wxRendererNative swig_types[133]
2600 #define SWIGTYPE_p_wxRendererVersion swig_types[134]
2601 #define SWIGTYPE_p_wxScreenDC swig_types[135]
2602 #define SWIGTYPE_p_wxScrollEvent swig_types[136]
2603 #define SWIGTYPE_p_wxScrollWinEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605 #define SWIGTYPE_p_wxShowEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSize swig_types[140]
2607 #define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608 #define SWIGTYPE_p_wxSizer swig_types[142]
2609 #define SWIGTYPE_p_wxSizerItem swig_types[143]
2610 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[144]
2611 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[145]
2612 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
2613 #define SWIGTYPE_p_wxStockGDI swig_types[147]
2614 #define SWIGTYPE_p_wxString swig_types[148]
2615 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
2616 #define SWIGTYPE_p_wxTIFFHandler swig_types[150]
2617 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[151]
2618 #define SWIGTYPE_p_wxValidator swig_types[152]
2619 #define SWIGTYPE_p_wxWindow swig_types[153]
2620 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[154]
2621 #define SWIGTYPE_p_wxWindowDC swig_types[155]
2622 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[156]
2623 #define SWIGTYPE_p_wxXPMHandler swig_types[157]
2624 static swig_type_info *swig_types[159];
2625 static swig_module_info swig_module = {swig_types, 158, 0, 0, 0, 0};
2626 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2627 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2628
2629 /* -------- TYPES TABLE (END) -------- */
2630
2631 #if (PY_VERSION_HEX <= 0x02000000)
2632 # if !defined(SWIG_PYTHON_CLASSIC)
2633 # error "This python version requires to use swig with the '-classic' option"
2634 # endif
2635 #endif
2636 #if (PY_VERSION_HEX <= 0x02020000)
2637 # error "This python version requires to use swig with the '-nomodern' option"
2638 #endif
2639 #if (PY_VERSION_HEX <= 0x02020000)
2640 # error "This python version requires to use swig with the '-nomodernargs' option"
2641 #endif
2642 #ifndef METH_O
2643 # error "This python version requires to use swig with the '-nofastunpack' option"
2644 #endif
2645
2646 /*-----------------------------------------------
2647 @(target):= _gdi_.so
2648 ------------------------------------------------*/
2649 #define SWIG_init init_gdi_
2650
2651 #define SWIG_name "_gdi_"
2652
2653 #define SWIGVERSION 0x010329
2654
2655
2656 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2657 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2658
2659
2660 #include <stdexcept>
2661
2662
2663 namespace swig {
2664 class PyObject_ptr {
2665 protected:
2666 PyObject *_obj;
2667
2668 public:
2669 PyObject_ptr() :_obj(0)
2670 {
2671 }
2672
2673 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2674 {
2675 Py_XINCREF(_obj);
2676 }
2677
2678 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2679 {
2680 if (initial_ref) Py_XINCREF(_obj);
2681 }
2682
2683 PyObject_ptr & operator=(const PyObject_ptr& item)
2684 {
2685 Py_XINCREF(item._obj);
2686 Py_XDECREF(_obj);
2687 _obj = item._obj;
2688 return *this;
2689 }
2690
2691 ~PyObject_ptr()
2692 {
2693 Py_XDECREF(_obj);
2694 }
2695
2696 operator PyObject *() const
2697 {
2698 return _obj;
2699 }
2700
2701 PyObject *operator->() const
2702 {
2703 return _obj;
2704 }
2705 };
2706 }
2707
2708
2709 namespace swig {
2710 struct PyObject_var : PyObject_ptr {
2711 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2712
2713 PyObject_var & operator = (PyObject* obj)
2714 {
2715 Py_XDECREF(_obj);
2716 _obj = obj;
2717 return *this;
2718 }
2719 };
2720 }
2721
2722
2723 #include "wx/wxPython/wxPython.h"
2724 #include "wx/wxPython/pyclasses.h"
2725
2726
2727 static const wxString wxPyEmptyString(wxEmptyString);
2728
2729 #define SWIG_From_long PyInt_FromLong
2730
2731
2732 SWIGINTERNINLINE PyObject *
2733 SWIG_From_int (int value)
2734 {
2735 return SWIG_From_long (value);
2736 }
2737
2738
2739 #include <limits.h>
2740 #ifndef LLONG_MIN
2741 # define LLONG_MIN LONG_LONG_MIN
2742 #endif
2743 #ifndef LLONG_MAX
2744 # define LLONG_MAX LONG_LONG_MAX
2745 #endif
2746 #ifndef ULLONG_MAX
2747 # define ULLONG_MAX ULONG_LONG_MAX
2748 #endif
2749
2750
2751 SWIGINTERN int
2752 SWIG_AsVal_long (PyObject* obj, long* val)
2753 {
2754 if (PyNumber_Check(obj)) {
2755 if (val) *val = PyInt_AsLong(obj);
2756 return SWIG_OK;
2757 }
2758 return SWIG_TypeError;
2759 }
2760
2761
2762 SWIGINTERN int
2763 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2764 {
2765 long v = 0;
2766 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2767 return SWIG_TypeError;
2768 }
2769 else if (val)
2770 *val = (unsigned long)v;
2771 return SWIG_OK;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2777 {
2778 unsigned long v;
2779 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2780 if (SWIG_IsOK(res)) {
2781 if ((v > UCHAR_MAX)) {
2782 return SWIG_OverflowError;
2783 } else {
2784 if (val) *val = static_cast< unsigned char >(v);
2785 }
2786 }
2787 return res;
2788 }
2789
2790
2791 SWIGINTERNINLINE PyObject*
2792 SWIG_From_unsigned_SS_long (unsigned long value)
2793 {
2794 return (value > LONG_MAX) ?
2795 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2796 }
2797
2798
2799 SWIGINTERNINLINE PyObject *
2800 SWIG_From_unsigned_SS_char (unsigned char value)
2801 {
2802 return SWIG_From_unsigned_SS_long (value);
2803 }
2804
2805 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2806 wxColour temp, *obj = &temp;
2807 if ( other == Py_None ) return false;
2808 if ( ! wxColour_helper(other, &obj) ) {
2809 PyErr_Clear();
2810 return false;
2811 }
2812 return self->operator==(*obj);
2813 }
2814 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2815 wxColour temp, *obj = &temp;
2816 if ( other == Py_None ) return true;
2817 if ( ! wxColour_helper(other, &obj)) {
2818 PyErr_Clear();
2819 return true;
2820 }
2821 return self->operator!=(*obj);
2822 }
2823
2824 SWIGINTERN int
2825 SWIG_AsVal_bool (PyObject *obj, bool *val)
2826 {
2827 if (obj == Py_True) {
2828 if (val) *val = true;
2829 return SWIG_OK;
2830 } else if (obj == Py_False) {
2831 if (val) *val = false;
2832 return SWIG_OK;
2833 } else {
2834 long v = 0;
2835 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2836 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2837 return res;
2838 }
2839 }
2840
2841 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2842 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2843 int red = -1;
2844 int green = -1;
2845 int blue = -1;
2846 int alpha = wxALPHA_OPAQUE;
2847 if (self->IsOk()) {
2848 red = self->Red();
2849 green = self->Green();
2850 blue = self->Blue();
2851 alpha = self->Alpha();
2852 }
2853 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2854 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2855 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2856 if (includeAlpha)
2857 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2858 return rv;
2859 }
2860 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2861 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2862 }
2863
2864 SWIGINTERN int
2865 SWIG_AsVal_int (PyObject * obj, int *val)
2866 {
2867 long v;
2868 int res = SWIG_AsVal_long (obj, &v);
2869 if (SWIG_IsOK(res)) {
2870 if ((v < INT_MIN || v > INT_MAX)) {
2871 return SWIG_OverflowError;
2872 } else {
2873 if (val) *val = static_cast< int >(v);
2874 }
2875 }
2876 return res;
2877 }
2878
2879 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2880 wxDash* dashes;
2881 int count = self->GetDashes(&dashes);
2882 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2883 PyObject* retval = PyList_New(0);
2884 for (int x=0; x<count; x++) {
2885 PyObject* pyint = PyInt_FromLong(dashes[x]);
2886 PyList_Append(retval, pyint);
2887 Py_DECREF(pyint);
2888 }
2889 wxPyEndBlockThreads(blocked);
2890 return retval;
2891 }
2892 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2894 int size = PyList_Size(pyDashes);
2895 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2896
2897 // black magic warning! The array of wxDashes needs to exist as
2898 // long as the pen does because wxPen does not copy the array. So
2899 // stick a copy in a Python string object and attach it to _self,
2900 // and then call SetDashes with a pointer to that array. Then
2901 // when the Python pen object is destroyed the array will be
2902 // cleaned up too.
2903 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2904 PyObject_SetAttrString(_self, "_dashes", strDashes);
2905
2906 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2907 delete [] dashes;
2908 Py_DECREF(strDashes);
2909 wxPyEndBlockThreads(blocked);
2910 }
2911 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2912 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2913
2914 SWIGINTERNINLINE PyObject *
2915 SWIG_From_short (short value)
2916 {
2917 return SWIG_From_long (value);
2918 }
2919
2920
2921 SWIGINTERN int
2922 SWIG_AsVal_short (PyObject * obj, short *val)
2923 {
2924 long v;
2925 int res = SWIG_AsVal_long (obj, &v);
2926 if (SWIG_IsOK(res)) {
2927 if ((v < SHRT_MIN || v > SHRT_MAX)) {
2928 return SWIG_OverflowError;
2929 } else {
2930 if (val) *val = static_cast< short >(v);
2931 }
2932 }
2933 return res;
2934 }
2935
2936
2937 #include <wx/rawbmp.h>
2938
2939
2940 #include <wx/image.h>
2941
2942 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2943 char** cArray = NULL;
2944 int count;
2945
2946 if (!PyList_Check(listOfStrings)) {
2947 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2948 return NULL;
2949 }
2950 count = PyList_Size(listOfStrings);
2951 cArray = new char*[count];
2952
2953 for(int x=0; x<count; x++) {
2954 // TODO: Need some validation and error checking here
2955 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2956 }
2957 return cArray;
2958 }
2959
2960
2961 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2962 char** cArray = NULL;
2963 wxBitmap* bmp;
2964
2965 cArray = ConvertListOfStrings(listOfStrings);
2966 if (! cArray)
2967 return NULL;
2968 bmp = new wxBitmap(cArray);
2969 delete [] cArray;
2970 return bmp;
2971 }
2972 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2973 char* buf;
2974 Py_ssize_t length;
2975 PyString_AsStringAndSize(bits, &buf, &length);
2976 return new wxBitmap(buf, width, height, depth);
2977 }
2978 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2979 wxSize size(self->GetWidth(), self->GetHeight());
2980 return size;
2981 }
2982 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2983 wxMask *mask = new wxMask(*self, colour);
2984 self->SetMask(mask);
2985 }
2986 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2987 self->SetWidth(size.x);
2988 self->SetHeight(size.y);
2989 }
2990 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2991 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2992
2993 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2994 // appears to me that the other platforms are already doing it, so I'll just
2995 // automatically do it for wxMSW here.
2996 #ifdef __WXMSW__
2997 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2998 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2999 #else
3000 #define wxPy_premultiply(p, a) (p)
3001 #define wxPy_unpremultiply(p, a) (p)
3002 #endif
3003
3004
3005 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
3006 buffer data, int DATASIZE,
3007 buffer alpha, int ALPHASIZE)
3008 {
3009 if (DATASIZE != width*height*3) {
3010 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3011 return NULL;
3012 }
3013
3014 if (ALPHASIZE != width*height) {
3015 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
3016 return NULL;
3017 }
3018
3019 wxBitmap* bmp = new wxBitmap(width, height, 32);
3020 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3021 if (! pixData) {
3022 // raise an exception...
3023 wxPyErr_SetString(PyExc_RuntimeError,
3024 "Failed to gain raw access to bitmap data.");
3025 return NULL;
3026 }
3027
3028 pixData.UseAlpha();
3029 wxAlphaPixelData::Iterator p(pixData);
3030 for (int y=0; y<height; y++) {
3031 wxAlphaPixelData::Iterator rowStart = p;
3032 for (int x=0; x<width; x++) {
3033 byte a = *(alpha++);
3034 p.Red() = wxPy_premultiply(*(data++), a);
3035 p.Green() = wxPy_premultiply(*(data++), a);
3036 p.Blue() = wxPy_premultiply(*(data++), a);
3037 p.Alpha() = a;
3038 ++p;
3039 }
3040 p = rowStart;
3041 p.OffsetY(pixData, 1);
3042 }
3043 return bmp;
3044 }
3045
3046 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3047 {
3048 if (DATASIZE != width*height*3) {
3049 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3050 return NULL;
3051 }
3052
3053 wxBitmap* bmp = new wxBitmap(width, height, 24);
3054 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3055 if (! pixData) {
3056 // raise an exception...
3057 wxPyErr_SetString(PyExc_RuntimeError,
3058 "Failed to gain raw access to bitmap data.");
3059 return NULL;
3060 }
3061
3062 wxNativePixelData::Iterator p(pixData);
3063 for (int y=0; y<height; y++) {
3064 wxNativePixelData::Iterator rowStart = p;
3065 for (int x=0; x<width; x++) {
3066 p.Red() = *(data++);
3067 p.Green() = *(data++);
3068 p.Blue() = *(data++);
3069 ++p;
3070 }
3071 p = rowStart;
3072 p.OffsetY(pixData, 1);
3073 }
3074 return bmp;
3075 }
3076
3077
3078 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3079 {
3080 if (DATASIZE != width*height*4) {
3081 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3082 return NULL;
3083 }
3084
3085 wxBitmap* bmp = new wxBitmap(width, height, 32);
3086 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3087 if (! pixData) {
3088 // raise an exception...
3089 wxPyErr_SetString(PyExc_RuntimeError,
3090 "Failed to gain raw access to bitmap data.");
3091 return NULL;
3092 }
3093
3094 pixData.UseAlpha();
3095 wxAlphaPixelData::Iterator p(pixData);
3096 for (int y=0; y<height; y++) {
3097 wxAlphaPixelData::Iterator rowStart = p;
3098 for (int x=0; x<width; x++) {
3099 byte a = data[3];
3100 p.Red() = wxPy_premultiply(*(data++), a);
3101 p.Green() = wxPy_premultiply(*(data++), a);
3102 p.Blue() = wxPy_premultiply(*(data++), a);
3103 p.Alpha() = a; data++;
3104 ++p;
3105 }
3106 p = rowStart;
3107 p.OffsetY(pixData, 1);
3108 }
3109 return bmp;
3110 }
3111
3112
3113 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3114
3115 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3116 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3117 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3118 self->Red() = red;
3119 self->Green() = green;
3120 self->Blue() = blue;
3121 }
3122 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3123 PyObject* rv = PyTuple_New(3);
3124 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3125 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3126 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3127 return rv;
3128 }
3129
3130 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3131
3132 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3133 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3134 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3135 self->Red() = wxPy_premultiply(red, alpha);
3136 self->Green() = wxPy_premultiply(green, alpha);
3137 self->Blue() = wxPy_premultiply(blue, alpha);
3138 self->Alpha() = alpha;
3139 }
3140 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3141 PyObject* rv = PyTuple_New(4);
3142 int red = self->Red();
3143 int green = self->Green();
3144 int blue = self->Blue();
3145 int alpha = self->Alpha();
3146
3147 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3148 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3149 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3150 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3151 return rv;
3152 }
3153 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3154 if ( !colour.IsOk() )
3155 return new wxMask(bitmap, *wxBLACK);
3156 else
3157 return new wxMask(bitmap, colour);
3158 }
3159
3160 #include <wx/iconbndl.h>
3161
3162 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3163 wxIcon* icon = new wxIcon();
3164 icon->CopyFromBitmap(bmp);
3165 return icon;
3166 }
3167 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3168 char** cArray = NULL;
3169 wxIcon* icon;
3170
3171 cArray = ConvertListOfStrings(listOfStrings);
3172 if (! cArray)
3173 return NULL;
3174 icon = new wxIcon(cArray);
3175 delete [] cArray;
3176 return icon;
3177 }
3178 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3179
3180
3181
3182 return new wxIconLocation(*filename);
3183
3184 }
3185 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3186
3187
3188
3189 // do nothing
3190
3191 }
3192 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3193
3194
3195
3196 return -1;
3197
3198 }
3199 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3200 #ifdef __WXGTK__
3201 wxImage img(cursorName, type);
3202 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3203 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3204 return new wxCursor(img);
3205 #else
3206 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3207 #endif
3208 }
3209
3210
3211 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3212 (*self) ++;
3213 }
3214 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3215 return self->operator bool();
3216 }
3217
3218 #include <wx/fontutil.h>
3219 #include <wx/fontmap.h>
3220 #include <wx/fontenum.h>
3221
3222 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3223 return self->ToString();
3224 }
3225
3226 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3227 static wxNativeEncodingInfo info;
3228 if ( wxGetNativeFontEncoding(encoding, &info) )
3229 return &info;
3230 else
3231 return NULL;
3232 }
3233
3234
3235 SWIGINTERNINLINE PyObject *
3236 SWIG_From_size_t (size_t value)
3237 {
3238 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3239 }
3240
3241
3242 SWIGINTERNINLINE int
3243 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3244 {
3245 unsigned long v;
3246 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3247 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3248 return res;
3249 }
3250
3251 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3252 wxFontEncoding alt_enc;
3253 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3254 return PyInt_FromLong(alt_enc);
3255 else {
3256 Py_INCREF(Py_None);
3257 return Py_None;
3258 }
3259 }
3260 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3261 wxNativeFontInfo nfi;
3262 nfi.FromString(info);
3263 return new wxFont(nfi);
3264 }
3265 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3266 return wxFont::New(pointSize, family, flags, face, encoding);
3267 }
3268 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3269 return wxFontBase::New(pixelSize, family,
3270 style, weight, underlined,
3271 face, encoding);
3272 }
3273 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3274 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3275 }
3276 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3277 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3278
3279 class wxPyFontEnumerator : public wxFontEnumerator {
3280 public:
3281 wxPyFontEnumerator() {}
3282 ~wxPyFontEnumerator() {}
3283
3284 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3285 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3286
3287 PYPRIVATE;
3288 };
3289
3290 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3291 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3292
3293
3294 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3295 PyObject* ret;
3296 wxArrayString arr = wxFontEnumerator::GetEncodings();
3297 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3298 ret = wxArrayString2PyList_helper(arr);
3299 wxPyEndBlockThreads(blocked);
3300 return ret;
3301 }
3302 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3303 PyObject* ret;
3304 wxArrayString arr = wxFontEnumerator::GetFacenames();
3305 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3306 ret = wxArrayString2PyList_helper(arr);
3307 wxPyEndBlockThreads(blocked);
3308 return ret;
3309 }
3310
3311 #include <locale.h>
3312
3313 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3314 wxLocale* loc;
3315 if (language == -1)
3316 loc = new wxLocale();
3317 else
3318 loc = new wxLocale(language, flags);
3319 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3320 // for the floating point conversions and such to work right.
3321 #if PY_VERSION_HEX < 0x02040000
3322 setlocale(LC_NUMERIC, "C");
3323 #endif
3324 return loc;
3325 }
3326 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3327 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3328 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3329 // for the floating point conversions and such to work right.
3330 #if PY_VERSION_HEX < 0x02040000
3331 setlocale(LC_NUMERIC, "C");
3332 #endif
3333 return rc;
3334 }
3335 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3336 bool rc = self->Init(language, flags);
3337 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3338 // for the floating point conversions and such to work right.
3339 #if PY_VERSION_HEX < 0x02040000
3340 setlocale(LC_NUMERIC, "C");
3341 #endif
3342 return rc;
3343 }
3344
3345 class wxPyLocale : public wxLocale
3346 {
3347 public:
3348 wxPyLocale();
3349
3350 wxPyLocale(const wxChar *szName, // name (for messages)
3351 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3352 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3353 bool bLoadDefault = true, // preload wxstd.mo?
3354 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3355
3356 wxPyLocale(int language, // wxLanguage id or custom language
3357 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3358
3359 ~wxPyLocale();
3360
3361 virtual const wxChar *GetString(const wxChar *szOrigString,
3362 const wxChar *szDomain = NULL) const;
3363 virtual const wxChar *GetString(const wxChar *szOrigString,
3364 const wxChar *szOrigString2, size_t n,
3365 const wxChar *szDomain = NULL) const;
3366
3367 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3368 const wxChar *szDomain = NULL) const;
3369 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3370 const wxChar *szOrigString2, size_t n,
3371 const wxChar *szDomain = NULL) const;
3372
3373 PYPRIVATE;
3374 private:
3375 DECLARE_NO_COPY_CLASS(wxPyLocale)
3376 };
3377
3378 wxPyLocale::wxPyLocale() : wxLocale()
3379 {
3380 }
3381
3382 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3383 const wxChar *szShort, // dir prefix (for msg files)
3384 const wxChar *szLocale, // locale (for setlocale)
3385 bool bLoadDefault, // preload wxstd.mo?
3386 bool bConvertEncoding) // convert Win<->Unix if necessary?
3387 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3388 {
3389 }
3390
3391 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3392 int flags) : wxLocale(language, flags)
3393 {
3394 }
3395
3396 wxPyLocale::~wxPyLocale()
3397 {
3398 }
3399
3400 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3401 const wxChar *szDomain) const
3402 {
3403 wxChar *str = GetSingularString(szOrigString, szDomain);
3404 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3405 }
3406
3407 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3408 const wxChar *szOrigString2, size_t n,
3409 const wxChar *szDomain) const
3410 {
3411 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3412 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3413 }
3414
3415 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3416 const wxChar *szDomain) const
3417 {
3418 bool found;
3419 static wxString str;
3420 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.
3421 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3422 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3423 PyObject* param1 = wx2PyString(szOrigString);
3424 PyObject* param2 = wx2PyString(szDomain);
3425 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3426 Py_DECREF(param1);
3427 Py_DECREF(param2);
3428 if (ret) {
3429 str = Py2wxString(ret);
3430 Py_DECREF(ret);
3431 }
3432 }
3433 wxPyEndBlockThreads(blocked);
3434 return (found ? (wxChar*)str.c_str() : NULL);
3435 }
3436
3437 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3438 const wxChar *szOrigString2, size_t n,
3439 const wxChar *szDomain) const
3440 {
3441 bool found;
3442 static wxString str;
3443 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.
3444 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3445 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3446 PyObject* param1 = wx2PyString(szOrigString);
3447 PyObject* param2 = wx2PyString(szOrigString2);
3448 PyObject* param4 = wx2PyString(szDomain);
3449 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3450 Py_DECREF(param1);
3451 Py_DECREF(param2);
3452 Py_DECREF(param4);
3453 if( ret) {
3454 str = Py2wxString(ret);
3455 Py_DECREF(ret);
3456 }
3457 }
3458 wxPyEndBlockThreads(blocked);
3459 return (found ? (wxChar*)str.c_str() : NULL);
3460 }
3461
3462 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3463 wxPyLocale* loc;
3464 if (language == -1)
3465 loc = new wxPyLocale();
3466 else
3467 loc = new wxPyLocale(language, flags);
3468 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3469 // for the floating point conversions and such to work right.
3470 #if PY_VERSION_HEX < 0x02040000
3471 setlocale(LC_NUMERIC, "C");
3472 #endif
3473 return loc;
3474 }
3475
3476 #include "wx/wxPython/pydrawxxx.h"
3477
3478 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3479 wxColour col;
3480 self->GetPixel(x, y, &col);
3481 return col;
3482 }
3483 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3484 wxColour col;
3485 self->GetPixel(pt, &col);
3486 return col;
3487 }
3488
3489 SWIGINTERN int
3490 SWIG_AsVal_double (PyObject *obj, double* val)
3491 {
3492 if (PyNumber_Check(obj)) {
3493 if (val) *val = PyFloat_AsDouble(obj);
3494 return SWIG_OK;
3495 }
3496 return SWIG_TypeError;
3497 }
3498
3499 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3500 wxRect rv;
3501 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3502 return rv;
3503 }
3504 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3505 wxRect rect;
3506 self->GetClippingBox(rect);
3507 return rect;
3508 }
3509 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3510 wxArrayInt widths;
3511 self->GetPartialTextExtents(text, widths);
3512 return widths;
3513 }
3514
3515 #define SWIG_From_double PyFloat_FromDouble
3516
3517 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3518 self->SetLogicalOrigin(point.x, point.y);
3519 }
3520 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3521 self->SetDeviceOrigin(point.x, point.y);
3522 }
3523 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3524 self->CalcBoundingBox(point.x, point.y);
3525 }
3526 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3527 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3528 }
3529 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3530 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3531 }
3532 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3533 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3534 }
3535 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3536 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3537 }
3538 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3539 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3540 }
3541 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3542 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3543 }
3544
3545 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3546 *x1 = dc->MinX();
3547 *y1 = dc->MinY();
3548 *x2 = dc->MaxX();
3549 *y2 = dc->MaxY();
3550 }
3551
3552
3553 #include <wx/dcbuffer.h>
3554
3555
3556 #include <wx/dcps.h>
3557
3558
3559 #include <wx/metafile.h>
3560
3561
3562 #include <wx/graphics.h>
3563
3564
3565 #if !wxUSE_GRAPHICS_CONTEXT
3566 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3567
3568 class wxGraphicsPath
3569 {
3570 public :
3571 wxGraphicsPath() {
3572 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3573 PyErr_SetString(PyExc_NotImplementedError,
3574 "wxGraphicsPath is not available on this platform.");
3575 wxPyEndBlockThreads(blocked);
3576 }
3577 virtual ~wxGraphicsPath() {}
3578
3579 void MoveToPoint( wxDouble, wxDouble ) {}
3580 void AddLineToPoint( wxDouble, wxDouble ) {}
3581 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3582 void CloseSubpath() {}
3583 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3584 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3585
3586 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3587 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3588 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3589 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3590
3591 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3592 void MoveToPoint( const wxPoint2DDouble& ) {}
3593 void AddLineToPoint( const wxPoint2DDouble&) {}
3594 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3595 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3596 };
3597
3598
3599 class wxGraphicsContext
3600 {
3601 public:
3602 wxGraphicsContext() {
3603 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3604 PyErr_SetString(PyExc_NotImplementedError,
3605 "wxGraphicsContext is not available on this platform.");
3606 wxPyEndBlockThreads(blocked);
3607 }
3608 virtual ~wxGraphicsContext() {}
3609
3610 static wxGraphicsContext* Create( const wxWindowDC&) {
3611 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3612 PyErr_SetString(PyExc_NotImplementedError,
3613 "wxGraphicsPath is not available on this platform.");
3614 wxPyEndBlockThreads(blocked);
3615 return NULL;
3616 }
3617
3618 wxGraphicsPath * CreatePath() { return NULL; }
3619 void PushState() {}
3620 void PopState() {}
3621 void Clip( const wxRegion & ) {}
3622 void Translate( wxDouble , wxDouble ) {}
3623 void Scale( wxDouble , wxDouble ) {}
3624 void Rotate( wxDouble ) {}
3625 void SetPen( const wxPen & ) {}
3626 void SetBrush( const wxBrush & ) {}
3627 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3628 const wxColour&, const wxColour&) {}
3629 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3630 const wxColour &, const wxColour &) {}
3631 void SetFont( const wxFont & ) {}
3632 void SetTextColor( const wxColour & ) {}
3633 void StrokePath( const wxGraphicsPath * ) {}
3634 void FillPath( const wxGraphicsPath *, int ) {}
3635 void DrawPath( const wxGraphicsPath *, int ) {}
3636 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3637 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3638 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3639 wxDouble *, wxDouble * ) const {}
3640 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3641 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3642 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3643 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3644 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3645 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3646 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3647 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3648 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3649 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3650 };
3651
3652
3653 class wxGCDC: public wxWindowDC
3654 {
3655 public:
3656 wxGCDC(const wxWindowDC&) {
3657 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3658 PyErr_SetString(PyExc_NotImplementedError,
3659 "wxGCDC is not available on this platform.");
3660 wxPyEndBlockThreads(blocked);
3661 }
3662
3663 wxGCDC() {
3664 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3665 PyErr_SetString(PyExc_NotImplementedError,
3666 "wxGCDC is not available on this platform.");
3667 wxPyEndBlockThreads(blocked);
3668 }
3669
3670 virtual ~wxGCDC() {}
3671
3672 wxGraphicsContext* GetGraphicContext() { return NULL; }
3673 };
3674
3675 #endif
3676
3677 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3678 wxArrayDouble widths;
3679 self->GetPartialTextExtents(text, widths);
3680 return widths;
3681 }
3682 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3683 size_t c1, c2, count;
3684 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3685 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3686
3687 if ( beginP != NULL && endP != NULL )
3688 {
3689 count = wxMin(c1, c2);
3690 self->StrokeLines(count, beginP, endP);
3691 }
3692 delete [] beginP;
3693 delete [] endP;
3694 }
3695
3696 #include "wx/dcgraph.h"
3697
3698
3699
3700 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3701 self->AddColour(name, wxColour(red, green, blue));
3702 }
3703
3704 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3705 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3706 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3707 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3708
3709
3710 #include <wx/effects.h>
3711
3712
3713 #include "wx/renderer.h"
3714
3715
3716 SWIGINTERNINLINE PyObject*
3717 SWIG_From_bool (bool value)
3718 {
3719 return PyBool_FromLong(value ? 1 : 0);
3720 }
3721
3722
3723 #include "wx/wxPython/pseudodc.h"
3724
3725 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3726 wxRect rect;
3727 self->GetIdBounds(id, rect);
3728 return rect;
3729 }
3730 #ifdef __cplusplus
3731 extern "C" {
3732 #endif
3733 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3734 PyObject *resultobj = 0;
3735 wxGDIObject *result = 0 ;
3736
3737 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3738 {
3739 if (!wxPyCheckForApp()) SWIG_fail;
3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
3741 result = (wxGDIObject *)new wxGDIObject();
3742 wxPyEndAllowThreads(__tstate);
3743 if (PyErr_Occurred()) SWIG_fail;
3744 }
3745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3746 return resultobj;
3747 fail:
3748 return NULL;
3749 }
3750
3751
3752 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3753 PyObject *resultobj = 0;
3754 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3755 void *argp1 = 0 ;
3756 int res1 = 0 ;
3757 PyObject *swig_obj[1] ;
3758
3759 if (!args) SWIG_fail;
3760 swig_obj[0] = args;
3761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3762 if (!SWIG_IsOK(res1)) {
3763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3764 }
3765 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3766 {
3767 PyThreadState* __tstate = wxPyBeginAllowThreads();
3768 delete arg1;
3769
3770 wxPyEndAllowThreads(__tstate);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 }
3773 resultobj = SWIG_Py_Void();
3774 return resultobj;
3775 fail:
3776 return NULL;
3777 }
3778
3779
3780 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3781 PyObject *resultobj = 0;
3782 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3783 bool result;
3784 void *argp1 = 0 ;
3785 int res1 = 0 ;
3786 PyObject *swig_obj[1] ;
3787
3788 if (!args) SWIG_fail;
3789 swig_obj[0] = args;
3790 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3791 if (!SWIG_IsOK(res1)) {
3792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3793 }
3794 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3795 {
3796 PyThreadState* __tstate = wxPyBeginAllowThreads();
3797 result = (bool)(arg1)->IsNull();
3798 wxPyEndAllowThreads(__tstate);
3799 if (PyErr_Occurred()) SWIG_fail;
3800 }
3801 {
3802 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3803 }
3804 return resultobj;
3805 fail:
3806 return NULL;
3807 }
3808
3809
3810 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3811 PyObject *obj;
3812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3813 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3814 return SWIG_Py_Void();
3815 }
3816
3817 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3818 return SWIG_Python_InitShadowInstance(args);
3819 }
3820
3821 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3822 PyObject *resultobj = 0;
3823 byte arg1 = (byte) 0 ;
3824 byte arg2 = (byte) 0 ;
3825 byte arg3 = (byte) 0 ;
3826 byte arg4 = (byte) wxALPHA_OPAQUE ;
3827 wxColour *result = 0 ;
3828 unsigned char val1 ;
3829 int ecode1 = 0 ;
3830 unsigned char val2 ;
3831 int ecode2 = 0 ;
3832 unsigned char val3 ;
3833 int ecode3 = 0 ;
3834 unsigned char val4 ;
3835 int ecode4 = 0 ;
3836 PyObject * obj0 = 0 ;
3837 PyObject * obj1 = 0 ;
3838 PyObject * obj2 = 0 ;
3839 PyObject * obj3 = 0 ;
3840 char * kwnames[] = {
3841 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3842 };
3843
3844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3845 if (obj0) {
3846 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3847 if (!SWIG_IsOK(ecode1)) {
3848 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3849 }
3850 arg1 = static_cast< byte >(val1);
3851 }
3852 if (obj1) {
3853 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3854 if (!SWIG_IsOK(ecode2)) {
3855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3856 }
3857 arg2 = static_cast< byte >(val2);
3858 }
3859 if (obj2) {
3860 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3861 if (!SWIG_IsOK(ecode3)) {
3862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3863 }
3864 arg3 = static_cast< byte >(val3);
3865 }
3866 if (obj3) {
3867 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3868 if (!SWIG_IsOK(ecode4)) {
3869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3870 }
3871 arg4 = static_cast< byte >(val4);
3872 }
3873 {
3874 PyThreadState* __tstate = wxPyBeginAllowThreads();
3875 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3876 wxPyEndAllowThreads(__tstate);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 }
3879 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3880 return resultobj;
3881 fail:
3882 return NULL;
3883 }
3884
3885
3886 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3887 PyObject *resultobj = 0;
3888 wxString *arg1 = 0 ;
3889 wxColour *result = 0 ;
3890 bool temp1 = false ;
3891 PyObject * obj0 = 0 ;
3892 char * kwnames[] = {
3893 (char *) "colorName", NULL
3894 };
3895
3896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3897 {
3898 arg1 = wxString_in_helper(obj0);
3899 if (arg1 == NULL) SWIG_fail;
3900 temp1 = true;
3901 }
3902 {
3903 if (!wxPyCheckForApp()) SWIG_fail;
3904 PyThreadState* __tstate = wxPyBeginAllowThreads();
3905 result = (wxColour *)new wxColour((wxString const &)*arg1);
3906 wxPyEndAllowThreads(__tstate);
3907 if (PyErr_Occurred()) SWIG_fail;
3908 }
3909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3910 {
3911 if (temp1)
3912 delete arg1;
3913 }
3914 return resultobj;
3915 fail:
3916 {
3917 if (temp1)
3918 delete arg1;
3919 }
3920 return NULL;
3921 }
3922
3923
3924 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3925 PyObject *resultobj = 0;
3926 unsigned long arg1 ;
3927 wxColour *result = 0 ;
3928 unsigned long val1 ;
3929 int ecode1 = 0 ;
3930 PyObject * obj0 = 0 ;
3931 char * kwnames[] = {
3932 (char *) "colRGB", NULL
3933 };
3934
3935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3936 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3937 if (!SWIG_IsOK(ecode1)) {
3938 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3939 }
3940 arg1 = static_cast< unsigned long >(val1);
3941 {
3942 PyThreadState* __tstate = wxPyBeginAllowThreads();
3943 result = (wxColour *)new wxColour(arg1);
3944 wxPyEndAllowThreads(__tstate);
3945 if (PyErr_Occurred()) SWIG_fail;
3946 }
3947 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3948 return resultobj;
3949 fail:
3950 return NULL;
3951 }
3952
3953
3954 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3955 PyObject *resultobj = 0;
3956 wxColour *arg1 = (wxColour *) 0 ;
3957 void *argp1 = 0 ;
3958 int res1 = 0 ;
3959 PyObject *swig_obj[1] ;
3960
3961 if (!args) SWIG_fail;
3962 swig_obj[0] = args;
3963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3964 if (!SWIG_IsOK(res1)) {
3965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3966 }
3967 arg1 = reinterpret_cast< wxColour * >(argp1);
3968 {
3969 PyThreadState* __tstate = wxPyBeginAllowThreads();
3970 delete arg1;
3971
3972 wxPyEndAllowThreads(__tstate);
3973 if (PyErr_Occurred()) SWIG_fail;
3974 }
3975 resultobj = SWIG_Py_Void();
3976 return resultobj;
3977 fail:
3978 return NULL;
3979 }
3980
3981
3982 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3983 PyObject *resultobj = 0;
3984 wxColour *arg1 = (wxColour *) 0 ;
3985 byte result;
3986 void *argp1 = 0 ;
3987 int res1 = 0 ;
3988 PyObject *swig_obj[1] ;
3989
3990 if (!args) SWIG_fail;
3991 swig_obj[0] = args;
3992 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3993 if (!SWIG_IsOK(res1)) {
3994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3995 }
3996 arg1 = reinterpret_cast< wxColour * >(argp1);
3997 {
3998 PyThreadState* __tstate = wxPyBeginAllowThreads();
3999 result = (byte)(arg1)->Red();
4000 wxPyEndAllowThreads(__tstate);
4001 if (PyErr_Occurred()) SWIG_fail;
4002 }
4003 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4004 return resultobj;
4005 fail:
4006 return NULL;
4007 }
4008
4009
4010 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4011 PyObject *resultobj = 0;
4012 wxColour *arg1 = (wxColour *) 0 ;
4013 byte result;
4014 void *argp1 = 0 ;
4015 int res1 = 0 ;
4016 PyObject *swig_obj[1] ;
4017
4018 if (!args) SWIG_fail;
4019 swig_obj[0] = args;
4020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4021 if (!SWIG_IsOK(res1)) {
4022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4023 }
4024 arg1 = reinterpret_cast< wxColour * >(argp1);
4025 {
4026 PyThreadState* __tstate = wxPyBeginAllowThreads();
4027 result = (byte)(arg1)->Green();
4028 wxPyEndAllowThreads(__tstate);
4029 if (PyErr_Occurred()) SWIG_fail;
4030 }
4031 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4032 return resultobj;
4033 fail:
4034 return NULL;
4035 }
4036
4037
4038 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4039 PyObject *resultobj = 0;
4040 wxColour *arg1 = (wxColour *) 0 ;
4041 byte result;
4042 void *argp1 = 0 ;
4043 int res1 = 0 ;
4044 PyObject *swig_obj[1] ;
4045
4046 if (!args) SWIG_fail;
4047 swig_obj[0] = args;
4048 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4049 if (!SWIG_IsOK(res1)) {
4050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4051 }
4052 arg1 = reinterpret_cast< wxColour * >(argp1);
4053 {
4054 PyThreadState* __tstate = wxPyBeginAllowThreads();
4055 result = (byte)(arg1)->Blue();
4056 wxPyEndAllowThreads(__tstate);
4057 if (PyErr_Occurred()) SWIG_fail;
4058 }
4059 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4060 return resultobj;
4061 fail:
4062 return NULL;
4063 }
4064
4065
4066 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4067 PyObject *resultobj = 0;
4068 wxColour *arg1 = (wxColour *) 0 ;
4069 byte result;
4070 void *argp1 = 0 ;
4071 int res1 = 0 ;
4072 PyObject *swig_obj[1] ;
4073
4074 if (!args) SWIG_fail;
4075 swig_obj[0] = args;
4076 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4077 if (!SWIG_IsOK(res1)) {
4078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4079 }
4080 arg1 = reinterpret_cast< wxColour * >(argp1);
4081 {
4082 PyThreadState* __tstate = wxPyBeginAllowThreads();
4083 result = (byte)(arg1)->Alpha();
4084 wxPyEndAllowThreads(__tstate);
4085 if (PyErr_Occurred()) SWIG_fail;
4086 }
4087 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4088 return resultobj;
4089 fail:
4090 return NULL;
4091 }
4092
4093
4094 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4095 PyObject *resultobj = 0;
4096 wxColour *arg1 = (wxColour *) 0 ;
4097 bool result;
4098 void *argp1 = 0 ;
4099 int res1 = 0 ;
4100 PyObject *swig_obj[1] ;
4101
4102 if (!args) SWIG_fail;
4103 swig_obj[0] = args;
4104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4105 if (!SWIG_IsOK(res1)) {
4106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4107 }
4108 arg1 = reinterpret_cast< wxColour * >(argp1);
4109 {
4110 PyThreadState* __tstate = wxPyBeginAllowThreads();
4111 result = (bool)(arg1)->IsOk();
4112 wxPyEndAllowThreads(__tstate);
4113 if (PyErr_Occurred()) SWIG_fail;
4114 }
4115 {
4116 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4117 }
4118 return resultobj;
4119 fail:
4120 return NULL;
4121 }
4122
4123
4124 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4125 PyObject *resultobj = 0;
4126 wxColour *arg1 = (wxColour *) 0 ;
4127 byte arg2 ;
4128 byte arg3 ;
4129 byte arg4 ;
4130 byte arg5 = (byte) wxALPHA_OPAQUE ;
4131 void *argp1 = 0 ;
4132 int res1 = 0 ;
4133 unsigned char val2 ;
4134 int ecode2 = 0 ;
4135 unsigned char val3 ;
4136 int ecode3 = 0 ;
4137 unsigned char val4 ;
4138 int ecode4 = 0 ;
4139 unsigned char val5 ;
4140 int ecode5 = 0 ;
4141 PyObject * obj0 = 0 ;
4142 PyObject * obj1 = 0 ;
4143 PyObject * obj2 = 0 ;
4144 PyObject * obj3 = 0 ;
4145 PyObject * obj4 = 0 ;
4146 char * kwnames[] = {
4147 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4148 };
4149
4150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4152 if (!SWIG_IsOK(res1)) {
4153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4154 }
4155 arg1 = reinterpret_cast< wxColour * >(argp1);
4156 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4157 if (!SWIG_IsOK(ecode2)) {
4158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4159 }
4160 arg2 = static_cast< byte >(val2);
4161 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4162 if (!SWIG_IsOK(ecode3)) {
4163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4164 }
4165 arg3 = static_cast< byte >(val3);
4166 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4167 if (!SWIG_IsOK(ecode4)) {
4168 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4169 }
4170 arg4 = static_cast< byte >(val4);
4171 if (obj4) {
4172 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4173 if (!SWIG_IsOK(ecode5)) {
4174 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4175 }
4176 arg5 = static_cast< byte >(val5);
4177 }
4178 {
4179 PyThreadState* __tstate = wxPyBeginAllowThreads();
4180 (arg1)->Set(arg2,arg3,arg4,arg5);
4181 wxPyEndAllowThreads(__tstate);
4182 if (PyErr_Occurred()) SWIG_fail;
4183 }
4184 resultobj = SWIG_Py_Void();
4185 return resultobj;
4186 fail:
4187 return NULL;
4188 }
4189
4190
4191 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4192 PyObject *resultobj = 0;
4193 wxColour *arg1 = (wxColour *) 0 ;
4194 unsigned long arg2 ;
4195 void *argp1 = 0 ;
4196 int res1 = 0 ;
4197 unsigned long val2 ;
4198 int ecode2 = 0 ;
4199 PyObject * obj0 = 0 ;
4200 PyObject * obj1 = 0 ;
4201 char * kwnames[] = {
4202 (char *) "self",(char *) "colRGB", NULL
4203 };
4204
4205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4207 if (!SWIG_IsOK(res1)) {
4208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4209 }
4210 arg1 = reinterpret_cast< wxColour * >(argp1);
4211 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4212 if (!SWIG_IsOK(ecode2)) {
4213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4214 }
4215 arg2 = static_cast< unsigned long >(val2);
4216 {
4217 PyThreadState* __tstate = wxPyBeginAllowThreads();
4218 (arg1)->Set(arg2);
4219 wxPyEndAllowThreads(__tstate);
4220 if (PyErr_Occurred()) SWIG_fail;
4221 }
4222 resultobj = SWIG_Py_Void();
4223 return resultobj;
4224 fail:
4225 return NULL;
4226 }
4227
4228
4229 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4230 PyObject *resultobj = 0;
4231 wxColour *arg1 = (wxColour *) 0 ;
4232 wxString *arg2 = 0 ;
4233 void *argp1 = 0 ;
4234 int res1 = 0 ;
4235 bool temp2 = false ;
4236 PyObject * obj0 = 0 ;
4237 PyObject * obj1 = 0 ;
4238 char * kwnames[] = {
4239 (char *) "self",(char *) "colourName", NULL
4240 };
4241
4242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4244 if (!SWIG_IsOK(res1)) {
4245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4246 }
4247 arg1 = reinterpret_cast< wxColour * >(argp1);
4248 {
4249 arg2 = wxString_in_helper(obj1);
4250 if (arg2 == NULL) SWIG_fail;
4251 temp2 = true;
4252 }
4253 {
4254 PyThreadState* __tstate = wxPyBeginAllowThreads();
4255 (arg1)->Set((wxString const &)*arg2);
4256 wxPyEndAllowThreads(__tstate);
4257 if (PyErr_Occurred()) SWIG_fail;
4258 }
4259 resultobj = SWIG_Py_Void();
4260 {
4261 if (temp2)
4262 delete arg2;
4263 }
4264 return resultobj;
4265 fail:
4266 {
4267 if (temp2)
4268 delete arg2;
4269 }
4270 return NULL;
4271 }
4272
4273
4274 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4275 PyObject *resultobj = 0;
4276 wxColour *arg1 = (wxColour *) 0 ;
4277 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4278 wxString result;
4279 void *argp1 = 0 ;
4280 int res1 = 0 ;
4281 long val2 ;
4282 int ecode2 = 0 ;
4283 PyObject * obj0 = 0 ;
4284 PyObject * obj1 = 0 ;
4285 char * kwnames[] = {
4286 (char *) "self",(char *) "flags", NULL
4287 };
4288
4289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4291 if (!SWIG_IsOK(res1)) {
4292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4293 }
4294 arg1 = reinterpret_cast< wxColour * >(argp1);
4295 if (obj1) {
4296 ecode2 = SWIG_AsVal_long(obj1, &val2);
4297 if (!SWIG_IsOK(ecode2)) {
4298 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4299 }
4300 arg2 = static_cast< long >(val2);
4301 }
4302 {
4303 PyThreadState* __tstate = wxPyBeginAllowThreads();
4304 result = ((wxColour const *)arg1)->GetAsString(arg2);
4305 wxPyEndAllowThreads(__tstate);
4306 if (PyErr_Occurred()) SWIG_fail;
4307 }
4308 {
4309 #if wxUSE_UNICODE
4310 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4311 #else
4312 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4313 #endif
4314 }
4315 return resultobj;
4316 fail:
4317 return NULL;
4318 }
4319
4320
4321 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4322 PyObject *resultobj = 0;
4323 wxColour *arg1 = (wxColour *) 0 ;
4324 long result;
4325 void *argp1 = 0 ;
4326 int res1 = 0 ;
4327 PyObject *swig_obj[1] ;
4328
4329 if (!args) SWIG_fail;
4330 swig_obj[0] = args;
4331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4332 if (!SWIG_IsOK(res1)) {
4333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4334 }
4335 arg1 = reinterpret_cast< wxColour * >(argp1);
4336 {
4337 PyThreadState* __tstate = wxPyBeginAllowThreads();
4338 result = (long)((wxColour const *)arg1)->GetPixel();
4339 wxPyEndAllowThreads(__tstate);
4340 if (PyErr_Occurred()) SWIG_fail;
4341 }
4342 resultobj = SWIG_From_long(static_cast< long >(result));
4343 return resultobj;
4344 fail:
4345 return NULL;
4346 }
4347
4348
4349 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4350 PyObject *resultobj = 0;
4351 wxColour *arg1 = (wxColour *) 0 ;
4352 PyObject *arg2 = (PyObject *) 0 ;
4353 bool result;
4354 void *argp1 = 0 ;
4355 int res1 = 0 ;
4356 PyObject * obj0 = 0 ;
4357 PyObject * obj1 = 0 ;
4358 char * kwnames[] = {
4359 (char *) "self",(char *) "other", NULL
4360 };
4361
4362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4364 if (!SWIG_IsOK(res1)) {
4365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4366 }
4367 arg1 = reinterpret_cast< wxColour * >(argp1);
4368 arg2 = obj1;
4369 {
4370 result = (bool)wxColour___eq__(arg1,arg2);
4371 if (PyErr_Occurred()) SWIG_fail;
4372 }
4373 {
4374 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4375 }
4376 return resultobj;
4377 fail:
4378 return NULL;
4379 }
4380
4381
4382 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4383 PyObject *resultobj = 0;
4384 wxColour *arg1 = (wxColour *) 0 ;
4385 PyObject *arg2 = (PyObject *) 0 ;
4386 bool result;
4387 void *argp1 = 0 ;
4388 int res1 = 0 ;
4389 PyObject * obj0 = 0 ;
4390 PyObject * obj1 = 0 ;
4391 char * kwnames[] = {
4392 (char *) "self",(char *) "other", NULL
4393 };
4394
4395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4397 if (!SWIG_IsOK(res1)) {
4398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4399 }
4400 arg1 = reinterpret_cast< wxColour * >(argp1);
4401 arg2 = obj1;
4402 {
4403 result = (bool)wxColour___ne__(arg1,arg2);
4404 if (PyErr_Occurred()) SWIG_fail;
4405 }
4406 {
4407 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4408 }
4409 return resultobj;
4410 fail:
4411 return NULL;
4412 }
4413
4414
4415 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4416 PyObject *resultobj = 0;
4417 wxColour *arg1 = (wxColour *) 0 ;
4418 bool arg2 = (bool) false ;
4419 PyObject *result = 0 ;
4420 void *argp1 = 0 ;
4421 int res1 = 0 ;
4422 bool val2 ;
4423 int ecode2 = 0 ;
4424 PyObject * obj0 = 0 ;
4425 PyObject * obj1 = 0 ;
4426 char * kwnames[] = {
4427 (char *) "self",(char *) "includeAlpha", NULL
4428 };
4429
4430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4432 if (!SWIG_IsOK(res1)) {
4433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4434 }
4435 arg1 = reinterpret_cast< wxColour * >(argp1);
4436 if (obj1) {
4437 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4438 if (!SWIG_IsOK(ecode2)) {
4439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4440 }
4441 arg2 = static_cast< bool >(val2);
4442 }
4443 {
4444 result = (PyObject *)wxColour_Get(arg1,arg2);
4445 if (PyErr_Occurred()) SWIG_fail;
4446 }
4447 resultobj = result;
4448 return resultobj;
4449 fail:
4450 return NULL;
4451 }
4452
4453
4454 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4455 PyObject *resultobj = 0;
4456 wxColour *arg1 = (wxColour *) 0 ;
4457 unsigned long result;
4458 void *argp1 = 0 ;
4459 int res1 = 0 ;
4460 PyObject *swig_obj[1] ;
4461
4462 if (!args) SWIG_fail;
4463 swig_obj[0] = args;
4464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4465 if (!SWIG_IsOK(res1)) {
4466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4467 }
4468 arg1 = reinterpret_cast< wxColour * >(argp1);
4469 {
4470 result = (unsigned long)wxColour_GetRGB(arg1);
4471 if (PyErr_Occurred()) SWIG_fail;
4472 }
4473 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4474 return resultobj;
4475 fail:
4476 return NULL;
4477 }
4478
4479
4480 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4481 PyObject *obj;
4482 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4483 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4484 return SWIG_Py_Void();
4485 }
4486
4487 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4488 return SWIG_Python_InitShadowInstance(args);
4489 }
4490
4491 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4492 PyObject *resultobj = 0;
4493 int arg1 ;
4494 unsigned char *arg2 = (unsigned char *) 0 ;
4495 unsigned char *arg3 = (unsigned char *) 0 ;
4496 unsigned char *arg4 = (unsigned char *) 0 ;
4497 wxPalette *result = 0 ;
4498 int val1 ;
4499 int ecode1 = 0 ;
4500 void *argp2 = 0 ;
4501 int res2 = 0 ;
4502 void *argp3 = 0 ;
4503 int res3 = 0 ;
4504 void *argp4 = 0 ;
4505 int res4 = 0 ;
4506 PyObject * obj0 = 0 ;
4507 PyObject * obj1 = 0 ;
4508 PyObject * obj2 = 0 ;
4509 PyObject * obj3 = 0 ;
4510 char * kwnames[] = {
4511 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4512 };
4513
4514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4515 ecode1 = SWIG_AsVal_int(obj0, &val1);
4516 if (!SWIG_IsOK(ecode1)) {
4517 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4518 }
4519 arg1 = static_cast< int >(val1);
4520 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4521 if (!SWIG_IsOK(res2)) {
4522 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4523 }
4524 arg2 = reinterpret_cast< unsigned char * >(argp2);
4525 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4526 if (!SWIG_IsOK(res3)) {
4527 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4528 }
4529 arg3 = reinterpret_cast< unsigned char * >(argp3);
4530 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4531 if (!SWIG_IsOK(res4)) {
4532 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4533 }
4534 arg4 = reinterpret_cast< unsigned char * >(argp4);
4535 {
4536 if (!wxPyCheckForApp()) SWIG_fail;
4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
4538 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4539 wxPyEndAllowThreads(__tstate);
4540 if (PyErr_Occurred()) SWIG_fail;
4541 }
4542 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4543 return resultobj;
4544 fail:
4545 return NULL;
4546 }
4547
4548
4549 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4550 PyObject *resultobj = 0;
4551 wxPalette *arg1 = (wxPalette *) 0 ;
4552 void *argp1 = 0 ;
4553 int res1 = 0 ;
4554 PyObject *swig_obj[1] ;
4555
4556 if (!args) SWIG_fail;
4557 swig_obj[0] = args;
4558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4559 if (!SWIG_IsOK(res1)) {
4560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4561 }
4562 arg1 = reinterpret_cast< wxPalette * >(argp1);
4563 {
4564 PyThreadState* __tstate = wxPyBeginAllowThreads();
4565 delete arg1;
4566
4567 wxPyEndAllowThreads(__tstate);
4568 if (PyErr_Occurred()) SWIG_fail;
4569 }
4570 resultobj = SWIG_Py_Void();
4571 return resultobj;
4572 fail:
4573 return NULL;
4574 }
4575
4576
4577 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4578 PyObject *resultobj = 0;
4579 wxPalette *arg1 = (wxPalette *) 0 ;
4580 byte arg2 ;
4581 byte arg3 ;
4582 byte arg4 ;
4583 int result;
4584 void *argp1 = 0 ;
4585 int res1 = 0 ;
4586 unsigned char val2 ;
4587 int ecode2 = 0 ;
4588 unsigned char val3 ;
4589 int ecode3 = 0 ;
4590 unsigned char val4 ;
4591 int ecode4 = 0 ;
4592 PyObject * obj0 = 0 ;
4593 PyObject * obj1 = 0 ;
4594 PyObject * obj2 = 0 ;
4595 PyObject * obj3 = 0 ;
4596 char * kwnames[] = {
4597 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4598 };
4599
4600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4602 if (!SWIG_IsOK(res1)) {
4603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4604 }
4605 arg1 = reinterpret_cast< wxPalette * >(argp1);
4606 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4607 if (!SWIG_IsOK(ecode2)) {
4608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4609 }
4610 arg2 = static_cast< byte >(val2);
4611 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4612 if (!SWIG_IsOK(ecode3)) {
4613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4614 }
4615 arg3 = static_cast< byte >(val3);
4616 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4617 if (!SWIG_IsOK(ecode4)) {
4618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4619 }
4620 arg4 = static_cast< byte >(val4);
4621 {
4622 PyThreadState* __tstate = wxPyBeginAllowThreads();
4623 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4624 wxPyEndAllowThreads(__tstate);
4625 if (PyErr_Occurred()) SWIG_fail;
4626 }
4627 resultobj = SWIG_From_int(static_cast< int >(result));
4628 return resultobj;
4629 fail:
4630 return NULL;
4631 }
4632
4633
4634 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4635 PyObject *resultobj = 0;
4636 wxPalette *arg1 = (wxPalette *) 0 ;
4637 int arg2 ;
4638 byte *arg3 = (byte *) 0 ;
4639 byte *arg4 = (byte *) 0 ;
4640 byte *arg5 = (byte *) 0 ;
4641 bool result;
4642 void *argp1 = 0 ;
4643 int res1 = 0 ;
4644 int val2 ;
4645 int ecode2 = 0 ;
4646 byte temp3 ;
4647 int res3 = SWIG_TMPOBJ ;
4648 byte temp4 ;
4649 int res4 = SWIG_TMPOBJ ;
4650 byte temp5 ;
4651 int res5 = SWIG_TMPOBJ ;
4652 PyObject * obj0 = 0 ;
4653 PyObject * obj1 = 0 ;
4654 char * kwnames[] = {
4655 (char *) "self",(char *) "pixel", NULL
4656 };
4657
4658 arg3 = &temp3;
4659 arg4 = &temp4;
4660 arg5 = &temp5;
4661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4663 if (!SWIG_IsOK(res1)) {
4664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4665 }
4666 arg1 = reinterpret_cast< wxPalette * >(argp1);
4667 ecode2 = SWIG_AsVal_int(obj1, &val2);
4668 if (!SWIG_IsOK(ecode2)) {
4669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4670 }
4671 arg2 = static_cast< int >(val2);
4672 {
4673 PyThreadState* __tstate = wxPyBeginAllowThreads();
4674 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4675 wxPyEndAllowThreads(__tstate);
4676 if (PyErr_Occurred()) SWIG_fail;
4677 }
4678 {
4679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4680 }
4681 if (SWIG_IsTmpObj(res3)) {
4682 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4683 } else {
4684 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4685 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4686 }
4687 if (SWIG_IsTmpObj(res4)) {
4688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4689 } else {
4690 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4692 }
4693 if (SWIG_IsTmpObj(res5)) {
4694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4695 } else {
4696 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4698 }
4699 return resultobj;
4700 fail:
4701 return NULL;
4702 }
4703
4704
4705 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4706 PyObject *resultobj = 0;
4707 wxPalette *arg1 = (wxPalette *) 0 ;
4708 int result;
4709 void *argp1 = 0 ;
4710 int res1 = 0 ;
4711 PyObject *swig_obj[1] ;
4712
4713 if (!args) SWIG_fail;
4714 swig_obj[0] = args;
4715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4716 if (!SWIG_IsOK(res1)) {
4717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4718 }
4719 arg1 = reinterpret_cast< wxPalette * >(argp1);
4720 {
4721 PyThreadState* __tstate = wxPyBeginAllowThreads();
4722 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4723 wxPyEndAllowThreads(__tstate);
4724 if (PyErr_Occurred()) SWIG_fail;
4725 }
4726 resultobj = SWIG_From_int(static_cast< int >(result));
4727 return resultobj;
4728 fail:
4729 return NULL;
4730 }
4731
4732
4733 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4734 PyObject *resultobj = 0;
4735 wxPalette *arg1 = (wxPalette *) 0 ;
4736 bool result;
4737 void *argp1 = 0 ;
4738 int res1 = 0 ;
4739 PyObject *swig_obj[1] ;
4740
4741 if (!args) SWIG_fail;
4742 swig_obj[0] = args;
4743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4744 if (!SWIG_IsOK(res1)) {
4745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4746 }
4747 arg1 = reinterpret_cast< wxPalette * >(argp1);
4748 {
4749 PyThreadState* __tstate = wxPyBeginAllowThreads();
4750 result = (bool)(arg1)->IsOk();
4751 wxPyEndAllowThreads(__tstate);
4752 if (PyErr_Occurred()) SWIG_fail;
4753 }
4754 {
4755 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4756 }
4757 return resultobj;
4758 fail:
4759 return NULL;
4760 }
4761
4762
4763 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4764 PyObject *obj;
4765 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4766 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4767 return SWIG_Py_Void();
4768 }
4769
4770 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4771 return SWIG_Python_InitShadowInstance(args);
4772 }
4773
4774 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4775 PyObject *resultobj = 0;
4776 wxColour *arg1 = 0 ;
4777 int arg2 = (int) 1 ;
4778 int arg3 = (int) wxSOLID ;
4779 wxPen *result = 0 ;
4780 wxColour temp1 ;
4781 int val2 ;
4782 int ecode2 = 0 ;
4783 int val3 ;
4784 int ecode3 = 0 ;
4785 PyObject * obj0 = 0 ;
4786 PyObject * obj1 = 0 ;
4787 PyObject * obj2 = 0 ;
4788 char * kwnames[] = {
4789 (char *) "colour",(char *) "width",(char *) "style", NULL
4790 };
4791
4792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4793 {
4794 arg1 = &temp1;
4795 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4796 }
4797 if (obj1) {
4798 ecode2 = SWIG_AsVal_int(obj1, &val2);
4799 if (!SWIG_IsOK(ecode2)) {
4800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4801 }
4802 arg2 = static_cast< int >(val2);
4803 }
4804 if (obj2) {
4805 ecode3 = SWIG_AsVal_int(obj2, &val3);
4806 if (!SWIG_IsOK(ecode3)) {
4807 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4808 }
4809 arg3 = static_cast< int >(val3);
4810 }
4811 {
4812 if (!wxPyCheckForApp()) SWIG_fail;
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4815 wxPyEndAllowThreads(__tstate);
4816 if (PyErr_Occurred()) SWIG_fail;
4817 }
4818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4819 return resultobj;
4820 fail:
4821 return NULL;
4822 }
4823
4824
4825 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4826 PyObject *resultobj = 0;
4827 wxPen *arg1 = (wxPen *) 0 ;
4828 void *argp1 = 0 ;
4829 int res1 = 0 ;
4830 PyObject *swig_obj[1] ;
4831
4832 if (!args) SWIG_fail;
4833 swig_obj[0] = args;
4834 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4835 if (!SWIG_IsOK(res1)) {
4836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4837 }
4838 arg1 = reinterpret_cast< wxPen * >(argp1);
4839 {
4840 PyThreadState* __tstate = wxPyBeginAllowThreads();
4841 delete arg1;
4842
4843 wxPyEndAllowThreads(__tstate);
4844 if (PyErr_Occurred()) SWIG_fail;
4845 }
4846 resultobj = SWIG_Py_Void();
4847 return resultobj;
4848 fail:
4849 return NULL;
4850 }
4851
4852
4853 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4854 PyObject *resultobj = 0;
4855 wxPen *arg1 = (wxPen *) 0 ;
4856 int result;
4857 void *argp1 = 0 ;
4858 int res1 = 0 ;
4859 PyObject *swig_obj[1] ;
4860
4861 if (!args) SWIG_fail;
4862 swig_obj[0] = args;
4863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4864 if (!SWIG_IsOK(res1)) {
4865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4866 }
4867 arg1 = reinterpret_cast< wxPen * >(argp1);
4868 {
4869 PyThreadState* __tstate = wxPyBeginAllowThreads();
4870 result = (int)(arg1)->GetCap();
4871 wxPyEndAllowThreads(__tstate);
4872 if (PyErr_Occurred()) SWIG_fail;
4873 }
4874 resultobj = SWIG_From_int(static_cast< int >(result));
4875 return resultobj;
4876 fail:
4877 return NULL;
4878 }
4879
4880
4881 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4882 PyObject *resultobj = 0;
4883 wxPen *arg1 = (wxPen *) 0 ;
4884 wxColour result;
4885 void *argp1 = 0 ;
4886 int res1 = 0 ;
4887 PyObject *swig_obj[1] ;
4888
4889 if (!args) SWIG_fail;
4890 swig_obj[0] = args;
4891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4892 if (!SWIG_IsOK(res1)) {
4893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4894 }
4895 arg1 = reinterpret_cast< wxPen * >(argp1);
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 result = (arg1)->GetColour();
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4903 return resultobj;
4904 fail:
4905 return NULL;
4906 }
4907
4908
4909 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4910 PyObject *resultobj = 0;
4911 wxPen *arg1 = (wxPen *) 0 ;
4912 int result;
4913 void *argp1 = 0 ;
4914 int res1 = 0 ;
4915 PyObject *swig_obj[1] ;
4916
4917 if (!args) SWIG_fail;
4918 swig_obj[0] = args;
4919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4920 if (!SWIG_IsOK(res1)) {
4921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4922 }
4923 arg1 = reinterpret_cast< wxPen * >(argp1);
4924 {
4925 PyThreadState* __tstate = wxPyBeginAllowThreads();
4926 result = (int)(arg1)->GetJoin();
4927 wxPyEndAllowThreads(__tstate);
4928 if (PyErr_Occurred()) SWIG_fail;
4929 }
4930 resultobj = SWIG_From_int(static_cast< int >(result));
4931 return resultobj;
4932 fail:
4933 return NULL;
4934 }
4935
4936
4937 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4938 PyObject *resultobj = 0;
4939 wxPen *arg1 = (wxPen *) 0 ;
4940 int result;
4941 void *argp1 = 0 ;
4942 int res1 = 0 ;
4943 PyObject *swig_obj[1] ;
4944
4945 if (!args) SWIG_fail;
4946 swig_obj[0] = args;
4947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4948 if (!SWIG_IsOK(res1)) {
4949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4950 }
4951 arg1 = reinterpret_cast< wxPen * >(argp1);
4952 {
4953 PyThreadState* __tstate = wxPyBeginAllowThreads();
4954 result = (int)(arg1)->GetStyle();
4955 wxPyEndAllowThreads(__tstate);
4956 if (PyErr_Occurred()) SWIG_fail;
4957 }
4958 resultobj = SWIG_From_int(static_cast< int >(result));
4959 return resultobj;
4960 fail:
4961 return NULL;
4962 }
4963
4964
4965 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4966 PyObject *resultobj = 0;
4967 wxPen *arg1 = (wxPen *) 0 ;
4968 int result;
4969 void *argp1 = 0 ;
4970 int res1 = 0 ;
4971 PyObject *swig_obj[1] ;
4972
4973 if (!args) SWIG_fail;
4974 swig_obj[0] = args;
4975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4976 if (!SWIG_IsOK(res1)) {
4977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4978 }
4979 arg1 = reinterpret_cast< wxPen * >(argp1);
4980 {
4981 PyThreadState* __tstate = wxPyBeginAllowThreads();
4982 result = (int)(arg1)->GetWidth();
4983 wxPyEndAllowThreads(__tstate);
4984 if (PyErr_Occurred()) SWIG_fail;
4985 }
4986 resultobj = SWIG_From_int(static_cast< int >(result));
4987 return resultobj;
4988 fail:
4989 return NULL;
4990 }
4991
4992
4993 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4994 PyObject *resultobj = 0;
4995 wxPen *arg1 = (wxPen *) 0 ;
4996 bool result;
4997 void *argp1 = 0 ;
4998 int res1 = 0 ;
4999 PyObject *swig_obj[1] ;
5000
5001 if (!args) SWIG_fail;
5002 swig_obj[0] = args;
5003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5004 if (!SWIG_IsOK(res1)) {
5005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
5006 }
5007 arg1 = reinterpret_cast< wxPen * >(argp1);
5008 {
5009 PyThreadState* __tstate = wxPyBeginAllowThreads();
5010 result = (bool)(arg1)->IsOk();
5011 wxPyEndAllowThreads(__tstate);
5012 if (PyErr_Occurred()) SWIG_fail;
5013 }
5014 {
5015 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5016 }
5017 return resultobj;
5018 fail:
5019 return NULL;
5020 }
5021
5022
5023 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5024 PyObject *resultobj = 0;
5025 wxPen *arg1 = (wxPen *) 0 ;
5026 int arg2 ;
5027 void *argp1 = 0 ;
5028 int res1 = 0 ;
5029 int val2 ;
5030 int ecode2 = 0 ;
5031 PyObject * obj0 = 0 ;
5032 PyObject * obj1 = 0 ;
5033 char * kwnames[] = {
5034 (char *) "self",(char *) "cap_style", NULL
5035 };
5036
5037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5039 if (!SWIG_IsOK(res1)) {
5040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5041 }
5042 arg1 = reinterpret_cast< wxPen * >(argp1);
5043 ecode2 = SWIG_AsVal_int(obj1, &val2);
5044 if (!SWIG_IsOK(ecode2)) {
5045 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5046 }
5047 arg2 = static_cast< int >(val2);
5048 {
5049 PyThreadState* __tstate = wxPyBeginAllowThreads();
5050 (arg1)->SetCap(arg2);
5051 wxPyEndAllowThreads(__tstate);
5052 if (PyErr_Occurred()) SWIG_fail;
5053 }
5054 resultobj = SWIG_Py_Void();
5055 return resultobj;
5056 fail:
5057 return NULL;
5058 }
5059
5060
5061 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5062 PyObject *resultobj = 0;
5063 wxPen *arg1 = (wxPen *) 0 ;
5064 wxColour *arg2 = 0 ;
5065 void *argp1 = 0 ;
5066 int res1 = 0 ;
5067 wxColour temp2 ;
5068 PyObject * obj0 = 0 ;
5069 PyObject * obj1 = 0 ;
5070 char * kwnames[] = {
5071 (char *) "self",(char *) "colour", NULL
5072 };
5073
5074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5076 if (!SWIG_IsOK(res1)) {
5077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5078 }
5079 arg1 = reinterpret_cast< wxPen * >(argp1);
5080 {
5081 arg2 = &temp2;
5082 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5083 }
5084 {
5085 PyThreadState* __tstate = wxPyBeginAllowThreads();
5086 (arg1)->SetColour(*arg2);
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 resultobj = SWIG_Py_Void();
5091 return resultobj;
5092 fail:
5093 return NULL;
5094 }
5095
5096
5097 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5098 PyObject *resultobj = 0;
5099 wxPen *arg1 = (wxPen *) 0 ;
5100 int arg2 ;
5101 void *argp1 = 0 ;
5102 int res1 = 0 ;
5103 int val2 ;
5104 int ecode2 = 0 ;
5105 PyObject * obj0 = 0 ;
5106 PyObject * obj1 = 0 ;
5107 char * kwnames[] = {
5108 (char *) "self",(char *) "join_style", NULL
5109 };
5110
5111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5113 if (!SWIG_IsOK(res1)) {
5114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5115 }
5116 arg1 = reinterpret_cast< wxPen * >(argp1);
5117 ecode2 = SWIG_AsVal_int(obj1, &val2);
5118 if (!SWIG_IsOK(ecode2)) {
5119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5120 }
5121 arg2 = static_cast< int >(val2);
5122 {
5123 PyThreadState* __tstate = wxPyBeginAllowThreads();
5124 (arg1)->SetJoin(arg2);
5125 wxPyEndAllowThreads(__tstate);
5126 if (PyErr_Occurred()) SWIG_fail;
5127 }
5128 resultobj = SWIG_Py_Void();
5129 return resultobj;
5130 fail:
5131 return NULL;
5132 }
5133
5134
5135 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5136 PyObject *resultobj = 0;
5137 wxPen *arg1 = (wxPen *) 0 ;
5138 int arg2 ;
5139 void *argp1 = 0 ;
5140 int res1 = 0 ;
5141 int val2 ;
5142 int ecode2 = 0 ;
5143 PyObject * obj0 = 0 ;
5144 PyObject * obj1 = 0 ;
5145 char * kwnames[] = {
5146 (char *) "self",(char *) "style", NULL
5147 };
5148
5149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5151 if (!SWIG_IsOK(res1)) {
5152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5153 }
5154 arg1 = reinterpret_cast< wxPen * >(argp1);
5155 ecode2 = SWIG_AsVal_int(obj1, &val2);
5156 if (!SWIG_IsOK(ecode2)) {
5157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5158 }
5159 arg2 = static_cast< int >(val2);
5160 {
5161 PyThreadState* __tstate = wxPyBeginAllowThreads();
5162 (arg1)->SetStyle(arg2);
5163 wxPyEndAllowThreads(__tstate);
5164 if (PyErr_Occurred()) SWIG_fail;
5165 }
5166 resultobj = SWIG_Py_Void();
5167 return resultobj;
5168 fail:
5169 return NULL;
5170 }
5171
5172
5173 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5174 PyObject *resultobj = 0;
5175 wxPen *arg1 = (wxPen *) 0 ;
5176 int arg2 ;
5177 void *argp1 = 0 ;
5178 int res1 = 0 ;
5179 int val2 ;
5180 int ecode2 = 0 ;
5181 PyObject * obj0 = 0 ;
5182 PyObject * obj1 = 0 ;
5183 char * kwnames[] = {
5184 (char *) "self",(char *) "width", NULL
5185 };
5186
5187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5189 if (!SWIG_IsOK(res1)) {
5190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5191 }
5192 arg1 = reinterpret_cast< wxPen * >(argp1);
5193 ecode2 = SWIG_AsVal_int(obj1, &val2);
5194 if (!SWIG_IsOK(ecode2)) {
5195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5196 }
5197 arg2 = static_cast< int >(val2);
5198 {
5199 PyThreadState* __tstate = wxPyBeginAllowThreads();
5200 (arg1)->SetWidth(arg2);
5201 wxPyEndAllowThreads(__tstate);
5202 if (PyErr_Occurred()) SWIG_fail;
5203 }
5204 resultobj = SWIG_Py_Void();
5205 return resultobj;
5206 fail:
5207 return NULL;
5208 }
5209
5210
5211 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5212 PyObject *resultobj = 0;
5213 wxPen *arg1 = (wxPen *) 0 ;
5214 int arg2 ;
5215 wxDash *arg3 = (wxDash *) 0 ;
5216 void *argp1 = 0 ;
5217 int res1 = 0 ;
5218 PyObject * obj0 = 0 ;
5219 PyObject * obj1 = 0 ;
5220 char * kwnames[] = {
5221 (char *) "self",(char *) "dashes", NULL
5222 };
5223
5224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5226 if (!SWIG_IsOK(res1)) {
5227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5228 }
5229 arg1 = reinterpret_cast< wxPen * >(argp1);
5230 {
5231 arg2 = PyList_Size(obj1);
5232 arg3 = (wxDash*)byte_LIST_helper(obj1);
5233 if (arg3 == NULL) SWIG_fail;
5234 }
5235 {
5236 PyThreadState* __tstate = wxPyBeginAllowThreads();
5237 (arg1)->SetDashes(arg2,arg3);
5238 wxPyEndAllowThreads(__tstate);
5239 if (PyErr_Occurred()) SWIG_fail;
5240 }
5241 resultobj = SWIG_Py_Void();
5242 {
5243 if (arg3) delete [] arg3;
5244 }
5245 return resultobj;
5246 fail:
5247 {
5248 if (arg3) delete [] arg3;
5249 }
5250 return NULL;
5251 }
5252
5253
5254 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5255 PyObject *resultobj = 0;
5256 wxPen *arg1 = (wxPen *) 0 ;
5257 PyObject *result = 0 ;
5258 void *argp1 = 0 ;
5259 int res1 = 0 ;
5260 PyObject *swig_obj[1] ;
5261
5262 if (!args) SWIG_fail;
5263 swig_obj[0] = args;
5264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5265 if (!SWIG_IsOK(res1)) {
5266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5267 }
5268 arg1 = reinterpret_cast< wxPen * >(argp1);
5269 {
5270 PyThreadState* __tstate = wxPyBeginAllowThreads();
5271 result = (PyObject *)wxPen_GetDashes(arg1);
5272 wxPyEndAllowThreads(__tstate);
5273 if (PyErr_Occurred()) SWIG_fail;
5274 }
5275 resultobj = result;
5276 return resultobj;
5277 fail:
5278 return NULL;
5279 }
5280
5281
5282 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5283 PyObject *resultobj = 0;
5284 wxPen *arg1 = (wxPen *) 0 ;
5285 PyObject *arg2 = (PyObject *) 0 ;
5286 PyObject *arg3 = (PyObject *) 0 ;
5287 void *argp1 = 0 ;
5288 int res1 = 0 ;
5289 PyObject * obj0 = 0 ;
5290 PyObject * obj1 = 0 ;
5291 PyObject * obj2 = 0 ;
5292 char * kwnames[] = {
5293 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5294 };
5295
5296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5298 if (!SWIG_IsOK(res1)) {
5299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5300 }
5301 arg1 = reinterpret_cast< wxPen * >(argp1);
5302 arg2 = obj1;
5303 arg3 = obj2;
5304 {
5305 PyThreadState* __tstate = wxPyBeginAllowThreads();
5306 wxPen__SetDashes(arg1,arg2,arg3);
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___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5318 PyObject *resultobj = 0;
5319 wxPen *arg1 = (wxPen *) 0 ;
5320 wxPen *arg2 = (wxPen *) 0 ;
5321 bool result;
5322 void *argp1 = 0 ;
5323 int res1 = 0 ;
5324 void *argp2 = 0 ;
5325 int res2 = 0 ;
5326 PyObject * obj0 = 0 ;
5327 PyObject * obj1 = 0 ;
5328 char * kwnames[] = {
5329 (char *) "self",(char *) "other", NULL
5330 };
5331
5332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5334 if (!SWIG_IsOK(res1)) {
5335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5336 }
5337 arg1 = reinterpret_cast< wxPen * >(argp1);
5338 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5339 if (!SWIG_IsOK(res2)) {
5340 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5341 }
5342 arg2 = reinterpret_cast< wxPen * >(argp2);
5343 {
5344 PyThreadState* __tstate = wxPyBeginAllowThreads();
5345 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5346 wxPyEndAllowThreads(__tstate);
5347 if (PyErr_Occurred()) SWIG_fail;
5348 }
5349 {
5350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5351 }
5352 return resultobj;
5353 fail:
5354 return NULL;
5355 }
5356
5357
5358 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5359 PyObject *resultobj = 0;
5360 wxPen *arg1 = (wxPen *) 0 ;
5361 wxPen *arg2 = (wxPen *) 0 ;
5362 bool result;
5363 void *argp1 = 0 ;
5364 int res1 = 0 ;
5365 void *argp2 = 0 ;
5366 int res2 = 0 ;
5367 PyObject * obj0 = 0 ;
5368 PyObject * obj1 = 0 ;
5369 char * kwnames[] = {
5370 (char *) "self",(char *) "other", NULL
5371 };
5372
5373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5375 if (!SWIG_IsOK(res1)) {
5376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5377 }
5378 arg1 = reinterpret_cast< wxPen * >(argp1);
5379 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5380 if (!SWIG_IsOK(res2)) {
5381 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5382 }
5383 arg2 = reinterpret_cast< wxPen * >(argp2);
5384 {
5385 PyThreadState* __tstate = wxPyBeginAllowThreads();
5386 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5387 wxPyEndAllowThreads(__tstate);
5388 if (PyErr_Occurred()) SWIG_fail;
5389 }
5390 {
5391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5392 }
5393 return resultobj;
5394 fail:
5395 return NULL;
5396 }
5397
5398
5399 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5400 PyObject *obj;
5401 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5402 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5403 return SWIG_Py_Void();
5404 }
5405
5406 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5407 return SWIG_Python_InitShadowInstance(args);
5408 }
5409
5410 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5411 PyObject *resultobj = 0;
5412 wxColour *arg1 = 0 ;
5413 int arg2 = (int) wxSOLID ;
5414 wxBrush *result = 0 ;
5415 wxColour temp1 ;
5416 int val2 ;
5417 int ecode2 = 0 ;
5418 PyObject * obj0 = 0 ;
5419 PyObject * obj1 = 0 ;
5420 char * kwnames[] = {
5421 (char *) "colour",(char *) "style", NULL
5422 };
5423
5424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5425 {
5426 arg1 = &temp1;
5427 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5428 }
5429 if (obj1) {
5430 ecode2 = SWIG_AsVal_int(obj1, &val2);
5431 if (!SWIG_IsOK(ecode2)) {
5432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5433 }
5434 arg2 = static_cast< int >(val2);
5435 }
5436 {
5437 if (!wxPyCheckForApp()) SWIG_fail;
5438 PyThreadState* __tstate = wxPyBeginAllowThreads();
5439 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5440 wxPyEndAllowThreads(__tstate);
5441 if (PyErr_Occurred()) SWIG_fail;
5442 }
5443 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5444 return resultobj;
5445 fail:
5446 return NULL;
5447 }
5448
5449
5450 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5451 PyObject *resultobj = 0;
5452 wxBitmap *arg1 = 0 ;
5453 wxBrush *result = 0 ;
5454 void *argp1 = 0 ;
5455 int res1 = 0 ;
5456 PyObject * obj0 = 0 ;
5457 char * kwnames[] = {
5458 (char *) "stippleBitmap", NULL
5459 };
5460
5461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5462 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5463 if (!SWIG_IsOK(res1)) {
5464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5465 }
5466 if (!argp1) {
5467 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5468 }
5469 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5470 {
5471 if (!wxPyCheckForApp()) SWIG_fail;
5472 PyThreadState* __tstate = wxPyBeginAllowThreads();
5473 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5474 wxPyEndAllowThreads(__tstate);
5475 if (PyErr_Occurred()) SWIG_fail;
5476 }
5477 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5478 return resultobj;
5479 fail:
5480 return NULL;
5481 }
5482
5483
5484 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5485 PyObject *resultobj = 0;
5486 wxBrush *arg1 = (wxBrush *) 0 ;
5487 void *argp1 = 0 ;
5488 int res1 = 0 ;
5489 PyObject *swig_obj[1] ;
5490
5491 if (!args) SWIG_fail;
5492 swig_obj[0] = args;
5493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5494 if (!SWIG_IsOK(res1)) {
5495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5496 }
5497 arg1 = reinterpret_cast< wxBrush * >(argp1);
5498 {
5499 PyThreadState* __tstate = wxPyBeginAllowThreads();
5500 delete arg1;
5501
5502 wxPyEndAllowThreads(__tstate);
5503 if (PyErr_Occurred()) SWIG_fail;
5504 }
5505 resultobj = SWIG_Py_Void();
5506 return resultobj;
5507 fail:
5508 return NULL;
5509 }
5510
5511
5512 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5513 PyObject *resultobj = 0;
5514 wxBrush *arg1 = (wxBrush *) 0 ;
5515 wxColour *arg2 = 0 ;
5516 void *argp1 = 0 ;
5517 int res1 = 0 ;
5518 wxColour temp2 ;
5519 PyObject * obj0 = 0 ;
5520 PyObject * obj1 = 0 ;
5521 char * kwnames[] = {
5522 (char *) "self",(char *) "col", NULL
5523 };
5524
5525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5527 if (!SWIG_IsOK(res1)) {
5528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5529 }
5530 arg1 = reinterpret_cast< wxBrush * >(argp1);
5531 {
5532 arg2 = &temp2;
5533 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5534 }
5535 {
5536 PyThreadState* __tstate = wxPyBeginAllowThreads();
5537 (arg1)->SetColour((wxColour const &)*arg2);
5538 wxPyEndAllowThreads(__tstate);
5539 if (PyErr_Occurred()) SWIG_fail;
5540 }
5541 resultobj = SWIG_Py_Void();
5542 return resultobj;
5543 fail:
5544 return NULL;
5545 }
5546
5547
5548 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5549 PyObject *resultobj = 0;
5550 wxBrush *arg1 = (wxBrush *) 0 ;
5551 int arg2 ;
5552 void *argp1 = 0 ;
5553 int res1 = 0 ;
5554 int val2 ;
5555 int ecode2 = 0 ;
5556 PyObject * obj0 = 0 ;
5557 PyObject * obj1 = 0 ;
5558 char * kwnames[] = {
5559 (char *) "self",(char *) "style", NULL
5560 };
5561
5562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5564 if (!SWIG_IsOK(res1)) {
5565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5566 }
5567 arg1 = reinterpret_cast< wxBrush * >(argp1);
5568 ecode2 = SWIG_AsVal_int(obj1, &val2);
5569 if (!SWIG_IsOK(ecode2)) {
5570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5571 }
5572 arg2 = static_cast< int >(val2);
5573 {
5574 PyThreadState* __tstate = wxPyBeginAllowThreads();
5575 (arg1)->SetStyle(arg2);
5576 wxPyEndAllowThreads(__tstate);
5577 if (PyErr_Occurred()) SWIG_fail;
5578 }
5579 resultobj = SWIG_Py_Void();
5580 return resultobj;
5581 fail:
5582 return NULL;
5583 }
5584
5585
5586 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5587 PyObject *resultobj = 0;
5588 wxBrush *arg1 = (wxBrush *) 0 ;
5589 wxBitmap *arg2 = 0 ;
5590 void *argp1 = 0 ;
5591 int res1 = 0 ;
5592 void *argp2 = 0 ;
5593 int res2 = 0 ;
5594 PyObject * obj0 = 0 ;
5595 PyObject * obj1 = 0 ;
5596 char * kwnames[] = {
5597 (char *) "self",(char *) "stipple", NULL
5598 };
5599
5600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5602 if (!SWIG_IsOK(res1)) {
5603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5604 }
5605 arg1 = reinterpret_cast< wxBrush * >(argp1);
5606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5607 if (!SWIG_IsOK(res2)) {
5608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5609 }
5610 if (!argp2) {
5611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5612 }
5613 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5614 {
5615 PyThreadState* __tstate = wxPyBeginAllowThreads();
5616 (arg1)->SetStipple((wxBitmap const &)*arg2);
5617 wxPyEndAllowThreads(__tstate);
5618 if (PyErr_Occurred()) SWIG_fail;
5619 }
5620 resultobj = SWIG_Py_Void();
5621 return resultobj;
5622 fail:
5623 return NULL;
5624 }
5625
5626
5627 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5628 PyObject *resultobj = 0;
5629 wxBrush *arg1 = (wxBrush *) 0 ;
5630 wxColour result;
5631 void *argp1 = 0 ;
5632 int res1 = 0 ;
5633 PyObject *swig_obj[1] ;
5634
5635 if (!args) SWIG_fail;
5636 swig_obj[0] = args;
5637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5638 if (!SWIG_IsOK(res1)) {
5639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5640 }
5641 arg1 = reinterpret_cast< wxBrush * >(argp1);
5642 {
5643 PyThreadState* __tstate = wxPyBeginAllowThreads();
5644 result = ((wxBrush const *)arg1)->GetColour();
5645 wxPyEndAllowThreads(__tstate);
5646 if (PyErr_Occurred()) SWIG_fail;
5647 }
5648 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5649 return resultobj;
5650 fail:
5651 return NULL;
5652 }
5653
5654
5655 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5656 PyObject *resultobj = 0;
5657 wxBrush *arg1 = (wxBrush *) 0 ;
5658 int result;
5659 void *argp1 = 0 ;
5660 int res1 = 0 ;
5661 PyObject *swig_obj[1] ;
5662
5663 if (!args) SWIG_fail;
5664 swig_obj[0] = args;
5665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5666 if (!SWIG_IsOK(res1)) {
5667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5668 }
5669 arg1 = reinterpret_cast< wxBrush * >(argp1);
5670 {
5671 PyThreadState* __tstate = wxPyBeginAllowThreads();
5672 result = (int)((wxBrush const *)arg1)->GetStyle();
5673 wxPyEndAllowThreads(__tstate);
5674 if (PyErr_Occurred()) SWIG_fail;
5675 }
5676 resultobj = SWIG_From_int(static_cast< int >(result));
5677 return resultobj;
5678 fail:
5679 return NULL;
5680 }
5681
5682
5683 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5684 PyObject *resultobj = 0;
5685 wxBrush *arg1 = (wxBrush *) 0 ;
5686 wxBitmap *result = 0 ;
5687 void *argp1 = 0 ;
5688 int res1 = 0 ;
5689 PyObject *swig_obj[1] ;
5690
5691 if (!args) SWIG_fail;
5692 swig_obj[0] = args;
5693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5694 if (!SWIG_IsOK(res1)) {
5695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5696 }
5697 arg1 = reinterpret_cast< wxBrush * >(argp1);
5698 {
5699 PyThreadState* __tstate = wxPyBeginAllowThreads();
5700 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5701 wxPyEndAllowThreads(__tstate);
5702 if (PyErr_Occurred()) SWIG_fail;
5703 }
5704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5705 return resultobj;
5706 fail:
5707 return NULL;
5708 }
5709
5710
5711 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5712 PyObject *resultobj = 0;
5713 wxBrush *arg1 = (wxBrush *) 0 ;
5714 bool result;
5715 void *argp1 = 0 ;
5716 int res1 = 0 ;
5717 PyObject *swig_obj[1] ;
5718
5719 if (!args) SWIG_fail;
5720 swig_obj[0] = args;
5721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5722 if (!SWIG_IsOK(res1)) {
5723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5724 }
5725 arg1 = reinterpret_cast< wxBrush * >(argp1);
5726 {
5727 PyThreadState* __tstate = wxPyBeginAllowThreads();
5728 result = (bool)((wxBrush const *)arg1)->IsHatch();
5729 wxPyEndAllowThreads(__tstate);
5730 if (PyErr_Occurred()) SWIG_fail;
5731 }
5732 {
5733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5734 }
5735 return resultobj;
5736 fail:
5737 return NULL;
5738 }
5739
5740
5741 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5742 PyObject *resultobj = 0;
5743 wxBrush *arg1 = (wxBrush *) 0 ;
5744 bool result;
5745 void *argp1 = 0 ;
5746 int res1 = 0 ;
5747 PyObject *swig_obj[1] ;
5748
5749 if (!args) SWIG_fail;
5750 swig_obj[0] = args;
5751 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5752 if (!SWIG_IsOK(res1)) {
5753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5754 }
5755 arg1 = reinterpret_cast< wxBrush * >(argp1);
5756 {
5757 PyThreadState* __tstate = wxPyBeginAllowThreads();
5758 result = (bool)(arg1)->IsOk();
5759 wxPyEndAllowThreads(__tstate);
5760 if (PyErr_Occurred()) SWIG_fail;
5761 }
5762 {
5763 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5764 }
5765 return resultobj;
5766 fail:
5767 return NULL;
5768 }
5769
5770
5771 SWIGINTERN PyObject *_wrap_Brush_MacGetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5772 PyObject *resultobj = 0;
5773 wxBrush *arg1 = (wxBrush *) 0 ;
5774 short result;
5775 void *argp1 = 0 ;
5776 int res1 = 0 ;
5777 PyObject *swig_obj[1] ;
5778
5779 if (!args) SWIG_fail;
5780 swig_obj[0] = args;
5781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5782 if (!SWIG_IsOK(res1)) {
5783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacGetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5784 }
5785 arg1 = reinterpret_cast< wxBrush * >(argp1);
5786 {
5787 PyThreadState* __tstate = wxPyBeginAllowThreads();
5788 result = (short)(arg1)->MacGetTheme();
5789 wxPyEndAllowThreads(__tstate);
5790 if (PyErr_Occurred()) SWIG_fail;
5791 }
5792 resultobj = SWIG_From_short(static_cast< short >(result));
5793 return resultobj;
5794 fail:
5795 return NULL;
5796 }
5797
5798
5799 SWIGINTERN PyObject *_wrap_Brush_MacSetTheme(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5800 PyObject *resultobj = 0;
5801 wxBrush *arg1 = (wxBrush *) 0 ;
5802 short arg2 ;
5803 void *argp1 = 0 ;
5804 int res1 = 0 ;
5805 short val2 ;
5806 int ecode2 = 0 ;
5807 PyObject * obj0 = 0 ;
5808 PyObject * obj1 = 0 ;
5809 char * kwnames[] = {
5810 (char *) "self",(char *) "macThemeBrush", NULL
5811 };
5812
5813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_MacSetTheme",kwnames,&obj0,&obj1)) SWIG_fail;
5814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5815 if (!SWIG_IsOK(res1)) {
5816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_MacSetTheme" "', expected argument " "1"" of type '" "wxBrush *""'");
5817 }
5818 arg1 = reinterpret_cast< wxBrush * >(argp1);
5819 ecode2 = SWIG_AsVal_short(obj1, &val2);
5820 if (!SWIG_IsOK(ecode2)) {
5821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_MacSetTheme" "', expected argument " "2"" of type '" "short""'");
5822 }
5823 arg2 = static_cast< short >(val2);
5824 {
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 (arg1)->MacSetTheme(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 *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5838 PyObject *obj;
5839 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5840 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5841 return SWIG_Py_Void();
5842 }
5843
5844 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5845 return SWIG_Python_InitShadowInstance(args);
5846 }
5847
5848 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5849 PyObject *resultobj = 0;
5850 wxString *arg1 = 0 ;
5851 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5852 wxBitmap *result = 0 ;
5853 bool temp1 = false ;
5854 int val2 ;
5855 int ecode2 = 0 ;
5856 PyObject * obj0 = 0 ;
5857 PyObject * obj1 = 0 ;
5858 char * kwnames[] = {
5859 (char *) "name",(char *) "type", NULL
5860 };
5861
5862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5863 {
5864 arg1 = wxString_in_helper(obj0);
5865 if (arg1 == NULL) SWIG_fail;
5866 temp1 = true;
5867 }
5868 if (obj1) {
5869 ecode2 = SWIG_AsVal_int(obj1, &val2);
5870 if (!SWIG_IsOK(ecode2)) {
5871 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5872 }
5873 arg2 = static_cast< wxBitmapType >(val2);
5874 }
5875 {
5876 if (!wxPyCheckForApp()) SWIG_fail;
5877 PyThreadState* __tstate = wxPyBeginAllowThreads();
5878 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5879 wxPyEndAllowThreads(__tstate);
5880 if (PyErr_Occurred()) SWIG_fail;
5881 }
5882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5883 {
5884 if (temp1)
5885 delete arg1;
5886 }
5887 return resultobj;
5888 fail:
5889 {
5890 if (temp1)
5891 delete arg1;
5892 }
5893 return NULL;
5894 }
5895
5896
5897 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5898 PyObject *resultobj = 0;
5899 wxBitmap *arg1 = (wxBitmap *) 0 ;
5900 void *argp1 = 0 ;
5901 int res1 = 0 ;
5902 PyObject *swig_obj[1] ;
5903
5904 if (!args) SWIG_fail;
5905 swig_obj[0] = args;
5906 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5907 if (!SWIG_IsOK(res1)) {
5908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5909 }
5910 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5911 {
5912 delete arg1;
5913
5914 if (PyErr_Occurred()) SWIG_fail;
5915 }
5916 resultobj = SWIG_Py_Void();
5917 return resultobj;
5918 fail:
5919 return NULL;
5920 }
5921
5922
5923 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5924 PyObject *resultobj = 0;
5925 int arg1 ;
5926 int arg2 ;
5927 int arg3 = (int) -1 ;
5928 wxBitmap *result = 0 ;
5929 int val1 ;
5930 int ecode1 = 0 ;
5931 int val2 ;
5932 int ecode2 = 0 ;
5933 int val3 ;
5934 int ecode3 = 0 ;
5935 PyObject * obj0 = 0 ;
5936 PyObject * obj1 = 0 ;
5937 PyObject * obj2 = 0 ;
5938 char * kwnames[] = {
5939 (char *) "width",(char *) "height",(char *) "depth", NULL
5940 };
5941
5942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5943 ecode1 = SWIG_AsVal_int(obj0, &val1);
5944 if (!SWIG_IsOK(ecode1)) {
5945 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5946 }
5947 arg1 = static_cast< int >(val1);
5948 ecode2 = SWIG_AsVal_int(obj1, &val2);
5949 if (!SWIG_IsOK(ecode2)) {
5950 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5951 }
5952 arg2 = static_cast< int >(val2);
5953 if (obj2) {
5954 ecode3 = SWIG_AsVal_int(obj2, &val3);
5955 if (!SWIG_IsOK(ecode3)) {
5956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5957 }
5958 arg3 = static_cast< int >(val3);
5959 }
5960 {
5961 if (!wxPyCheckForApp()) SWIG_fail;
5962 PyThreadState* __tstate = wxPyBeginAllowThreads();
5963 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5964 wxPyEndAllowThreads(__tstate);
5965 if (PyErr_Occurred()) SWIG_fail;
5966 }
5967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5968 return resultobj;
5969 fail:
5970 return NULL;
5971 }
5972
5973
5974 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5975 PyObject *resultobj = 0;
5976 wxIcon *arg1 = 0 ;
5977 wxBitmap *result = 0 ;
5978 void *argp1 = 0 ;
5979 int res1 = 0 ;
5980 PyObject * obj0 = 0 ;
5981 char * kwnames[] = {
5982 (char *) "icon", NULL
5983 };
5984
5985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5986 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5987 if (!SWIG_IsOK(res1)) {
5988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5989 }
5990 if (!argp1) {
5991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5992 }
5993 arg1 = reinterpret_cast< wxIcon * >(argp1);
5994 {
5995 if (!wxPyCheckForApp()) SWIG_fail;
5996 PyThreadState* __tstate = wxPyBeginAllowThreads();
5997 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5998 wxPyEndAllowThreads(__tstate);
5999 if (PyErr_Occurred()) SWIG_fail;
6000 }
6001 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6002 return resultobj;
6003 fail:
6004 return NULL;
6005 }
6006
6007
6008 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6009 PyObject *resultobj = 0;
6010 wxImage *arg1 = 0 ;
6011 int arg2 = (int) -1 ;
6012 wxBitmap *result = 0 ;
6013 void *argp1 = 0 ;
6014 int res1 = 0 ;
6015 int val2 ;
6016 int ecode2 = 0 ;
6017 PyObject * obj0 = 0 ;
6018 PyObject * obj1 = 0 ;
6019 char * kwnames[] = {
6020 (char *) "image",(char *) "depth", NULL
6021 };
6022
6023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6024 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6025 if (!SWIG_IsOK(res1)) {
6026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6027 }
6028 if (!argp1) {
6029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6030 }
6031 arg1 = reinterpret_cast< wxImage * >(argp1);
6032 if (obj1) {
6033 ecode2 = SWIG_AsVal_int(obj1, &val2);
6034 if (!SWIG_IsOK(ecode2)) {
6035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6036 }
6037 arg2 = static_cast< int >(val2);
6038 }
6039 {
6040 if (!wxPyCheckForApp()) SWIG_fail;
6041 PyThreadState* __tstate = wxPyBeginAllowThreads();
6042 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6043 wxPyEndAllowThreads(__tstate);
6044 if (PyErr_Occurred()) SWIG_fail;
6045 }
6046 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6047 return resultobj;
6048 fail:
6049 return NULL;
6050 }
6051
6052
6053 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6054 PyObject *resultobj = 0;
6055 PyObject *arg1 = (PyObject *) 0 ;
6056 wxBitmap *result = 0 ;
6057 PyObject * obj0 = 0 ;
6058 char * kwnames[] = {
6059 (char *) "listOfStrings", NULL
6060 };
6061
6062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6063 arg1 = obj0;
6064 {
6065 if (!wxPyCheckForApp()) SWIG_fail;
6066 PyThreadState* __tstate = wxPyBeginAllowThreads();
6067 result = (wxBitmap *)new_wxBitmap(arg1);
6068 wxPyEndAllowThreads(__tstate);
6069 if (PyErr_Occurred()) SWIG_fail;
6070 }
6071 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6072 return resultobj;
6073 fail:
6074 return NULL;
6075 }
6076
6077
6078 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6079 PyObject *resultobj = 0;
6080 PyObject *arg1 = (PyObject *) 0 ;
6081 int arg2 ;
6082 int arg3 ;
6083 int arg4 = (int) 1 ;
6084 wxBitmap *result = 0 ;
6085 int val2 ;
6086 int ecode2 = 0 ;
6087 int val3 ;
6088 int ecode3 = 0 ;
6089 int val4 ;
6090 int ecode4 = 0 ;
6091 PyObject * obj0 = 0 ;
6092 PyObject * obj1 = 0 ;
6093 PyObject * obj2 = 0 ;
6094 PyObject * obj3 = 0 ;
6095 char * kwnames[] = {
6096 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6097 };
6098
6099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6100 arg1 = obj0;
6101 ecode2 = SWIG_AsVal_int(obj1, &val2);
6102 if (!SWIG_IsOK(ecode2)) {
6103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6104 }
6105 arg2 = static_cast< int >(val2);
6106 ecode3 = SWIG_AsVal_int(obj2, &val3);
6107 if (!SWIG_IsOK(ecode3)) {
6108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6109 }
6110 arg3 = static_cast< int >(val3);
6111 if (obj3) {
6112 ecode4 = SWIG_AsVal_int(obj3, &val4);
6113 if (!SWIG_IsOK(ecode4)) {
6114 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6115 }
6116 arg4 = static_cast< int >(val4);
6117 }
6118 {
6119 if (!wxPyCheckForApp()) SWIG_fail;
6120 PyThreadState* __tstate = wxPyBeginAllowThreads();
6121 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6122 wxPyEndAllowThreads(__tstate);
6123 if (PyErr_Occurred()) SWIG_fail;
6124 }
6125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6126 return resultobj;
6127 fail:
6128 return NULL;
6129 }
6130
6131
6132 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6133 PyObject *resultobj = 0;
6134 wxBitmap *arg1 = (wxBitmap *) 0 ;
6135 bool result;
6136 void *argp1 = 0 ;
6137 int res1 = 0 ;
6138 PyObject *swig_obj[1] ;
6139
6140 if (!args) SWIG_fail;
6141 swig_obj[0] = args;
6142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6143 if (!SWIG_IsOK(res1)) {
6144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6145 }
6146 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6147 {
6148 result = (bool)(arg1)->IsOk();
6149 if (PyErr_Occurred()) SWIG_fail;
6150 }
6151 {
6152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6153 }
6154 return resultobj;
6155 fail:
6156 return NULL;
6157 }
6158
6159
6160 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6161 PyObject *resultobj = 0;
6162 wxBitmap *arg1 = (wxBitmap *) 0 ;
6163 int result;
6164 void *argp1 = 0 ;
6165 int res1 = 0 ;
6166 PyObject *swig_obj[1] ;
6167
6168 if (!args) SWIG_fail;
6169 swig_obj[0] = args;
6170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6171 if (!SWIG_IsOK(res1)) {
6172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6173 }
6174 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6175 {
6176 result = (int)(arg1)->GetWidth();
6177 if (PyErr_Occurred()) SWIG_fail;
6178 }
6179 resultobj = SWIG_From_int(static_cast< int >(result));
6180 return resultobj;
6181 fail:
6182 return NULL;
6183 }
6184
6185
6186 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6187 PyObject *resultobj = 0;
6188 wxBitmap *arg1 = (wxBitmap *) 0 ;
6189 int result;
6190 void *argp1 = 0 ;
6191 int res1 = 0 ;
6192 PyObject *swig_obj[1] ;
6193
6194 if (!args) SWIG_fail;
6195 swig_obj[0] = args;
6196 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6197 if (!SWIG_IsOK(res1)) {
6198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6199 }
6200 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6201 {
6202 result = (int)(arg1)->GetHeight();
6203 if (PyErr_Occurred()) SWIG_fail;
6204 }
6205 resultobj = SWIG_From_int(static_cast< int >(result));
6206 return resultobj;
6207 fail:
6208 return NULL;
6209 }
6210
6211
6212 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6213 PyObject *resultobj = 0;
6214 wxBitmap *arg1 = (wxBitmap *) 0 ;
6215 int result;
6216 void *argp1 = 0 ;
6217 int res1 = 0 ;
6218 PyObject *swig_obj[1] ;
6219
6220 if (!args) SWIG_fail;
6221 swig_obj[0] = args;
6222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6223 if (!SWIG_IsOK(res1)) {
6224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6225 }
6226 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6227 {
6228 result = (int)(arg1)->GetDepth();
6229 if (PyErr_Occurred()) SWIG_fail;
6230 }
6231 resultobj = SWIG_From_int(static_cast< int >(result));
6232 return resultobj;
6233 fail:
6234 return NULL;
6235 }
6236
6237
6238 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6239 PyObject *resultobj = 0;
6240 wxBitmap *arg1 = (wxBitmap *) 0 ;
6241 wxSize result;
6242 void *argp1 = 0 ;
6243 int res1 = 0 ;
6244 PyObject *swig_obj[1] ;
6245
6246 if (!args) SWIG_fail;
6247 swig_obj[0] = args;
6248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6249 if (!SWIG_IsOK(res1)) {
6250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6251 }
6252 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6253 {
6254 result = wxBitmap_GetSize(arg1);
6255 if (PyErr_Occurred()) SWIG_fail;
6256 }
6257 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6258 return resultobj;
6259 fail:
6260 return NULL;
6261 }
6262
6263
6264 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6265 PyObject *resultobj = 0;
6266 wxBitmap *arg1 = (wxBitmap *) 0 ;
6267 SwigValueWrapper<wxImage > result;
6268 void *argp1 = 0 ;
6269 int res1 = 0 ;
6270 PyObject *swig_obj[1] ;
6271
6272 if (!args) SWIG_fail;
6273 swig_obj[0] = args;
6274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6275 if (!SWIG_IsOK(res1)) {
6276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6277 }
6278 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6279 {
6280 result = ((wxBitmap const *)arg1)->ConvertToImage();
6281 if (PyErr_Occurred()) SWIG_fail;
6282 }
6283 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6284 return resultobj;
6285 fail:
6286 return NULL;
6287 }
6288
6289
6290 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6291 PyObject *resultobj = 0;
6292 wxBitmap *arg1 = (wxBitmap *) 0 ;
6293 wxMask *result = 0 ;
6294 void *argp1 = 0 ;
6295 int res1 = 0 ;
6296 PyObject *swig_obj[1] ;
6297
6298 if (!args) SWIG_fail;
6299 swig_obj[0] = args;
6300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6301 if (!SWIG_IsOK(res1)) {
6302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6303 }
6304 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6305 {
6306 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6307 if (PyErr_Occurred()) SWIG_fail;
6308 }
6309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6310 return resultobj;
6311 fail:
6312 return NULL;
6313 }
6314
6315
6316 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj = 0;
6318 wxBitmap *arg1 = (wxBitmap *) 0 ;
6319 wxMask *arg2 = (wxMask *) 0 ;
6320 void *argp1 = 0 ;
6321 int res1 = 0 ;
6322 int res2 = 0 ;
6323 PyObject * obj0 = 0 ;
6324 PyObject * obj1 = 0 ;
6325 char * kwnames[] = {
6326 (char *) "self",(char *) "mask", NULL
6327 };
6328
6329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6330 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6331 if (!SWIG_IsOK(res1)) {
6332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6333 }
6334 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6335 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6336 if (!SWIG_IsOK(res2)) {
6337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6338 }
6339 {
6340 (arg1)->SetMask(arg2);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 resultobj = SWIG_Py_Void();
6344 return resultobj;
6345 fail:
6346 return NULL;
6347 }
6348
6349
6350 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6351 PyObject *resultobj = 0;
6352 wxBitmap *arg1 = (wxBitmap *) 0 ;
6353 wxColour *arg2 = 0 ;
6354 void *argp1 = 0 ;
6355 int res1 = 0 ;
6356 wxColour temp2 ;
6357 PyObject * obj0 = 0 ;
6358 PyObject * obj1 = 0 ;
6359 char * kwnames[] = {
6360 (char *) "self",(char *) "colour", NULL
6361 };
6362
6363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6364 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6365 if (!SWIG_IsOK(res1)) {
6366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6367 }
6368 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6369 {
6370 arg2 = &temp2;
6371 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6372 }
6373 {
6374 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6375 if (PyErr_Occurred()) SWIG_fail;
6376 }
6377 resultobj = SWIG_Py_Void();
6378 return resultobj;
6379 fail:
6380 return NULL;
6381 }
6382
6383
6384 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6385 PyObject *resultobj = 0;
6386 wxBitmap *arg1 = (wxBitmap *) 0 ;
6387 wxRect *arg2 = 0 ;
6388 SwigValueWrapper<wxBitmap > result;
6389 void *argp1 = 0 ;
6390 int res1 = 0 ;
6391 wxRect temp2 ;
6392 PyObject * obj0 = 0 ;
6393 PyObject * obj1 = 0 ;
6394 char * kwnames[] = {
6395 (char *) "self",(char *) "rect", NULL
6396 };
6397
6398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6400 if (!SWIG_IsOK(res1)) {
6401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6402 }
6403 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6404 {
6405 arg2 = &temp2;
6406 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6407 }
6408 {
6409 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6410 if (PyErr_Occurred()) SWIG_fail;
6411 }
6412 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6413 return resultobj;
6414 fail:
6415 return NULL;
6416 }
6417
6418
6419 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6420 PyObject *resultobj = 0;
6421 wxBitmap *arg1 = (wxBitmap *) 0 ;
6422 wxString *arg2 = 0 ;
6423 wxBitmapType arg3 ;
6424 wxPalette *arg4 = (wxPalette *) NULL ;
6425 bool result;
6426 void *argp1 = 0 ;
6427 int res1 = 0 ;
6428 bool temp2 = false ;
6429 int val3 ;
6430 int ecode3 = 0 ;
6431 void *argp4 = 0 ;
6432 int res4 = 0 ;
6433 PyObject * obj0 = 0 ;
6434 PyObject * obj1 = 0 ;
6435 PyObject * obj2 = 0 ;
6436 PyObject * obj3 = 0 ;
6437 char * kwnames[] = {
6438 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6439 };
6440
6441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6445 }
6446 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6447 {
6448 arg2 = wxString_in_helper(obj1);
6449 if (arg2 == NULL) SWIG_fail;
6450 temp2 = true;
6451 }
6452 ecode3 = SWIG_AsVal_int(obj2, &val3);
6453 if (!SWIG_IsOK(ecode3)) {
6454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6455 }
6456 arg3 = static_cast< wxBitmapType >(val3);
6457 if (obj3) {
6458 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6459 if (!SWIG_IsOK(res4)) {
6460 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6461 }
6462 arg4 = reinterpret_cast< wxPalette * >(argp4);
6463 }
6464 {
6465 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6466 if (PyErr_Occurred()) SWIG_fail;
6467 }
6468 {
6469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6470 }
6471 {
6472 if (temp2)
6473 delete arg2;
6474 }
6475 return resultobj;
6476 fail:
6477 {
6478 if (temp2)
6479 delete arg2;
6480 }
6481 return NULL;
6482 }
6483
6484
6485 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6486 PyObject *resultobj = 0;
6487 wxBitmap *arg1 = (wxBitmap *) 0 ;
6488 wxString *arg2 = 0 ;
6489 wxBitmapType arg3 ;
6490 bool result;
6491 void *argp1 = 0 ;
6492 int res1 = 0 ;
6493 bool temp2 = false ;
6494 int val3 ;
6495 int ecode3 = 0 ;
6496 PyObject * obj0 = 0 ;
6497 PyObject * obj1 = 0 ;
6498 PyObject * obj2 = 0 ;
6499 char * kwnames[] = {
6500 (char *) "self",(char *) "name",(char *) "type", NULL
6501 };
6502
6503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6505 if (!SWIG_IsOK(res1)) {
6506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6507 }
6508 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6509 {
6510 arg2 = wxString_in_helper(obj1);
6511 if (arg2 == NULL) SWIG_fail;
6512 temp2 = true;
6513 }
6514 ecode3 = SWIG_AsVal_int(obj2, &val3);
6515 if (!SWIG_IsOK(ecode3)) {
6516 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6517 }
6518 arg3 = static_cast< wxBitmapType >(val3);
6519 {
6520 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6521 if (PyErr_Occurred()) SWIG_fail;
6522 }
6523 {
6524 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6525 }
6526 {
6527 if (temp2)
6528 delete arg2;
6529 }
6530 return resultobj;
6531 fail:
6532 {
6533 if (temp2)
6534 delete arg2;
6535 }
6536 return NULL;
6537 }
6538
6539
6540 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6541 PyObject *resultobj = 0;
6542 wxBitmap *arg1 = (wxBitmap *) 0 ;
6543 wxPalette *result = 0 ;
6544 void *argp1 = 0 ;
6545 int res1 = 0 ;
6546 PyObject *swig_obj[1] ;
6547
6548 if (!args) SWIG_fail;
6549 swig_obj[0] = args;
6550 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6551 if (!SWIG_IsOK(res1)) {
6552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6553 }
6554 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6555 {
6556 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6557 if (PyErr_Occurred()) SWIG_fail;
6558 }
6559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6560 return resultobj;
6561 fail:
6562 return NULL;
6563 }
6564
6565
6566 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6567 PyObject *resultobj = 0;
6568 wxBitmap *arg1 = (wxBitmap *) 0 ;
6569 wxIcon *arg2 = 0 ;
6570 bool result;
6571 void *argp1 = 0 ;
6572 int res1 = 0 ;
6573 void *argp2 = 0 ;
6574 int res2 = 0 ;
6575 PyObject * obj0 = 0 ;
6576 PyObject * obj1 = 0 ;
6577 char * kwnames[] = {
6578 (char *) "self",(char *) "icon", NULL
6579 };
6580
6581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6583 if (!SWIG_IsOK(res1)) {
6584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6585 }
6586 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6587 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6588 if (!SWIG_IsOK(res2)) {
6589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6590 }
6591 if (!argp2) {
6592 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6593 }
6594 arg2 = reinterpret_cast< wxIcon * >(argp2);
6595 {
6596 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6597 if (PyErr_Occurred()) SWIG_fail;
6598 }
6599 {
6600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6601 }
6602 return resultobj;
6603 fail:
6604 return NULL;
6605 }
6606
6607
6608 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6609 PyObject *resultobj = 0;
6610 wxBitmap *arg1 = (wxBitmap *) 0 ;
6611 int arg2 ;
6612 void *argp1 = 0 ;
6613 int res1 = 0 ;
6614 int val2 ;
6615 int ecode2 = 0 ;
6616 PyObject * obj0 = 0 ;
6617 PyObject * obj1 = 0 ;
6618 char * kwnames[] = {
6619 (char *) "self",(char *) "height", NULL
6620 };
6621
6622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6624 if (!SWIG_IsOK(res1)) {
6625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6626 }
6627 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6628 ecode2 = SWIG_AsVal_int(obj1, &val2);
6629 if (!SWIG_IsOK(ecode2)) {
6630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6631 }
6632 arg2 = static_cast< int >(val2);
6633 {
6634 (arg1)->SetHeight(arg2);
6635 if (PyErr_Occurred()) SWIG_fail;
6636 }
6637 resultobj = SWIG_Py_Void();
6638 return resultobj;
6639 fail:
6640 return NULL;
6641 }
6642
6643
6644 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6645 PyObject *resultobj = 0;
6646 wxBitmap *arg1 = (wxBitmap *) 0 ;
6647 int arg2 ;
6648 void *argp1 = 0 ;
6649 int res1 = 0 ;
6650 int val2 ;
6651 int ecode2 = 0 ;
6652 PyObject * obj0 = 0 ;
6653 PyObject * obj1 = 0 ;
6654 char * kwnames[] = {
6655 (char *) "self",(char *) "width", NULL
6656 };
6657
6658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6662 }
6663 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6664 ecode2 = SWIG_AsVal_int(obj1, &val2);
6665 if (!SWIG_IsOK(ecode2)) {
6666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6667 }
6668 arg2 = static_cast< int >(val2);
6669 {
6670 (arg1)->SetWidth(arg2);
6671 if (PyErr_Occurred()) SWIG_fail;
6672 }
6673 resultobj = SWIG_Py_Void();
6674 return resultobj;
6675 fail:
6676 return NULL;
6677 }
6678
6679
6680 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6681 PyObject *resultobj = 0;
6682 wxBitmap *arg1 = (wxBitmap *) 0 ;
6683 int arg2 ;
6684 void *argp1 = 0 ;
6685 int res1 = 0 ;
6686 int val2 ;
6687 int ecode2 = 0 ;
6688 PyObject * obj0 = 0 ;
6689 PyObject * obj1 = 0 ;
6690 char * kwnames[] = {
6691 (char *) "self",(char *) "depth", NULL
6692 };
6693
6694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6696 if (!SWIG_IsOK(res1)) {
6697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6698 }
6699 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6700 ecode2 = SWIG_AsVal_int(obj1, &val2);
6701 if (!SWIG_IsOK(ecode2)) {
6702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6703 }
6704 arg2 = static_cast< int >(val2);
6705 {
6706 (arg1)->SetDepth(arg2);
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
6709 resultobj = SWIG_Py_Void();
6710 return resultobj;
6711 fail:
6712 return NULL;
6713 }
6714
6715
6716 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6717 PyObject *resultobj = 0;
6718 wxBitmap *arg1 = (wxBitmap *) 0 ;
6719 wxSize *arg2 = 0 ;
6720 void *argp1 = 0 ;
6721 int res1 = 0 ;
6722 wxSize temp2 ;
6723 PyObject * obj0 = 0 ;
6724 PyObject * obj1 = 0 ;
6725 char * kwnames[] = {
6726 (char *) "self",(char *) "size", NULL
6727 };
6728
6729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6731 if (!SWIG_IsOK(res1)) {
6732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6733 }
6734 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6735 {
6736 arg2 = &temp2;
6737 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6738 }
6739 {
6740 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6741 if (PyErr_Occurred()) SWIG_fail;
6742 }
6743 resultobj = SWIG_Py_Void();
6744 return resultobj;
6745 fail:
6746 return NULL;
6747 }
6748
6749
6750 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6751 PyObject *resultobj = 0;
6752 wxBitmap *arg1 = (wxBitmap *) 0 ;
6753 wxBitmap *arg2 = (wxBitmap *) 0 ;
6754 bool result;
6755 void *argp1 = 0 ;
6756 int res1 = 0 ;
6757 void *argp2 = 0 ;
6758 int res2 = 0 ;
6759 PyObject * obj0 = 0 ;
6760 PyObject * obj1 = 0 ;
6761 char * kwnames[] = {
6762 (char *) "self",(char *) "other", NULL
6763 };
6764
6765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6767 if (!SWIG_IsOK(res1)) {
6768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6769 }
6770 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6772 if (!SWIG_IsOK(res2)) {
6773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6774 }
6775 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6776 {
6777 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 {
6781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6782 }
6783 return resultobj;
6784 fail:
6785 return NULL;
6786 }
6787
6788
6789 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6790 PyObject *resultobj = 0;
6791 wxBitmap *arg1 = (wxBitmap *) 0 ;
6792 wxBitmap *arg2 = (wxBitmap *) 0 ;
6793 bool result;
6794 void *argp1 = 0 ;
6795 int res1 = 0 ;
6796 void *argp2 = 0 ;
6797 int res2 = 0 ;
6798 PyObject * obj0 = 0 ;
6799 PyObject * obj1 = 0 ;
6800 char * kwnames[] = {
6801 (char *) "self",(char *) "other", NULL
6802 };
6803
6804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6806 if (!SWIG_IsOK(res1)) {
6807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6808 }
6809 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6810 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6811 if (!SWIG_IsOK(res2)) {
6812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6813 }
6814 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6815 {
6816 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6817 if (PyErr_Occurred()) SWIG_fail;
6818 }
6819 {
6820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6821 }
6822 return resultobj;
6823 fail:
6824 return NULL;
6825 }
6826
6827
6828 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6829 PyObject *obj;
6830 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6831 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6832 return SWIG_Py_Void();
6833 }
6834
6835 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6836 return SWIG_Python_InitShadowInstance(args);
6837 }
6838
6839 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6840 PyObject *resultobj = 0;
6841 int arg1 ;
6842 int arg2 ;
6843 buffer arg3 ;
6844 int arg4 ;
6845 buffer arg5 ;
6846 int arg6 ;
6847 wxBitmap *result = 0 ;
6848 int val1 ;
6849 int ecode1 = 0 ;
6850 int val2 ;
6851 int ecode2 = 0 ;
6852 Py_ssize_t temp3 ;
6853 Py_ssize_t temp5 ;
6854 PyObject * obj0 = 0 ;
6855 PyObject * obj1 = 0 ;
6856 PyObject * obj2 = 0 ;
6857 PyObject * obj3 = 0 ;
6858 char * kwnames[] = {
6859 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6860 };
6861
6862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6863 ecode1 = SWIG_AsVal_int(obj0, &val1);
6864 if (!SWIG_IsOK(ecode1)) {
6865 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6866 }
6867 arg1 = static_cast< int >(val1);
6868 ecode2 = SWIG_AsVal_int(obj1, &val2);
6869 if (!SWIG_IsOK(ecode2)) {
6870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6871 }
6872 arg2 = static_cast< int >(val2);
6873 {
6874 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6875 arg4 = (int)temp3;
6876 }
6877 {
6878 if (obj3 != Py_None) {
6879 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
6880 arg6 = (int)temp5;
6881 }
6882 }
6883 {
6884 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6885 if (PyErr_Occurred()) SWIG_fail;
6886 }
6887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6888 return resultobj;
6889 fail:
6890 return NULL;
6891 }
6892
6893
6894 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6895 PyObject *resultobj = 0;
6896 int arg1 ;
6897 int arg2 ;
6898 buffer arg3 ;
6899 int arg4 ;
6900 wxBitmap *result = 0 ;
6901 int val1 ;
6902 int ecode1 = 0 ;
6903 int val2 ;
6904 int ecode2 = 0 ;
6905 Py_ssize_t temp3 ;
6906 PyObject * obj0 = 0 ;
6907 PyObject * obj1 = 0 ;
6908 PyObject * obj2 = 0 ;
6909 char * kwnames[] = {
6910 (char *) "width",(char *) "height",(char *) "data", NULL
6911 };
6912
6913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6914 ecode1 = SWIG_AsVal_int(obj0, &val1);
6915 if (!SWIG_IsOK(ecode1)) {
6916 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6917 }
6918 arg1 = static_cast< int >(val1);
6919 ecode2 = SWIG_AsVal_int(obj1, &val2);
6920 if (!SWIG_IsOK(ecode2)) {
6921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6922 }
6923 arg2 = static_cast< int >(val2);
6924 {
6925 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6926 arg4 = (int)temp3;
6927 }
6928 {
6929 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6933 return resultobj;
6934 fail:
6935 return NULL;
6936 }
6937
6938
6939 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6940 PyObject *resultobj = 0;
6941 int arg1 ;
6942 int arg2 ;
6943 buffer arg3 ;
6944 int arg4 ;
6945 wxBitmap *result = 0 ;
6946 int val1 ;
6947 int ecode1 = 0 ;
6948 int val2 ;
6949 int ecode2 = 0 ;
6950 Py_ssize_t temp3 ;
6951 PyObject * obj0 = 0 ;
6952 PyObject * obj1 = 0 ;
6953 PyObject * obj2 = 0 ;
6954 char * kwnames[] = {
6955 (char *) "width",(char *) "height",(char *) "data", NULL
6956 };
6957
6958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6959 ecode1 = SWIG_AsVal_int(obj0, &val1);
6960 if (!SWIG_IsOK(ecode1)) {
6961 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6962 }
6963 arg1 = static_cast< int >(val1);
6964 ecode2 = SWIG_AsVal_int(obj1, &val2);
6965 if (!SWIG_IsOK(ecode2)) {
6966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6967 }
6968 arg2 = static_cast< int >(val2);
6969 {
6970 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
6971 arg4 = (int)temp3;
6972 }
6973 {
6974 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6975 if (PyErr_Occurred()) SWIG_fail;
6976 }
6977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6978 return resultobj;
6979 fail:
6980 return NULL;
6981 }
6982
6983
6984 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6985 PyObject *resultobj = 0;
6986 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6987 wxPoint result;
6988 void *argp1 = 0 ;
6989 int res1 = 0 ;
6990 PyObject *swig_obj[1] ;
6991
6992 if (!args) SWIG_fail;
6993 swig_obj[0] = args;
6994 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6995 if (!SWIG_IsOK(res1)) {
6996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6997 }
6998 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6999 {
7000 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7001 if (PyErr_Occurred()) SWIG_fail;
7002 }
7003 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7004 return resultobj;
7005 fail:
7006 return NULL;
7007 }
7008
7009
7010 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7011 PyObject *resultobj = 0;
7012 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7013 int result;
7014 void *argp1 = 0 ;
7015 int res1 = 0 ;
7016 PyObject *swig_obj[1] ;
7017
7018 if (!args) SWIG_fail;
7019 swig_obj[0] = args;
7020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7021 if (!SWIG_IsOK(res1)) {
7022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7023 }
7024 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7025 {
7026 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7027 if (PyErr_Occurred()) SWIG_fail;
7028 }
7029 resultobj = SWIG_From_int(static_cast< int >(result));
7030 return resultobj;
7031 fail:
7032 return NULL;
7033 }
7034
7035
7036 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7037 PyObject *resultobj = 0;
7038 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7039 int result;
7040 void *argp1 = 0 ;
7041 int res1 = 0 ;
7042 PyObject *swig_obj[1] ;
7043
7044 if (!args) SWIG_fail;
7045 swig_obj[0] = args;
7046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7047 if (!SWIG_IsOK(res1)) {
7048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7049 }
7050 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7051 {
7052 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7053 if (PyErr_Occurred()) SWIG_fail;
7054 }
7055 resultobj = SWIG_From_int(static_cast< int >(result));
7056 return resultobj;
7057 fail:
7058 return NULL;
7059 }
7060
7061
7062 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7063 PyObject *resultobj = 0;
7064 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7065 wxSize result;
7066 void *argp1 = 0 ;
7067 int res1 = 0 ;
7068 PyObject *swig_obj[1] ;
7069
7070 if (!args) SWIG_fail;
7071 swig_obj[0] = args;
7072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7073 if (!SWIG_IsOK(res1)) {
7074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7075 }
7076 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7077 {
7078 result = ((wxPixelDataBase const *)arg1)->GetSize();
7079 if (PyErr_Occurred()) SWIG_fail;
7080 }
7081 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7082 return resultobj;
7083 fail:
7084 return NULL;
7085 }
7086
7087
7088 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7089 PyObject *resultobj = 0;
7090 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7091 int result;
7092 void *argp1 = 0 ;
7093 int res1 = 0 ;
7094 PyObject *swig_obj[1] ;
7095
7096 if (!args) SWIG_fail;
7097 swig_obj[0] = args;
7098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7099 if (!SWIG_IsOK(res1)) {
7100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7101 }
7102 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7103 {
7104 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7105 if (PyErr_Occurred()) SWIG_fail;
7106 }
7107 resultobj = SWIG_From_int(static_cast< int >(result));
7108 return resultobj;
7109 fail:
7110 return NULL;
7111 }
7112
7113
7114 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7115 PyObject *obj;
7116 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7117 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7118 return SWIG_Py_Void();
7119 }
7120
7121 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7122 PyObject *resultobj = 0;
7123 wxBitmap *arg1 = 0 ;
7124 wxNativePixelData *result = 0 ;
7125 void *argp1 = 0 ;
7126 int res1 = 0 ;
7127
7128 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7130 if (!SWIG_IsOK(res1)) {
7131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7132 }
7133 if (!argp1) {
7134 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7135 }
7136 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7137 {
7138 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7142 return resultobj;
7143 fail:
7144 return NULL;
7145 }
7146
7147
7148 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7149 PyObject *resultobj = 0;
7150 wxBitmap *arg1 = 0 ;
7151 wxRect *arg2 = 0 ;
7152 wxNativePixelData *result = 0 ;
7153 void *argp1 = 0 ;
7154 int res1 = 0 ;
7155 wxRect temp2 ;
7156
7157 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7159 if (!SWIG_IsOK(res1)) {
7160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7161 }
7162 if (!argp1) {
7163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7164 }
7165 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7166 {
7167 arg2 = &temp2;
7168 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7169 }
7170 {
7171 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7172 if (PyErr_Occurred()) SWIG_fail;
7173 }
7174 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7175 return resultobj;
7176 fail:
7177 return NULL;
7178 }
7179
7180
7181 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7182 PyObject *resultobj = 0;
7183 wxBitmap *arg1 = 0 ;
7184 wxPoint *arg2 = 0 ;
7185 wxSize *arg3 = 0 ;
7186 wxNativePixelData *result = 0 ;
7187 void *argp1 = 0 ;
7188 int res1 = 0 ;
7189 wxPoint temp2 ;
7190 wxSize temp3 ;
7191
7192 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7194 if (!SWIG_IsOK(res1)) {
7195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7196 }
7197 if (!argp1) {
7198 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7199 }
7200 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7201 {
7202 arg2 = &temp2;
7203 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7204 }
7205 {
7206 arg3 = &temp3;
7207 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7208 }
7209 {
7210 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7211 if (PyErr_Occurred()) SWIG_fail;
7212 }
7213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7214 return resultobj;
7215 fail:
7216 return NULL;
7217 }
7218
7219
7220 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7221 int argc;
7222 PyObject *argv[4];
7223
7224 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7225 --argc;
7226 if (argc == 1) {
7227 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7228 }
7229 if (argc == 2) {
7230 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7231 }
7232 if (argc == 3) {
7233 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7234 }
7235
7236 fail:
7237 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7238 return NULL;
7239 }
7240
7241
7242 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7243 PyObject *resultobj = 0;
7244 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7245 void *argp1 = 0 ;
7246 int res1 = 0 ;
7247 PyObject *swig_obj[1] ;
7248
7249 if (!args) SWIG_fail;
7250 swig_obj[0] = args;
7251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7252 if (!SWIG_IsOK(res1)) {
7253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7254 }
7255 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7256 {
7257 delete arg1;
7258
7259 if (PyErr_Occurred()) SWIG_fail;
7260 }
7261 resultobj = SWIG_Py_Void();
7262 return resultobj;
7263 fail:
7264 return NULL;
7265 }
7266
7267
7268 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7269 PyObject *resultobj = 0;
7270 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7271 wxNativePixelData_Accessor result;
7272 void *argp1 = 0 ;
7273 int res1 = 0 ;
7274 PyObject *swig_obj[1] ;
7275
7276 if (!args) SWIG_fail;
7277 swig_obj[0] = args;
7278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7279 if (!SWIG_IsOK(res1)) {
7280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7281 }
7282 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7283 {
7284 result = ((wxNativePixelData const *)arg1)->GetPixels();
7285 if (PyErr_Occurred()) SWIG_fail;
7286 }
7287 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7288 return resultobj;
7289 fail:
7290 return NULL;
7291 }
7292
7293
7294 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7295 PyObject *resultobj = 0;
7296 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7297 void *argp1 = 0 ;
7298 int res1 = 0 ;
7299 PyObject *swig_obj[1] ;
7300
7301 if (!args) SWIG_fail;
7302 swig_obj[0] = args;
7303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7304 if (!SWIG_IsOK(res1)) {
7305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7306 }
7307 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7308 {
7309 (arg1)->UseAlpha();
7310 if (PyErr_Occurred()) SWIG_fail;
7311 }
7312 resultobj = SWIG_Py_Void();
7313 return resultobj;
7314 fail:
7315 return NULL;
7316 }
7317
7318
7319 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7320 PyObject *resultobj = 0;
7321 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7322 bool result;
7323 void *argp1 = 0 ;
7324 int res1 = 0 ;
7325 PyObject *swig_obj[1] ;
7326
7327 if (!args) SWIG_fail;
7328 swig_obj[0] = args;
7329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7330 if (!SWIG_IsOK(res1)) {
7331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7332 }
7333 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7334 {
7335 result = (bool)wxNativePixelData___nonzero__(arg1);
7336 if (PyErr_Occurred()) SWIG_fail;
7337 }
7338 {
7339 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7340 }
7341 return resultobj;
7342 fail:
7343 return NULL;
7344 }
7345
7346
7347 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7348 PyObject *obj;
7349 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7350 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7351 return SWIG_Py_Void();
7352 }
7353
7354 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7355 return SWIG_Python_InitShadowInstance(args);
7356 }
7357
7358 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7359 PyObject *resultobj = 0;
7360 wxNativePixelData *arg1 = 0 ;
7361 wxNativePixelData_Accessor *result = 0 ;
7362 void *argp1 = 0 ;
7363 int res1 = 0 ;
7364
7365 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7367 if (!SWIG_IsOK(res1)) {
7368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7369 }
7370 if (!argp1) {
7371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7372 }
7373 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7374 {
7375 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7376 if (PyErr_Occurred()) SWIG_fail;
7377 }
7378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7379 return resultobj;
7380 fail:
7381 return NULL;
7382 }
7383
7384
7385 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7386 PyObject *resultobj = 0;
7387 wxBitmap *arg1 = 0 ;
7388 wxNativePixelData *arg2 = 0 ;
7389 wxNativePixelData_Accessor *result = 0 ;
7390 void *argp1 = 0 ;
7391 int res1 = 0 ;
7392 void *argp2 = 0 ;
7393 int res2 = 0 ;
7394
7395 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7397 if (!SWIG_IsOK(res1)) {
7398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7399 }
7400 if (!argp1) {
7401 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7402 }
7403 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7404 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7405 if (!SWIG_IsOK(res2)) {
7406 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7407 }
7408 if (!argp2) {
7409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7410 }
7411 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7412 {
7413 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7414 if (PyErr_Occurred()) SWIG_fail;
7415 }
7416 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7417 return resultobj;
7418 fail:
7419 return NULL;
7420 }
7421
7422
7423 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7424 PyObject *resultobj = 0;
7425 wxNativePixelData_Accessor *result = 0 ;
7426
7427 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7428 {
7429 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7430 if (PyErr_Occurred()) SWIG_fail;
7431 }
7432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7433 return resultobj;
7434 fail:
7435 return NULL;
7436 }
7437
7438
7439 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7440 int argc;
7441 PyObject *argv[3];
7442
7443 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7444 --argc;
7445 if (argc == 0) {
7446 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7447 }
7448 if (argc == 1) {
7449 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7450 }
7451 if (argc == 2) {
7452 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7453 }
7454
7455 fail:
7456 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7457 return NULL;
7458 }
7459
7460
7461 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7462 PyObject *resultobj = 0;
7463 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7464 void *argp1 = 0 ;
7465 int res1 = 0 ;
7466 PyObject *swig_obj[1] ;
7467
7468 if (!args) SWIG_fail;
7469 swig_obj[0] = args;
7470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7471 if (!SWIG_IsOK(res1)) {
7472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7473 }
7474 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7475 {
7476 delete arg1;
7477
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 resultobj = SWIG_Py_Void();
7481 return resultobj;
7482 fail:
7483 return NULL;
7484 }
7485
7486
7487 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7488 PyObject *resultobj = 0;
7489 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7490 wxNativePixelData *arg2 = 0 ;
7491 void *argp1 = 0 ;
7492 int res1 = 0 ;
7493 void *argp2 = 0 ;
7494 int res2 = 0 ;
7495 PyObject * obj0 = 0 ;
7496 PyObject * obj1 = 0 ;
7497 char * kwnames[] = {
7498 (char *) "self",(char *) "data", NULL
7499 };
7500
7501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7503 if (!SWIG_IsOK(res1)) {
7504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7505 }
7506 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7507 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7508 if (!SWIG_IsOK(res2)) {
7509 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7510 }
7511 if (!argp2) {
7512 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7513 }
7514 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7515 {
7516 (arg1)->Reset((wxNativePixelData const &)*arg2);
7517 if (PyErr_Occurred()) SWIG_fail;
7518 }
7519 resultobj = SWIG_Py_Void();
7520 return resultobj;
7521 fail:
7522 return NULL;
7523 }
7524
7525
7526 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7527 PyObject *resultobj = 0;
7528 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7529 bool result;
7530 void *argp1 = 0 ;
7531 int res1 = 0 ;
7532 PyObject *swig_obj[1] ;
7533
7534 if (!args) SWIG_fail;
7535 swig_obj[0] = args;
7536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7537 if (!SWIG_IsOK(res1)) {
7538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7539 }
7540 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7541 {
7542 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7543 if (PyErr_Occurred()) SWIG_fail;
7544 }
7545 {
7546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7547 }
7548 return resultobj;
7549 fail:
7550 return NULL;
7551 }
7552
7553
7554 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7555 PyObject *resultobj = 0;
7556 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7557 void *argp1 = 0 ;
7558 int res1 = 0 ;
7559 PyObject *swig_obj[1] ;
7560
7561 if (!args) SWIG_fail;
7562 swig_obj[0] = args;
7563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7564 if (!SWIG_IsOK(res1)) {
7565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7566 }
7567 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7568 {
7569 wxNativePixelData_Accessor_nextPixel(arg1);
7570 if (PyErr_Occurred()) SWIG_fail;
7571 }
7572 resultobj = SWIG_Py_Void();
7573 return resultobj;
7574 fail:
7575 return NULL;
7576 }
7577
7578
7579 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7580 PyObject *resultobj = 0;
7581 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7582 wxNativePixelData *arg2 = 0 ;
7583 int arg3 ;
7584 int arg4 ;
7585 void *argp1 = 0 ;
7586 int res1 = 0 ;
7587 void *argp2 = 0 ;
7588 int res2 = 0 ;
7589 int val3 ;
7590 int ecode3 = 0 ;
7591 int val4 ;
7592 int ecode4 = 0 ;
7593 PyObject * obj0 = 0 ;
7594 PyObject * obj1 = 0 ;
7595 PyObject * obj2 = 0 ;
7596 PyObject * obj3 = 0 ;
7597 char * kwnames[] = {
7598 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7599 };
7600
7601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7603 if (!SWIG_IsOK(res1)) {
7604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7605 }
7606 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7607 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7608 if (!SWIG_IsOK(res2)) {
7609 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7610 }
7611 if (!argp2) {
7612 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7613 }
7614 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7615 ecode3 = SWIG_AsVal_int(obj2, &val3);
7616 if (!SWIG_IsOK(ecode3)) {
7617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7618 }
7619 arg3 = static_cast< int >(val3);
7620 ecode4 = SWIG_AsVal_int(obj3, &val4);
7621 if (!SWIG_IsOK(ecode4)) {
7622 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7623 }
7624 arg4 = static_cast< int >(val4);
7625 {
7626 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7627 if (PyErr_Occurred()) SWIG_fail;
7628 }
7629 resultobj = SWIG_Py_Void();
7630 return resultobj;
7631 fail:
7632 return NULL;
7633 }
7634
7635
7636 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7637 PyObject *resultobj = 0;
7638 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7639 wxNativePixelData *arg2 = 0 ;
7640 int arg3 ;
7641 void *argp1 = 0 ;
7642 int res1 = 0 ;
7643 void *argp2 = 0 ;
7644 int res2 = 0 ;
7645 int val3 ;
7646 int ecode3 = 0 ;
7647 PyObject * obj0 = 0 ;
7648 PyObject * obj1 = 0 ;
7649 PyObject * obj2 = 0 ;
7650 char * kwnames[] = {
7651 (char *) "self",(char *) "data",(char *) "x", NULL
7652 };
7653
7654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7656 if (!SWIG_IsOK(res1)) {
7657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7658 }
7659 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7660 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7661 if (!SWIG_IsOK(res2)) {
7662 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7663 }
7664 if (!argp2) {
7665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7666 }
7667 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7668 ecode3 = SWIG_AsVal_int(obj2, &val3);
7669 if (!SWIG_IsOK(ecode3)) {
7670 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7671 }
7672 arg3 = static_cast< int >(val3);
7673 {
7674 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7675 if (PyErr_Occurred()) SWIG_fail;
7676 }
7677 resultobj = SWIG_Py_Void();
7678 return resultobj;
7679 fail:
7680 return NULL;
7681 }
7682
7683
7684 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7685 PyObject *resultobj = 0;
7686 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7687 wxNativePixelData *arg2 = 0 ;
7688 int arg3 ;
7689 void *argp1 = 0 ;
7690 int res1 = 0 ;
7691 void *argp2 = 0 ;
7692 int res2 = 0 ;
7693 int val3 ;
7694 int ecode3 = 0 ;
7695 PyObject * obj0 = 0 ;
7696 PyObject * obj1 = 0 ;
7697 PyObject * obj2 = 0 ;
7698 char * kwnames[] = {
7699 (char *) "self",(char *) "data",(char *) "y", NULL
7700 };
7701
7702 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7703 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7704 if (!SWIG_IsOK(res1)) {
7705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7706 }
7707 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7708 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7709 if (!SWIG_IsOK(res2)) {
7710 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7711 }
7712 if (!argp2) {
7713 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7714 }
7715 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7716 ecode3 = SWIG_AsVal_int(obj2, &val3);
7717 if (!SWIG_IsOK(ecode3)) {
7718 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7719 }
7720 arg3 = static_cast< int >(val3);
7721 {
7722 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7723 if (PyErr_Occurred()) SWIG_fail;
7724 }
7725 resultobj = SWIG_Py_Void();
7726 return resultobj;
7727 fail:
7728 return NULL;
7729 }
7730
7731
7732 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7733 PyObject *resultobj = 0;
7734 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7735 wxNativePixelData *arg2 = 0 ;
7736 int arg3 ;
7737 int arg4 ;
7738 void *argp1 = 0 ;
7739 int res1 = 0 ;
7740 void *argp2 = 0 ;
7741 int res2 = 0 ;
7742 int val3 ;
7743 int ecode3 = 0 ;
7744 int val4 ;
7745 int ecode4 = 0 ;
7746 PyObject * obj0 = 0 ;
7747 PyObject * obj1 = 0 ;
7748 PyObject * obj2 = 0 ;
7749 PyObject * obj3 = 0 ;
7750 char * kwnames[] = {
7751 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7752 };
7753
7754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7756 if (!SWIG_IsOK(res1)) {
7757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7758 }
7759 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7761 if (!SWIG_IsOK(res2)) {
7762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7763 }
7764 if (!argp2) {
7765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7766 }
7767 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7768 ecode3 = SWIG_AsVal_int(obj2, &val3);
7769 if (!SWIG_IsOK(ecode3)) {
7770 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7771 }
7772 arg3 = static_cast< int >(val3);
7773 ecode4 = SWIG_AsVal_int(obj3, &val4);
7774 if (!SWIG_IsOK(ecode4)) {
7775 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7776 }
7777 arg4 = static_cast< int >(val4);
7778 {
7779 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7780 if (PyErr_Occurred()) SWIG_fail;
7781 }
7782 resultobj = SWIG_Py_Void();
7783 return resultobj;
7784 fail:
7785 return NULL;
7786 }
7787
7788
7789 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7790 PyObject *resultobj = 0;
7791 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7792 byte arg2 ;
7793 byte arg3 ;
7794 byte arg4 ;
7795 void *argp1 = 0 ;
7796 int res1 = 0 ;
7797 unsigned char val2 ;
7798 int ecode2 = 0 ;
7799 unsigned char val3 ;
7800 int ecode3 = 0 ;
7801 unsigned char val4 ;
7802 int ecode4 = 0 ;
7803 PyObject * obj0 = 0 ;
7804 PyObject * obj1 = 0 ;
7805 PyObject * obj2 = 0 ;
7806 PyObject * obj3 = 0 ;
7807 char * kwnames[] = {
7808 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7809 };
7810
7811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7813 if (!SWIG_IsOK(res1)) {
7814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7815 }
7816 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7817 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7818 if (!SWIG_IsOK(ecode2)) {
7819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7820 }
7821 arg2 = static_cast< byte >(val2);
7822 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7823 if (!SWIG_IsOK(ecode3)) {
7824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7825 }
7826 arg3 = static_cast< byte >(val3);
7827 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7828 if (!SWIG_IsOK(ecode4)) {
7829 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7830 }
7831 arg4 = static_cast< byte >(val4);
7832 {
7833 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7834 if (PyErr_Occurred()) SWIG_fail;
7835 }
7836 resultobj = SWIG_Py_Void();
7837 return resultobj;
7838 fail:
7839 return NULL;
7840 }
7841
7842
7843 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7844 PyObject *resultobj = 0;
7845 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7846 PyObject *result = 0 ;
7847 void *argp1 = 0 ;
7848 int res1 = 0 ;
7849 PyObject *swig_obj[1] ;
7850
7851 if (!args) SWIG_fail;
7852 swig_obj[0] = args;
7853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7854 if (!SWIG_IsOK(res1)) {
7855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7856 }
7857 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7858 {
7859 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7860 if (PyErr_Occurred()) SWIG_fail;
7861 }
7862 resultobj = result;
7863 return resultobj;
7864 fail:
7865 return NULL;
7866 }
7867
7868
7869 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7870 PyObject *obj;
7871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7872 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7873 return SWIG_Py_Void();
7874 }
7875
7876 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7877 return SWIG_Python_InitShadowInstance(args);
7878 }
7879
7880 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7881 PyObject *resultobj = 0;
7882 wxBitmap *arg1 = 0 ;
7883 wxAlphaPixelData *result = 0 ;
7884 void *argp1 = 0 ;
7885 int res1 = 0 ;
7886
7887 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7889 if (!SWIG_IsOK(res1)) {
7890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7891 }
7892 if (!argp1) {
7893 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7894 }
7895 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7896 {
7897 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7901 return resultobj;
7902 fail:
7903 return NULL;
7904 }
7905
7906
7907 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7908 PyObject *resultobj = 0;
7909 wxBitmap *arg1 = 0 ;
7910 wxRect *arg2 = 0 ;
7911 wxAlphaPixelData *result = 0 ;
7912 void *argp1 = 0 ;
7913 int res1 = 0 ;
7914 wxRect temp2 ;
7915
7916 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7918 if (!SWIG_IsOK(res1)) {
7919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7920 }
7921 if (!argp1) {
7922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7923 }
7924 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7925 {
7926 arg2 = &temp2;
7927 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7928 }
7929 {
7930 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7931 if (PyErr_Occurred()) SWIG_fail;
7932 }
7933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7934 return resultobj;
7935 fail:
7936 return NULL;
7937 }
7938
7939
7940 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7941 PyObject *resultobj = 0;
7942 wxBitmap *arg1 = 0 ;
7943 wxPoint *arg2 = 0 ;
7944 wxSize *arg3 = 0 ;
7945 wxAlphaPixelData *result = 0 ;
7946 void *argp1 = 0 ;
7947 int res1 = 0 ;
7948 wxPoint temp2 ;
7949 wxSize temp3 ;
7950
7951 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7953 if (!SWIG_IsOK(res1)) {
7954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7955 }
7956 if (!argp1) {
7957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7958 }
7959 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7960 {
7961 arg2 = &temp2;
7962 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7963 }
7964 {
7965 arg3 = &temp3;
7966 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7967 }
7968 {
7969 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7970 if (PyErr_Occurred()) SWIG_fail;
7971 }
7972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7973 return resultobj;
7974 fail:
7975 return NULL;
7976 }
7977
7978
7979 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7980 int argc;
7981 PyObject *argv[4];
7982
7983 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7984 --argc;
7985 if (argc == 1) {
7986 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7987 }
7988 if (argc == 2) {
7989 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7990 }
7991 if (argc == 3) {
7992 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7993 }
7994
7995 fail:
7996 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7997 return NULL;
7998 }
7999
8000
8001 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8002 PyObject *resultobj = 0;
8003 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8004 void *argp1 = 0 ;
8005 int res1 = 0 ;
8006 PyObject *swig_obj[1] ;
8007
8008 if (!args) SWIG_fail;
8009 swig_obj[0] = args;
8010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8011 if (!SWIG_IsOK(res1)) {
8012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8013 }
8014 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8015 {
8016 delete arg1;
8017
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 resultobj = SWIG_Py_Void();
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028 PyObject *resultobj = 0;
8029 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8030 wxAlphaPixelData_Accessor result;
8031 void *argp1 = 0 ;
8032 int res1 = 0 ;
8033 PyObject *swig_obj[1] ;
8034
8035 if (!args) SWIG_fail;
8036 swig_obj[0] = args;
8037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8038 if (!SWIG_IsOK(res1)) {
8039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8040 }
8041 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8042 {
8043 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8044 if (PyErr_Occurred()) SWIG_fail;
8045 }
8046 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8047 return resultobj;
8048 fail:
8049 return NULL;
8050 }
8051
8052
8053 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8054 PyObject *resultobj = 0;
8055 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8056 void *argp1 = 0 ;
8057 int res1 = 0 ;
8058 PyObject *swig_obj[1] ;
8059
8060 if (!args) SWIG_fail;
8061 swig_obj[0] = args;
8062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8063 if (!SWIG_IsOK(res1)) {
8064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8065 }
8066 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8067 {
8068 (arg1)->UseAlpha();
8069 if (PyErr_Occurred()) SWIG_fail;
8070 }
8071 resultobj = SWIG_Py_Void();
8072 return resultobj;
8073 fail:
8074 return NULL;
8075 }
8076
8077
8078 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8079 PyObject *resultobj = 0;
8080 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8081 bool result;
8082 void *argp1 = 0 ;
8083 int res1 = 0 ;
8084 PyObject *swig_obj[1] ;
8085
8086 if (!args) SWIG_fail;
8087 swig_obj[0] = args;
8088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8089 if (!SWIG_IsOK(res1)) {
8090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8091 }
8092 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8093 {
8094 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 {
8098 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8099 }
8100 return resultobj;
8101 fail:
8102 return NULL;
8103 }
8104
8105
8106 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8107 PyObject *obj;
8108 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8109 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8110 return SWIG_Py_Void();
8111 }
8112
8113 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8114 return SWIG_Python_InitShadowInstance(args);
8115 }
8116
8117 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8118 PyObject *resultobj = 0;
8119 wxAlphaPixelData *arg1 = 0 ;
8120 wxAlphaPixelData_Accessor *result = 0 ;
8121 void *argp1 = 0 ;
8122 int res1 = 0 ;
8123
8124 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8126 if (!SWIG_IsOK(res1)) {
8127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8128 }
8129 if (!argp1) {
8130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8131 }
8132 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8133 {
8134 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8135 if (PyErr_Occurred()) SWIG_fail;
8136 }
8137 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8138 return resultobj;
8139 fail:
8140 return NULL;
8141 }
8142
8143
8144 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8145 PyObject *resultobj = 0;
8146 wxBitmap *arg1 = 0 ;
8147 wxAlphaPixelData *arg2 = 0 ;
8148 wxAlphaPixelData_Accessor *result = 0 ;
8149 void *argp1 = 0 ;
8150 int res1 = 0 ;
8151 void *argp2 = 0 ;
8152 int res2 = 0 ;
8153
8154 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8156 if (!SWIG_IsOK(res1)) {
8157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8158 }
8159 if (!argp1) {
8160 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8161 }
8162 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8163 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8164 if (!SWIG_IsOK(res2)) {
8165 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8166 }
8167 if (!argp2) {
8168 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8169 }
8170 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8171 {
8172 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8173 if (PyErr_Occurred()) SWIG_fail;
8174 }
8175 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8176 return resultobj;
8177 fail:
8178 return NULL;
8179 }
8180
8181
8182 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8183 PyObject *resultobj = 0;
8184 wxAlphaPixelData_Accessor *result = 0 ;
8185
8186 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8187 {
8188 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8189 if (PyErr_Occurred()) SWIG_fail;
8190 }
8191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8192 return resultobj;
8193 fail:
8194 return NULL;
8195 }
8196
8197
8198 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8199 int argc;
8200 PyObject *argv[3];
8201
8202 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8203 --argc;
8204 if (argc == 0) {
8205 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8206 }
8207 if (argc == 1) {
8208 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8209 }
8210 if (argc == 2) {
8211 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8212 }
8213
8214 fail:
8215 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8216 return NULL;
8217 }
8218
8219
8220 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8221 PyObject *resultobj = 0;
8222 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8223 void *argp1 = 0 ;
8224 int res1 = 0 ;
8225 PyObject *swig_obj[1] ;
8226
8227 if (!args) SWIG_fail;
8228 swig_obj[0] = args;
8229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8230 if (!SWIG_IsOK(res1)) {
8231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8232 }
8233 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8234 {
8235 delete arg1;
8236
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 resultobj = SWIG_Py_Void();
8240 return resultobj;
8241 fail:
8242 return NULL;
8243 }
8244
8245
8246 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8247 PyObject *resultobj = 0;
8248 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8249 wxAlphaPixelData *arg2 = 0 ;
8250 void *argp1 = 0 ;
8251 int res1 = 0 ;
8252 void *argp2 = 0 ;
8253 int res2 = 0 ;
8254 PyObject * obj0 = 0 ;
8255 PyObject * obj1 = 0 ;
8256 char * kwnames[] = {
8257 (char *) "self",(char *) "data", NULL
8258 };
8259
8260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8262 if (!SWIG_IsOK(res1)) {
8263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8264 }
8265 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8266 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8267 if (!SWIG_IsOK(res2)) {
8268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8269 }
8270 if (!argp2) {
8271 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8272 }
8273 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8274 {
8275 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8276 if (PyErr_Occurred()) SWIG_fail;
8277 }
8278 resultobj = SWIG_Py_Void();
8279 return resultobj;
8280 fail:
8281 return NULL;
8282 }
8283
8284
8285 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8286 PyObject *resultobj = 0;
8287 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8288 bool result;
8289 void *argp1 = 0 ;
8290 int res1 = 0 ;
8291 PyObject *swig_obj[1] ;
8292
8293 if (!args) SWIG_fail;
8294 swig_obj[0] = args;
8295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8296 if (!SWIG_IsOK(res1)) {
8297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8298 }
8299 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8300 {
8301 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 {
8305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8306 }
8307 return resultobj;
8308 fail:
8309 return NULL;
8310 }
8311
8312
8313 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8314 PyObject *resultobj = 0;
8315 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8316 void *argp1 = 0 ;
8317 int res1 = 0 ;
8318 PyObject *swig_obj[1] ;
8319
8320 if (!args) SWIG_fail;
8321 swig_obj[0] = args;
8322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8323 if (!SWIG_IsOK(res1)) {
8324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8325 }
8326 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8327 {
8328 wxAlphaPixelData_Accessor_nextPixel(arg1);
8329 if (PyErr_Occurred()) SWIG_fail;
8330 }
8331 resultobj = SWIG_Py_Void();
8332 return resultobj;
8333 fail:
8334 return NULL;
8335 }
8336
8337
8338 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8339 PyObject *resultobj = 0;
8340 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8341 wxAlphaPixelData *arg2 = 0 ;
8342 int arg3 ;
8343 int arg4 ;
8344 void *argp1 = 0 ;
8345 int res1 = 0 ;
8346 void *argp2 = 0 ;
8347 int res2 = 0 ;
8348 int val3 ;
8349 int ecode3 = 0 ;
8350 int val4 ;
8351 int ecode4 = 0 ;
8352 PyObject * obj0 = 0 ;
8353 PyObject * obj1 = 0 ;
8354 PyObject * obj2 = 0 ;
8355 PyObject * obj3 = 0 ;
8356 char * kwnames[] = {
8357 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8358 };
8359
8360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8362 if (!SWIG_IsOK(res1)) {
8363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8364 }
8365 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8367 if (!SWIG_IsOK(res2)) {
8368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8369 }
8370 if (!argp2) {
8371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8372 }
8373 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8374 ecode3 = SWIG_AsVal_int(obj2, &val3);
8375 if (!SWIG_IsOK(ecode3)) {
8376 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8377 }
8378 arg3 = static_cast< int >(val3);
8379 ecode4 = SWIG_AsVal_int(obj3, &val4);
8380 if (!SWIG_IsOK(ecode4)) {
8381 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8382 }
8383 arg4 = static_cast< int >(val4);
8384 {
8385 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8386 if (PyErr_Occurred()) SWIG_fail;
8387 }
8388 resultobj = SWIG_Py_Void();
8389 return resultobj;
8390 fail:
8391 return NULL;
8392 }
8393
8394
8395 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8396 PyObject *resultobj = 0;
8397 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8398 wxAlphaPixelData *arg2 = 0 ;
8399 int arg3 ;
8400 void *argp1 = 0 ;
8401 int res1 = 0 ;
8402 void *argp2 = 0 ;
8403 int res2 = 0 ;
8404 int val3 ;
8405 int ecode3 = 0 ;
8406 PyObject * obj0 = 0 ;
8407 PyObject * obj1 = 0 ;
8408 PyObject * obj2 = 0 ;
8409 char * kwnames[] = {
8410 (char *) "self",(char *) "data",(char *) "x", NULL
8411 };
8412
8413 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8414 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8415 if (!SWIG_IsOK(res1)) {
8416 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8417 }
8418 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8419 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8420 if (!SWIG_IsOK(res2)) {
8421 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8422 }
8423 if (!argp2) {
8424 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8425 }
8426 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8427 ecode3 = SWIG_AsVal_int(obj2, &val3);
8428 if (!SWIG_IsOK(ecode3)) {
8429 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8430 }
8431 arg3 = static_cast< int >(val3);
8432 {
8433 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8434 if (PyErr_Occurred()) SWIG_fail;
8435 }
8436 resultobj = SWIG_Py_Void();
8437 return resultobj;
8438 fail:
8439 return NULL;
8440 }
8441
8442
8443 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8444 PyObject *resultobj = 0;
8445 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8446 wxAlphaPixelData *arg2 = 0 ;
8447 int arg3 ;
8448 void *argp1 = 0 ;
8449 int res1 = 0 ;
8450 void *argp2 = 0 ;
8451 int res2 = 0 ;
8452 int val3 ;
8453 int ecode3 = 0 ;
8454 PyObject * obj0 = 0 ;
8455 PyObject * obj1 = 0 ;
8456 PyObject * obj2 = 0 ;
8457 char * kwnames[] = {
8458 (char *) "self",(char *) "data",(char *) "y", NULL
8459 };
8460
8461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8463 if (!SWIG_IsOK(res1)) {
8464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8465 }
8466 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8467 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8468 if (!SWIG_IsOK(res2)) {
8469 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8470 }
8471 if (!argp2) {
8472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8473 }
8474 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8475 ecode3 = SWIG_AsVal_int(obj2, &val3);
8476 if (!SWIG_IsOK(ecode3)) {
8477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8478 }
8479 arg3 = static_cast< int >(val3);
8480 {
8481 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8482 if (PyErr_Occurred()) SWIG_fail;
8483 }
8484 resultobj = SWIG_Py_Void();
8485 return resultobj;
8486 fail:
8487 return NULL;
8488 }
8489
8490
8491 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8492 PyObject *resultobj = 0;
8493 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8494 wxAlphaPixelData *arg2 = 0 ;
8495 int arg3 ;
8496 int arg4 ;
8497 void *argp1 = 0 ;
8498 int res1 = 0 ;
8499 void *argp2 = 0 ;
8500 int res2 = 0 ;
8501 int val3 ;
8502 int ecode3 = 0 ;
8503 int val4 ;
8504 int ecode4 = 0 ;
8505 PyObject * obj0 = 0 ;
8506 PyObject * obj1 = 0 ;
8507 PyObject * obj2 = 0 ;
8508 PyObject * obj3 = 0 ;
8509 char * kwnames[] = {
8510 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8511 };
8512
8513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8515 if (!SWIG_IsOK(res1)) {
8516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8517 }
8518 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8519 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8520 if (!SWIG_IsOK(res2)) {
8521 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8522 }
8523 if (!argp2) {
8524 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8525 }
8526 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8527 ecode3 = SWIG_AsVal_int(obj2, &val3);
8528 if (!SWIG_IsOK(ecode3)) {
8529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8530 }
8531 arg3 = static_cast< int >(val3);
8532 ecode4 = SWIG_AsVal_int(obj3, &val4);
8533 if (!SWIG_IsOK(ecode4)) {
8534 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8535 }
8536 arg4 = static_cast< int >(val4);
8537 {
8538 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8539 if (PyErr_Occurred()) SWIG_fail;
8540 }
8541 resultobj = SWIG_Py_Void();
8542 return resultobj;
8543 fail:
8544 return NULL;
8545 }
8546
8547
8548 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8549 PyObject *resultobj = 0;
8550 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8551 byte arg2 ;
8552 byte arg3 ;
8553 byte arg4 ;
8554 byte arg5 ;
8555 void *argp1 = 0 ;
8556 int res1 = 0 ;
8557 unsigned char val2 ;
8558 int ecode2 = 0 ;
8559 unsigned char val3 ;
8560 int ecode3 = 0 ;
8561 unsigned char val4 ;
8562 int ecode4 = 0 ;
8563 unsigned char val5 ;
8564 int ecode5 = 0 ;
8565 PyObject * obj0 = 0 ;
8566 PyObject * obj1 = 0 ;
8567 PyObject * obj2 = 0 ;
8568 PyObject * obj3 = 0 ;
8569 PyObject * obj4 = 0 ;
8570 char * kwnames[] = {
8571 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8572 };
8573
8574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8576 if (!SWIG_IsOK(res1)) {
8577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8578 }
8579 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8580 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8581 if (!SWIG_IsOK(ecode2)) {
8582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8583 }
8584 arg2 = static_cast< byte >(val2);
8585 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8586 if (!SWIG_IsOK(ecode3)) {
8587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8588 }
8589 arg3 = static_cast< byte >(val3);
8590 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8591 if (!SWIG_IsOK(ecode4)) {
8592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8593 }
8594 arg4 = static_cast< byte >(val4);
8595 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8596 if (!SWIG_IsOK(ecode5)) {
8597 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8598 }
8599 arg5 = static_cast< byte >(val5);
8600 {
8601 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8602 if (PyErr_Occurred()) SWIG_fail;
8603 }
8604 resultobj = SWIG_Py_Void();
8605 return resultobj;
8606 fail:
8607 return NULL;
8608 }
8609
8610
8611 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8612 PyObject *resultobj = 0;
8613 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8614 PyObject *result = 0 ;
8615 void *argp1 = 0 ;
8616 int res1 = 0 ;
8617 PyObject *swig_obj[1] ;
8618
8619 if (!args) SWIG_fail;
8620 swig_obj[0] = args;
8621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8622 if (!SWIG_IsOK(res1)) {
8623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8624 }
8625 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8626 {
8627 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8628 if (PyErr_Occurred()) SWIG_fail;
8629 }
8630 resultobj = result;
8631 return resultobj;
8632 fail:
8633 return NULL;
8634 }
8635
8636
8637 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8638 PyObject *obj;
8639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8640 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8641 return SWIG_Py_Void();
8642 }
8643
8644 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8645 return SWIG_Python_InitShadowInstance(args);
8646 }
8647
8648 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8649 PyObject *resultobj = 0;
8650 wxBitmap *arg1 = 0 ;
8651 wxColour const &arg2_defvalue = wxNullColour ;
8652 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8653 wxMask *result = 0 ;
8654 void *argp1 = 0 ;
8655 int res1 = 0 ;
8656 wxColour temp2 ;
8657 PyObject * obj0 = 0 ;
8658 PyObject * obj1 = 0 ;
8659 char * kwnames[] = {
8660 (char *) "bitmap",(char *) "colour", NULL
8661 };
8662
8663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8664 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8665 if (!SWIG_IsOK(res1)) {
8666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8667 }
8668 if (!argp1) {
8669 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8670 }
8671 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8672 if (obj1) {
8673 {
8674 arg2 = &temp2;
8675 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8676 }
8677 }
8678 {
8679 if (!wxPyCheckForApp()) SWIG_fail;
8680 PyThreadState* __tstate = wxPyBeginAllowThreads();
8681 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8682 wxPyEndAllowThreads(__tstate);
8683 if (PyErr_Occurred()) SWIG_fail;
8684 }
8685 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8686 return resultobj;
8687 fail:
8688 return NULL;
8689 }
8690
8691
8692 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8693 PyObject *resultobj = 0;
8694 wxMask *arg1 = (wxMask *) 0 ;
8695 void *argp1 = 0 ;
8696 int res1 = 0 ;
8697 PyObject *swig_obj[1] ;
8698
8699 if (!args) SWIG_fail;
8700 swig_obj[0] = args;
8701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8702 if (!SWIG_IsOK(res1)) {
8703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8704 }
8705 arg1 = reinterpret_cast< wxMask * >(argp1);
8706 {
8707 delete arg1;
8708
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 resultobj = SWIG_Py_Void();
8712 return resultobj;
8713 fail:
8714 return NULL;
8715 }
8716
8717
8718 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8719 PyObject *obj;
8720 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8721 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8722 return SWIG_Py_Void();
8723 }
8724
8725 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8726 return SWIG_Python_InitShadowInstance(args);
8727 }
8728
8729 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8730 PyObject *resultobj = 0;
8731 wxString *arg1 = 0 ;
8732 wxBitmapType arg2 ;
8733 int arg3 = (int) -1 ;
8734 int arg4 = (int) -1 ;
8735 wxIcon *result = 0 ;
8736 bool temp1 = false ;
8737 int val2 ;
8738 int ecode2 = 0 ;
8739 int val3 ;
8740 int ecode3 = 0 ;
8741 int val4 ;
8742 int ecode4 = 0 ;
8743 PyObject * obj0 = 0 ;
8744 PyObject * obj1 = 0 ;
8745 PyObject * obj2 = 0 ;
8746 PyObject * obj3 = 0 ;
8747 char * kwnames[] = {
8748 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8749 };
8750
8751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8752 {
8753 arg1 = wxString_in_helper(obj0);
8754 if (arg1 == NULL) SWIG_fail;
8755 temp1 = true;
8756 }
8757 ecode2 = SWIG_AsVal_int(obj1, &val2);
8758 if (!SWIG_IsOK(ecode2)) {
8759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8760 }
8761 arg2 = static_cast< wxBitmapType >(val2);
8762 if (obj2) {
8763 ecode3 = SWIG_AsVal_int(obj2, &val3);
8764 if (!SWIG_IsOK(ecode3)) {
8765 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8766 }
8767 arg3 = static_cast< int >(val3);
8768 }
8769 if (obj3) {
8770 ecode4 = SWIG_AsVal_int(obj3, &val4);
8771 if (!SWIG_IsOK(ecode4)) {
8772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8773 }
8774 arg4 = static_cast< int >(val4);
8775 }
8776 {
8777 if (!wxPyCheckForApp()) SWIG_fail;
8778 PyThreadState* __tstate = wxPyBeginAllowThreads();
8779 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8780 wxPyEndAllowThreads(__tstate);
8781 if (PyErr_Occurred()) SWIG_fail;
8782 }
8783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8784 {
8785 if (temp1)
8786 delete arg1;
8787 }
8788 return resultobj;
8789 fail:
8790 {
8791 if (temp1)
8792 delete arg1;
8793 }
8794 return NULL;
8795 }
8796
8797
8798 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8799 PyObject *resultobj = 0;
8800 wxIcon *arg1 = (wxIcon *) 0 ;
8801 void *argp1 = 0 ;
8802 int res1 = 0 ;
8803 PyObject *swig_obj[1] ;
8804
8805 if (!args) SWIG_fail;
8806 swig_obj[0] = args;
8807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8808 if (!SWIG_IsOK(res1)) {
8809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8810 }
8811 arg1 = reinterpret_cast< wxIcon * >(argp1);
8812 {
8813 PyThreadState* __tstate = wxPyBeginAllowThreads();
8814 delete arg1;
8815
8816 wxPyEndAllowThreads(__tstate);
8817 if (PyErr_Occurred()) SWIG_fail;
8818 }
8819 resultobj = SWIG_Py_Void();
8820 return resultobj;
8821 fail:
8822 return NULL;
8823 }
8824
8825
8826 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8827 PyObject *resultobj = 0;
8828 wxIcon *result = 0 ;
8829
8830 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8831 {
8832 if (!wxPyCheckForApp()) SWIG_fail;
8833 PyThreadState* __tstate = wxPyBeginAllowThreads();
8834 result = (wxIcon *)new wxIcon();
8835 wxPyEndAllowThreads(__tstate);
8836 if (PyErr_Occurred()) SWIG_fail;
8837 }
8838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8839 return resultobj;
8840 fail:
8841 return NULL;
8842 }
8843
8844
8845 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8846 PyObject *resultobj = 0;
8847 wxIconLocation *arg1 = 0 ;
8848 wxIcon *result = 0 ;
8849 void *argp1 = 0 ;
8850 int res1 = 0 ;
8851 PyObject * obj0 = 0 ;
8852 char * kwnames[] = {
8853 (char *) "loc", NULL
8854 };
8855
8856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8857 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8858 if (!SWIG_IsOK(res1)) {
8859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8860 }
8861 if (!argp1) {
8862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8863 }
8864 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8865 {
8866 if (!wxPyCheckForApp()) SWIG_fail;
8867 PyThreadState* __tstate = wxPyBeginAllowThreads();
8868 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8869 wxPyEndAllowThreads(__tstate);
8870 if (PyErr_Occurred()) SWIG_fail;
8871 }
8872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8873 return resultobj;
8874 fail:
8875 return NULL;
8876 }
8877
8878
8879 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8880 PyObject *resultobj = 0;
8881 wxBitmap *arg1 = 0 ;
8882 wxIcon *result = 0 ;
8883 void *argp1 = 0 ;
8884 int res1 = 0 ;
8885 PyObject * obj0 = 0 ;
8886 char * kwnames[] = {
8887 (char *) "bmp", NULL
8888 };
8889
8890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8891 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8892 if (!SWIG_IsOK(res1)) {
8893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8894 }
8895 if (!argp1) {
8896 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8897 }
8898 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8899 {
8900 if (!wxPyCheckForApp()) SWIG_fail;
8901 PyThreadState* __tstate = wxPyBeginAllowThreads();
8902 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8903 wxPyEndAllowThreads(__tstate);
8904 if (PyErr_Occurred()) SWIG_fail;
8905 }
8906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8907 return resultobj;
8908 fail:
8909 return NULL;
8910 }
8911
8912
8913 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8914 PyObject *resultobj = 0;
8915 PyObject *arg1 = (PyObject *) 0 ;
8916 wxIcon *result = 0 ;
8917 PyObject * obj0 = 0 ;
8918 char * kwnames[] = {
8919 (char *) "listOfStrings", NULL
8920 };
8921
8922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8923 arg1 = obj0;
8924 {
8925 if (!wxPyCheckForApp()) SWIG_fail;
8926 PyThreadState* __tstate = wxPyBeginAllowThreads();
8927 result = (wxIcon *)new_wxIcon(arg1);
8928 wxPyEndAllowThreads(__tstate);
8929 if (PyErr_Occurred()) SWIG_fail;
8930 }
8931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8932 return resultobj;
8933 fail:
8934 return NULL;
8935 }
8936
8937
8938 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8939 PyObject *resultobj = 0;
8940 wxIcon *arg1 = (wxIcon *) 0 ;
8941 bool result;
8942 void *argp1 = 0 ;
8943 int res1 = 0 ;
8944 PyObject *swig_obj[1] ;
8945
8946 if (!args) SWIG_fail;
8947 swig_obj[0] = args;
8948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8949 if (!SWIG_IsOK(res1)) {
8950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
8951 }
8952 arg1 = reinterpret_cast< wxIcon * >(argp1);
8953 {
8954 PyThreadState* __tstate = wxPyBeginAllowThreads();
8955 result = (bool)(arg1)->IsOk();
8956 wxPyEndAllowThreads(__tstate);
8957 if (PyErr_Occurred()) SWIG_fail;
8958 }
8959 {
8960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8961 }
8962 return resultobj;
8963 fail:
8964 return NULL;
8965 }
8966
8967
8968 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8969 PyObject *resultobj = 0;
8970 wxIcon *arg1 = (wxIcon *) 0 ;
8971 int result;
8972 void *argp1 = 0 ;
8973 int res1 = 0 ;
8974 PyObject *swig_obj[1] ;
8975
8976 if (!args) SWIG_fail;
8977 swig_obj[0] = args;
8978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8979 if (!SWIG_IsOK(res1)) {
8980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8981 }
8982 arg1 = reinterpret_cast< wxIcon * >(argp1);
8983 {
8984 PyThreadState* __tstate = wxPyBeginAllowThreads();
8985 result = (int)(arg1)->GetWidth();
8986 wxPyEndAllowThreads(__tstate);
8987 if (PyErr_Occurred()) SWIG_fail;
8988 }
8989 resultobj = SWIG_From_int(static_cast< int >(result));
8990 return resultobj;
8991 fail:
8992 return NULL;
8993 }
8994
8995
8996 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8997 PyObject *resultobj = 0;
8998 wxIcon *arg1 = (wxIcon *) 0 ;
8999 int result;
9000 void *argp1 = 0 ;
9001 int res1 = 0 ;
9002 PyObject *swig_obj[1] ;
9003
9004 if (!args) SWIG_fail;
9005 swig_obj[0] = args;
9006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9007 if (!SWIG_IsOK(res1)) {
9008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9009 }
9010 arg1 = reinterpret_cast< wxIcon * >(argp1);
9011 {
9012 PyThreadState* __tstate = wxPyBeginAllowThreads();
9013 result = (int)(arg1)->GetHeight();
9014 wxPyEndAllowThreads(__tstate);
9015 if (PyErr_Occurred()) SWIG_fail;
9016 }
9017 resultobj = SWIG_From_int(static_cast< int >(result));
9018 return resultobj;
9019 fail:
9020 return NULL;
9021 }
9022
9023
9024 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9025 PyObject *resultobj = 0;
9026 wxIcon *arg1 = (wxIcon *) 0 ;
9027 int result;
9028 void *argp1 = 0 ;
9029 int res1 = 0 ;
9030 PyObject *swig_obj[1] ;
9031
9032 if (!args) SWIG_fail;
9033 swig_obj[0] = args;
9034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9035 if (!SWIG_IsOK(res1)) {
9036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9037 }
9038 arg1 = reinterpret_cast< wxIcon * >(argp1);
9039 {
9040 PyThreadState* __tstate = wxPyBeginAllowThreads();
9041 result = (int)(arg1)->GetDepth();
9042 wxPyEndAllowThreads(__tstate);
9043 if (PyErr_Occurred()) SWIG_fail;
9044 }
9045 resultobj = SWIG_From_int(static_cast< int >(result));
9046 return resultobj;
9047 fail:
9048 return NULL;
9049 }
9050
9051
9052 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9053 PyObject *resultobj = 0;
9054 wxIcon *arg1 = (wxIcon *) 0 ;
9055 int arg2 ;
9056 void *argp1 = 0 ;
9057 int res1 = 0 ;
9058 int val2 ;
9059 int ecode2 = 0 ;
9060 PyObject * obj0 = 0 ;
9061 PyObject * obj1 = 0 ;
9062 char * kwnames[] = {
9063 (char *) "self",(char *) "w", NULL
9064 };
9065
9066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9068 if (!SWIG_IsOK(res1)) {
9069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9070 }
9071 arg1 = reinterpret_cast< wxIcon * >(argp1);
9072 ecode2 = SWIG_AsVal_int(obj1, &val2);
9073 if (!SWIG_IsOK(ecode2)) {
9074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9075 }
9076 arg2 = static_cast< int >(val2);
9077 {
9078 PyThreadState* __tstate = wxPyBeginAllowThreads();
9079 (arg1)->SetWidth(arg2);
9080 wxPyEndAllowThreads(__tstate);
9081 if (PyErr_Occurred()) SWIG_fail;
9082 }
9083 resultobj = SWIG_Py_Void();
9084 return resultobj;
9085 fail:
9086 return NULL;
9087 }
9088
9089
9090 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9091 PyObject *resultobj = 0;
9092 wxIcon *arg1 = (wxIcon *) 0 ;
9093 int arg2 ;
9094 void *argp1 = 0 ;
9095 int res1 = 0 ;
9096 int val2 ;
9097 int ecode2 = 0 ;
9098 PyObject * obj0 = 0 ;
9099 PyObject * obj1 = 0 ;
9100 char * kwnames[] = {
9101 (char *) "self",(char *) "h", NULL
9102 };
9103
9104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9106 if (!SWIG_IsOK(res1)) {
9107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9108 }
9109 arg1 = reinterpret_cast< wxIcon * >(argp1);
9110 ecode2 = SWIG_AsVal_int(obj1, &val2);
9111 if (!SWIG_IsOK(ecode2)) {
9112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9113 }
9114 arg2 = static_cast< int >(val2);
9115 {
9116 PyThreadState* __tstate = wxPyBeginAllowThreads();
9117 (arg1)->SetHeight(arg2);
9118 wxPyEndAllowThreads(__tstate);
9119 if (PyErr_Occurred()) SWIG_fail;
9120 }
9121 resultobj = SWIG_Py_Void();
9122 return resultobj;
9123 fail:
9124 return NULL;
9125 }
9126
9127
9128 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9129 PyObject *resultobj = 0;
9130 wxIcon *arg1 = (wxIcon *) 0 ;
9131 int arg2 ;
9132 void *argp1 = 0 ;
9133 int res1 = 0 ;
9134 int val2 ;
9135 int ecode2 = 0 ;
9136 PyObject * obj0 = 0 ;
9137 PyObject * obj1 = 0 ;
9138 char * kwnames[] = {
9139 (char *) "self",(char *) "d", NULL
9140 };
9141
9142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9144 if (!SWIG_IsOK(res1)) {
9145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9146 }
9147 arg1 = reinterpret_cast< wxIcon * >(argp1);
9148 ecode2 = SWIG_AsVal_int(obj1, &val2);
9149 if (!SWIG_IsOK(ecode2)) {
9150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9151 }
9152 arg2 = static_cast< int >(val2);
9153 {
9154 PyThreadState* __tstate = wxPyBeginAllowThreads();
9155 (arg1)->SetDepth(arg2);
9156 wxPyEndAllowThreads(__tstate);
9157 if (PyErr_Occurred()) SWIG_fail;
9158 }
9159 resultobj = SWIG_Py_Void();
9160 return resultobj;
9161 fail:
9162 return NULL;
9163 }
9164
9165
9166 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9167 PyObject *resultobj = 0;
9168 wxIcon *arg1 = (wxIcon *) 0 ;
9169 wxBitmap *arg2 = 0 ;
9170 void *argp1 = 0 ;
9171 int res1 = 0 ;
9172 void *argp2 = 0 ;
9173 int res2 = 0 ;
9174 PyObject * obj0 = 0 ;
9175 PyObject * obj1 = 0 ;
9176 char * kwnames[] = {
9177 (char *) "self",(char *) "bmp", NULL
9178 };
9179
9180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9182 if (!SWIG_IsOK(res1)) {
9183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9184 }
9185 arg1 = reinterpret_cast< wxIcon * >(argp1);
9186 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9187 if (!SWIG_IsOK(res2)) {
9188 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9189 }
9190 if (!argp2) {
9191 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9192 }
9193 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9194 {
9195 PyThreadState* __tstate = wxPyBeginAllowThreads();
9196 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9197 wxPyEndAllowThreads(__tstate);
9198 if (PyErr_Occurred()) SWIG_fail;
9199 }
9200 resultobj = SWIG_Py_Void();
9201 return resultobj;
9202 fail:
9203 return NULL;
9204 }
9205
9206
9207 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9208 PyObject *obj;
9209 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9210 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9211 return SWIG_Py_Void();
9212 }
9213
9214 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9215 return SWIG_Python_InitShadowInstance(args);
9216 }
9217
9218 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9219 PyObject *resultobj = 0;
9220 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9221 int arg2 = (int) 0 ;
9222 wxIconLocation *result = 0 ;
9223 bool temp1 = false ;
9224 int val2 ;
9225 int ecode2 = 0 ;
9226 PyObject * obj0 = 0 ;
9227 PyObject * obj1 = 0 ;
9228 char * kwnames[] = {
9229 (char *) "filename",(char *) "num", NULL
9230 };
9231
9232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9233 if (obj0) {
9234 {
9235 arg1 = wxString_in_helper(obj0);
9236 if (arg1 == NULL) SWIG_fail;
9237 temp1 = true;
9238 }
9239 }
9240 if (obj1) {
9241 ecode2 = SWIG_AsVal_int(obj1, &val2);
9242 if (!SWIG_IsOK(ecode2)) {
9243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9244 }
9245 arg2 = static_cast< int >(val2);
9246 }
9247 {
9248 PyThreadState* __tstate = wxPyBeginAllowThreads();
9249 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9250 wxPyEndAllowThreads(__tstate);
9251 if (PyErr_Occurred()) SWIG_fail;
9252 }
9253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9254 {
9255 if (temp1)
9256 delete arg1;
9257 }
9258 return resultobj;
9259 fail:
9260 {
9261 if (temp1)
9262 delete arg1;
9263 }
9264 return NULL;
9265 }
9266
9267
9268 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9269 PyObject *resultobj = 0;
9270 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9271 void *argp1 = 0 ;
9272 int res1 = 0 ;
9273 PyObject *swig_obj[1] ;
9274
9275 if (!args) SWIG_fail;
9276 swig_obj[0] = args;
9277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9280 }
9281 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9282 {
9283 PyThreadState* __tstate = wxPyBeginAllowThreads();
9284 delete arg1;
9285
9286 wxPyEndAllowThreads(__tstate);
9287 if (PyErr_Occurred()) SWIG_fail;
9288 }
9289 resultobj = SWIG_Py_Void();
9290 return resultobj;
9291 fail:
9292 return NULL;
9293 }
9294
9295
9296 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9297 PyObject *resultobj = 0;
9298 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9299 bool result;
9300 void *argp1 = 0 ;
9301 int res1 = 0 ;
9302 PyObject *swig_obj[1] ;
9303
9304 if (!args) SWIG_fail;
9305 swig_obj[0] = args;
9306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9307 if (!SWIG_IsOK(res1)) {
9308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9309 }
9310 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9311 {
9312 PyThreadState* __tstate = wxPyBeginAllowThreads();
9313 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9314 wxPyEndAllowThreads(__tstate);
9315 if (PyErr_Occurred()) SWIG_fail;
9316 }
9317 {
9318 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9319 }
9320 return resultobj;
9321 fail:
9322 return NULL;
9323 }
9324
9325
9326 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9327 PyObject *resultobj = 0;
9328 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9329 wxString *arg2 = 0 ;
9330 void *argp1 = 0 ;
9331 int res1 = 0 ;
9332 bool temp2 = false ;
9333 PyObject * obj0 = 0 ;
9334 PyObject * obj1 = 0 ;
9335 char * kwnames[] = {
9336 (char *) "self",(char *) "filename", NULL
9337 };
9338
9339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9341 if (!SWIG_IsOK(res1)) {
9342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9343 }
9344 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9345 {
9346 arg2 = wxString_in_helper(obj1);
9347 if (arg2 == NULL) SWIG_fail;
9348 temp2 = true;
9349 }
9350 {
9351 PyThreadState* __tstate = wxPyBeginAllowThreads();
9352 (arg1)->SetFileName((wxString const &)*arg2);
9353 wxPyEndAllowThreads(__tstate);
9354 if (PyErr_Occurred()) SWIG_fail;
9355 }
9356 resultobj = SWIG_Py_Void();
9357 {
9358 if (temp2)
9359 delete arg2;
9360 }
9361 return resultobj;
9362 fail:
9363 {
9364 if (temp2)
9365 delete arg2;
9366 }
9367 return NULL;
9368 }
9369
9370
9371 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9372 PyObject *resultobj = 0;
9373 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9374 wxString *result = 0 ;
9375 void *argp1 = 0 ;
9376 int res1 = 0 ;
9377 PyObject *swig_obj[1] ;
9378
9379 if (!args) SWIG_fail;
9380 swig_obj[0] = args;
9381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9382 if (!SWIG_IsOK(res1)) {
9383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9384 }
9385 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9386 {
9387 PyThreadState* __tstate = wxPyBeginAllowThreads();
9388 {
9389 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9390 result = (wxString *) &_result_ref;
9391 }
9392 wxPyEndAllowThreads(__tstate);
9393 if (PyErr_Occurred()) SWIG_fail;
9394 }
9395 {
9396 #if wxUSE_UNICODE
9397 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9398 #else
9399 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9400 #endif
9401 }
9402 return resultobj;
9403 fail:
9404 return NULL;
9405 }
9406
9407
9408 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9409 PyObject *resultobj = 0;
9410 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9411 int arg2 ;
9412 void *argp1 = 0 ;
9413 int res1 = 0 ;
9414 int val2 ;
9415 int ecode2 = 0 ;
9416 PyObject * obj0 = 0 ;
9417 PyObject * obj1 = 0 ;
9418 char * kwnames[] = {
9419 (char *) "self",(char *) "num", NULL
9420 };
9421
9422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9424 if (!SWIG_IsOK(res1)) {
9425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9426 }
9427 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9428 ecode2 = SWIG_AsVal_int(obj1, &val2);
9429 if (!SWIG_IsOK(ecode2)) {
9430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9431 }
9432 arg2 = static_cast< int >(val2);
9433 {
9434 PyThreadState* __tstate = wxPyBeginAllowThreads();
9435 wxIconLocation_SetIndex(arg1,arg2);
9436 wxPyEndAllowThreads(__tstate);
9437 if (PyErr_Occurred()) SWIG_fail;
9438 }
9439 resultobj = SWIG_Py_Void();
9440 return resultobj;
9441 fail:
9442 return NULL;
9443 }
9444
9445
9446 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9447 PyObject *resultobj = 0;
9448 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9449 int result;
9450 void *argp1 = 0 ;
9451 int res1 = 0 ;
9452 PyObject *swig_obj[1] ;
9453
9454 if (!args) SWIG_fail;
9455 swig_obj[0] = args;
9456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9457 if (!SWIG_IsOK(res1)) {
9458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9459 }
9460 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9461 {
9462 PyThreadState* __tstate = wxPyBeginAllowThreads();
9463 result = (int)wxIconLocation_GetIndex(arg1);
9464 wxPyEndAllowThreads(__tstate);
9465 if (PyErr_Occurred()) SWIG_fail;
9466 }
9467 resultobj = SWIG_From_int(static_cast< int >(result));
9468 return resultobj;
9469 fail:
9470 return NULL;
9471 }
9472
9473
9474 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9475 PyObject *obj;
9476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9477 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9478 return SWIG_Py_Void();
9479 }
9480
9481 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9482 return SWIG_Python_InitShadowInstance(args);
9483 }
9484
9485 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9486 PyObject *resultobj = 0;
9487 wxIconBundle *result = 0 ;
9488
9489 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9490 {
9491 PyThreadState* __tstate = wxPyBeginAllowThreads();
9492 result = (wxIconBundle *)new wxIconBundle();
9493 wxPyEndAllowThreads(__tstate);
9494 if (PyErr_Occurred()) SWIG_fail;
9495 }
9496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9497 return resultobj;
9498 fail:
9499 return NULL;
9500 }
9501
9502
9503 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9504 PyObject *resultobj = 0;
9505 wxString *arg1 = 0 ;
9506 long arg2 ;
9507 wxIconBundle *result = 0 ;
9508 bool temp1 = false ;
9509 long val2 ;
9510 int ecode2 = 0 ;
9511 PyObject * obj0 = 0 ;
9512 PyObject * obj1 = 0 ;
9513 char * kwnames[] = {
9514 (char *) "file",(char *) "type", NULL
9515 };
9516
9517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9518 {
9519 arg1 = wxString_in_helper(obj0);
9520 if (arg1 == NULL) SWIG_fail;
9521 temp1 = true;
9522 }
9523 ecode2 = SWIG_AsVal_long(obj1, &val2);
9524 if (!SWIG_IsOK(ecode2)) {
9525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9526 }
9527 arg2 = static_cast< long >(val2);
9528 {
9529 PyThreadState* __tstate = wxPyBeginAllowThreads();
9530 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9531 wxPyEndAllowThreads(__tstate);
9532 if (PyErr_Occurred()) SWIG_fail;
9533 }
9534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9535 {
9536 if (temp1)
9537 delete arg1;
9538 }
9539 return resultobj;
9540 fail:
9541 {
9542 if (temp1)
9543 delete arg1;
9544 }
9545 return NULL;
9546 }
9547
9548
9549 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9550 PyObject *resultobj = 0;
9551 wxIcon *arg1 = 0 ;
9552 wxIconBundle *result = 0 ;
9553 void *argp1 = 0 ;
9554 int res1 = 0 ;
9555 PyObject * obj0 = 0 ;
9556 char * kwnames[] = {
9557 (char *) "icon", NULL
9558 };
9559
9560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9561 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9562 if (!SWIG_IsOK(res1)) {
9563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9564 }
9565 if (!argp1) {
9566 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9567 }
9568 arg1 = reinterpret_cast< wxIcon * >(argp1);
9569 {
9570 PyThreadState* __tstate = wxPyBeginAllowThreads();
9571 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9572 wxPyEndAllowThreads(__tstate);
9573 if (PyErr_Occurred()) SWIG_fail;
9574 }
9575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9576 return resultobj;
9577 fail:
9578 return NULL;
9579 }
9580
9581
9582 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9583 PyObject *resultobj = 0;
9584 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9585 void *argp1 = 0 ;
9586 int res1 = 0 ;
9587 PyObject *swig_obj[1] ;
9588
9589 if (!args) SWIG_fail;
9590 swig_obj[0] = args;
9591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9592 if (!SWIG_IsOK(res1)) {
9593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9594 }
9595 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9596 {
9597 PyThreadState* __tstate = wxPyBeginAllowThreads();
9598 delete arg1;
9599
9600 wxPyEndAllowThreads(__tstate);
9601 if (PyErr_Occurred()) SWIG_fail;
9602 }
9603 resultobj = SWIG_Py_Void();
9604 return resultobj;
9605 fail:
9606 return NULL;
9607 }
9608
9609
9610 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9611 PyObject *resultobj = 0;
9612 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9613 wxIcon *arg2 = 0 ;
9614 void *argp1 = 0 ;
9615 int res1 = 0 ;
9616 void *argp2 = 0 ;
9617 int res2 = 0 ;
9618 PyObject * obj0 = 0 ;
9619 PyObject * obj1 = 0 ;
9620 char * kwnames[] = {
9621 (char *) "self",(char *) "icon", NULL
9622 };
9623
9624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9626 if (!SWIG_IsOK(res1)) {
9627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9628 }
9629 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9631 if (!SWIG_IsOK(res2)) {
9632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9633 }
9634 if (!argp2) {
9635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9636 }
9637 arg2 = reinterpret_cast< wxIcon * >(argp2);
9638 {
9639 PyThreadState* __tstate = wxPyBeginAllowThreads();
9640 (arg1)->AddIcon((wxIcon const &)*arg2);
9641 wxPyEndAllowThreads(__tstate);
9642 if (PyErr_Occurred()) SWIG_fail;
9643 }
9644 resultobj = SWIG_Py_Void();
9645 return resultobj;
9646 fail:
9647 return NULL;
9648 }
9649
9650
9651 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9652 PyObject *resultobj = 0;
9653 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9654 wxString *arg2 = 0 ;
9655 long arg3 ;
9656 void *argp1 = 0 ;
9657 int res1 = 0 ;
9658 bool temp2 = false ;
9659 long val3 ;
9660 int ecode3 = 0 ;
9661 PyObject * obj0 = 0 ;
9662 PyObject * obj1 = 0 ;
9663 PyObject * obj2 = 0 ;
9664 char * kwnames[] = {
9665 (char *) "self",(char *) "file",(char *) "type", NULL
9666 };
9667
9668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9670 if (!SWIG_IsOK(res1)) {
9671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9672 }
9673 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9674 {
9675 arg2 = wxString_in_helper(obj1);
9676 if (arg2 == NULL) SWIG_fail;
9677 temp2 = true;
9678 }
9679 ecode3 = SWIG_AsVal_long(obj2, &val3);
9680 if (!SWIG_IsOK(ecode3)) {
9681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9682 }
9683 arg3 = static_cast< long >(val3);
9684 {
9685 PyThreadState* __tstate = wxPyBeginAllowThreads();
9686 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9687 wxPyEndAllowThreads(__tstate);
9688 if (PyErr_Occurred()) SWIG_fail;
9689 }
9690 resultobj = SWIG_Py_Void();
9691 {
9692 if (temp2)
9693 delete arg2;
9694 }
9695 return resultobj;
9696 fail:
9697 {
9698 if (temp2)
9699 delete arg2;
9700 }
9701 return NULL;
9702 }
9703
9704
9705 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9706 PyObject *resultobj = 0;
9707 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9708 wxSize *arg2 = 0 ;
9709 wxIcon *result = 0 ;
9710 void *argp1 = 0 ;
9711 int res1 = 0 ;
9712 wxSize temp2 ;
9713 PyObject * obj0 = 0 ;
9714 PyObject * obj1 = 0 ;
9715 char * kwnames[] = {
9716 (char *) "self",(char *) "size", NULL
9717 };
9718
9719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9721 if (!SWIG_IsOK(res1)) {
9722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9723 }
9724 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9725 {
9726 arg2 = &temp2;
9727 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9728 }
9729 {
9730 PyThreadState* __tstate = wxPyBeginAllowThreads();
9731 {
9732 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9733 result = (wxIcon *) &_result_ref;
9734 }
9735 wxPyEndAllowThreads(__tstate);
9736 if (PyErr_Occurred()) SWIG_fail;
9737 }
9738 {
9739 wxIcon* resultptr = new wxIcon(*result);
9740 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9741 }
9742 return resultobj;
9743 fail:
9744 return NULL;
9745 }
9746
9747
9748 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9749 PyObject *obj;
9750 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9751 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9752 return SWIG_Py_Void();
9753 }
9754
9755 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9756 return SWIG_Python_InitShadowInstance(args);
9757 }
9758
9759 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9760 PyObject *resultobj = 0;
9761 wxString *arg1 = 0 ;
9762 long arg2 ;
9763 int arg3 = (int) 0 ;
9764 int arg4 = (int) 0 ;
9765 wxCursor *result = 0 ;
9766 bool temp1 = false ;
9767 long val2 ;
9768 int ecode2 = 0 ;
9769 int val3 ;
9770 int ecode3 = 0 ;
9771 int val4 ;
9772 int ecode4 = 0 ;
9773 PyObject * obj0 = 0 ;
9774 PyObject * obj1 = 0 ;
9775 PyObject * obj2 = 0 ;
9776 PyObject * obj3 = 0 ;
9777 char * kwnames[] = {
9778 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9779 };
9780
9781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9782 {
9783 arg1 = wxString_in_helper(obj0);
9784 if (arg1 == NULL) SWIG_fail;
9785 temp1 = true;
9786 }
9787 ecode2 = SWIG_AsVal_long(obj1, &val2);
9788 if (!SWIG_IsOK(ecode2)) {
9789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9790 }
9791 arg2 = static_cast< long >(val2);
9792 if (obj2) {
9793 ecode3 = SWIG_AsVal_int(obj2, &val3);
9794 if (!SWIG_IsOK(ecode3)) {
9795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9796 }
9797 arg3 = static_cast< int >(val3);
9798 }
9799 if (obj3) {
9800 ecode4 = SWIG_AsVal_int(obj3, &val4);
9801 if (!SWIG_IsOK(ecode4)) {
9802 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9803 }
9804 arg4 = static_cast< int >(val4);
9805 }
9806 {
9807 if (!wxPyCheckForApp()) SWIG_fail;
9808 PyThreadState* __tstate = wxPyBeginAllowThreads();
9809 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9810 wxPyEndAllowThreads(__tstate);
9811 if (PyErr_Occurred()) SWIG_fail;
9812 }
9813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9814 {
9815 if (temp1)
9816 delete arg1;
9817 }
9818 return resultobj;
9819 fail:
9820 {
9821 if (temp1)
9822 delete arg1;
9823 }
9824 return NULL;
9825 }
9826
9827
9828 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9829 PyObject *resultobj = 0;
9830 wxCursor *arg1 = (wxCursor *) 0 ;
9831 void *argp1 = 0 ;
9832 int res1 = 0 ;
9833 PyObject *swig_obj[1] ;
9834
9835 if (!args) SWIG_fail;
9836 swig_obj[0] = args;
9837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9838 if (!SWIG_IsOK(res1)) {
9839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9840 }
9841 arg1 = reinterpret_cast< wxCursor * >(argp1);
9842 {
9843 PyThreadState* __tstate = wxPyBeginAllowThreads();
9844 delete arg1;
9845
9846 wxPyEndAllowThreads(__tstate);
9847 if (PyErr_Occurred()) SWIG_fail;
9848 }
9849 resultobj = SWIG_Py_Void();
9850 return resultobj;
9851 fail:
9852 return NULL;
9853 }
9854
9855
9856 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9857 PyObject *resultobj = 0;
9858 int arg1 ;
9859 wxCursor *result = 0 ;
9860 int val1 ;
9861 int ecode1 = 0 ;
9862 PyObject * obj0 = 0 ;
9863 char * kwnames[] = {
9864 (char *) "id", NULL
9865 };
9866
9867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9868 ecode1 = SWIG_AsVal_int(obj0, &val1);
9869 if (!SWIG_IsOK(ecode1)) {
9870 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9871 }
9872 arg1 = static_cast< int >(val1);
9873 {
9874 if (!wxPyCheckForApp()) SWIG_fail;
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 result = (wxCursor *)new wxCursor(arg1);
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9881 return resultobj;
9882 fail:
9883 return NULL;
9884 }
9885
9886
9887 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9888 PyObject *resultobj = 0;
9889 wxImage *arg1 = 0 ;
9890 wxCursor *result = 0 ;
9891 void *argp1 = 0 ;
9892 int res1 = 0 ;
9893 PyObject * obj0 = 0 ;
9894 char * kwnames[] = {
9895 (char *) "image", NULL
9896 };
9897
9898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9899 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9900 if (!SWIG_IsOK(res1)) {
9901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9902 }
9903 if (!argp1) {
9904 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9905 }
9906 arg1 = reinterpret_cast< wxImage * >(argp1);
9907 {
9908 if (!wxPyCheckForApp()) SWIG_fail;
9909 PyThreadState* __tstate = wxPyBeginAllowThreads();
9910 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9911 wxPyEndAllowThreads(__tstate);
9912 if (PyErr_Occurred()) SWIG_fail;
9913 }
9914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9915 return resultobj;
9916 fail:
9917 return NULL;
9918 }
9919
9920
9921 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9922 PyObject *resultobj = 0;
9923 wxCursor *arg1 = (wxCursor *) 0 ;
9924 bool result;
9925 void *argp1 = 0 ;
9926 int res1 = 0 ;
9927 PyObject *swig_obj[1] ;
9928
9929 if (!args) SWIG_fail;
9930 swig_obj[0] = args;
9931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9932 if (!SWIG_IsOK(res1)) {
9933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
9934 }
9935 arg1 = reinterpret_cast< wxCursor * >(argp1);
9936 {
9937 PyThreadState* __tstate = wxPyBeginAllowThreads();
9938 result = (bool)(arg1)->IsOk();
9939 wxPyEndAllowThreads(__tstate);
9940 if (PyErr_Occurred()) SWIG_fail;
9941 }
9942 {
9943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9944 }
9945 return resultobj;
9946 fail:
9947 return NULL;
9948 }
9949
9950
9951 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9952 PyObject *obj;
9953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9954 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9955 return SWIG_Py_Void();
9956 }
9957
9958 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9959 return SWIG_Python_InitShadowInstance(args);
9960 }
9961
9962 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9963 PyObject *resultobj = 0;
9964 int arg1 = (int) 0 ;
9965 int arg2 = (int) 0 ;
9966 int arg3 = (int) 0 ;
9967 int arg4 = (int) 0 ;
9968 wxRegion *result = 0 ;
9969 int val1 ;
9970 int ecode1 = 0 ;
9971 int val2 ;
9972 int ecode2 = 0 ;
9973 int val3 ;
9974 int ecode3 = 0 ;
9975 int val4 ;
9976 int ecode4 = 0 ;
9977 PyObject * obj0 = 0 ;
9978 PyObject * obj1 = 0 ;
9979 PyObject * obj2 = 0 ;
9980 PyObject * obj3 = 0 ;
9981 char * kwnames[] = {
9982 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9983 };
9984
9985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9986 if (obj0) {
9987 ecode1 = SWIG_AsVal_int(obj0, &val1);
9988 if (!SWIG_IsOK(ecode1)) {
9989 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9990 }
9991 arg1 = static_cast< int >(val1);
9992 }
9993 if (obj1) {
9994 ecode2 = SWIG_AsVal_int(obj1, &val2);
9995 if (!SWIG_IsOK(ecode2)) {
9996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9997 }
9998 arg2 = static_cast< int >(val2);
9999 }
10000 if (obj2) {
10001 ecode3 = SWIG_AsVal_int(obj2, &val3);
10002 if (!SWIG_IsOK(ecode3)) {
10003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10004 }
10005 arg3 = static_cast< int >(val3);
10006 }
10007 if (obj3) {
10008 ecode4 = SWIG_AsVal_int(obj3, &val4);
10009 if (!SWIG_IsOK(ecode4)) {
10010 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10011 }
10012 arg4 = static_cast< int >(val4);
10013 }
10014 {
10015 if (!wxPyCheckForApp()) SWIG_fail;
10016 PyThreadState* __tstate = wxPyBeginAllowThreads();
10017 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10018 wxPyEndAllowThreads(__tstate);
10019 if (PyErr_Occurred()) SWIG_fail;
10020 }
10021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10022 return resultobj;
10023 fail:
10024 return NULL;
10025 }
10026
10027
10028 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10029 PyObject *resultobj = 0;
10030 wxBitmap *arg1 = 0 ;
10031 wxRegion *result = 0 ;
10032 void *argp1 = 0 ;
10033 int res1 = 0 ;
10034 PyObject * obj0 = 0 ;
10035 char * kwnames[] = {
10036 (char *) "bmp", NULL
10037 };
10038
10039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10040 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10041 if (!SWIG_IsOK(res1)) {
10042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10043 }
10044 if (!argp1) {
10045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10046 }
10047 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10048 {
10049 if (!wxPyCheckForApp()) SWIG_fail;
10050 PyThreadState* __tstate = wxPyBeginAllowThreads();
10051 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10052 wxPyEndAllowThreads(__tstate);
10053 if (PyErr_Occurred()) SWIG_fail;
10054 }
10055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10056 return resultobj;
10057 fail:
10058 return NULL;
10059 }
10060
10061
10062 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10063 PyObject *resultobj = 0;
10064 wxBitmap *arg1 = 0 ;
10065 wxColour *arg2 = 0 ;
10066 int arg3 = (int) 0 ;
10067 wxRegion *result = 0 ;
10068 void *argp1 = 0 ;
10069 int res1 = 0 ;
10070 wxColour temp2 ;
10071 int val3 ;
10072 int ecode3 = 0 ;
10073 PyObject * obj0 = 0 ;
10074 PyObject * obj1 = 0 ;
10075 PyObject * obj2 = 0 ;
10076 char * kwnames[] = {
10077 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10078 };
10079
10080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10081 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10082 if (!SWIG_IsOK(res1)) {
10083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10084 }
10085 if (!argp1) {
10086 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10087 }
10088 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10089 {
10090 arg2 = &temp2;
10091 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10092 }
10093 if (obj2) {
10094 ecode3 = SWIG_AsVal_int(obj2, &val3);
10095 if (!SWIG_IsOK(ecode3)) {
10096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10097 }
10098 arg3 = static_cast< int >(val3);
10099 }
10100 {
10101 if (!wxPyCheckForApp()) SWIG_fail;
10102 PyThreadState* __tstate = wxPyBeginAllowThreads();
10103 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10104 wxPyEndAllowThreads(__tstate);
10105 if (PyErr_Occurred()) SWIG_fail;
10106 }
10107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10108 return resultobj;
10109 fail:
10110 return NULL;
10111 }
10112
10113
10114 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10115 PyObject *resultobj = 0;
10116 int arg1 ;
10117 wxPoint *arg2 = (wxPoint *) 0 ;
10118 int arg3 = (int) wxWINDING_RULE ;
10119 wxRegion *result = 0 ;
10120 int val3 ;
10121 int ecode3 = 0 ;
10122 PyObject * obj0 = 0 ;
10123 PyObject * obj1 = 0 ;
10124 char * kwnames[] = {
10125 (char *) "points",(char *) "fillStyle", NULL
10126 };
10127
10128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10129 {
10130 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10131 if (arg2 == NULL) SWIG_fail;
10132 }
10133 if (obj1) {
10134 ecode3 = SWIG_AsVal_int(obj1, &val3);
10135 if (!SWIG_IsOK(ecode3)) {
10136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10137 }
10138 arg3 = static_cast< int >(val3);
10139 }
10140 {
10141 if (!wxPyCheckForApp()) SWIG_fail;
10142 PyThreadState* __tstate = wxPyBeginAllowThreads();
10143 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10144 wxPyEndAllowThreads(__tstate);
10145 if (PyErr_Occurred()) SWIG_fail;
10146 }
10147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10148 {
10149 if (arg2) delete [] arg2;
10150 }
10151 return resultobj;
10152 fail:
10153 {
10154 if (arg2) delete [] arg2;
10155 }
10156 return NULL;
10157 }
10158
10159
10160 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10161 PyObject *resultobj = 0;
10162 wxRegion *arg1 = (wxRegion *) 0 ;
10163 void *argp1 = 0 ;
10164 int res1 = 0 ;
10165 PyObject *swig_obj[1] ;
10166
10167 if (!args) SWIG_fail;
10168 swig_obj[0] = args;
10169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10170 if (!SWIG_IsOK(res1)) {
10171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10172 }
10173 arg1 = reinterpret_cast< wxRegion * >(argp1);
10174 {
10175 PyThreadState* __tstate = wxPyBeginAllowThreads();
10176 delete arg1;
10177
10178 wxPyEndAllowThreads(__tstate);
10179 if (PyErr_Occurred()) SWIG_fail;
10180 }
10181 resultobj = SWIG_Py_Void();
10182 return resultobj;
10183 fail:
10184 return NULL;
10185 }
10186
10187
10188 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10189 PyObject *resultobj = 0;
10190 wxRegion *arg1 = (wxRegion *) 0 ;
10191 void *argp1 = 0 ;
10192 int res1 = 0 ;
10193 PyObject *swig_obj[1] ;
10194
10195 if (!args) SWIG_fail;
10196 swig_obj[0] = args;
10197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10198 if (!SWIG_IsOK(res1)) {
10199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10200 }
10201 arg1 = reinterpret_cast< wxRegion * >(argp1);
10202 {
10203 PyThreadState* __tstate = wxPyBeginAllowThreads();
10204 (arg1)->Clear();
10205 wxPyEndAllowThreads(__tstate);
10206 if (PyErr_Occurred()) SWIG_fail;
10207 }
10208 resultobj = SWIG_Py_Void();
10209 return resultobj;
10210 fail:
10211 return NULL;
10212 }
10213
10214
10215 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10216 PyObject *resultobj = 0;
10217 wxRegion *arg1 = (wxRegion *) 0 ;
10218 int arg2 ;
10219 int arg3 ;
10220 bool result;
10221 void *argp1 = 0 ;
10222 int res1 = 0 ;
10223 int val2 ;
10224 int ecode2 = 0 ;
10225 int val3 ;
10226 int ecode3 = 0 ;
10227 PyObject * obj0 = 0 ;
10228 PyObject * obj1 = 0 ;
10229 PyObject * obj2 = 0 ;
10230 char * kwnames[] = {
10231 (char *) "self",(char *) "x",(char *) "y", NULL
10232 };
10233
10234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10236 if (!SWIG_IsOK(res1)) {
10237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10238 }
10239 arg1 = reinterpret_cast< wxRegion * >(argp1);
10240 ecode2 = SWIG_AsVal_int(obj1, &val2);
10241 if (!SWIG_IsOK(ecode2)) {
10242 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10243 }
10244 arg2 = static_cast< int >(val2);
10245 ecode3 = SWIG_AsVal_int(obj2, &val3);
10246 if (!SWIG_IsOK(ecode3)) {
10247 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10248 }
10249 arg3 = static_cast< int >(val3);
10250 {
10251 PyThreadState* __tstate = wxPyBeginAllowThreads();
10252 result = (bool)(arg1)->Offset(arg2,arg3);
10253 wxPyEndAllowThreads(__tstate);
10254 if (PyErr_Occurred()) SWIG_fail;
10255 }
10256 {
10257 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10258 }
10259 return resultobj;
10260 fail:
10261 return NULL;
10262 }
10263
10264
10265 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10266 PyObject *resultobj = 0;
10267 wxRegion *arg1 = (wxRegion *) 0 ;
10268 int arg2 ;
10269 int arg3 ;
10270 wxRegionContain result;
10271 void *argp1 = 0 ;
10272 int res1 = 0 ;
10273 int val2 ;
10274 int ecode2 = 0 ;
10275 int val3 ;
10276 int ecode3 = 0 ;
10277 PyObject * obj0 = 0 ;
10278 PyObject * obj1 = 0 ;
10279 PyObject * obj2 = 0 ;
10280 char * kwnames[] = {
10281 (char *) "self",(char *) "x",(char *) "y", NULL
10282 };
10283
10284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10286 if (!SWIG_IsOK(res1)) {
10287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10288 }
10289 arg1 = reinterpret_cast< wxRegion * >(argp1);
10290 ecode2 = SWIG_AsVal_int(obj1, &val2);
10291 if (!SWIG_IsOK(ecode2)) {
10292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10293 }
10294 arg2 = static_cast< int >(val2);
10295 ecode3 = SWIG_AsVal_int(obj2, &val3);
10296 if (!SWIG_IsOK(ecode3)) {
10297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10298 }
10299 arg3 = static_cast< int >(val3);
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10303 wxPyEndAllowThreads(__tstate);
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 resultobj = SWIG_From_int(static_cast< int >(result));
10307 return resultobj;
10308 fail:
10309 return NULL;
10310 }
10311
10312
10313 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10314 PyObject *resultobj = 0;
10315 wxRegion *arg1 = (wxRegion *) 0 ;
10316 wxPoint *arg2 = 0 ;
10317 wxRegionContain result;
10318 void *argp1 = 0 ;
10319 int res1 = 0 ;
10320 wxPoint temp2 ;
10321 PyObject * obj0 = 0 ;
10322 PyObject * obj1 = 0 ;
10323 char * kwnames[] = {
10324 (char *) "self",(char *) "pt", NULL
10325 };
10326
10327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10329 if (!SWIG_IsOK(res1)) {
10330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10331 }
10332 arg1 = reinterpret_cast< wxRegion * >(argp1);
10333 {
10334 arg2 = &temp2;
10335 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10336 }
10337 {
10338 PyThreadState* __tstate = wxPyBeginAllowThreads();
10339 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10340 wxPyEndAllowThreads(__tstate);
10341 if (PyErr_Occurred()) SWIG_fail;
10342 }
10343 resultobj = SWIG_From_int(static_cast< int >(result));
10344 return resultobj;
10345 fail:
10346 return NULL;
10347 }
10348
10349
10350 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10351 PyObject *resultobj = 0;
10352 wxRegion *arg1 = (wxRegion *) 0 ;
10353 wxRect *arg2 = 0 ;
10354 wxRegionContain result;
10355 void *argp1 = 0 ;
10356 int res1 = 0 ;
10357 wxRect temp2 ;
10358 PyObject * obj0 = 0 ;
10359 PyObject * obj1 = 0 ;
10360 char * kwnames[] = {
10361 (char *) "self",(char *) "rect", NULL
10362 };
10363
10364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10366 if (!SWIG_IsOK(res1)) {
10367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10368 }
10369 arg1 = reinterpret_cast< wxRegion * >(argp1);
10370 {
10371 arg2 = &temp2;
10372 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10373 }
10374 {
10375 PyThreadState* __tstate = wxPyBeginAllowThreads();
10376 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10377 wxPyEndAllowThreads(__tstate);
10378 if (PyErr_Occurred()) SWIG_fail;
10379 }
10380 resultobj = SWIG_From_int(static_cast< int >(result));
10381 return resultobj;
10382 fail:
10383 return NULL;
10384 }
10385
10386
10387 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10388 PyObject *resultobj = 0;
10389 wxRegion *arg1 = (wxRegion *) 0 ;
10390 int arg2 ;
10391 int arg3 ;
10392 int arg4 ;
10393 int arg5 ;
10394 wxRegionContain result;
10395 void *argp1 = 0 ;
10396 int res1 = 0 ;
10397 int val2 ;
10398 int ecode2 = 0 ;
10399 int val3 ;
10400 int ecode3 = 0 ;
10401 int val4 ;
10402 int ecode4 = 0 ;
10403 int val5 ;
10404 int ecode5 = 0 ;
10405 PyObject * obj0 = 0 ;
10406 PyObject * obj1 = 0 ;
10407 PyObject * obj2 = 0 ;
10408 PyObject * obj3 = 0 ;
10409 PyObject * obj4 = 0 ;
10410 char * kwnames[] = {
10411 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10412 };
10413
10414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10416 if (!SWIG_IsOK(res1)) {
10417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10418 }
10419 arg1 = reinterpret_cast< wxRegion * >(argp1);
10420 ecode2 = SWIG_AsVal_int(obj1, &val2);
10421 if (!SWIG_IsOK(ecode2)) {
10422 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10423 }
10424 arg2 = static_cast< int >(val2);
10425 ecode3 = SWIG_AsVal_int(obj2, &val3);
10426 if (!SWIG_IsOK(ecode3)) {
10427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10428 }
10429 arg3 = static_cast< int >(val3);
10430 ecode4 = SWIG_AsVal_int(obj3, &val4);
10431 if (!SWIG_IsOK(ecode4)) {
10432 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10433 }
10434 arg4 = static_cast< int >(val4);
10435 ecode5 = SWIG_AsVal_int(obj4, &val5);
10436 if (!SWIG_IsOK(ecode5)) {
10437 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10438 }
10439 arg5 = static_cast< int >(val5);
10440 {
10441 PyThreadState* __tstate = wxPyBeginAllowThreads();
10442 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
10443 wxPyEndAllowThreads(__tstate);
10444 if (PyErr_Occurred()) SWIG_fail;
10445 }
10446 resultobj = SWIG_From_int(static_cast< int >(result));
10447 return resultobj;
10448 fail:
10449 return NULL;
10450 }
10451
10452
10453 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10454 PyObject *resultobj = 0;
10455 wxRegion *arg1 = (wxRegion *) 0 ;
10456 wxRect result;
10457 void *argp1 = 0 ;
10458 int res1 = 0 ;
10459 PyObject *swig_obj[1] ;
10460
10461 if (!args) SWIG_fail;
10462 swig_obj[0] = args;
10463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10464 if (!SWIG_IsOK(res1)) {
10465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10466 }
10467 arg1 = reinterpret_cast< wxRegion * >(argp1);
10468 {
10469 PyThreadState* __tstate = wxPyBeginAllowThreads();
10470 result = (arg1)->GetBox();
10471 wxPyEndAllowThreads(__tstate);
10472 if (PyErr_Occurred()) SWIG_fail;
10473 }
10474 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10475 return resultobj;
10476 fail:
10477 return NULL;
10478 }
10479
10480
10481 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10482 PyObject *resultobj = 0;
10483 wxRegion *arg1 = (wxRegion *) 0 ;
10484 int arg2 ;
10485 int arg3 ;
10486 int arg4 ;
10487 int arg5 ;
10488 bool result;
10489 void *argp1 = 0 ;
10490 int res1 = 0 ;
10491 int val2 ;
10492 int ecode2 = 0 ;
10493 int val3 ;
10494 int ecode3 = 0 ;
10495 int val4 ;
10496 int ecode4 = 0 ;
10497 int val5 ;
10498 int ecode5 = 0 ;
10499 PyObject * obj0 = 0 ;
10500 PyObject * obj1 = 0 ;
10501 PyObject * obj2 = 0 ;
10502 PyObject * obj3 = 0 ;
10503 PyObject * obj4 = 0 ;
10504 char * kwnames[] = {
10505 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10506 };
10507
10508 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10509 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10510 if (!SWIG_IsOK(res1)) {
10511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10512 }
10513 arg1 = reinterpret_cast< wxRegion * >(argp1);
10514 ecode2 = SWIG_AsVal_int(obj1, &val2);
10515 if (!SWIG_IsOK(ecode2)) {
10516 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10517 }
10518 arg2 = static_cast< int >(val2);
10519 ecode3 = SWIG_AsVal_int(obj2, &val3);
10520 if (!SWIG_IsOK(ecode3)) {
10521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10522 }
10523 arg3 = static_cast< int >(val3);
10524 ecode4 = SWIG_AsVal_int(obj3, &val4);
10525 if (!SWIG_IsOK(ecode4)) {
10526 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10527 }
10528 arg4 = static_cast< int >(val4);
10529 ecode5 = SWIG_AsVal_int(obj4, &val5);
10530 if (!SWIG_IsOK(ecode5)) {
10531 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10532 }
10533 arg5 = static_cast< int >(val5);
10534 {
10535 PyThreadState* __tstate = wxPyBeginAllowThreads();
10536 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10537 wxPyEndAllowThreads(__tstate);
10538 if (PyErr_Occurred()) SWIG_fail;
10539 }
10540 {
10541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10542 }
10543 return resultobj;
10544 fail:
10545 return NULL;
10546 }
10547
10548
10549 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10550 PyObject *resultobj = 0;
10551 wxRegion *arg1 = (wxRegion *) 0 ;
10552 wxRect *arg2 = 0 ;
10553 bool result;
10554 void *argp1 = 0 ;
10555 int res1 = 0 ;
10556 wxRect temp2 ;
10557 PyObject * obj0 = 0 ;
10558 PyObject * obj1 = 0 ;
10559 char * kwnames[] = {
10560 (char *) "self",(char *) "rect", NULL
10561 };
10562
10563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10565 if (!SWIG_IsOK(res1)) {
10566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10567 }
10568 arg1 = reinterpret_cast< wxRegion * >(argp1);
10569 {
10570 arg2 = &temp2;
10571 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10572 }
10573 {
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10576 wxPyEndAllowThreads(__tstate);
10577 if (PyErr_Occurred()) SWIG_fail;
10578 }
10579 {
10580 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10581 }
10582 return resultobj;
10583 fail:
10584 return NULL;
10585 }
10586
10587
10588 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10589 PyObject *resultobj = 0;
10590 wxRegion *arg1 = (wxRegion *) 0 ;
10591 wxRegion *arg2 = 0 ;
10592 bool result;
10593 void *argp1 = 0 ;
10594 int res1 = 0 ;
10595 void *argp2 = 0 ;
10596 int res2 = 0 ;
10597 PyObject * obj0 = 0 ;
10598 PyObject * obj1 = 0 ;
10599 char * kwnames[] = {
10600 (char *) "self",(char *) "region", NULL
10601 };
10602
10603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10605 if (!SWIG_IsOK(res1)) {
10606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10607 }
10608 arg1 = reinterpret_cast< wxRegion * >(argp1);
10609 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10610 if (!SWIG_IsOK(res2)) {
10611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10612 }
10613 if (!argp2) {
10614 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10615 }
10616 arg2 = reinterpret_cast< wxRegion * >(argp2);
10617 {
10618 PyThreadState* __tstate = wxPyBeginAllowThreads();
10619 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10620 wxPyEndAllowThreads(__tstate);
10621 if (PyErr_Occurred()) SWIG_fail;
10622 }
10623 {
10624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10625 }
10626 return resultobj;
10627 fail:
10628 return NULL;
10629 }
10630
10631
10632 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10633 PyObject *resultobj = 0;
10634 wxRegion *arg1 = (wxRegion *) 0 ;
10635 bool result;
10636 void *argp1 = 0 ;
10637 int res1 = 0 ;
10638 PyObject *swig_obj[1] ;
10639
10640 if (!args) SWIG_fail;
10641 swig_obj[0] = args;
10642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10643 if (!SWIG_IsOK(res1)) {
10644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10645 }
10646 arg1 = reinterpret_cast< wxRegion * >(argp1);
10647 {
10648 PyThreadState* __tstate = wxPyBeginAllowThreads();
10649 result = (bool)(arg1)->IsEmpty();
10650 wxPyEndAllowThreads(__tstate);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 }
10653 {
10654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10655 }
10656 return resultobj;
10657 fail:
10658 return NULL;
10659 }
10660
10661
10662 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10663 PyObject *resultobj = 0;
10664 wxRegion *arg1 = (wxRegion *) 0 ;
10665 wxRegion *arg2 = 0 ;
10666 bool result;
10667 void *argp1 = 0 ;
10668 int res1 = 0 ;
10669 void *argp2 = 0 ;
10670 int res2 = 0 ;
10671 PyObject * obj0 = 0 ;
10672 PyObject * obj1 = 0 ;
10673 char * kwnames[] = {
10674 (char *) "self",(char *) "region", NULL
10675 };
10676
10677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
10678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10679 if (!SWIG_IsOK(res1)) {
10680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
10681 }
10682 arg1 = reinterpret_cast< wxRegion * >(argp1);
10683 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10684 if (!SWIG_IsOK(res2)) {
10685 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10686 }
10687 if (!argp2) {
10688 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
10689 }
10690 arg2 = reinterpret_cast< wxRegion * >(argp2);
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 {
10698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10699 }
10700 return resultobj;
10701 fail:
10702 return NULL;
10703 }
10704
10705
10706 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10707 PyObject *resultobj = 0;
10708 wxRegion *arg1 = (wxRegion *) 0 ;
10709 int arg2 ;
10710 int arg3 ;
10711 int arg4 ;
10712 int arg5 ;
10713 bool result;
10714 void *argp1 = 0 ;
10715 int res1 = 0 ;
10716 int val2 ;
10717 int ecode2 = 0 ;
10718 int val3 ;
10719 int ecode3 = 0 ;
10720 int val4 ;
10721 int ecode4 = 0 ;
10722 int val5 ;
10723 int ecode5 = 0 ;
10724 PyObject * obj0 = 0 ;
10725 PyObject * obj1 = 0 ;
10726 PyObject * obj2 = 0 ;
10727 PyObject * obj3 = 0 ;
10728 PyObject * obj4 = 0 ;
10729 char * kwnames[] = {
10730 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10731 };
10732
10733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10735 if (!SWIG_IsOK(res1)) {
10736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10737 }
10738 arg1 = reinterpret_cast< wxRegion * >(argp1);
10739 ecode2 = SWIG_AsVal_int(obj1, &val2);
10740 if (!SWIG_IsOK(ecode2)) {
10741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10742 }
10743 arg2 = static_cast< int >(val2);
10744 ecode3 = SWIG_AsVal_int(obj2, &val3);
10745 if (!SWIG_IsOK(ecode3)) {
10746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10747 }
10748 arg3 = static_cast< int >(val3);
10749 ecode4 = SWIG_AsVal_int(obj3, &val4);
10750 if (!SWIG_IsOK(ecode4)) {
10751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10752 }
10753 arg4 = static_cast< int >(val4);
10754 ecode5 = SWIG_AsVal_int(obj4, &val5);
10755 if (!SWIG_IsOK(ecode5)) {
10756 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10757 }
10758 arg5 = static_cast< int >(val5);
10759 {
10760 PyThreadState* __tstate = wxPyBeginAllowThreads();
10761 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10762 wxPyEndAllowThreads(__tstate);
10763 if (PyErr_Occurred()) SWIG_fail;
10764 }
10765 {
10766 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10767 }
10768 return resultobj;
10769 fail:
10770 return NULL;
10771 }
10772
10773
10774 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10775 PyObject *resultobj = 0;
10776 wxRegion *arg1 = (wxRegion *) 0 ;
10777 wxRect *arg2 = 0 ;
10778 bool result;
10779 void *argp1 = 0 ;
10780 int res1 = 0 ;
10781 wxRect temp2 ;
10782 PyObject * obj0 = 0 ;
10783 PyObject * obj1 = 0 ;
10784 char * kwnames[] = {
10785 (char *) "self",(char *) "rect", NULL
10786 };
10787
10788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10790 if (!SWIG_IsOK(res1)) {
10791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10792 }
10793 arg1 = reinterpret_cast< wxRegion * >(argp1);
10794 {
10795 arg2 = &temp2;
10796 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10797 }
10798 {
10799 PyThreadState* __tstate = wxPyBeginAllowThreads();
10800 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10801 wxPyEndAllowThreads(__tstate);
10802 if (PyErr_Occurred()) SWIG_fail;
10803 }
10804 {
10805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10806 }
10807 return resultobj;
10808 fail:
10809 return NULL;
10810 }
10811
10812
10813 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10814 PyObject *resultobj = 0;
10815 wxRegion *arg1 = (wxRegion *) 0 ;
10816 wxRegion *arg2 = 0 ;
10817 bool result;
10818 void *argp1 = 0 ;
10819 int res1 = 0 ;
10820 void *argp2 = 0 ;
10821 int res2 = 0 ;
10822 PyObject * obj0 = 0 ;
10823 PyObject * obj1 = 0 ;
10824 char * kwnames[] = {
10825 (char *) "self",(char *) "region", NULL
10826 };
10827
10828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10830 if (!SWIG_IsOK(res1)) {
10831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10832 }
10833 arg1 = reinterpret_cast< wxRegion * >(argp1);
10834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10835 if (!SWIG_IsOK(res2)) {
10836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10837 }
10838 if (!argp2) {
10839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10840 }
10841 arg2 = reinterpret_cast< wxRegion * >(argp2);
10842 {
10843 PyThreadState* __tstate = wxPyBeginAllowThreads();
10844 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10845 wxPyEndAllowThreads(__tstate);
10846 if (PyErr_Occurred()) SWIG_fail;
10847 }
10848 {
10849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10850 }
10851 return resultobj;
10852 fail:
10853 return NULL;
10854 }
10855
10856
10857 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10858 PyObject *resultobj = 0;
10859 wxRegion *arg1 = (wxRegion *) 0 ;
10860 int arg2 ;
10861 int arg3 ;
10862 int arg4 ;
10863 int arg5 ;
10864 bool result;
10865 void *argp1 = 0 ;
10866 int res1 = 0 ;
10867 int val2 ;
10868 int ecode2 = 0 ;
10869 int val3 ;
10870 int ecode3 = 0 ;
10871 int val4 ;
10872 int ecode4 = 0 ;
10873 int val5 ;
10874 int ecode5 = 0 ;
10875 PyObject * obj0 = 0 ;
10876 PyObject * obj1 = 0 ;
10877 PyObject * obj2 = 0 ;
10878 PyObject * obj3 = 0 ;
10879 PyObject * obj4 = 0 ;
10880 char * kwnames[] = {
10881 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10882 };
10883
10884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10886 if (!SWIG_IsOK(res1)) {
10887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10888 }
10889 arg1 = reinterpret_cast< wxRegion * >(argp1);
10890 ecode2 = SWIG_AsVal_int(obj1, &val2);
10891 if (!SWIG_IsOK(ecode2)) {
10892 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10893 }
10894 arg2 = static_cast< int >(val2);
10895 ecode3 = SWIG_AsVal_int(obj2, &val3);
10896 if (!SWIG_IsOK(ecode3)) {
10897 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10898 }
10899 arg3 = static_cast< int >(val3);
10900 ecode4 = SWIG_AsVal_int(obj3, &val4);
10901 if (!SWIG_IsOK(ecode4)) {
10902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10903 }
10904 arg4 = static_cast< int >(val4);
10905 ecode5 = SWIG_AsVal_int(obj4, &val5);
10906 if (!SWIG_IsOK(ecode5)) {
10907 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10908 }
10909 arg5 = static_cast< int >(val5);
10910 {
10911 PyThreadState* __tstate = wxPyBeginAllowThreads();
10912 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10913 wxPyEndAllowThreads(__tstate);
10914 if (PyErr_Occurred()) SWIG_fail;
10915 }
10916 {
10917 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10918 }
10919 return resultobj;
10920 fail:
10921 return NULL;
10922 }
10923
10924
10925 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10926 PyObject *resultobj = 0;
10927 wxRegion *arg1 = (wxRegion *) 0 ;
10928 wxRect *arg2 = 0 ;
10929 bool result;
10930 void *argp1 = 0 ;
10931 int res1 = 0 ;
10932 wxRect temp2 ;
10933 PyObject * obj0 = 0 ;
10934 PyObject * obj1 = 0 ;
10935 char * kwnames[] = {
10936 (char *) "self",(char *) "rect", NULL
10937 };
10938
10939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10941 if (!SWIG_IsOK(res1)) {
10942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10943 }
10944 arg1 = reinterpret_cast< wxRegion * >(argp1);
10945 {
10946 arg2 = &temp2;
10947 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10948 }
10949 {
10950 PyThreadState* __tstate = wxPyBeginAllowThreads();
10951 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10952 wxPyEndAllowThreads(__tstate);
10953 if (PyErr_Occurred()) SWIG_fail;
10954 }
10955 {
10956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10957 }
10958 return resultobj;
10959 fail:
10960 return NULL;
10961 }
10962
10963
10964 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10965 PyObject *resultobj = 0;
10966 wxRegion *arg1 = (wxRegion *) 0 ;
10967 wxRegion *arg2 = 0 ;
10968 bool result;
10969 void *argp1 = 0 ;
10970 int res1 = 0 ;
10971 void *argp2 = 0 ;
10972 int res2 = 0 ;
10973 PyObject * obj0 = 0 ;
10974 PyObject * obj1 = 0 ;
10975 char * kwnames[] = {
10976 (char *) "self",(char *) "region", NULL
10977 };
10978
10979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10981 if (!SWIG_IsOK(res1)) {
10982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10983 }
10984 arg1 = reinterpret_cast< wxRegion * >(argp1);
10985 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10986 if (!SWIG_IsOK(res2)) {
10987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10988 }
10989 if (!argp2) {
10990 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10991 }
10992 arg2 = reinterpret_cast< wxRegion * >(argp2);
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10996 wxPyEndAllowThreads(__tstate);
10997 if (PyErr_Occurred()) SWIG_fail;
10998 }
10999 {
11000 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11001 }
11002 return resultobj;
11003 fail:
11004 return NULL;
11005 }
11006
11007
11008 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11009 PyObject *resultobj = 0;
11010 wxRegion *arg1 = (wxRegion *) 0 ;
11011 int arg2 ;
11012 int arg3 ;
11013 int arg4 ;
11014 int arg5 ;
11015 bool result;
11016 void *argp1 = 0 ;
11017 int res1 = 0 ;
11018 int val2 ;
11019 int ecode2 = 0 ;
11020 int val3 ;
11021 int ecode3 = 0 ;
11022 int val4 ;
11023 int ecode4 = 0 ;
11024 int val5 ;
11025 int ecode5 = 0 ;
11026 PyObject * obj0 = 0 ;
11027 PyObject * obj1 = 0 ;
11028 PyObject * obj2 = 0 ;
11029 PyObject * obj3 = 0 ;
11030 PyObject * obj4 = 0 ;
11031 char * kwnames[] = {
11032 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11033 };
11034
11035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11037 if (!SWIG_IsOK(res1)) {
11038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11039 }
11040 arg1 = reinterpret_cast< wxRegion * >(argp1);
11041 ecode2 = SWIG_AsVal_int(obj1, &val2);
11042 if (!SWIG_IsOK(ecode2)) {
11043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11044 }
11045 arg2 = static_cast< int >(val2);
11046 ecode3 = SWIG_AsVal_int(obj2, &val3);
11047 if (!SWIG_IsOK(ecode3)) {
11048 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11049 }
11050 arg3 = static_cast< int >(val3);
11051 ecode4 = SWIG_AsVal_int(obj3, &val4);
11052 if (!SWIG_IsOK(ecode4)) {
11053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11054 }
11055 arg4 = static_cast< int >(val4);
11056 ecode5 = SWIG_AsVal_int(obj4, &val5);
11057 if (!SWIG_IsOK(ecode5)) {
11058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11059 }
11060 arg5 = static_cast< int >(val5);
11061 {
11062 PyThreadState* __tstate = wxPyBeginAllowThreads();
11063 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11064 wxPyEndAllowThreads(__tstate);
11065 if (PyErr_Occurred()) SWIG_fail;
11066 }
11067 {
11068 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11069 }
11070 return resultobj;
11071 fail:
11072 return NULL;
11073 }
11074
11075
11076 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11077 PyObject *resultobj = 0;
11078 wxRegion *arg1 = (wxRegion *) 0 ;
11079 wxRect *arg2 = 0 ;
11080 bool result;
11081 void *argp1 = 0 ;
11082 int res1 = 0 ;
11083 wxRect temp2 ;
11084 PyObject * obj0 = 0 ;
11085 PyObject * obj1 = 0 ;
11086 char * kwnames[] = {
11087 (char *) "self",(char *) "rect", NULL
11088 };
11089
11090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11092 if (!SWIG_IsOK(res1)) {
11093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11094 }
11095 arg1 = reinterpret_cast< wxRegion * >(argp1);
11096 {
11097 arg2 = &temp2;
11098 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11099 }
11100 {
11101 PyThreadState* __tstate = wxPyBeginAllowThreads();
11102 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11103 wxPyEndAllowThreads(__tstate);
11104 if (PyErr_Occurred()) SWIG_fail;
11105 }
11106 {
11107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11108 }
11109 return resultobj;
11110 fail:
11111 return NULL;
11112 }
11113
11114
11115 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11116 PyObject *resultobj = 0;
11117 wxRegion *arg1 = (wxRegion *) 0 ;
11118 wxRegion *arg2 = 0 ;
11119 bool result;
11120 void *argp1 = 0 ;
11121 int res1 = 0 ;
11122 void *argp2 = 0 ;
11123 int res2 = 0 ;
11124 PyObject * obj0 = 0 ;
11125 PyObject * obj1 = 0 ;
11126 char * kwnames[] = {
11127 (char *) "self",(char *) "region", NULL
11128 };
11129
11130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11132 if (!SWIG_IsOK(res1)) {
11133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11134 }
11135 arg1 = reinterpret_cast< wxRegion * >(argp1);
11136 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11137 if (!SWIG_IsOK(res2)) {
11138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11139 }
11140 if (!argp2) {
11141 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11142 }
11143 arg2 = reinterpret_cast< wxRegion * >(argp2);
11144 {
11145 PyThreadState* __tstate = wxPyBeginAllowThreads();
11146 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11147 wxPyEndAllowThreads(__tstate);
11148 if (PyErr_Occurred()) SWIG_fail;
11149 }
11150 {
11151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11152 }
11153 return resultobj;
11154 fail:
11155 return NULL;
11156 }
11157
11158
11159 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11160 PyObject *resultobj = 0;
11161 wxRegion *arg1 = (wxRegion *) 0 ;
11162 SwigValueWrapper<wxBitmap > result;
11163 void *argp1 = 0 ;
11164 int res1 = 0 ;
11165 PyObject *swig_obj[1] ;
11166
11167 if (!args) SWIG_fail;
11168 swig_obj[0] = args;
11169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11170 if (!SWIG_IsOK(res1)) {
11171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11172 }
11173 arg1 = reinterpret_cast< wxRegion * >(argp1);
11174 {
11175 PyThreadState* __tstate = wxPyBeginAllowThreads();
11176 result = (arg1)->ConvertToBitmap();
11177 wxPyEndAllowThreads(__tstate);
11178 if (PyErr_Occurred()) SWIG_fail;
11179 }
11180 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11181 return resultobj;
11182 fail:
11183 return NULL;
11184 }
11185
11186
11187 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11188 PyObject *resultobj = 0;
11189 wxRegion *arg1 = (wxRegion *) 0 ;
11190 wxBitmap *arg2 = 0 ;
11191 bool result;
11192 void *argp1 = 0 ;
11193 int res1 = 0 ;
11194 void *argp2 = 0 ;
11195 int res2 = 0 ;
11196 PyObject * obj0 = 0 ;
11197 PyObject * obj1 = 0 ;
11198 char * kwnames[] = {
11199 (char *) "self",(char *) "bmp", NULL
11200 };
11201
11202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11204 if (!SWIG_IsOK(res1)) {
11205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11206 }
11207 arg1 = reinterpret_cast< wxRegion * >(argp1);
11208 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11209 if (!SWIG_IsOK(res2)) {
11210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11211 }
11212 if (!argp2) {
11213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11214 }
11215 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11216 {
11217 PyThreadState* __tstate = wxPyBeginAllowThreads();
11218 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11219 wxPyEndAllowThreads(__tstate);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 }
11222 {
11223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11224 }
11225 return resultobj;
11226 fail:
11227 return NULL;
11228 }
11229
11230
11231 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11232 PyObject *resultobj = 0;
11233 wxRegion *arg1 = (wxRegion *) 0 ;
11234 wxBitmap *arg2 = 0 ;
11235 wxColour *arg3 = 0 ;
11236 int arg4 = (int) 0 ;
11237 bool result;
11238 void *argp1 = 0 ;
11239 int res1 = 0 ;
11240 void *argp2 = 0 ;
11241 int res2 = 0 ;
11242 wxColour temp3 ;
11243 int val4 ;
11244 int ecode4 = 0 ;
11245 PyObject * obj0 = 0 ;
11246 PyObject * obj1 = 0 ;
11247 PyObject * obj2 = 0 ;
11248 PyObject * obj3 = 0 ;
11249 char * kwnames[] = {
11250 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11251 };
11252
11253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11255 if (!SWIG_IsOK(res1)) {
11256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11257 }
11258 arg1 = reinterpret_cast< wxRegion * >(argp1);
11259 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11260 if (!SWIG_IsOK(res2)) {
11261 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11262 }
11263 if (!argp2) {
11264 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11265 }
11266 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11267 {
11268 arg3 = &temp3;
11269 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11270 }
11271 if (obj3) {
11272 ecode4 = SWIG_AsVal_int(obj3, &val4);
11273 if (!SWIG_IsOK(ecode4)) {
11274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11275 }
11276 arg4 = static_cast< int >(val4);
11277 }
11278 {
11279 PyThreadState* __tstate = wxPyBeginAllowThreads();
11280 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11281 wxPyEndAllowThreads(__tstate);
11282 if (PyErr_Occurred()) SWIG_fail;
11283 }
11284 {
11285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11286 }
11287 return resultobj;
11288 fail:
11289 return NULL;
11290 }
11291
11292
11293 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11294 PyObject *obj;
11295 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11296 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11297 return SWIG_Py_Void();
11298 }
11299
11300 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11301 return SWIG_Python_InitShadowInstance(args);
11302 }
11303
11304 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11305 PyObject *resultobj = 0;
11306 wxRegion *arg1 = 0 ;
11307 wxRegionIterator *result = 0 ;
11308 void *argp1 = 0 ;
11309 int res1 = 0 ;
11310 PyObject * obj0 = 0 ;
11311 char * kwnames[] = {
11312 (char *) "region", NULL
11313 };
11314
11315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11316 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11317 if (!SWIG_IsOK(res1)) {
11318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11319 }
11320 if (!argp1) {
11321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11322 }
11323 arg1 = reinterpret_cast< wxRegion * >(argp1);
11324 {
11325 if (!wxPyCheckForApp()) SWIG_fail;
11326 PyThreadState* __tstate = wxPyBeginAllowThreads();
11327 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11328 wxPyEndAllowThreads(__tstate);
11329 if (PyErr_Occurred()) SWIG_fail;
11330 }
11331 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11332 return resultobj;
11333 fail:
11334 return NULL;
11335 }
11336
11337
11338 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11339 PyObject *resultobj = 0;
11340 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11341 void *argp1 = 0 ;
11342 int res1 = 0 ;
11343 PyObject *swig_obj[1] ;
11344
11345 if (!args) SWIG_fail;
11346 swig_obj[0] = args;
11347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11348 if (!SWIG_IsOK(res1)) {
11349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11350 }
11351 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11352 {
11353 PyThreadState* __tstate = wxPyBeginAllowThreads();
11354 delete arg1;
11355
11356 wxPyEndAllowThreads(__tstate);
11357 if (PyErr_Occurred()) SWIG_fail;
11358 }
11359 resultobj = SWIG_Py_Void();
11360 return resultobj;
11361 fail:
11362 return NULL;
11363 }
11364
11365
11366 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11367 PyObject *resultobj = 0;
11368 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11369 int result;
11370 void *argp1 = 0 ;
11371 int res1 = 0 ;
11372 PyObject *swig_obj[1] ;
11373
11374 if (!args) SWIG_fail;
11375 swig_obj[0] = args;
11376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11377 if (!SWIG_IsOK(res1)) {
11378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11379 }
11380 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11381 {
11382 PyThreadState* __tstate = wxPyBeginAllowThreads();
11383 result = (int)(arg1)->GetX();
11384 wxPyEndAllowThreads(__tstate);
11385 if (PyErr_Occurred()) SWIG_fail;
11386 }
11387 resultobj = SWIG_From_int(static_cast< int >(result));
11388 return resultobj;
11389 fail:
11390 return NULL;
11391 }
11392
11393
11394 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11395 PyObject *resultobj = 0;
11396 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11397 int result;
11398 void *argp1 = 0 ;
11399 int res1 = 0 ;
11400 PyObject *swig_obj[1] ;
11401
11402 if (!args) SWIG_fail;
11403 swig_obj[0] = args;
11404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11405 if (!SWIG_IsOK(res1)) {
11406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11407 }
11408 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = (int)(arg1)->GetY();
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 resultobj = SWIG_From_int(static_cast< int >(result));
11416 return resultobj;
11417 fail:
11418 return NULL;
11419 }
11420
11421
11422 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11423 PyObject *resultobj = 0;
11424 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11425 int result;
11426 void *argp1 = 0 ;
11427 int res1 = 0 ;
11428 PyObject *swig_obj[1] ;
11429
11430 if (!args) SWIG_fail;
11431 swig_obj[0] = args;
11432 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11433 if (!SWIG_IsOK(res1)) {
11434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11435 }
11436 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11437 {
11438 PyThreadState* __tstate = wxPyBeginAllowThreads();
11439 result = (int)(arg1)->GetW();
11440 wxPyEndAllowThreads(__tstate);
11441 if (PyErr_Occurred()) SWIG_fail;
11442 }
11443 resultobj = SWIG_From_int(static_cast< int >(result));
11444 return resultobj;
11445 fail:
11446 return NULL;
11447 }
11448
11449
11450 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11451 PyObject *resultobj = 0;
11452 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11453 int result;
11454 void *argp1 = 0 ;
11455 int res1 = 0 ;
11456 PyObject *swig_obj[1] ;
11457
11458 if (!args) SWIG_fail;
11459 swig_obj[0] = args;
11460 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11461 if (!SWIG_IsOK(res1)) {
11462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11463 }
11464 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11465 {
11466 PyThreadState* __tstate = wxPyBeginAllowThreads();
11467 result = (int)(arg1)->GetWidth();
11468 wxPyEndAllowThreads(__tstate);
11469 if (PyErr_Occurred()) SWIG_fail;
11470 }
11471 resultobj = SWIG_From_int(static_cast< int >(result));
11472 return resultobj;
11473 fail:
11474 return NULL;
11475 }
11476
11477
11478 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11479 PyObject *resultobj = 0;
11480 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11481 int result;
11482 void *argp1 = 0 ;
11483 int res1 = 0 ;
11484 PyObject *swig_obj[1] ;
11485
11486 if (!args) SWIG_fail;
11487 swig_obj[0] = args;
11488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11489 if (!SWIG_IsOK(res1)) {
11490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11491 }
11492 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11493 {
11494 PyThreadState* __tstate = wxPyBeginAllowThreads();
11495 result = (int)(arg1)->GetH();
11496 wxPyEndAllowThreads(__tstate);
11497 if (PyErr_Occurred()) SWIG_fail;
11498 }
11499 resultobj = SWIG_From_int(static_cast< int >(result));
11500 return resultobj;
11501 fail:
11502 return NULL;
11503 }
11504
11505
11506 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11507 PyObject *resultobj = 0;
11508 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11509 int result;
11510 void *argp1 = 0 ;
11511 int res1 = 0 ;
11512 PyObject *swig_obj[1] ;
11513
11514 if (!args) SWIG_fail;
11515 swig_obj[0] = args;
11516 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11517 if (!SWIG_IsOK(res1)) {
11518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11519 }
11520 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11521 {
11522 PyThreadState* __tstate = wxPyBeginAllowThreads();
11523 result = (int)(arg1)->GetHeight();
11524 wxPyEndAllowThreads(__tstate);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 resultobj = SWIG_From_int(static_cast< int >(result));
11528 return resultobj;
11529 fail:
11530 return NULL;
11531 }
11532
11533
11534 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11535 PyObject *resultobj = 0;
11536 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11537 wxRect result;
11538 void *argp1 = 0 ;
11539 int res1 = 0 ;
11540 PyObject *swig_obj[1] ;
11541
11542 if (!args) SWIG_fail;
11543 swig_obj[0] = args;
11544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11545 if (!SWIG_IsOK(res1)) {
11546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11547 }
11548 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11549 {
11550 PyThreadState* __tstate = wxPyBeginAllowThreads();
11551 result = (arg1)->GetRect();
11552 wxPyEndAllowThreads(__tstate);
11553 if (PyErr_Occurred()) SWIG_fail;
11554 }
11555 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11556 return resultobj;
11557 fail:
11558 return NULL;
11559 }
11560
11561
11562 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11563 PyObject *resultobj = 0;
11564 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11565 bool result;
11566 void *argp1 = 0 ;
11567 int res1 = 0 ;
11568 PyObject *swig_obj[1] ;
11569
11570 if (!args) SWIG_fail;
11571 swig_obj[0] = args;
11572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11573 if (!SWIG_IsOK(res1)) {
11574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11575 }
11576 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11577 {
11578 PyThreadState* __tstate = wxPyBeginAllowThreads();
11579 result = (bool)(arg1)->HaveRects();
11580 wxPyEndAllowThreads(__tstate);
11581 if (PyErr_Occurred()) SWIG_fail;
11582 }
11583 {
11584 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11585 }
11586 return resultobj;
11587 fail:
11588 return NULL;
11589 }
11590
11591
11592 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11593 PyObject *resultobj = 0;
11594 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11595 void *argp1 = 0 ;
11596 int res1 = 0 ;
11597 PyObject *swig_obj[1] ;
11598
11599 if (!args) SWIG_fail;
11600 swig_obj[0] = args;
11601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11602 if (!SWIG_IsOK(res1)) {
11603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11604 }
11605 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11606 {
11607 PyThreadState* __tstate = wxPyBeginAllowThreads();
11608 (arg1)->Reset();
11609 wxPyEndAllowThreads(__tstate);
11610 if (PyErr_Occurred()) SWIG_fail;
11611 }
11612 resultobj = SWIG_Py_Void();
11613 return resultobj;
11614 fail:
11615 return NULL;
11616 }
11617
11618
11619 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11620 PyObject *resultobj = 0;
11621 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11622 void *argp1 = 0 ;
11623 int res1 = 0 ;
11624 PyObject *swig_obj[1] ;
11625
11626 if (!args) SWIG_fail;
11627 swig_obj[0] = args;
11628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11629 if (!SWIG_IsOK(res1)) {
11630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11631 }
11632 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11633 {
11634 PyThreadState* __tstate = wxPyBeginAllowThreads();
11635 wxRegionIterator_Next(arg1);
11636 wxPyEndAllowThreads(__tstate);
11637 if (PyErr_Occurred()) SWIG_fail;
11638 }
11639 resultobj = SWIG_Py_Void();
11640 return resultobj;
11641 fail:
11642 return NULL;
11643 }
11644
11645
11646 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11647 PyObject *resultobj = 0;
11648 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11649 bool result;
11650 void *argp1 = 0 ;
11651 int res1 = 0 ;
11652 PyObject *swig_obj[1] ;
11653
11654 if (!args) SWIG_fail;
11655 swig_obj[0] = args;
11656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11657 if (!SWIG_IsOK(res1)) {
11658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11659 }
11660 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11661 {
11662 PyThreadState* __tstate = wxPyBeginAllowThreads();
11663 result = (bool)wxRegionIterator___nonzero__(arg1);
11664 wxPyEndAllowThreads(__tstate);
11665 if (PyErr_Occurred()) SWIG_fail;
11666 }
11667 {
11668 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11669 }
11670 return resultobj;
11671 fail:
11672 return NULL;
11673 }
11674
11675
11676 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11677 PyObject *obj;
11678 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11679 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11680 return SWIG_Py_Void();
11681 }
11682
11683 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11684 return SWIG_Python_InitShadowInstance(args);
11685 }
11686
11687 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11688 PyObject *resultobj = 0;
11689 wxNativeFontInfo *result = 0 ;
11690
11691 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11692 {
11693 PyThreadState* __tstate = wxPyBeginAllowThreads();
11694 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11695 wxPyEndAllowThreads(__tstate);
11696 if (PyErr_Occurred()) SWIG_fail;
11697 }
11698 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11699 return resultobj;
11700 fail:
11701 return NULL;
11702 }
11703
11704
11705 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11706 PyObject *resultobj = 0;
11707 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11708 void *argp1 = 0 ;
11709 int res1 = 0 ;
11710 PyObject *swig_obj[1] ;
11711
11712 if (!args) SWIG_fail;
11713 swig_obj[0] = args;
11714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11715 if (!SWIG_IsOK(res1)) {
11716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11717 }
11718 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11719 {
11720 PyThreadState* __tstate = wxPyBeginAllowThreads();
11721 delete arg1;
11722
11723 wxPyEndAllowThreads(__tstate);
11724 if (PyErr_Occurred()) SWIG_fail;
11725 }
11726 resultobj = SWIG_Py_Void();
11727 return resultobj;
11728 fail:
11729 return NULL;
11730 }
11731
11732
11733 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11734 PyObject *resultobj = 0;
11735 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11736 void *argp1 = 0 ;
11737 int res1 = 0 ;
11738 PyObject *swig_obj[1] ;
11739
11740 if (!args) SWIG_fail;
11741 swig_obj[0] = args;
11742 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11743 if (!SWIG_IsOK(res1)) {
11744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11745 }
11746 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11747 {
11748 PyThreadState* __tstate = wxPyBeginAllowThreads();
11749 (arg1)->Init();
11750 wxPyEndAllowThreads(__tstate);
11751 if (PyErr_Occurred()) SWIG_fail;
11752 }
11753 resultobj = SWIG_Py_Void();
11754 return resultobj;
11755 fail:
11756 return NULL;
11757 }
11758
11759
11760 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11761 PyObject *resultobj = 0;
11762 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11763 wxFont *arg2 = 0 ;
11764 void *argp1 = 0 ;
11765 int res1 = 0 ;
11766 void *argp2 = 0 ;
11767 int res2 = 0 ;
11768 PyObject * obj0 = 0 ;
11769 PyObject * obj1 = 0 ;
11770 char * kwnames[] = {
11771 (char *) "self",(char *) "font", NULL
11772 };
11773
11774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11776 if (!SWIG_IsOK(res1)) {
11777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11778 }
11779 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11780 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11781 if (!SWIG_IsOK(res2)) {
11782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11783 }
11784 if (!argp2) {
11785 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11786 }
11787 arg2 = reinterpret_cast< wxFont * >(argp2);
11788 {
11789 PyThreadState* __tstate = wxPyBeginAllowThreads();
11790 (arg1)->InitFromFont((wxFont const &)*arg2);
11791 wxPyEndAllowThreads(__tstate);
11792 if (PyErr_Occurred()) SWIG_fail;
11793 }
11794 resultobj = SWIG_Py_Void();
11795 return resultobj;
11796 fail:
11797 return NULL;
11798 }
11799
11800
11801 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11802 PyObject *resultobj = 0;
11803 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11804 int result;
11805 void *argp1 = 0 ;
11806 int res1 = 0 ;
11807 PyObject *swig_obj[1] ;
11808
11809 if (!args) SWIG_fail;
11810 swig_obj[0] = args;
11811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11812 if (!SWIG_IsOK(res1)) {
11813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11814 }
11815 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11816 {
11817 PyThreadState* __tstate = wxPyBeginAllowThreads();
11818 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11819 wxPyEndAllowThreads(__tstate);
11820 if (PyErr_Occurred()) SWIG_fail;
11821 }
11822 resultobj = SWIG_From_int(static_cast< int >(result));
11823 return resultobj;
11824 fail:
11825 return NULL;
11826 }
11827
11828
11829 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11830 PyObject *resultobj = 0;
11831 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11832 wxFontStyle result;
11833 void *argp1 = 0 ;
11834 int res1 = 0 ;
11835 PyObject *swig_obj[1] ;
11836
11837 if (!args) SWIG_fail;
11838 swig_obj[0] = args;
11839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11840 if (!SWIG_IsOK(res1)) {
11841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11842 }
11843 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11844 {
11845 PyThreadState* __tstate = wxPyBeginAllowThreads();
11846 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 resultobj = SWIG_From_int(static_cast< int >(result));
11851 return resultobj;
11852 fail:
11853 return NULL;
11854 }
11855
11856
11857 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11858 PyObject *resultobj = 0;
11859 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11860 wxFontWeight result;
11861 void *argp1 = 0 ;
11862 int res1 = 0 ;
11863 PyObject *swig_obj[1] ;
11864
11865 if (!args) SWIG_fail;
11866 swig_obj[0] = args;
11867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11868 if (!SWIG_IsOK(res1)) {
11869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11870 }
11871 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11872 {
11873 PyThreadState* __tstate = wxPyBeginAllowThreads();
11874 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11875 wxPyEndAllowThreads(__tstate);
11876 if (PyErr_Occurred()) SWIG_fail;
11877 }
11878 resultobj = SWIG_From_int(static_cast< int >(result));
11879 return resultobj;
11880 fail:
11881 return NULL;
11882 }
11883
11884
11885 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11886 PyObject *resultobj = 0;
11887 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11888 bool result;
11889 void *argp1 = 0 ;
11890 int res1 = 0 ;
11891 PyObject *swig_obj[1] ;
11892
11893 if (!args) SWIG_fail;
11894 swig_obj[0] = args;
11895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11896 if (!SWIG_IsOK(res1)) {
11897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11898 }
11899 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11900 {
11901 PyThreadState* __tstate = wxPyBeginAllowThreads();
11902 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11903 wxPyEndAllowThreads(__tstate);
11904 if (PyErr_Occurred()) SWIG_fail;
11905 }
11906 {
11907 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11908 }
11909 return resultobj;
11910 fail:
11911 return NULL;
11912 }
11913
11914
11915 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11916 PyObject *resultobj = 0;
11917 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11918 wxString result;
11919 void *argp1 = 0 ;
11920 int res1 = 0 ;
11921 PyObject *swig_obj[1] ;
11922
11923 if (!args) SWIG_fail;
11924 swig_obj[0] = args;
11925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11926 if (!SWIG_IsOK(res1)) {
11927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11928 }
11929 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11930 {
11931 PyThreadState* __tstate = wxPyBeginAllowThreads();
11932 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11933 wxPyEndAllowThreads(__tstate);
11934 if (PyErr_Occurred()) SWIG_fail;
11935 }
11936 {
11937 #if wxUSE_UNICODE
11938 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11939 #else
11940 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11941 #endif
11942 }
11943 return resultobj;
11944 fail:
11945 return NULL;
11946 }
11947
11948
11949 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11950 PyObject *resultobj = 0;
11951 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11952 wxFontFamily result;
11953 void *argp1 = 0 ;
11954 int res1 = 0 ;
11955 PyObject *swig_obj[1] ;
11956
11957 if (!args) SWIG_fail;
11958 swig_obj[0] = args;
11959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11960 if (!SWIG_IsOK(res1)) {
11961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11962 }
11963 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11964 {
11965 PyThreadState* __tstate = wxPyBeginAllowThreads();
11966 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 resultobj = SWIG_From_int(static_cast< int >(result));
11971 return resultobj;
11972 fail:
11973 return NULL;
11974 }
11975
11976
11977 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11978 PyObject *resultobj = 0;
11979 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11980 wxFontEncoding result;
11981 void *argp1 = 0 ;
11982 int res1 = 0 ;
11983 PyObject *swig_obj[1] ;
11984
11985 if (!args) SWIG_fail;
11986 swig_obj[0] = args;
11987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11988 if (!SWIG_IsOK(res1)) {
11989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11990 }
11991 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11992 {
11993 PyThreadState* __tstate = wxPyBeginAllowThreads();
11994 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11995 wxPyEndAllowThreads(__tstate);
11996 if (PyErr_Occurred()) SWIG_fail;
11997 }
11998 resultobj = SWIG_From_int(static_cast< int >(result));
11999 return resultobj;
12000 fail:
12001 return NULL;
12002 }
12003
12004
12005 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12006 PyObject *resultobj = 0;
12007 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12008 int arg2 ;
12009 void *argp1 = 0 ;
12010 int res1 = 0 ;
12011 int val2 ;
12012 int ecode2 = 0 ;
12013 PyObject * obj0 = 0 ;
12014 PyObject * obj1 = 0 ;
12015 char * kwnames[] = {
12016 (char *) "self",(char *) "pointsize", NULL
12017 };
12018
12019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12021 if (!SWIG_IsOK(res1)) {
12022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12023 }
12024 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12025 ecode2 = SWIG_AsVal_int(obj1, &val2);
12026 if (!SWIG_IsOK(ecode2)) {
12027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12028 }
12029 arg2 = static_cast< int >(val2);
12030 {
12031 PyThreadState* __tstate = wxPyBeginAllowThreads();
12032 (arg1)->SetPointSize(arg2);
12033 wxPyEndAllowThreads(__tstate);
12034 if (PyErr_Occurred()) SWIG_fail;
12035 }
12036 resultobj = SWIG_Py_Void();
12037 return resultobj;
12038 fail:
12039 return NULL;
12040 }
12041
12042
12043 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12044 PyObject *resultobj = 0;
12045 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12046 wxFontStyle arg2 ;
12047 void *argp1 = 0 ;
12048 int res1 = 0 ;
12049 int val2 ;
12050 int ecode2 = 0 ;
12051 PyObject * obj0 = 0 ;
12052 PyObject * obj1 = 0 ;
12053 char * kwnames[] = {
12054 (char *) "self",(char *) "style", NULL
12055 };
12056
12057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12059 if (!SWIG_IsOK(res1)) {
12060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12061 }
12062 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12063 ecode2 = SWIG_AsVal_int(obj1, &val2);
12064 if (!SWIG_IsOK(ecode2)) {
12065 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12066 }
12067 arg2 = static_cast< wxFontStyle >(val2);
12068 {
12069 PyThreadState* __tstate = wxPyBeginAllowThreads();
12070 (arg1)->SetStyle(arg2);
12071 wxPyEndAllowThreads(__tstate);
12072 if (PyErr_Occurred()) SWIG_fail;
12073 }
12074 resultobj = SWIG_Py_Void();
12075 return resultobj;
12076 fail:
12077 return NULL;
12078 }
12079
12080
12081 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12082 PyObject *resultobj = 0;
12083 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12084 wxFontWeight arg2 ;
12085 void *argp1 = 0 ;
12086 int res1 = 0 ;
12087 int val2 ;
12088 int ecode2 = 0 ;
12089 PyObject * obj0 = 0 ;
12090 PyObject * obj1 = 0 ;
12091 char * kwnames[] = {
12092 (char *) "self",(char *) "weight", NULL
12093 };
12094
12095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12097 if (!SWIG_IsOK(res1)) {
12098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12099 }
12100 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12101 ecode2 = SWIG_AsVal_int(obj1, &val2);
12102 if (!SWIG_IsOK(ecode2)) {
12103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12104 }
12105 arg2 = static_cast< wxFontWeight >(val2);
12106 {
12107 PyThreadState* __tstate = wxPyBeginAllowThreads();
12108 (arg1)->SetWeight(arg2);
12109 wxPyEndAllowThreads(__tstate);
12110 if (PyErr_Occurred()) SWIG_fail;
12111 }
12112 resultobj = SWIG_Py_Void();
12113 return resultobj;
12114 fail:
12115 return NULL;
12116 }
12117
12118
12119 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12120 PyObject *resultobj = 0;
12121 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12122 bool arg2 ;
12123 void *argp1 = 0 ;
12124 int res1 = 0 ;
12125 bool val2 ;
12126 int ecode2 = 0 ;
12127 PyObject * obj0 = 0 ;
12128 PyObject * obj1 = 0 ;
12129 char * kwnames[] = {
12130 (char *) "self",(char *) "underlined", NULL
12131 };
12132
12133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12135 if (!SWIG_IsOK(res1)) {
12136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12137 }
12138 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12139 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12140 if (!SWIG_IsOK(ecode2)) {
12141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12142 }
12143 arg2 = static_cast< bool >(val2);
12144 {
12145 PyThreadState* __tstate = wxPyBeginAllowThreads();
12146 (arg1)->SetUnderlined(arg2);
12147 wxPyEndAllowThreads(__tstate);
12148 if (PyErr_Occurred()) SWIG_fail;
12149 }
12150 resultobj = SWIG_Py_Void();
12151 return resultobj;
12152 fail:
12153 return NULL;
12154 }
12155
12156
12157 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12158 PyObject *resultobj = 0;
12159 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12160 wxString arg2 ;
12161 bool result;
12162 void *argp1 = 0 ;
12163 int res1 = 0 ;
12164 PyObject * obj0 = 0 ;
12165 PyObject * obj1 = 0 ;
12166 char * kwnames[] = {
12167 (char *) "self",(char *) "facename", NULL
12168 };
12169
12170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12172 if (!SWIG_IsOK(res1)) {
12173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12174 }
12175 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12176 {
12177 wxString* sptr = wxString_in_helper(obj1);
12178 if (sptr == NULL) SWIG_fail;
12179 arg2 = *sptr;
12180 delete sptr;
12181 }
12182 {
12183 PyThreadState* __tstate = wxPyBeginAllowThreads();
12184 result = (bool)(arg1)->SetFaceName(arg2);
12185 wxPyEndAllowThreads(__tstate);
12186 if (PyErr_Occurred()) SWIG_fail;
12187 }
12188 {
12189 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12190 }
12191 return resultobj;
12192 fail:
12193 return NULL;
12194 }
12195
12196
12197 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12198 PyObject *resultobj = 0;
12199 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12200 wxFontFamily arg2 ;
12201 void *argp1 = 0 ;
12202 int res1 = 0 ;
12203 int val2 ;
12204 int ecode2 = 0 ;
12205 PyObject * obj0 = 0 ;
12206 PyObject * obj1 = 0 ;
12207 char * kwnames[] = {
12208 (char *) "self",(char *) "family", NULL
12209 };
12210
12211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12213 if (!SWIG_IsOK(res1)) {
12214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12215 }
12216 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12217 ecode2 = SWIG_AsVal_int(obj1, &val2);
12218 if (!SWIG_IsOK(ecode2)) {
12219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12220 }
12221 arg2 = static_cast< wxFontFamily >(val2);
12222 {
12223 PyThreadState* __tstate = wxPyBeginAllowThreads();
12224 (arg1)->SetFamily(arg2);
12225 wxPyEndAllowThreads(__tstate);
12226 if (PyErr_Occurred()) SWIG_fail;
12227 }
12228 resultobj = SWIG_Py_Void();
12229 return resultobj;
12230 fail:
12231 return NULL;
12232 }
12233
12234
12235 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12236 PyObject *resultobj = 0;
12237 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12238 wxFontEncoding arg2 ;
12239 void *argp1 = 0 ;
12240 int res1 = 0 ;
12241 int val2 ;
12242 int ecode2 = 0 ;
12243 PyObject * obj0 = 0 ;
12244 PyObject * obj1 = 0 ;
12245 char * kwnames[] = {
12246 (char *) "self",(char *) "encoding", NULL
12247 };
12248
12249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12251 if (!SWIG_IsOK(res1)) {
12252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12253 }
12254 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12255 ecode2 = SWIG_AsVal_int(obj1, &val2);
12256 if (!SWIG_IsOK(ecode2)) {
12257 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12258 }
12259 arg2 = static_cast< wxFontEncoding >(val2);
12260 {
12261 PyThreadState* __tstate = wxPyBeginAllowThreads();
12262 (arg1)->SetEncoding(arg2);
12263 wxPyEndAllowThreads(__tstate);
12264 if (PyErr_Occurred()) SWIG_fail;
12265 }
12266 resultobj = SWIG_Py_Void();
12267 return resultobj;
12268 fail:
12269 return NULL;
12270 }
12271
12272
12273 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12274 PyObject *resultobj = 0;
12275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12276 wxString *arg2 = 0 ;
12277 bool result;
12278 void *argp1 = 0 ;
12279 int res1 = 0 ;
12280 bool temp2 = false ;
12281 PyObject * obj0 = 0 ;
12282 PyObject * obj1 = 0 ;
12283 char * kwnames[] = {
12284 (char *) "self",(char *) "s", NULL
12285 };
12286
12287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12289 if (!SWIG_IsOK(res1)) {
12290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12291 }
12292 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12293 {
12294 arg2 = wxString_in_helper(obj1);
12295 if (arg2 == NULL) SWIG_fail;
12296 temp2 = true;
12297 }
12298 {
12299 PyThreadState* __tstate = wxPyBeginAllowThreads();
12300 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12301 wxPyEndAllowThreads(__tstate);
12302 if (PyErr_Occurred()) SWIG_fail;
12303 }
12304 {
12305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12306 }
12307 {
12308 if (temp2)
12309 delete arg2;
12310 }
12311 return resultobj;
12312 fail:
12313 {
12314 if (temp2)
12315 delete arg2;
12316 }
12317 return NULL;
12318 }
12319
12320
12321 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12322 PyObject *resultobj = 0;
12323 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12324 wxString result;
12325 void *argp1 = 0 ;
12326 int res1 = 0 ;
12327 PyObject *swig_obj[1] ;
12328
12329 if (!args) SWIG_fail;
12330 swig_obj[0] = args;
12331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12332 if (!SWIG_IsOK(res1)) {
12333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12334 }
12335 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12336 {
12337 PyThreadState* __tstate = wxPyBeginAllowThreads();
12338 result = ((wxNativeFontInfo const *)arg1)->ToString();
12339 wxPyEndAllowThreads(__tstate);
12340 if (PyErr_Occurred()) SWIG_fail;
12341 }
12342 {
12343 #if wxUSE_UNICODE
12344 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12345 #else
12346 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12347 #endif
12348 }
12349 return resultobj;
12350 fail:
12351 return NULL;
12352 }
12353
12354
12355 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12356 PyObject *resultobj = 0;
12357 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12358 wxString result;
12359 void *argp1 = 0 ;
12360 int res1 = 0 ;
12361 PyObject *swig_obj[1] ;
12362
12363 if (!args) SWIG_fail;
12364 swig_obj[0] = args;
12365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12366 if (!SWIG_IsOK(res1)) {
12367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12368 }
12369 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12370 {
12371 PyThreadState* __tstate = wxPyBeginAllowThreads();
12372 result = wxNativeFontInfo___str__(arg1);
12373 wxPyEndAllowThreads(__tstate);
12374 if (PyErr_Occurred()) SWIG_fail;
12375 }
12376 {
12377 #if wxUSE_UNICODE
12378 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12379 #else
12380 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12381 #endif
12382 }
12383 return resultobj;
12384 fail:
12385 return NULL;
12386 }
12387
12388
12389 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12390 PyObject *resultobj = 0;
12391 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12392 wxString *arg2 = 0 ;
12393 bool result;
12394 void *argp1 = 0 ;
12395 int res1 = 0 ;
12396 bool temp2 = false ;
12397 PyObject * obj0 = 0 ;
12398 PyObject * obj1 = 0 ;
12399 char * kwnames[] = {
12400 (char *) "self",(char *) "s", NULL
12401 };
12402
12403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12405 if (!SWIG_IsOK(res1)) {
12406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12407 }
12408 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12409 {
12410 arg2 = wxString_in_helper(obj1);
12411 if (arg2 == NULL) SWIG_fail;
12412 temp2 = true;
12413 }
12414 {
12415 PyThreadState* __tstate = wxPyBeginAllowThreads();
12416 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12417 wxPyEndAllowThreads(__tstate);
12418 if (PyErr_Occurred()) SWIG_fail;
12419 }
12420 {
12421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12422 }
12423 {
12424 if (temp2)
12425 delete arg2;
12426 }
12427 return resultobj;
12428 fail:
12429 {
12430 if (temp2)
12431 delete arg2;
12432 }
12433 return NULL;
12434 }
12435
12436
12437 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12438 PyObject *resultobj = 0;
12439 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12440 wxString result;
12441 void *argp1 = 0 ;
12442 int res1 = 0 ;
12443 PyObject *swig_obj[1] ;
12444
12445 if (!args) SWIG_fail;
12446 swig_obj[0] = args;
12447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12448 if (!SWIG_IsOK(res1)) {
12449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12450 }
12451 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12452 {
12453 PyThreadState* __tstate = wxPyBeginAllowThreads();
12454 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12455 wxPyEndAllowThreads(__tstate);
12456 if (PyErr_Occurred()) SWIG_fail;
12457 }
12458 {
12459 #if wxUSE_UNICODE
12460 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12461 #else
12462 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12463 #endif
12464 }
12465 return resultobj;
12466 fail:
12467 return NULL;
12468 }
12469
12470
12471 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12472 PyObject *obj;
12473 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12474 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12475 return SWIG_Py_Void();
12476 }
12477
12478 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12479 return SWIG_Python_InitShadowInstance(args);
12480 }
12481
12482 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12483 PyObject *resultobj = 0;
12484 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12485 wxString *arg2 = (wxString *) 0 ;
12486 void *argp1 = 0 ;
12487 int res1 = 0 ;
12488 bool temp2 = false ;
12489 PyObject *swig_obj[2] ;
12490
12491 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12493 if (!SWIG_IsOK(res1)) {
12494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12495 }
12496 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12497 {
12498 arg2 = wxString_in_helper(swig_obj[1]);
12499 if (arg2 == NULL) SWIG_fail;
12500 temp2 = true;
12501 }
12502 if (arg1) (arg1)->facename = *arg2;
12503
12504 resultobj = SWIG_Py_Void();
12505 {
12506 if (temp2)
12507 delete arg2;
12508 }
12509 return resultobj;
12510 fail:
12511 {
12512 if (temp2)
12513 delete arg2;
12514 }
12515 return NULL;
12516 }
12517
12518
12519 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12520 PyObject *resultobj = 0;
12521 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12522 wxString *result = 0 ;
12523 void *argp1 = 0 ;
12524 int res1 = 0 ;
12525 PyObject *swig_obj[1] ;
12526
12527 if (!args) SWIG_fail;
12528 swig_obj[0] = args;
12529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12532 }
12533 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12534 result = (wxString *)& ((arg1)->facename);
12535 {
12536 #if wxUSE_UNICODE
12537 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12538 #else
12539 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12540 #endif
12541 }
12542 return resultobj;
12543 fail:
12544 return NULL;
12545 }
12546
12547
12548 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12549 PyObject *resultobj = 0;
12550 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12551 wxFontEncoding arg2 ;
12552 void *argp1 = 0 ;
12553 int res1 = 0 ;
12554 int val2 ;
12555 int ecode2 = 0 ;
12556 PyObject *swig_obj[2] ;
12557
12558 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12560 if (!SWIG_IsOK(res1)) {
12561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12562 }
12563 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12564 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12565 if (!SWIG_IsOK(ecode2)) {
12566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12567 }
12568 arg2 = static_cast< wxFontEncoding >(val2);
12569 if (arg1) (arg1)->encoding = arg2;
12570
12571 resultobj = SWIG_Py_Void();
12572 return resultobj;
12573 fail:
12574 return NULL;
12575 }
12576
12577
12578 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12579 PyObject *resultobj = 0;
12580 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12581 wxFontEncoding result;
12582 void *argp1 = 0 ;
12583 int res1 = 0 ;
12584 PyObject *swig_obj[1] ;
12585
12586 if (!args) SWIG_fail;
12587 swig_obj[0] = args;
12588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12589 if (!SWIG_IsOK(res1)) {
12590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12591 }
12592 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12593 result = (wxFontEncoding) ((arg1)->encoding);
12594 resultobj = SWIG_From_int(static_cast< int >(result));
12595 return resultobj;
12596 fail:
12597 return NULL;
12598 }
12599
12600
12601 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12602 PyObject *resultobj = 0;
12603 wxNativeEncodingInfo *result = 0 ;
12604
12605 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12613 return resultobj;
12614 fail:
12615 return NULL;
12616 }
12617
12618
12619 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12620 PyObject *resultobj = 0;
12621 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12622 void *argp1 = 0 ;
12623 int res1 = 0 ;
12624 PyObject *swig_obj[1] ;
12625
12626 if (!args) SWIG_fail;
12627 swig_obj[0] = args;
12628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12629 if (!SWIG_IsOK(res1)) {
12630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12631 }
12632 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12633 {
12634 PyThreadState* __tstate = wxPyBeginAllowThreads();
12635 delete arg1;
12636
12637 wxPyEndAllowThreads(__tstate);
12638 if (PyErr_Occurred()) SWIG_fail;
12639 }
12640 resultobj = SWIG_Py_Void();
12641 return resultobj;
12642 fail:
12643 return NULL;
12644 }
12645
12646
12647 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12648 PyObject *resultobj = 0;
12649 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12650 wxString *arg2 = 0 ;
12651 bool result;
12652 void *argp1 = 0 ;
12653 int res1 = 0 ;
12654 bool temp2 = false ;
12655 PyObject * obj0 = 0 ;
12656 PyObject * obj1 = 0 ;
12657 char * kwnames[] = {
12658 (char *) "self",(char *) "s", NULL
12659 };
12660
12661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12663 if (!SWIG_IsOK(res1)) {
12664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12665 }
12666 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12667 {
12668 arg2 = wxString_in_helper(obj1);
12669 if (arg2 == NULL) SWIG_fail;
12670 temp2 = true;
12671 }
12672 {
12673 PyThreadState* __tstate = wxPyBeginAllowThreads();
12674 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12675 wxPyEndAllowThreads(__tstate);
12676 if (PyErr_Occurred()) SWIG_fail;
12677 }
12678 {
12679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12680 }
12681 {
12682 if (temp2)
12683 delete arg2;
12684 }
12685 return resultobj;
12686 fail:
12687 {
12688 if (temp2)
12689 delete arg2;
12690 }
12691 return NULL;
12692 }
12693
12694
12695 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12696 PyObject *resultobj = 0;
12697 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12698 wxString result;
12699 void *argp1 = 0 ;
12700 int res1 = 0 ;
12701 PyObject *swig_obj[1] ;
12702
12703 if (!args) SWIG_fail;
12704 swig_obj[0] = args;
12705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12706 if (!SWIG_IsOK(res1)) {
12707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12708 }
12709 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12710 {
12711 PyThreadState* __tstate = wxPyBeginAllowThreads();
12712 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12713 wxPyEndAllowThreads(__tstate);
12714 if (PyErr_Occurred()) SWIG_fail;
12715 }
12716 {
12717 #if wxUSE_UNICODE
12718 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12719 #else
12720 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12721 #endif
12722 }
12723 return resultobj;
12724 fail:
12725 return NULL;
12726 }
12727
12728
12729 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12730 PyObject *obj;
12731 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12732 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12733 return SWIG_Py_Void();
12734 }
12735
12736 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12737 return SWIG_Python_InitShadowInstance(args);
12738 }
12739
12740 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12741 PyObject *resultobj = 0;
12742 wxFontEncoding arg1 ;
12743 wxNativeEncodingInfo *result = 0 ;
12744 int val1 ;
12745 int ecode1 = 0 ;
12746 PyObject * obj0 = 0 ;
12747 char * kwnames[] = {
12748 (char *) "encoding", NULL
12749 };
12750
12751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12752 ecode1 = SWIG_AsVal_int(obj0, &val1);
12753 if (!SWIG_IsOK(ecode1)) {
12754 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12755 }
12756 arg1 = static_cast< wxFontEncoding >(val1);
12757 {
12758 PyThreadState* __tstate = wxPyBeginAllowThreads();
12759 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12760 wxPyEndAllowThreads(__tstate);
12761 if (PyErr_Occurred()) SWIG_fail;
12762 }
12763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12764 return resultobj;
12765 fail:
12766 return NULL;
12767 }
12768
12769
12770 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12771 PyObject *resultobj = 0;
12772 wxNativeEncodingInfo *arg1 = 0 ;
12773 bool result;
12774 void *argp1 = 0 ;
12775 int res1 = 0 ;
12776 PyObject * obj0 = 0 ;
12777 char * kwnames[] = {
12778 (char *) "info", NULL
12779 };
12780
12781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12782 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12783 if (!SWIG_IsOK(res1)) {
12784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12785 }
12786 if (!argp1) {
12787 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12788 }
12789 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12790 {
12791 PyThreadState* __tstate = wxPyBeginAllowThreads();
12792 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12793 wxPyEndAllowThreads(__tstate);
12794 if (PyErr_Occurred()) SWIG_fail;
12795 }
12796 {
12797 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12798 }
12799 return resultobj;
12800 fail:
12801 return NULL;
12802 }
12803
12804
12805 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12806 PyObject *resultobj = 0;
12807 wxFontMapper *result = 0 ;
12808
12809 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12810 {
12811 PyThreadState* __tstate = wxPyBeginAllowThreads();
12812 result = (wxFontMapper *)new wxFontMapper();
12813 wxPyEndAllowThreads(__tstate);
12814 if (PyErr_Occurred()) SWIG_fail;
12815 }
12816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12817 return resultobj;
12818 fail:
12819 return NULL;
12820 }
12821
12822
12823 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12824 PyObject *resultobj = 0;
12825 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12826 void *argp1 = 0 ;
12827 int res1 = 0 ;
12828 PyObject *swig_obj[1] ;
12829
12830 if (!args) SWIG_fail;
12831 swig_obj[0] = args;
12832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12833 if (!SWIG_IsOK(res1)) {
12834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12835 }
12836 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12837 {
12838 PyThreadState* __tstate = wxPyBeginAllowThreads();
12839 delete arg1;
12840
12841 wxPyEndAllowThreads(__tstate);
12842 if (PyErr_Occurred()) SWIG_fail;
12843 }
12844 resultobj = SWIG_Py_Void();
12845 return resultobj;
12846 fail:
12847 return NULL;
12848 }
12849
12850
12851 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12852 PyObject *resultobj = 0;
12853 wxFontMapper *result = 0 ;
12854
12855 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12856 {
12857 PyThreadState* __tstate = wxPyBeginAllowThreads();
12858 result = (wxFontMapper *)wxFontMapper::Get();
12859 wxPyEndAllowThreads(__tstate);
12860 if (PyErr_Occurred()) SWIG_fail;
12861 }
12862 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12863 return resultobj;
12864 fail:
12865 return NULL;
12866 }
12867
12868
12869 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12870 PyObject *resultobj = 0;
12871 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12872 wxFontMapper *result = 0 ;
12873 void *argp1 = 0 ;
12874 int res1 = 0 ;
12875 PyObject * obj0 = 0 ;
12876 char * kwnames[] = {
12877 (char *) "mapper", NULL
12878 };
12879
12880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12882 if (!SWIG_IsOK(res1)) {
12883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12884 }
12885 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12886 {
12887 PyThreadState* __tstate = wxPyBeginAllowThreads();
12888 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12889 wxPyEndAllowThreads(__tstate);
12890 if (PyErr_Occurred()) SWIG_fail;
12891 }
12892 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12893 return resultobj;
12894 fail:
12895 return NULL;
12896 }
12897
12898
12899 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12900 PyObject *resultobj = 0;
12901 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12902 wxString *arg2 = 0 ;
12903 bool arg3 = (bool) true ;
12904 wxFontEncoding result;
12905 void *argp1 = 0 ;
12906 int res1 = 0 ;
12907 bool temp2 = false ;
12908 bool val3 ;
12909 int ecode3 = 0 ;
12910 PyObject * obj0 = 0 ;
12911 PyObject * obj1 = 0 ;
12912 PyObject * obj2 = 0 ;
12913 char * kwnames[] = {
12914 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12915 };
12916
12917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12919 if (!SWIG_IsOK(res1)) {
12920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12921 }
12922 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12923 {
12924 arg2 = wxString_in_helper(obj1);
12925 if (arg2 == NULL) SWIG_fail;
12926 temp2 = true;
12927 }
12928 if (obj2) {
12929 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12930 if (!SWIG_IsOK(ecode3)) {
12931 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12932 }
12933 arg3 = static_cast< bool >(val3);
12934 }
12935 {
12936 PyThreadState* __tstate = wxPyBeginAllowThreads();
12937 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12938 wxPyEndAllowThreads(__tstate);
12939 if (PyErr_Occurred()) SWIG_fail;
12940 }
12941 resultobj = SWIG_From_int(static_cast< int >(result));
12942 {
12943 if (temp2)
12944 delete arg2;
12945 }
12946 return resultobj;
12947 fail:
12948 {
12949 if (temp2)
12950 delete arg2;
12951 }
12952 return NULL;
12953 }
12954
12955
12956 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12957 PyObject *resultobj = 0;
12958 size_t result;
12959
12960 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12961 {
12962 PyThreadState* __tstate = wxPyBeginAllowThreads();
12963 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12964 wxPyEndAllowThreads(__tstate);
12965 if (PyErr_Occurred()) SWIG_fail;
12966 }
12967 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12968 return resultobj;
12969 fail:
12970 return NULL;
12971 }
12972
12973
12974 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12975 PyObject *resultobj = 0;
12976 size_t arg1 ;
12977 wxFontEncoding result;
12978 size_t val1 ;
12979 int ecode1 = 0 ;
12980 PyObject * obj0 = 0 ;
12981 char * kwnames[] = {
12982 (char *) "n", NULL
12983 };
12984
12985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12986 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12987 if (!SWIG_IsOK(ecode1)) {
12988 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12989 }
12990 arg1 = static_cast< size_t >(val1);
12991 {
12992 PyThreadState* __tstate = wxPyBeginAllowThreads();
12993 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12994 wxPyEndAllowThreads(__tstate);
12995 if (PyErr_Occurred()) SWIG_fail;
12996 }
12997 resultobj = SWIG_From_int(static_cast< int >(result));
12998 return resultobj;
12999 fail:
13000 return NULL;
13001 }
13002
13003
13004 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13005 PyObject *resultobj = 0;
13006 wxFontEncoding arg1 ;
13007 wxString result;
13008 int val1 ;
13009 int ecode1 = 0 ;
13010 PyObject * obj0 = 0 ;
13011 char * kwnames[] = {
13012 (char *) "encoding", NULL
13013 };
13014
13015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13016 ecode1 = SWIG_AsVal_int(obj0, &val1);
13017 if (!SWIG_IsOK(ecode1)) {
13018 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13019 }
13020 arg1 = static_cast< wxFontEncoding >(val1);
13021 {
13022 PyThreadState* __tstate = wxPyBeginAllowThreads();
13023 result = wxFontMapper::GetEncodingName(arg1);
13024 wxPyEndAllowThreads(__tstate);
13025 if (PyErr_Occurred()) SWIG_fail;
13026 }
13027 {
13028 #if wxUSE_UNICODE
13029 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13030 #else
13031 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13032 #endif
13033 }
13034 return resultobj;
13035 fail:
13036 return NULL;
13037 }
13038
13039
13040 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13041 PyObject *resultobj = 0;
13042 wxFontEncoding arg1 ;
13043 wxString result;
13044 int val1 ;
13045 int ecode1 = 0 ;
13046 PyObject * obj0 = 0 ;
13047 char * kwnames[] = {
13048 (char *) "encoding", NULL
13049 };
13050
13051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13052 ecode1 = SWIG_AsVal_int(obj0, &val1);
13053 if (!SWIG_IsOK(ecode1)) {
13054 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13055 }
13056 arg1 = static_cast< wxFontEncoding >(val1);
13057 {
13058 PyThreadState* __tstate = wxPyBeginAllowThreads();
13059 result = wxFontMapper::GetEncodingDescription(arg1);
13060 wxPyEndAllowThreads(__tstate);
13061 if (PyErr_Occurred()) SWIG_fail;
13062 }
13063 {
13064 #if wxUSE_UNICODE
13065 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13066 #else
13067 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13068 #endif
13069 }
13070 return resultobj;
13071 fail:
13072 return NULL;
13073 }
13074
13075
13076 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13077 PyObject *resultobj = 0;
13078 wxString *arg1 = 0 ;
13079 wxFontEncoding result;
13080 bool temp1 = false ;
13081 PyObject * obj0 = 0 ;
13082 char * kwnames[] = {
13083 (char *) "name", NULL
13084 };
13085
13086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13087 {
13088 arg1 = wxString_in_helper(obj0);
13089 if (arg1 == NULL) SWIG_fail;
13090 temp1 = true;
13091 }
13092 {
13093 PyThreadState* __tstate = wxPyBeginAllowThreads();
13094 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13095 wxPyEndAllowThreads(__tstate);
13096 if (PyErr_Occurred()) SWIG_fail;
13097 }
13098 resultobj = SWIG_From_int(static_cast< int >(result));
13099 {
13100 if (temp1)
13101 delete arg1;
13102 }
13103 return resultobj;
13104 fail:
13105 {
13106 if (temp1)
13107 delete arg1;
13108 }
13109 return NULL;
13110 }
13111
13112
13113 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13114 PyObject *resultobj = 0;
13115 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13116 wxString *arg2 = 0 ;
13117 void *argp1 = 0 ;
13118 int res1 = 0 ;
13119 bool temp2 = false ;
13120 PyObject * obj0 = 0 ;
13121 PyObject * obj1 = 0 ;
13122 char * kwnames[] = {
13123 (char *) "self",(char *) "prefix", NULL
13124 };
13125
13126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13128 if (!SWIG_IsOK(res1)) {
13129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13130 }
13131 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13132 {
13133 arg2 = wxString_in_helper(obj1);
13134 if (arg2 == NULL) SWIG_fail;
13135 temp2 = true;
13136 }
13137 {
13138 PyThreadState* __tstate = wxPyBeginAllowThreads();
13139 (arg1)->SetConfigPath((wxString const &)*arg2);
13140 wxPyEndAllowThreads(__tstate);
13141 if (PyErr_Occurred()) SWIG_fail;
13142 }
13143 resultobj = SWIG_Py_Void();
13144 {
13145 if (temp2)
13146 delete arg2;
13147 }
13148 return resultobj;
13149 fail:
13150 {
13151 if (temp2)
13152 delete arg2;
13153 }
13154 return NULL;
13155 }
13156
13157
13158 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13159 PyObject *resultobj = 0;
13160 wxString result;
13161
13162 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13163 {
13164 PyThreadState* __tstate = wxPyBeginAllowThreads();
13165 result = wxFontMapper::GetDefaultConfigPath();
13166 wxPyEndAllowThreads(__tstate);
13167 if (PyErr_Occurred()) SWIG_fail;
13168 }
13169 {
13170 #if wxUSE_UNICODE
13171 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13172 #else
13173 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13174 #endif
13175 }
13176 return resultobj;
13177 fail:
13178 return NULL;
13179 }
13180
13181
13182 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13183 PyObject *resultobj = 0;
13184 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13185 wxFontEncoding arg2 ;
13186 wxString const &arg3_defvalue = wxPyEmptyString ;
13187 wxString *arg3 = (wxString *) &arg3_defvalue ;
13188 bool arg4 = (bool) true ;
13189 PyObject *result = 0 ;
13190 void *argp1 = 0 ;
13191 int res1 = 0 ;
13192 int val2 ;
13193 int ecode2 = 0 ;
13194 bool temp3 = false ;
13195 bool val4 ;
13196 int ecode4 = 0 ;
13197 PyObject * obj0 = 0 ;
13198 PyObject * obj1 = 0 ;
13199 PyObject * obj2 = 0 ;
13200 PyObject * obj3 = 0 ;
13201 char * kwnames[] = {
13202 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13203 };
13204
13205 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13206 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13207 if (!SWIG_IsOK(res1)) {
13208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13209 }
13210 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13211 ecode2 = SWIG_AsVal_int(obj1, &val2);
13212 if (!SWIG_IsOK(ecode2)) {
13213 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13214 }
13215 arg2 = static_cast< wxFontEncoding >(val2);
13216 if (obj2) {
13217 {
13218 arg3 = wxString_in_helper(obj2);
13219 if (arg3 == NULL) SWIG_fail;
13220 temp3 = true;
13221 }
13222 }
13223 if (obj3) {
13224 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13225 if (!SWIG_IsOK(ecode4)) {
13226 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13227 }
13228 arg4 = static_cast< bool >(val4);
13229 }
13230 {
13231 PyThreadState* __tstate = wxPyBeginAllowThreads();
13232 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13233 wxPyEndAllowThreads(__tstate);
13234 if (PyErr_Occurred()) SWIG_fail;
13235 }
13236 resultobj = result;
13237 {
13238 if (temp3)
13239 delete arg3;
13240 }
13241 return resultobj;
13242 fail:
13243 {
13244 if (temp3)
13245 delete arg3;
13246 }
13247 return NULL;
13248 }
13249
13250
13251 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13252 PyObject *resultobj = 0;
13253 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13254 wxFontEncoding arg2 ;
13255 wxString const &arg3_defvalue = wxPyEmptyString ;
13256 wxString *arg3 = (wxString *) &arg3_defvalue ;
13257 bool result;
13258 void *argp1 = 0 ;
13259 int res1 = 0 ;
13260 int val2 ;
13261 int ecode2 = 0 ;
13262 bool temp3 = false ;
13263 PyObject * obj0 = 0 ;
13264 PyObject * obj1 = 0 ;
13265 PyObject * obj2 = 0 ;
13266 char * kwnames[] = {
13267 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13268 };
13269
13270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13272 if (!SWIG_IsOK(res1)) {
13273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13274 }
13275 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13276 ecode2 = SWIG_AsVal_int(obj1, &val2);
13277 if (!SWIG_IsOK(ecode2)) {
13278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13279 }
13280 arg2 = static_cast< wxFontEncoding >(val2);
13281 if (obj2) {
13282 {
13283 arg3 = wxString_in_helper(obj2);
13284 if (arg3 == NULL) SWIG_fail;
13285 temp3 = true;
13286 }
13287 }
13288 {
13289 PyThreadState* __tstate = wxPyBeginAllowThreads();
13290 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13291 wxPyEndAllowThreads(__tstate);
13292 if (PyErr_Occurred()) SWIG_fail;
13293 }
13294 {
13295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13296 }
13297 {
13298 if (temp3)
13299 delete arg3;
13300 }
13301 return resultobj;
13302 fail:
13303 {
13304 if (temp3)
13305 delete arg3;
13306 }
13307 return NULL;
13308 }
13309
13310
13311 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13312 PyObject *resultobj = 0;
13313 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13314 wxWindow *arg2 = (wxWindow *) 0 ;
13315 void *argp1 = 0 ;
13316 int res1 = 0 ;
13317 void *argp2 = 0 ;
13318 int res2 = 0 ;
13319 PyObject * obj0 = 0 ;
13320 PyObject * obj1 = 0 ;
13321 char * kwnames[] = {
13322 (char *) "self",(char *) "parent", NULL
13323 };
13324
13325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13327 if (!SWIG_IsOK(res1)) {
13328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13329 }
13330 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13331 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13332 if (!SWIG_IsOK(res2)) {
13333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13334 }
13335 arg2 = reinterpret_cast< wxWindow * >(argp2);
13336 {
13337 PyThreadState* __tstate = wxPyBeginAllowThreads();
13338 (arg1)->SetDialogParent(arg2);
13339 wxPyEndAllowThreads(__tstate);
13340 if (PyErr_Occurred()) SWIG_fail;
13341 }
13342 resultobj = SWIG_Py_Void();
13343 return resultobj;
13344 fail:
13345 return NULL;
13346 }
13347
13348
13349 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13350 PyObject *resultobj = 0;
13351 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13352 wxString *arg2 = 0 ;
13353 void *argp1 = 0 ;
13354 int res1 = 0 ;
13355 bool temp2 = false ;
13356 PyObject * obj0 = 0 ;
13357 PyObject * obj1 = 0 ;
13358 char * kwnames[] = {
13359 (char *) "self",(char *) "title", NULL
13360 };
13361
13362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13364 if (!SWIG_IsOK(res1)) {
13365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13366 }
13367 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13368 {
13369 arg2 = wxString_in_helper(obj1);
13370 if (arg2 == NULL) SWIG_fail;
13371 temp2 = true;
13372 }
13373 {
13374 PyThreadState* __tstate = wxPyBeginAllowThreads();
13375 (arg1)->SetDialogTitle((wxString const &)*arg2);
13376 wxPyEndAllowThreads(__tstate);
13377 if (PyErr_Occurred()) SWIG_fail;
13378 }
13379 resultobj = SWIG_Py_Void();
13380 {
13381 if (temp2)
13382 delete arg2;
13383 }
13384 return resultobj;
13385 fail:
13386 {
13387 if (temp2)
13388 delete arg2;
13389 }
13390 return NULL;
13391 }
13392
13393
13394 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13395 PyObject *obj;
13396 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13397 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13398 return SWIG_Py_Void();
13399 }
13400
13401 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13402 return SWIG_Python_InitShadowInstance(args);
13403 }
13404
13405 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13406 PyObject *resultobj = 0;
13407 int arg1 ;
13408 int arg2 ;
13409 int arg3 ;
13410 int arg4 ;
13411 bool arg5 = (bool) false ;
13412 wxString const &arg6_defvalue = wxPyEmptyString ;
13413 wxString *arg6 = (wxString *) &arg6_defvalue ;
13414 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13415 wxFont *result = 0 ;
13416 int val1 ;
13417 int ecode1 = 0 ;
13418 int val2 ;
13419 int ecode2 = 0 ;
13420 int val3 ;
13421 int ecode3 = 0 ;
13422 int val4 ;
13423 int ecode4 = 0 ;
13424 bool val5 ;
13425 int ecode5 = 0 ;
13426 bool temp6 = false ;
13427 int val7 ;
13428 int ecode7 = 0 ;
13429 PyObject * obj0 = 0 ;
13430 PyObject * obj1 = 0 ;
13431 PyObject * obj2 = 0 ;
13432 PyObject * obj3 = 0 ;
13433 PyObject * obj4 = 0 ;
13434 PyObject * obj5 = 0 ;
13435 PyObject * obj6 = 0 ;
13436 char * kwnames[] = {
13437 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13438 };
13439
13440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13441 ecode1 = SWIG_AsVal_int(obj0, &val1);
13442 if (!SWIG_IsOK(ecode1)) {
13443 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13444 }
13445 arg1 = static_cast< int >(val1);
13446 ecode2 = SWIG_AsVal_int(obj1, &val2);
13447 if (!SWIG_IsOK(ecode2)) {
13448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13449 }
13450 arg2 = static_cast< int >(val2);
13451 ecode3 = SWIG_AsVal_int(obj2, &val3);
13452 if (!SWIG_IsOK(ecode3)) {
13453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13454 }
13455 arg3 = static_cast< int >(val3);
13456 ecode4 = SWIG_AsVal_int(obj3, &val4);
13457 if (!SWIG_IsOK(ecode4)) {
13458 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13459 }
13460 arg4 = static_cast< int >(val4);
13461 if (obj4) {
13462 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13463 if (!SWIG_IsOK(ecode5)) {
13464 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13465 }
13466 arg5 = static_cast< bool >(val5);
13467 }
13468 if (obj5) {
13469 {
13470 arg6 = wxString_in_helper(obj5);
13471 if (arg6 == NULL) SWIG_fail;
13472 temp6 = true;
13473 }
13474 }
13475 if (obj6) {
13476 ecode7 = SWIG_AsVal_int(obj6, &val7);
13477 if (!SWIG_IsOK(ecode7)) {
13478 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13479 }
13480 arg7 = static_cast< wxFontEncoding >(val7);
13481 }
13482 {
13483 if (!wxPyCheckForApp()) SWIG_fail;
13484 PyThreadState* __tstate = wxPyBeginAllowThreads();
13485 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13486 wxPyEndAllowThreads(__tstate);
13487 if (PyErr_Occurred()) SWIG_fail;
13488 }
13489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13490 {
13491 if (temp6)
13492 delete arg6;
13493 }
13494 return resultobj;
13495 fail:
13496 {
13497 if (temp6)
13498 delete arg6;
13499 }
13500 return NULL;
13501 }
13502
13503
13504 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13505 PyObject *resultobj = 0;
13506 wxFont *arg1 = (wxFont *) 0 ;
13507 void *argp1 = 0 ;
13508 int res1 = 0 ;
13509 PyObject *swig_obj[1] ;
13510
13511 if (!args) SWIG_fail;
13512 swig_obj[0] = args;
13513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13514 if (!SWIG_IsOK(res1)) {
13515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13516 }
13517 arg1 = reinterpret_cast< wxFont * >(argp1);
13518 {
13519 PyThreadState* __tstate = wxPyBeginAllowThreads();
13520 delete arg1;
13521
13522 wxPyEndAllowThreads(__tstate);
13523 if (PyErr_Occurred()) SWIG_fail;
13524 }
13525 resultobj = SWIG_Py_Void();
13526 return resultobj;
13527 fail:
13528 return NULL;
13529 }
13530
13531
13532 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13533 PyObject *resultobj = 0;
13534 wxNativeFontInfo *arg1 = 0 ;
13535 wxFont *result = 0 ;
13536 void *argp1 = 0 ;
13537 int res1 = 0 ;
13538 PyObject * obj0 = 0 ;
13539 char * kwnames[] = {
13540 (char *) "info", NULL
13541 };
13542
13543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13544 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13545 if (!SWIG_IsOK(res1)) {
13546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13547 }
13548 if (!argp1) {
13549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13550 }
13551 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13552 {
13553 if (!wxPyCheckForApp()) SWIG_fail;
13554 PyThreadState* __tstate = wxPyBeginAllowThreads();
13555 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13556 wxPyEndAllowThreads(__tstate);
13557 if (PyErr_Occurred()) SWIG_fail;
13558 }
13559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13560 return resultobj;
13561 fail:
13562 return NULL;
13563 }
13564
13565
13566 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13567 PyObject *resultobj = 0;
13568 wxString *arg1 = 0 ;
13569 wxFont *result = 0 ;
13570 bool temp1 = false ;
13571 PyObject * obj0 = 0 ;
13572 char * kwnames[] = {
13573 (char *) "info", NULL
13574 };
13575
13576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13577 {
13578 arg1 = wxString_in_helper(obj0);
13579 if (arg1 == NULL) SWIG_fail;
13580 temp1 = true;
13581 }
13582 {
13583 if (!wxPyCheckForApp()) SWIG_fail;
13584 PyThreadState* __tstate = wxPyBeginAllowThreads();
13585 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13586 wxPyEndAllowThreads(__tstate);
13587 if (PyErr_Occurred()) SWIG_fail;
13588 }
13589 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13590 {
13591 if (temp1)
13592 delete arg1;
13593 }
13594 return resultobj;
13595 fail:
13596 {
13597 if (temp1)
13598 delete arg1;
13599 }
13600 return NULL;
13601 }
13602
13603
13604 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13605 PyObject *resultobj = 0;
13606 int arg1 ;
13607 wxFontFamily arg2 ;
13608 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13609 wxString const &arg4_defvalue = wxPyEmptyString ;
13610 wxString *arg4 = (wxString *) &arg4_defvalue ;
13611 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13612 wxFont *result = 0 ;
13613 int val1 ;
13614 int ecode1 = 0 ;
13615 int val2 ;
13616 int ecode2 = 0 ;
13617 int val3 ;
13618 int ecode3 = 0 ;
13619 bool temp4 = false ;
13620 int val5 ;
13621 int ecode5 = 0 ;
13622 PyObject * obj0 = 0 ;
13623 PyObject * obj1 = 0 ;
13624 PyObject * obj2 = 0 ;
13625 PyObject * obj3 = 0 ;
13626 PyObject * obj4 = 0 ;
13627 char * kwnames[] = {
13628 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13629 };
13630
13631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13632 ecode1 = SWIG_AsVal_int(obj0, &val1);
13633 if (!SWIG_IsOK(ecode1)) {
13634 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13635 }
13636 arg1 = static_cast< int >(val1);
13637 ecode2 = SWIG_AsVal_int(obj1, &val2);
13638 if (!SWIG_IsOK(ecode2)) {
13639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13640 }
13641 arg2 = static_cast< wxFontFamily >(val2);
13642 if (obj2) {
13643 ecode3 = SWIG_AsVal_int(obj2, &val3);
13644 if (!SWIG_IsOK(ecode3)) {
13645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13646 }
13647 arg3 = static_cast< int >(val3);
13648 }
13649 if (obj3) {
13650 {
13651 arg4 = wxString_in_helper(obj3);
13652 if (arg4 == NULL) SWIG_fail;
13653 temp4 = true;
13654 }
13655 }
13656 if (obj4) {
13657 ecode5 = SWIG_AsVal_int(obj4, &val5);
13658 if (!SWIG_IsOK(ecode5)) {
13659 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13660 }
13661 arg5 = static_cast< wxFontEncoding >(val5);
13662 }
13663 {
13664 if (!wxPyCheckForApp()) SWIG_fail;
13665 PyThreadState* __tstate = wxPyBeginAllowThreads();
13666 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13667 wxPyEndAllowThreads(__tstate);
13668 if (PyErr_Occurred()) SWIG_fail;
13669 }
13670 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13671 {
13672 if (temp4)
13673 delete arg4;
13674 }
13675 return resultobj;
13676 fail:
13677 {
13678 if (temp4)
13679 delete arg4;
13680 }
13681 return NULL;
13682 }
13683
13684
13685 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13686 PyObject *resultobj = 0;
13687 wxSize *arg1 = 0 ;
13688 int arg2 ;
13689 int arg3 ;
13690 int arg4 ;
13691 bool arg5 = (bool) false ;
13692 wxString const &arg6_defvalue = wxEmptyString ;
13693 wxString *arg6 = (wxString *) &arg6_defvalue ;
13694 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13695 wxFont *result = 0 ;
13696 wxSize temp1 ;
13697 int val2 ;
13698 int ecode2 = 0 ;
13699 int val3 ;
13700 int ecode3 = 0 ;
13701 int val4 ;
13702 int ecode4 = 0 ;
13703 bool val5 ;
13704 int ecode5 = 0 ;
13705 bool temp6 = false ;
13706 int val7 ;
13707 int ecode7 = 0 ;
13708 PyObject * obj0 = 0 ;
13709 PyObject * obj1 = 0 ;
13710 PyObject * obj2 = 0 ;
13711 PyObject * obj3 = 0 ;
13712 PyObject * obj4 = 0 ;
13713 PyObject * obj5 = 0 ;
13714 PyObject * obj6 = 0 ;
13715 char * kwnames[] = {
13716 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13717 };
13718
13719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13720 {
13721 arg1 = &temp1;
13722 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13723 }
13724 ecode2 = SWIG_AsVal_int(obj1, &val2);
13725 if (!SWIG_IsOK(ecode2)) {
13726 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13727 }
13728 arg2 = static_cast< int >(val2);
13729 ecode3 = SWIG_AsVal_int(obj2, &val3);
13730 if (!SWIG_IsOK(ecode3)) {
13731 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13732 }
13733 arg3 = static_cast< int >(val3);
13734 ecode4 = SWIG_AsVal_int(obj3, &val4);
13735 if (!SWIG_IsOK(ecode4)) {
13736 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13737 }
13738 arg4 = static_cast< int >(val4);
13739 if (obj4) {
13740 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13741 if (!SWIG_IsOK(ecode5)) {
13742 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13743 }
13744 arg5 = static_cast< bool >(val5);
13745 }
13746 if (obj5) {
13747 {
13748 arg6 = wxString_in_helper(obj5);
13749 if (arg6 == NULL) SWIG_fail;
13750 temp6 = true;
13751 }
13752 }
13753 if (obj6) {
13754 ecode7 = SWIG_AsVal_int(obj6, &val7);
13755 if (!SWIG_IsOK(ecode7)) {
13756 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13757 }
13758 arg7 = static_cast< wxFontEncoding >(val7);
13759 }
13760 {
13761 if (!wxPyCheckForApp()) SWIG_fail;
13762 PyThreadState* __tstate = wxPyBeginAllowThreads();
13763 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13764 wxPyEndAllowThreads(__tstate);
13765 if (PyErr_Occurred()) SWIG_fail;
13766 }
13767 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13768 {
13769 if (temp6)
13770 delete arg6;
13771 }
13772 return resultobj;
13773 fail:
13774 {
13775 if (temp6)
13776 delete arg6;
13777 }
13778 return NULL;
13779 }
13780
13781
13782 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13783 PyObject *resultobj = 0;
13784 wxSize *arg1 = 0 ;
13785 wxFontFamily arg2 ;
13786 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13787 wxString const &arg4_defvalue = wxEmptyString ;
13788 wxString *arg4 = (wxString *) &arg4_defvalue ;
13789 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13790 wxFont *result = 0 ;
13791 wxSize temp1 ;
13792 int val2 ;
13793 int ecode2 = 0 ;
13794 int val3 ;
13795 int ecode3 = 0 ;
13796 bool temp4 = false ;
13797 int val5 ;
13798 int ecode5 = 0 ;
13799 PyObject * obj0 = 0 ;
13800 PyObject * obj1 = 0 ;
13801 PyObject * obj2 = 0 ;
13802 PyObject * obj3 = 0 ;
13803 PyObject * obj4 = 0 ;
13804 char * kwnames[] = {
13805 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13806 };
13807
13808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13809 {
13810 arg1 = &temp1;
13811 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13812 }
13813 ecode2 = SWIG_AsVal_int(obj1, &val2);
13814 if (!SWIG_IsOK(ecode2)) {
13815 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13816 }
13817 arg2 = static_cast< wxFontFamily >(val2);
13818 if (obj2) {
13819 ecode3 = SWIG_AsVal_int(obj2, &val3);
13820 if (!SWIG_IsOK(ecode3)) {
13821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13822 }
13823 arg3 = static_cast< int >(val3);
13824 }
13825 if (obj3) {
13826 {
13827 arg4 = wxString_in_helper(obj3);
13828 if (arg4 == NULL) SWIG_fail;
13829 temp4 = true;
13830 }
13831 }
13832 if (obj4) {
13833 ecode5 = SWIG_AsVal_int(obj4, &val5);
13834 if (!SWIG_IsOK(ecode5)) {
13835 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13836 }
13837 arg5 = static_cast< wxFontEncoding >(val5);
13838 }
13839 {
13840 if (!wxPyCheckForApp()) SWIG_fail;
13841 PyThreadState* __tstate = wxPyBeginAllowThreads();
13842 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13843 wxPyEndAllowThreads(__tstate);
13844 if (PyErr_Occurred()) SWIG_fail;
13845 }
13846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13847 {
13848 if (temp4)
13849 delete arg4;
13850 }
13851 return resultobj;
13852 fail:
13853 {
13854 if (temp4)
13855 delete arg4;
13856 }
13857 return NULL;
13858 }
13859
13860
13861 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13862 PyObject *resultobj = 0;
13863 wxFont *arg1 = (wxFont *) 0 ;
13864 bool result;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 PyObject *swig_obj[1] ;
13868
13869 if (!args) SWIG_fail;
13870 swig_obj[0] = args;
13871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13872 if (!SWIG_IsOK(res1)) {
13873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
13874 }
13875 arg1 = reinterpret_cast< wxFont * >(argp1);
13876 {
13877 PyThreadState* __tstate = wxPyBeginAllowThreads();
13878 result = (bool)((wxFont const *)arg1)->IsOk();
13879 wxPyEndAllowThreads(__tstate);
13880 if (PyErr_Occurred()) SWIG_fail;
13881 }
13882 {
13883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13884 }
13885 return resultobj;
13886 fail:
13887 return NULL;
13888 }
13889
13890
13891 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13892 PyObject *resultobj = 0;
13893 wxFont *arg1 = (wxFont *) 0 ;
13894 wxFont *arg2 = (wxFont *) 0 ;
13895 bool result;
13896 void *argp1 = 0 ;
13897 int res1 = 0 ;
13898 void *argp2 = 0 ;
13899 int res2 = 0 ;
13900 PyObject * obj0 = 0 ;
13901 PyObject * obj1 = 0 ;
13902 char * kwnames[] = {
13903 (char *) "self",(char *) "other", NULL
13904 };
13905
13906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13908 if (!SWIG_IsOK(res1)) {
13909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13910 }
13911 arg1 = reinterpret_cast< wxFont * >(argp1);
13912 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13913 if (!SWIG_IsOK(res2)) {
13914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13915 }
13916 arg2 = reinterpret_cast< wxFont * >(argp2);
13917 {
13918 PyThreadState* __tstate = wxPyBeginAllowThreads();
13919 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13920 wxPyEndAllowThreads(__tstate);
13921 if (PyErr_Occurred()) SWIG_fail;
13922 }
13923 {
13924 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13925 }
13926 return resultobj;
13927 fail:
13928 return NULL;
13929 }
13930
13931
13932 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13933 PyObject *resultobj = 0;
13934 wxFont *arg1 = (wxFont *) 0 ;
13935 wxFont *arg2 = (wxFont *) 0 ;
13936 bool result;
13937 void *argp1 = 0 ;
13938 int res1 = 0 ;
13939 void *argp2 = 0 ;
13940 int res2 = 0 ;
13941 PyObject * obj0 = 0 ;
13942 PyObject * obj1 = 0 ;
13943 char * kwnames[] = {
13944 (char *) "self",(char *) "other", NULL
13945 };
13946
13947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13949 if (!SWIG_IsOK(res1)) {
13950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13951 }
13952 arg1 = reinterpret_cast< wxFont * >(argp1);
13953 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13954 if (!SWIG_IsOK(res2)) {
13955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13956 }
13957 arg2 = reinterpret_cast< wxFont * >(argp2);
13958 {
13959 PyThreadState* __tstate = wxPyBeginAllowThreads();
13960 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13961 wxPyEndAllowThreads(__tstate);
13962 if (PyErr_Occurred()) SWIG_fail;
13963 }
13964 {
13965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13966 }
13967 return resultobj;
13968 fail:
13969 return NULL;
13970 }
13971
13972
13973 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13974 PyObject *resultobj = 0;
13975 wxFont *arg1 = (wxFont *) 0 ;
13976 int result;
13977 void *argp1 = 0 ;
13978 int res1 = 0 ;
13979 PyObject *swig_obj[1] ;
13980
13981 if (!args) SWIG_fail;
13982 swig_obj[0] = args;
13983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13984 if (!SWIG_IsOK(res1)) {
13985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13986 }
13987 arg1 = reinterpret_cast< wxFont * >(argp1);
13988 {
13989 PyThreadState* __tstate = wxPyBeginAllowThreads();
13990 result = (int)((wxFont const *)arg1)->GetPointSize();
13991 wxPyEndAllowThreads(__tstate);
13992 if (PyErr_Occurred()) SWIG_fail;
13993 }
13994 resultobj = SWIG_From_int(static_cast< int >(result));
13995 return resultobj;
13996 fail:
13997 return NULL;
13998 }
13999
14000
14001 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14002 PyObject *resultobj = 0;
14003 wxFont *arg1 = (wxFont *) 0 ;
14004 wxSize result;
14005 void *argp1 = 0 ;
14006 int res1 = 0 ;
14007 PyObject *swig_obj[1] ;
14008
14009 if (!args) SWIG_fail;
14010 swig_obj[0] = args;
14011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14012 if (!SWIG_IsOK(res1)) {
14013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14014 }
14015 arg1 = reinterpret_cast< wxFont * >(argp1);
14016 {
14017 PyThreadState* __tstate = wxPyBeginAllowThreads();
14018 result = ((wxFont const *)arg1)->GetPixelSize();
14019 wxPyEndAllowThreads(__tstate);
14020 if (PyErr_Occurred()) SWIG_fail;
14021 }
14022 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14023 return resultobj;
14024 fail:
14025 return NULL;
14026 }
14027
14028
14029 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14030 PyObject *resultobj = 0;
14031 wxFont *arg1 = (wxFont *) 0 ;
14032 bool result;
14033 void *argp1 = 0 ;
14034 int res1 = 0 ;
14035 PyObject *swig_obj[1] ;
14036
14037 if (!args) SWIG_fail;
14038 swig_obj[0] = args;
14039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14040 if (!SWIG_IsOK(res1)) {
14041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14042 }
14043 arg1 = reinterpret_cast< wxFont * >(argp1);
14044 {
14045 PyThreadState* __tstate = wxPyBeginAllowThreads();
14046 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14047 wxPyEndAllowThreads(__tstate);
14048 if (PyErr_Occurred()) SWIG_fail;
14049 }
14050 {
14051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14052 }
14053 return resultobj;
14054 fail:
14055 return NULL;
14056 }
14057
14058
14059 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14060 PyObject *resultobj = 0;
14061 wxFont *arg1 = (wxFont *) 0 ;
14062 int result;
14063 void *argp1 = 0 ;
14064 int res1 = 0 ;
14065 PyObject *swig_obj[1] ;
14066
14067 if (!args) SWIG_fail;
14068 swig_obj[0] = args;
14069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14070 if (!SWIG_IsOK(res1)) {
14071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14072 }
14073 arg1 = reinterpret_cast< wxFont * >(argp1);
14074 {
14075 PyThreadState* __tstate = wxPyBeginAllowThreads();
14076 result = (int)((wxFont const *)arg1)->GetFamily();
14077 wxPyEndAllowThreads(__tstate);
14078 if (PyErr_Occurred()) SWIG_fail;
14079 }
14080 resultobj = SWIG_From_int(static_cast< int >(result));
14081 return resultobj;
14082 fail:
14083 return NULL;
14084 }
14085
14086
14087 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14088 PyObject *resultobj = 0;
14089 wxFont *arg1 = (wxFont *) 0 ;
14090 int result;
14091 void *argp1 = 0 ;
14092 int res1 = 0 ;
14093 PyObject *swig_obj[1] ;
14094
14095 if (!args) SWIG_fail;
14096 swig_obj[0] = args;
14097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14098 if (!SWIG_IsOK(res1)) {
14099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14100 }
14101 arg1 = reinterpret_cast< wxFont * >(argp1);
14102 {
14103 PyThreadState* __tstate = wxPyBeginAllowThreads();
14104 result = (int)((wxFont const *)arg1)->GetStyle();
14105 wxPyEndAllowThreads(__tstate);
14106 if (PyErr_Occurred()) SWIG_fail;
14107 }
14108 resultobj = SWIG_From_int(static_cast< int >(result));
14109 return resultobj;
14110 fail:
14111 return NULL;
14112 }
14113
14114
14115 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14116 PyObject *resultobj = 0;
14117 wxFont *arg1 = (wxFont *) 0 ;
14118 int result;
14119 void *argp1 = 0 ;
14120 int res1 = 0 ;
14121 PyObject *swig_obj[1] ;
14122
14123 if (!args) SWIG_fail;
14124 swig_obj[0] = args;
14125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14126 if (!SWIG_IsOK(res1)) {
14127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14128 }
14129 arg1 = reinterpret_cast< wxFont * >(argp1);
14130 {
14131 PyThreadState* __tstate = wxPyBeginAllowThreads();
14132 result = (int)((wxFont const *)arg1)->GetWeight();
14133 wxPyEndAllowThreads(__tstate);
14134 if (PyErr_Occurred()) SWIG_fail;
14135 }
14136 resultobj = SWIG_From_int(static_cast< int >(result));
14137 return resultobj;
14138 fail:
14139 return NULL;
14140 }
14141
14142
14143 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14144 PyObject *resultobj = 0;
14145 wxFont *arg1 = (wxFont *) 0 ;
14146 bool result;
14147 void *argp1 = 0 ;
14148 int res1 = 0 ;
14149 PyObject *swig_obj[1] ;
14150
14151 if (!args) SWIG_fail;
14152 swig_obj[0] = args;
14153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14154 if (!SWIG_IsOK(res1)) {
14155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14156 }
14157 arg1 = reinterpret_cast< wxFont * >(argp1);
14158 {
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14161 wxPyEndAllowThreads(__tstate);
14162 if (PyErr_Occurred()) SWIG_fail;
14163 }
14164 {
14165 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14166 }
14167 return resultobj;
14168 fail:
14169 return NULL;
14170 }
14171
14172
14173 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14174 PyObject *resultobj = 0;
14175 wxFont *arg1 = (wxFont *) 0 ;
14176 wxString result;
14177 void *argp1 = 0 ;
14178 int res1 = 0 ;
14179 PyObject *swig_obj[1] ;
14180
14181 if (!args) SWIG_fail;
14182 swig_obj[0] = args;
14183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14184 if (!SWIG_IsOK(res1)) {
14185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14186 }
14187 arg1 = reinterpret_cast< wxFont * >(argp1);
14188 {
14189 PyThreadState* __tstate = wxPyBeginAllowThreads();
14190 result = ((wxFont const *)arg1)->GetFaceName();
14191 wxPyEndAllowThreads(__tstate);
14192 if (PyErr_Occurred()) SWIG_fail;
14193 }
14194 {
14195 #if wxUSE_UNICODE
14196 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14197 #else
14198 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14199 #endif
14200 }
14201 return resultobj;
14202 fail:
14203 return NULL;
14204 }
14205
14206
14207 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14208 PyObject *resultobj = 0;
14209 wxFont *arg1 = (wxFont *) 0 ;
14210 wxFontEncoding result;
14211 void *argp1 = 0 ;
14212 int res1 = 0 ;
14213 PyObject *swig_obj[1] ;
14214
14215 if (!args) SWIG_fail;
14216 swig_obj[0] = args;
14217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14218 if (!SWIG_IsOK(res1)) {
14219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14220 }
14221 arg1 = reinterpret_cast< wxFont * >(argp1);
14222 {
14223 PyThreadState* __tstate = wxPyBeginAllowThreads();
14224 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14225 wxPyEndAllowThreads(__tstate);
14226 if (PyErr_Occurred()) SWIG_fail;
14227 }
14228 resultobj = SWIG_From_int(static_cast< int >(result));
14229 return resultobj;
14230 fail:
14231 return NULL;
14232 }
14233
14234
14235 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14236 PyObject *resultobj = 0;
14237 wxFont *arg1 = (wxFont *) 0 ;
14238 wxNativeFontInfo *result = 0 ;
14239 void *argp1 = 0 ;
14240 int res1 = 0 ;
14241 PyObject *swig_obj[1] ;
14242
14243 if (!args) SWIG_fail;
14244 swig_obj[0] = args;
14245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14246 if (!SWIG_IsOK(res1)) {
14247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14248 }
14249 arg1 = reinterpret_cast< wxFont * >(argp1);
14250 {
14251 PyThreadState* __tstate = wxPyBeginAllowThreads();
14252 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14253 wxPyEndAllowThreads(__tstate);
14254 if (PyErr_Occurred()) SWIG_fail;
14255 }
14256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14257 return resultobj;
14258 fail:
14259 return NULL;
14260 }
14261
14262
14263 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14264 PyObject *resultobj = 0;
14265 wxFont *arg1 = (wxFont *) 0 ;
14266 bool result;
14267 void *argp1 = 0 ;
14268 int res1 = 0 ;
14269 PyObject *swig_obj[1] ;
14270
14271 if (!args) SWIG_fail;
14272 swig_obj[0] = args;
14273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14274 if (!SWIG_IsOK(res1)) {
14275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14276 }
14277 arg1 = reinterpret_cast< wxFont * >(argp1);
14278 {
14279 PyThreadState* __tstate = wxPyBeginAllowThreads();
14280 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14281 wxPyEndAllowThreads(__tstate);
14282 if (PyErr_Occurred()) SWIG_fail;
14283 }
14284 {
14285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14286 }
14287 return resultobj;
14288 fail:
14289 return NULL;
14290 }
14291
14292
14293 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14294 PyObject *resultobj = 0;
14295 wxFont *arg1 = (wxFont *) 0 ;
14296 wxString result;
14297 void *argp1 = 0 ;
14298 int res1 = 0 ;
14299 PyObject *swig_obj[1] ;
14300
14301 if (!args) SWIG_fail;
14302 swig_obj[0] = args;
14303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14304 if (!SWIG_IsOK(res1)) {
14305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14306 }
14307 arg1 = reinterpret_cast< wxFont * >(argp1);
14308 {
14309 PyThreadState* __tstate = wxPyBeginAllowThreads();
14310 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14311 wxPyEndAllowThreads(__tstate);
14312 if (PyErr_Occurred()) SWIG_fail;
14313 }
14314 {
14315 #if wxUSE_UNICODE
14316 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14317 #else
14318 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14319 #endif
14320 }
14321 return resultobj;
14322 fail:
14323 return NULL;
14324 }
14325
14326
14327 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14328 PyObject *resultobj = 0;
14329 wxFont *arg1 = (wxFont *) 0 ;
14330 wxString result;
14331 void *argp1 = 0 ;
14332 int res1 = 0 ;
14333 PyObject *swig_obj[1] ;
14334
14335 if (!args) SWIG_fail;
14336 swig_obj[0] = args;
14337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14338 if (!SWIG_IsOK(res1)) {
14339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14340 }
14341 arg1 = reinterpret_cast< wxFont * >(argp1);
14342 {
14343 PyThreadState* __tstate = wxPyBeginAllowThreads();
14344 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14345 wxPyEndAllowThreads(__tstate);
14346 if (PyErr_Occurred()) SWIG_fail;
14347 }
14348 {
14349 #if wxUSE_UNICODE
14350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14351 #else
14352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14353 #endif
14354 }
14355 return resultobj;
14356 fail:
14357 return NULL;
14358 }
14359
14360
14361 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14362 PyObject *resultobj = 0;
14363 wxFont *arg1 = (wxFont *) 0 ;
14364 int arg2 ;
14365 void *argp1 = 0 ;
14366 int res1 = 0 ;
14367 int val2 ;
14368 int ecode2 = 0 ;
14369 PyObject * obj0 = 0 ;
14370 PyObject * obj1 = 0 ;
14371 char * kwnames[] = {
14372 (char *) "self",(char *) "pointSize", NULL
14373 };
14374
14375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14377 if (!SWIG_IsOK(res1)) {
14378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14379 }
14380 arg1 = reinterpret_cast< wxFont * >(argp1);
14381 ecode2 = SWIG_AsVal_int(obj1, &val2);
14382 if (!SWIG_IsOK(ecode2)) {
14383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14384 }
14385 arg2 = static_cast< int >(val2);
14386 {
14387 PyThreadState* __tstate = wxPyBeginAllowThreads();
14388 (arg1)->SetPointSize(arg2);
14389 wxPyEndAllowThreads(__tstate);
14390 if (PyErr_Occurred()) SWIG_fail;
14391 }
14392 resultobj = SWIG_Py_Void();
14393 return resultobj;
14394 fail:
14395 return NULL;
14396 }
14397
14398
14399 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14400 PyObject *resultobj = 0;
14401 wxFont *arg1 = (wxFont *) 0 ;
14402 wxSize *arg2 = 0 ;
14403 void *argp1 = 0 ;
14404 int res1 = 0 ;
14405 wxSize temp2 ;
14406 PyObject * obj0 = 0 ;
14407 PyObject * obj1 = 0 ;
14408 char * kwnames[] = {
14409 (char *) "self",(char *) "pixelSize", NULL
14410 };
14411
14412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14414 if (!SWIG_IsOK(res1)) {
14415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14416 }
14417 arg1 = reinterpret_cast< wxFont * >(argp1);
14418 {
14419 arg2 = &temp2;
14420 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14421 }
14422 {
14423 PyThreadState* __tstate = wxPyBeginAllowThreads();
14424 (arg1)->SetPixelSize((wxSize const &)*arg2);
14425 wxPyEndAllowThreads(__tstate);
14426 if (PyErr_Occurred()) SWIG_fail;
14427 }
14428 resultobj = SWIG_Py_Void();
14429 return resultobj;
14430 fail:
14431 return NULL;
14432 }
14433
14434
14435 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14436 PyObject *resultobj = 0;
14437 wxFont *arg1 = (wxFont *) 0 ;
14438 int arg2 ;
14439 void *argp1 = 0 ;
14440 int res1 = 0 ;
14441 int val2 ;
14442 int ecode2 = 0 ;
14443 PyObject * obj0 = 0 ;
14444 PyObject * obj1 = 0 ;
14445 char * kwnames[] = {
14446 (char *) "self",(char *) "family", NULL
14447 };
14448
14449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14451 if (!SWIG_IsOK(res1)) {
14452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14453 }
14454 arg1 = reinterpret_cast< wxFont * >(argp1);
14455 ecode2 = SWIG_AsVal_int(obj1, &val2);
14456 if (!SWIG_IsOK(ecode2)) {
14457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14458 }
14459 arg2 = static_cast< int >(val2);
14460 {
14461 PyThreadState* __tstate = wxPyBeginAllowThreads();
14462 (arg1)->SetFamily(arg2);
14463 wxPyEndAllowThreads(__tstate);
14464 if (PyErr_Occurred()) SWIG_fail;
14465 }
14466 resultobj = SWIG_Py_Void();
14467 return resultobj;
14468 fail:
14469 return NULL;
14470 }
14471
14472
14473 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14474 PyObject *resultobj = 0;
14475 wxFont *arg1 = (wxFont *) 0 ;
14476 int arg2 ;
14477 void *argp1 = 0 ;
14478 int res1 = 0 ;
14479 int val2 ;
14480 int ecode2 = 0 ;
14481 PyObject * obj0 = 0 ;
14482 PyObject * obj1 = 0 ;
14483 char * kwnames[] = {
14484 (char *) "self",(char *) "style", NULL
14485 };
14486
14487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14489 if (!SWIG_IsOK(res1)) {
14490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14491 }
14492 arg1 = reinterpret_cast< wxFont * >(argp1);
14493 ecode2 = SWIG_AsVal_int(obj1, &val2);
14494 if (!SWIG_IsOK(ecode2)) {
14495 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14496 }
14497 arg2 = static_cast< int >(val2);
14498 {
14499 PyThreadState* __tstate = wxPyBeginAllowThreads();
14500 (arg1)->SetStyle(arg2);
14501 wxPyEndAllowThreads(__tstate);
14502 if (PyErr_Occurred()) SWIG_fail;
14503 }
14504 resultobj = SWIG_Py_Void();
14505 return resultobj;
14506 fail:
14507 return NULL;
14508 }
14509
14510
14511 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14512 PyObject *resultobj = 0;
14513 wxFont *arg1 = (wxFont *) 0 ;
14514 int arg2 ;
14515 void *argp1 = 0 ;
14516 int res1 = 0 ;
14517 int val2 ;
14518 int ecode2 = 0 ;
14519 PyObject * obj0 = 0 ;
14520 PyObject * obj1 = 0 ;
14521 char * kwnames[] = {
14522 (char *) "self",(char *) "weight", NULL
14523 };
14524
14525 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14526 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14527 if (!SWIG_IsOK(res1)) {
14528 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14529 }
14530 arg1 = reinterpret_cast< wxFont * >(argp1);
14531 ecode2 = SWIG_AsVal_int(obj1, &val2);
14532 if (!SWIG_IsOK(ecode2)) {
14533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14534 }
14535 arg2 = static_cast< int >(val2);
14536 {
14537 PyThreadState* __tstate = wxPyBeginAllowThreads();
14538 (arg1)->SetWeight(arg2);
14539 wxPyEndAllowThreads(__tstate);
14540 if (PyErr_Occurred()) SWIG_fail;
14541 }
14542 resultobj = SWIG_Py_Void();
14543 return resultobj;
14544 fail:
14545 return NULL;
14546 }
14547
14548
14549 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14550 PyObject *resultobj = 0;
14551 wxFont *arg1 = (wxFont *) 0 ;
14552 wxString *arg2 = 0 ;
14553 bool result;
14554 void *argp1 = 0 ;
14555 int res1 = 0 ;
14556 bool temp2 = false ;
14557 PyObject * obj0 = 0 ;
14558 PyObject * obj1 = 0 ;
14559 char * kwnames[] = {
14560 (char *) "self",(char *) "faceName", NULL
14561 };
14562
14563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14565 if (!SWIG_IsOK(res1)) {
14566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14567 }
14568 arg1 = reinterpret_cast< wxFont * >(argp1);
14569 {
14570 arg2 = wxString_in_helper(obj1);
14571 if (arg2 == NULL) SWIG_fail;
14572 temp2 = true;
14573 }
14574 {
14575 PyThreadState* __tstate = wxPyBeginAllowThreads();
14576 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14577 wxPyEndAllowThreads(__tstate);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 }
14580 {
14581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14582 }
14583 {
14584 if (temp2)
14585 delete arg2;
14586 }
14587 return resultobj;
14588 fail:
14589 {
14590 if (temp2)
14591 delete arg2;
14592 }
14593 return NULL;
14594 }
14595
14596
14597 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14598 PyObject *resultobj = 0;
14599 wxFont *arg1 = (wxFont *) 0 ;
14600 bool arg2 ;
14601 void *argp1 = 0 ;
14602 int res1 = 0 ;
14603 bool val2 ;
14604 int ecode2 = 0 ;
14605 PyObject * obj0 = 0 ;
14606 PyObject * obj1 = 0 ;
14607 char * kwnames[] = {
14608 (char *) "self",(char *) "underlined", NULL
14609 };
14610
14611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14613 if (!SWIG_IsOK(res1)) {
14614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14615 }
14616 arg1 = reinterpret_cast< wxFont * >(argp1);
14617 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14618 if (!SWIG_IsOK(ecode2)) {
14619 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14620 }
14621 arg2 = static_cast< bool >(val2);
14622 {
14623 PyThreadState* __tstate = wxPyBeginAllowThreads();
14624 (arg1)->SetUnderlined(arg2);
14625 wxPyEndAllowThreads(__tstate);
14626 if (PyErr_Occurred()) SWIG_fail;
14627 }
14628 resultobj = SWIG_Py_Void();
14629 return resultobj;
14630 fail:
14631 return NULL;
14632 }
14633
14634
14635 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14636 PyObject *resultobj = 0;
14637 wxFont *arg1 = (wxFont *) 0 ;
14638 wxFontEncoding arg2 ;
14639 void *argp1 = 0 ;
14640 int res1 = 0 ;
14641 int val2 ;
14642 int ecode2 = 0 ;
14643 PyObject * obj0 = 0 ;
14644 PyObject * obj1 = 0 ;
14645 char * kwnames[] = {
14646 (char *) "self",(char *) "encoding", NULL
14647 };
14648
14649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14651 if (!SWIG_IsOK(res1)) {
14652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14653 }
14654 arg1 = reinterpret_cast< wxFont * >(argp1);
14655 ecode2 = SWIG_AsVal_int(obj1, &val2);
14656 if (!SWIG_IsOK(ecode2)) {
14657 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14658 }
14659 arg2 = static_cast< wxFontEncoding >(val2);
14660 {
14661 PyThreadState* __tstate = wxPyBeginAllowThreads();
14662 (arg1)->SetEncoding(arg2);
14663 wxPyEndAllowThreads(__tstate);
14664 if (PyErr_Occurred()) SWIG_fail;
14665 }
14666 resultobj = SWIG_Py_Void();
14667 return resultobj;
14668 fail:
14669 return NULL;
14670 }
14671
14672
14673 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14674 PyObject *resultobj = 0;
14675 wxFont *arg1 = (wxFont *) 0 ;
14676 wxNativeFontInfo *arg2 = 0 ;
14677 void *argp1 = 0 ;
14678 int res1 = 0 ;
14679 void *argp2 = 0 ;
14680 int res2 = 0 ;
14681 PyObject * obj0 = 0 ;
14682 PyObject * obj1 = 0 ;
14683 char * kwnames[] = {
14684 (char *) "self",(char *) "info", NULL
14685 };
14686
14687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14689 if (!SWIG_IsOK(res1)) {
14690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14691 }
14692 arg1 = reinterpret_cast< wxFont * >(argp1);
14693 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14694 if (!SWIG_IsOK(res2)) {
14695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14696 }
14697 if (!argp2) {
14698 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14699 }
14700 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14701 {
14702 PyThreadState* __tstate = wxPyBeginAllowThreads();
14703 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
14707 resultobj = SWIG_Py_Void();
14708 return resultobj;
14709 fail:
14710 return NULL;
14711 }
14712
14713
14714 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj = 0;
14716 wxFont *arg1 = (wxFont *) 0 ;
14717 wxString *arg2 = 0 ;
14718 bool result;
14719 void *argp1 = 0 ;
14720 int res1 = 0 ;
14721 bool temp2 = false ;
14722 PyObject * obj0 = 0 ;
14723 PyObject * obj1 = 0 ;
14724 char * kwnames[] = {
14725 (char *) "self",(char *) "info", NULL
14726 };
14727
14728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14730 if (!SWIG_IsOK(res1)) {
14731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14732 }
14733 arg1 = reinterpret_cast< wxFont * >(argp1);
14734 {
14735 arg2 = wxString_in_helper(obj1);
14736 if (arg2 == NULL) SWIG_fail;
14737 temp2 = true;
14738 }
14739 {
14740 PyThreadState* __tstate = wxPyBeginAllowThreads();
14741 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14742 wxPyEndAllowThreads(__tstate);
14743 if (PyErr_Occurred()) SWIG_fail;
14744 }
14745 {
14746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14747 }
14748 {
14749 if (temp2)
14750 delete arg2;
14751 }
14752 return resultobj;
14753 fail:
14754 {
14755 if (temp2)
14756 delete arg2;
14757 }
14758 return NULL;
14759 }
14760
14761
14762 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14763 PyObject *resultobj = 0;
14764 wxFont *arg1 = (wxFont *) 0 ;
14765 wxString *arg2 = 0 ;
14766 bool result;
14767 void *argp1 = 0 ;
14768 int res1 = 0 ;
14769 bool temp2 = false ;
14770 PyObject * obj0 = 0 ;
14771 PyObject * obj1 = 0 ;
14772 char * kwnames[] = {
14773 (char *) "self",(char *) "info", NULL
14774 };
14775
14776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14777 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14778 if (!SWIG_IsOK(res1)) {
14779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14780 }
14781 arg1 = reinterpret_cast< wxFont * >(argp1);
14782 {
14783 arg2 = wxString_in_helper(obj1);
14784 if (arg2 == NULL) SWIG_fail;
14785 temp2 = true;
14786 }
14787 {
14788 PyThreadState* __tstate = wxPyBeginAllowThreads();
14789 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14790 wxPyEndAllowThreads(__tstate);
14791 if (PyErr_Occurred()) SWIG_fail;
14792 }
14793 {
14794 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14795 }
14796 {
14797 if (temp2)
14798 delete arg2;
14799 }
14800 return resultobj;
14801 fail:
14802 {
14803 if (temp2)
14804 delete arg2;
14805 }
14806 return NULL;
14807 }
14808
14809
14810 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14811 PyObject *resultobj = 0;
14812 wxFont *arg1 = (wxFont *) 0 ;
14813 wxString result;
14814 void *argp1 = 0 ;
14815 int res1 = 0 ;
14816 PyObject *swig_obj[1] ;
14817
14818 if (!args) SWIG_fail;
14819 swig_obj[0] = args;
14820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14821 if (!SWIG_IsOK(res1)) {
14822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14823 }
14824 arg1 = reinterpret_cast< wxFont * >(argp1);
14825 {
14826 PyThreadState* __tstate = wxPyBeginAllowThreads();
14827 result = ((wxFont const *)arg1)->GetFamilyString();
14828 wxPyEndAllowThreads(__tstate);
14829 if (PyErr_Occurred()) SWIG_fail;
14830 }
14831 {
14832 #if wxUSE_UNICODE
14833 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14834 #else
14835 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14836 #endif
14837 }
14838 return resultobj;
14839 fail:
14840 return NULL;
14841 }
14842
14843
14844 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14845 PyObject *resultobj = 0;
14846 wxFont *arg1 = (wxFont *) 0 ;
14847 wxString result;
14848 void *argp1 = 0 ;
14849 int res1 = 0 ;
14850 PyObject *swig_obj[1] ;
14851
14852 if (!args) SWIG_fail;
14853 swig_obj[0] = args;
14854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14855 if (!SWIG_IsOK(res1)) {
14856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14857 }
14858 arg1 = reinterpret_cast< wxFont * >(argp1);
14859 {
14860 PyThreadState* __tstate = wxPyBeginAllowThreads();
14861 result = ((wxFont const *)arg1)->GetStyleString();
14862 wxPyEndAllowThreads(__tstate);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 }
14865 {
14866 #if wxUSE_UNICODE
14867 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14868 #else
14869 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14870 #endif
14871 }
14872 return resultobj;
14873 fail:
14874 return NULL;
14875 }
14876
14877
14878 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14879 PyObject *resultobj = 0;
14880 wxFont *arg1 = (wxFont *) 0 ;
14881 wxString result;
14882 void *argp1 = 0 ;
14883 int res1 = 0 ;
14884 PyObject *swig_obj[1] ;
14885
14886 if (!args) SWIG_fail;
14887 swig_obj[0] = args;
14888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14889 if (!SWIG_IsOK(res1)) {
14890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14891 }
14892 arg1 = reinterpret_cast< wxFont * >(argp1);
14893 {
14894 PyThreadState* __tstate = wxPyBeginAllowThreads();
14895 result = ((wxFont const *)arg1)->GetWeightString();
14896 wxPyEndAllowThreads(__tstate);
14897 if (PyErr_Occurred()) SWIG_fail;
14898 }
14899 {
14900 #if wxUSE_UNICODE
14901 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14902 #else
14903 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14904 #endif
14905 }
14906 return resultobj;
14907 fail:
14908 return NULL;
14909 }
14910
14911
14912 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14913 PyObject *resultobj = 0;
14914 wxFont *arg1 = (wxFont *) 0 ;
14915 bool arg2 = (bool) true ;
14916 void *argp1 = 0 ;
14917 int res1 = 0 ;
14918 bool val2 ;
14919 int ecode2 = 0 ;
14920 PyObject * obj0 = 0 ;
14921 PyObject * obj1 = 0 ;
14922 char * kwnames[] = {
14923 (char *) "self",(char *) "no", NULL
14924 };
14925
14926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14928 if (!SWIG_IsOK(res1)) {
14929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14930 }
14931 arg1 = reinterpret_cast< wxFont * >(argp1);
14932 if (obj1) {
14933 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14934 if (!SWIG_IsOK(ecode2)) {
14935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14936 }
14937 arg2 = static_cast< bool >(val2);
14938 }
14939 {
14940 PyThreadState* __tstate = wxPyBeginAllowThreads();
14941 (arg1)->SetNoAntiAliasing(arg2);
14942 wxPyEndAllowThreads(__tstate);
14943 if (PyErr_Occurred()) SWIG_fail;
14944 }
14945 resultobj = SWIG_Py_Void();
14946 return resultobj;
14947 fail:
14948 return NULL;
14949 }
14950
14951
14952 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14953 PyObject *resultobj = 0;
14954 wxFont *arg1 = (wxFont *) 0 ;
14955 bool result;
14956 void *argp1 = 0 ;
14957 int res1 = 0 ;
14958 PyObject *swig_obj[1] ;
14959
14960 if (!args) SWIG_fail;
14961 swig_obj[0] = args;
14962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14963 if (!SWIG_IsOK(res1)) {
14964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14965 }
14966 arg1 = reinterpret_cast< wxFont * >(argp1);
14967 {
14968 PyThreadState* __tstate = wxPyBeginAllowThreads();
14969 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14970 wxPyEndAllowThreads(__tstate);
14971 if (PyErr_Occurred()) SWIG_fail;
14972 }
14973 {
14974 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14975 }
14976 return resultobj;
14977 fail:
14978 return NULL;
14979 }
14980
14981
14982 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14983 PyObject *resultobj = 0;
14984 wxFontEncoding result;
14985
14986 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14987 {
14988 if (!wxPyCheckForApp()) SWIG_fail;
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 resultobj = SWIG_From_int(static_cast< int >(result));
14995 return resultobj;
14996 fail:
14997 return NULL;
14998 }
14999
15000
15001 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15002 PyObject *resultobj = 0;
15003 wxFontEncoding arg1 ;
15004 int val1 ;
15005 int ecode1 = 0 ;
15006 PyObject * obj0 = 0 ;
15007 char * kwnames[] = {
15008 (char *) "encoding", NULL
15009 };
15010
15011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15012 ecode1 = SWIG_AsVal_int(obj0, &val1);
15013 if (!SWIG_IsOK(ecode1)) {
15014 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15015 }
15016 arg1 = static_cast< wxFontEncoding >(val1);
15017 {
15018 if (!wxPyCheckForApp()) SWIG_fail;
15019 PyThreadState* __tstate = wxPyBeginAllowThreads();
15020 wxFont::SetDefaultEncoding(arg1);
15021 wxPyEndAllowThreads(__tstate);
15022 if (PyErr_Occurred()) SWIG_fail;
15023 }
15024 resultobj = SWIG_Py_Void();
15025 return resultobj;
15026 fail:
15027 return NULL;
15028 }
15029
15030
15031 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15032 PyObject *obj;
15033 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15034 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15035 return SWIG_Py_Void();
15036 }
15037
15038 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15039 return SWIG_Python_InitShadowInstance(args);
15040 }
15041
15042 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15043 PyObject *resultobj = 0;
15044 wxPyFontEnumerator *result = 0 ;
15045
15046 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15047 {
15048 if (!wxPyCheckForApp()) SWIG_fail;
15049 PyThreadState* __tstate = wxPyBeginAllowThreads();
15050 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15051 wxPyEndAllowThreads(__tstate);
15052 if (PyErr_Occurred()) SWIG_fail;
15053 }
15054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15055 return resultobj;
15056 fail:
15057 return NULL;
15058 }
15059
15060
15061 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15062 PyObject *resultobj = 0;
15063 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15064 void *argp1 = 0 ;
15065 int res1 = 0 ;
15066 PyObject *swig_obj[1] ;
15067
15068 if (!args) SWIG_fail;
15069 swig_obj[0] = args;
15070 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15071 if (!SWIG_IsOK(res1)) {
15072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15073 }
15074 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15075 {
15076 PyThreadState* __tstate = wxPyBeginAllowThreads();
15077 delete arg1;
15078
15079 wxPyEndAllowThreads(__tstate);
15080 if (PyErr_Occurred()) SWIG_fail;
15081 }
15082 resultobj = SWIG_Py_Void();
15083 return resultobj;
15084 fail:
15085 return NULL;
15086 }
15087
15088
15089 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15090 PyObject *resultobj = 0;
15091 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15092 PyObject *arg2 = (PyObject *) 0 ;
15093 PyObject *arg3 = (PyObject *) 0 ;
15094 bool arg4 ;
15095 void *argp1 = 0 ;
15096 int res1 = 0 ;
15097 bool val4 ;
15098 int ecode4 = 0 ;
15099 PyObject * obj0 = 0 ;
15100 PyObject * obj1 = 0 ;
15101 PyObject * obj2 = 0 ;
15102 PyObject * obj3 = 0 ;
15103 char * kwnames[] = {
15104 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15105 };
15106
15107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15109 if (!SWIG_IsOK(res1)) {
15110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15111 }
15112 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15113 arg2 = obj1;
15114 arg3 = obj2;
15115 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15116 if (!SWIG_IsOK(ecode4)) {
15117 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15118 }
15119 arg4 = static_cast< bool >(val4);
15120 {
15121 PyThreadState* __tstate = wxPyBeginAllowThreads();
15122 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15123 wxPyEndAllowThreads(__tstate);
15124 if (PyErr_Occurred()) SWIG_fail;
15125 }
15126 resultobj = SWIG_Py_Void();
15127 return resultobj;
15128 fail:
15129 return NULL;
15130 }
15131
15132
15133 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15134 PyObject *resultobj = 0;
15135 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15136 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15137 bool arg3 = (bool) false ;
15138 bool result;
15139 void *argp1 = 0 ;
15140 int res1 = 0 ;
15141 int val2 ;
15142 int ecode2 = 0 ;
15143 bool val3 ;
15144 int ecode3 = 0 ;
15145 PyObject * obj0 = 0 ;
15146 PyObject * obj1 = 0 ;
15147 PyObject * obj2 = 0 ;
15148 char * kwnames[] = {
15149 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15150 };
15151
15152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15154 if (!SWIG_IsOK(res1)) {
15155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15156 }
15157 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15158 if (obj1) {
15159 ecode2 = SWIG_AsVal_int(obj1, &val2);
15160 if (!SWIG_IsOK(ecode2)) {
15161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15162 }
15163 arg2 = static_cast< wxFontEncoding >(val2);
15164 }
15165 if (obj2) {
15166 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15167 if (!SWIG_IsOK(ecode3)) {
15168 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15169 }
15170 arg3 = static_cast< bool >(val3);
15171 }
15172 {
15173 PyThreadState* __tstate = wxPyBeginAllowThreads();
15174 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15175 wxPyEndAllowThreads(__tstate);
15176 if (PyErr_Occurred()) SWIG_fail;
15177 }
15178 {
15179 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15180 }
15181 return resultobj;
15182 fail:
15183 return NULL;
15184 }
15185
15186
15187 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15188 PyObject *resultobj = 0;
15189 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15190 wxString const &arg2_defvalue = wxPyEmptyString ;
15191 wxString *arg2 = (wxString *) &arg2_defvalue ;
15192 bool result;
15193 void *argp1 = 0 ;
15194 int res1 = 0 ;
15195 bool temp2 = false ;
15196 PyObject * obj0 = 0 ;
15197 PyObject * obj1 = 0 ;
15198 char * kwnames[] = {
15199 (char *) "self",(char *) "facename", NULL
15200 };
15201
15202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15204 if (!SWIG_IsOK(res1)) {
15205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15206 }
15207 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15208 if (obj1) {
15209 {
15210 arg2 = wxString_in_helper(obj1);
15211 if (arg2 == NULL) SWIG_fail;
15212 temp2 = true;
15213 }
15214 }
15215 {
15216 PyThreadState* __tstate = wxPyBeginAllowThreads();
15217 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15218 wxPyEndAllowThreads(__tstate);
15219 if (PyErr_Occurred()) SWIG_fail;
15220 }
15221 {
15222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15223 }
15224 {
15225 if (temp2)
15226 delete arg2;
15227 }
15228 return resultobj;
15229 fail:
15230 {
15231 if (temp2)
15232 delete arg2;
15233 }
15234 return NULL;
15235 }
15236
15237
15238 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15239 PyObject *resultobj = 0;
15240 PyObject *result = 0 ;
15241
15242 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15243 {
15244 PyThreadState* __tstate = wxPyBeginAllowThreads();
15245 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15246 wxPyEndAllowThreads(__tstate);
15247 if (PyErr_Occurred()) SWIG_fail;
15248 }
15249 resultobj = result;
15250 return resultobj;
15251 fail:
15252 return NULL;
15253 }
15254
15255
15256 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15257 PyObject *resultobj = 0;
15258 PyObject *result = 0 ;
15259
15260 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15261 {
15262 PyThreadState* __tstate = wxPyBeginAllowThreads();
15263 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15264 wxPyEndAllowThreads(__tstate);
15265 if (PyErr_Occurred()) SWIG_fail;
15266 }
15267 resultobj = result;
15268 return resultobj;
15269 fail:
15270 return NULL;
15271 }
15272
15273
15274 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15275 PyObject *resultobj = 0;
15276 wxString *arg1 = 0 ;
15277 bool result;
15278 bool temp1 = false ;
15279 PyObject * obj0 = 0 ;
15280 char * kwnames[] = {
15281 (char *) "str", NULL
15282 };
15283
15284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15285 {
15286 arg1 = wxString_in_helper(obj0);
15287 if (arg1 == NULL) SWIG_fail;
15288 temp1 = true;
15289 }
15290 {
15291 PyThreadState* __tstate = wxPyBeginAllowThreads();
15292 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15293 wxPyEndAllowThreads(__tstate);
15294 if (PyErr_Occurred()) SWIG_fail;
15295 }
15296 {
15297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15298 }
15299 {
15300 if (temp1)
15301 delete arg1;
15302 }
15303 return resultobj;
15304 fail:
15305 {
15306 if (temp1)
15307 delete arg1;
15308 }
15309 return NULL;
15310 }
15311
15312
15313 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15314 PyObject *obj;
15315 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15316 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15317 return SWIG_Py_Void();
15318 }
15319
15320 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15321 return SWIG_Python_InitShadowInstance(args);
15322 }
15323
15324 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15325 PyObject *resultobj = 0;
15326 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15327 int arg2 ;
15328 void *argp1 = 0 ;
15329 int res1 = 0 ;
15330 int val2 ;
15331 int ecode2 = 0 ;
15332 PyObject *swig_obj[2] ;
15333
15334 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15335 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15336 if (!SWIG_IsOK(res1)) {
15337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15338 }
15339 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15340 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15341 if (!SWIG_IsOK(ecode2)) {
15342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15343 }
15344 arg2 = static_cast< int >(val2);
15345 if (arg1) (arg1)->Language = arg2;
15346
15347 resultobj = SWIG_Py_Void();
15348 return resultobj;
15349 fail:
15350 return NULL;
15351 }
15352
15353
15354 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15355 PyObject *resultobj = 0;
15356 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15357 int result;
15358 void *argp1 = 0 ;
15359 int res1 = 0 ;
15360 PyObject *swig_obj[1] ;
15361
15362 if (!args) SWIG_fail;
15363 swig_obj[0] = args;
15364 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15365 if (!SWIG_IsOK(res1)) {
15366 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15367 }
15368 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15369 result = (int) ((arg1)->Language);
15370 resultobj = SWIG_From_int(static_cast< int >(result));
15371 return resultobj;
15372 fail:
15373 return NULL;
15374 }
15375
15376
15377 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15378 PyObject *resultobj = 0;
15379 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15380 wxString *arg2 = (wxString *) 0 ;
15381 void *argp1 = 0 ;
15382 int res1 = 0 ;
15383 bool temp2 = false ;
15384 PyObject *swig_obj[2] ;
15385
15386 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15388 if (!SWIG_IsOK(res1)) {
15389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15390 }
15391 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15392 {
15393 arg2 = wxString_in_helper(swig_obj[1]);
15394 if (arg2 == NULL) SWIG_fail;
15395 temp2 = true;
15396 }
15397 if (arg1) (arg1)->CanonicalName = *arg2;
15398
15399 resultobj = SWIG_Py_Void();
15400 {
15401 if (temp2)
15402 delete arg2;
15403 }
15404 return resultobj;
15405 fail:
15406 {
15407 if (temp2)
15408 delete arg2;
15409 }
15410 return NULL;
15411 }
15412
15413
15414 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15415 PyObject *resultobj = 0;
15416 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15417 wxString *result = 0 ;
15418 void *argp1 = 0 ;
15419 int res1 = 0 ;
15420 PyObject *swig_obj[1] ;
15421
15422 if (!args) SWIG_fail;
15423 swig_obj[0] = args;
15424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15425 if (!SWIG_IsOK(res1)) {
15426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15427 }
15428 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15429 result = (wxString *)& ((arg1)->CanonicalName);
15430 {
15431 #if wxUSE_UNICODE
15432 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15433 #else
15434 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15435 #endif
15436 }
15437 return resultobj;
15438 fail:
15439 return NULL;
15440 }
15441
15442
15443 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15444 PyObject *resultobj = 0;
15445 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15446 wxString *arg2 = (wxString *) 0 ;
15447 void *argp1 = 0 ;
15448 int res1 = 0 ;
15449 bool temp2 = false ;
15450 PyObject *swig_obj[2] ;
15451
15452 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15454 if (!SWIG_IsOK(res1)) {
15455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15456 }
15457 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15458 {
15459 arg2 = wxString_in_helper(swig_obj[1]);
15460 if (arg2 == NULL) SWIG_fail;
15461 temp2 = true;
15462 }
15463 if (arg1) (arg1)->Description = *arg2;
15464
15465 resultobj = SWIG_Py_Void();
15466 {
15467 if (temp2)
15468 delete arg2;
15469 }
15470 return resultobj;
15471 fail:
15472 {
15473 if (temp2)
15474 delete arg2;
15475 }
15476 return NULL;
15477 }
15478
15479
15480 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15481 PyObject *resultobj = 0;
15482 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15483 wxString *result = 0 ;
15484 void *argp1 = 0 ;
15485 int res1 = 0 ;
15486 PyObject *swig_obj[1] ;
15487
15488 if (!args) SWIG_fail;
15489 swig_obj[0] = args;
15490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15491 if (!SWIG_IsOK(res1)) {
15492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15493 }
15494 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15495 result = (wxString *)& ((arg1)->Description);
15496 {
15497 #if wxUSE_UNICODE
15498 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15499 #else
15500 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15501 #endif
15502 }
15503 return resultobj;
15504 fail:
15505 return NULL;
15506 }
15507
15508
15509 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15510 PyObject *obj;
15511 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15512 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15513 return SWIG_Py_Void();
15514 }
15515
15516 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15517 PyObject *resultobj = 0;
15518 int arg1 = (int) -1 ;
15519 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15520 wxLocale *result = 0 ;
15521 int val1 ;
15522 int ecode1 = 0 ;
15523 int val2 ;
15524 int ecode2 = 0 ;
15525 PyObject * obj0 = 0 ;
15526 PyObject * obj1 = 0 ;
15527 char * kwnames[] = {
15528 (char *) "language",(char *) "flags", NULL
15529 };
15530
15531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15532 if (obj0) {
15533 ecode1 = SWIG_AsVal_int(obj0, &val1);
15534 if (!SWIG_IsOK(ecode1)) {
15535 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15536 }
15537 arg1 = static_cast< int >(val1);
15538 }
15539 if (obj1) {
15540 ecode2 = SWIG_AsVal_int(obj1, &val2);
15541 if (!SWIG_IsOK(ecode2)) {
15542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15543 }
15544 arg2 = static_cast< int >(val2);
15545 }
15546 {
15547 PyThreadState* __tstate = wxPyBeginAllowThreads();
15548 result = (wxLocale *)new_wxLocale(arg1,arg2);
15549 wxPyEndAllowThreads(__tstate);
15550 if (PyErr_Occurred()) SWIG_fail;
15551 }
15552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15553 return resultobj;
15554 fail:
15555 return NULL;
15556 }
15557
15558
15559 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15560 PyObject *resultobj = 0;
15561 wxLocale *arg1 = (wxLocale *) 0 ;
15562 void *argp1 = 0 ;
15563 int res1 = 0 ;
15564 PyObject *swig_obj[1] ;
15565
15566 if (!args) SWIG_fail;
15567 swig_obj[0] = args;
15568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15569 if (!SWIG_IsOK(res1)) {
15570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15571 }
15572 arg1 = reinterpret_cast< wxLocale * >(argp1);
15573 {
15574 PyThreadState* __tstate = wxPyBeginAllowThreads();
15575 delete arg1;
15576
15577 wxPyEndAllowThreads(__tstate);
15578 if (PyErr_Occurred()) SWIG_fail;
15579 }
15580 resultobj = SWIG_Py_Void();
15581 return resultobj;
15582 fail:
15583 return NULL;
15584 }
15585
15586
15587 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15588 PyObject *resultobj = 0;
15589 wxLocale *arg1 = (wxLocale *) 0 ;
15590 wxString *arg2 = 0 ;
15591 wxString const &arg3_defvalue = wxPyEmptyString ;
15592 wxString *arg3 = (wxString *) &arg3_defvalue ;
15593 wxString const &arg4_defvalue = wxPyEmptyString ;
15594 wxString *arg4 = (wxString *) &arg4_defvalue ;
15595 bool arg5 = (bool) true ;
15596 bool arg6 = (bool) false ;
15597 bool result;
15598 void *argp1 = 0 ;
15599 int res1 = 0 ;
15600 bool temp2 = false ;
15601 bool temp3 = false ;
15602 bool temp4 = false ;
15603 bool val5 ;
15604 int ecode5 = 0 ;
15605 bool val6 ;
15606 int ecode6 = 0 ;
15607 PyObject * obj0 = 0 ;
15608 PyObject * obj1 = 0 ;
15609 PyObject * obj2 = 0 ;
15610 PyObject * obj3 = 0 ;
15611 PyObject * obj4 = 0 ;
15612 PyObject * obj5 = 0 ;
15613 char * kwnames[] = {
15614 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15615 };
15616
15617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15619 if (!SWIG_IsOK(res1)) {
15620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15621 }
15622 arg1 = reinterpret_cast< wxLocale * >(argp1);
15623 {
15624 arg2 = wxString_in_helper(obj1);
15625 if (arg2 == NULL) SWIG_fail;
15626 temp2 = true;
15627 }
15628 if (obj2) {
15629 {
15630 arg3 = wxString_in_helper(obj2);
15631 if (arg3 == NULL) SWIG_fail;
15632 temp3 = true;
15633 }
15634 }
15635 if (obj3) {
15636 {
15637 arg4 = wxString_in_helper(obj3);
15638 if (arg4 == NULL) SWIG_fail;
15639 temp4 = true;
15640 }
15641 }
15642 if (obj4) {
15643 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15644 if (!SWIG_IsOK(ecode5)) {
15645 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15646 }
15647 arg5 = static_cast< bool >(val5);
15648 }
15649 if (obj5) {
15650 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15651 if (!SWIG_IsOK(ecode6)) {
15652 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15653 }
15654 arg6 = static_cast< bool >(val6);
15655 }
15656 {
15657 PyThreadState* __tstate = wxPyBeginAllowThreads();
15658 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15659 wxPyEndAllowThreads(__tstate);
15660 if (PyErr_Occurred()) SWIG_fail;
15661 }
15662 {
15663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15664 }
15665 {
15666 if (temp2)
15667 delete arg2;
15668 }
15669 {
15670 if (temp3)
15671 delete arg3;
15672 }
15673 {
15674 if (temp4)
15675 delete arg4;
15676 }
15677 return resultobj;
15678 fail:
15679 {
15680 if (temp2)
15681 delete arg2;
15682 }
15683 {
15684 if (temp3)
15685 delete arg3;
15686 }
15687 {
15688 if (temp4)
15689 delete arg4;
15690 }
15691 return NULL;
15692 }
15693
15694
15695 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15696 PyObject *resultobj = 0;
15697 wxLocale *arg1 = (wxLocale *) 0 ;
15698 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15699 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15700 bool result;
15701 void *argp1 = 0 ;
15702 int res1 = 0 ;
15703 int val2 ;
15704 int ecode2 = 0 ;
15705 int val3 ;
15706 int ecode3 = 0 ;
15707 PyObject * obj0 = 0 ;
15708 PyObject * obj1 = 0 ;
15709 PyObject * obj2 = 0 ;
15710 char * kwnames[] = {
15711 (char *) "self",(char *) "language",(char *) "flags", NULL
15712 };
15713
15714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15716 if (!SWIG_IsOK(res1)) {
15717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15718 }
15719 arg1 = reinterpret_cast< wxLocale * >(argp1);
15720 if (obj1) {
15721 ecode2 = SWIG_AsVal_int(obj1, &val2);
15722 if (!SWIG_IsOK(ecode2)) {
15723 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15724 }
15725 arg2 = static_cast< int >(val2);
15726 }
15727 if (obj2) {
15728 ecode3 = SWIG_AsVal_int(obj2, &val3);
15729 if (!SWIG_IsOK(ecode3)) {
15730 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15731 }
15732 arg3 = static_cast< int >(val3);
15733 }
15734 {
15735 PyThreadState* __tstate = wxPyBeginAllowThreads();
15736 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15737 wxPyEndAllowThreads(__tstate);
15738 if (PyErr_Occurred()) SWIG_fail;
15739 }
15740 {
15741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15742 }
15743 return resultobj;
15744 fail:
15745 return NULL;
15746 }
15747
15748
15749 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15750 PyObject *resultobj = 0;
15751 int result;
15752
15753 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15754 {
15755 PyThreadState* __tstate = wxPyBeginAllowThreads();
15756 result = (int)wxLocale::GetSystemLanguage();
15757 wxPyEndAllowThreads(__tstate);
15758 if (PyErr_Occurred()) SWIG_fail;
15759 }
15760 resultobj = SWIG_From_int(static_cast< int >(result));
15761 return resultobj;
15762 fail:
15763 return NULL;
15764 }
15765
15766
15767 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15768 PyObject *resultobj = 0;
15769 wxFontEncoding result;
15770
15771 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15772 {
15773 PyThreadState* __tstate = wxPyBeginAllowThreads();
15774 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15775 wxPyEndAllowThreads(__tstate);
15776 if (PyErr_Occurred()) SWIG_fail;
15777 }
15778 resultobj = SWIG_From_int(static_cast< int >(result));
15779 return resultobj;
15780 fail:
15781 return NULL;
15782 }
15783
15784
15785 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15786 PyObject *resultobj = 0;
15787 wxString result;
15788
15789 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15790 {
15791 PyThreadState* __tstate = wxPyBeginAllowThreads();
15792 result = wxLocale::GetSystemEncodingName();
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 {
15797 #if wxUSE_UNICODE
15798 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15799 #else
15800 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15801 #endif
15802 }
15803 return resultobj;
15804 fail:
15805 return NULL;
15806 }
15807
15808
15809 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15810 PyObject *resultobj = 0;
15811 wxLocale *arg1 = (wxLocale *) 0 ;
15812 bool result;
15813 void *argp1 = 0 ;
15814 int res1 = 0 ;
15815 PyObject *swig_obj[1] ;
15816
15817 if (!args) SWIG_fail;
15818 swig_obj[0] = args;
15819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15820 if (!SWIG_IsOK(res1)) {
15821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15822 }
15823 arg1 = reinterpret_cast< wxLocale * >(argp1);
15824 {
15825 PyThreadState* __tstate = wxPyBeginAllowThreads();
15826 result = (bool)((wxLocale const *)arg1)->IsOk();
15827 wxPyEndAllowThreads(__tstate);
15828 if (PyErr_Occurred()) SWIG_fail;
15829 }
15830 {
15831 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15832 }
15833 return resultobj;
15834 fail:
15835 return NULL;
15836 }
15837
15838
15839 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15840 PyObject *resultobj = 0;
15841 wxLocale *arg1 = (wxLocale *) 0 ;
15842 wxString result;
15843 void *argp1 = 0 ;
15844 int res1 = 0 ;
15845 PyObject *swig_obj[1] ;
15846
15847 if (!args) SWIG_fail;
15848 swig_obj[0] = args;
15849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15850 if (!SWIG_IsOK(res1)) {
15851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15852 }
15853 arg1 = reinterpret_cast< wxLocale * >(argp1);
15854 {
15855 PyThreadState* __tstate = wxPyBeginAllowThreads();
15856 result = ((wxLocale const *)arg1)->GetLocale();
15857 wxPyEndAllowThreads(__tstate);
15858 if (PyErr_Occurred()) SWIG_fail;
15859 }
15860 {
15861 #if wxUSE_UNICODE
15862 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15863 #else
15864 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15865 #endif
15866 }
15867 return resultobj;
15868 fail:
15869 return NULL;
15870 }
15871
15872
15873 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15874 PyObject *resultobj = 0;
15875 wxLocale *arg1 = (wxLocale *) 0 ;
15876 int result;
15877 void *argp1 = 0 ;
15878 int res1 = 0 ;
15879 PyObject *swig_obj[1] ;
15880
15881 if (!args) SWIG_fail;
15882 swig_obj[0] = args;
15883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15884 if (!SWIG_IsOK(res1)) {
15885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15886 }
15887 arg1 = reinterpret_cast< wxLocale * >(argp1);
15888 {
15889 PyThreadState* __tstate = wxPyBeginAllowThreads();
15890 result = (int)((wxLocale const *)arg1)->GetLanguage();
15891 wxPyEndAllowThreads(__tstate);
15892 if (PyErr_Occurred()) SWIG_fail;
15893 }
15894 resultobj = SWIG_From_int(static_cast< int >(result));
15895 return resultobj;
15896 fail:
15897 return NULL;
15898 }
15899
15900
15901 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15902 PyObject *resultobj = 0;
15903 wxLocale *arg1 = (wxLocale *) 0 ;
15904 wxString result;
15905 void *argp1 = 0 ;
15906 int res1 = 0 ;
15907 PyObject *swig_obj[1] ;
15908
15909 if (!args) SWIG_fail;
15910 swig_obj[0] = args;
15911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15912 if (!SWIG_IsOK(res1)) {
15913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15914 }
15915 arg1 = reinterpret_cast< wxLocale * >(argp1);
15916 {
15917 PyThreadState* __tstate = wxPyBeginAllowThreads();
15918 result = ((wxLocale const *)arg1)->GetSysName();
15919 wxPyEndAllowThreads(__tstate);
15920 if (PyErr_Occurred()) SWIG_fail;
15921 }
15922 {
15923 #if wxUSE_UNICODE
15924 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15925 #else
15926 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15927 #endif
15928 }
15929 return resultobj;
15930 fail:
15931 return NULL;
15932 }
15933
15934
15935 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15936 PyObject *resultobj = 0;
15937 wxLocale *arg1 = (wxLocale *) 0 ;
15938 wxString result;
15939 void *argp1 = 0 ;
15940 int res1 = 0 ;
15941 PyObject *swig_obj[1] ;
15942
15943 if (!args) SWIG_fail;
15944 swig_obj[0] = args;
15945 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15946 if (!SWIG_IsOK(res1)) {
15947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15948 }
15949 arg1 = reinterpret_cast< wxLocale * >(argp1);
15950 {
15951 PyThreadState* __tstate = wxPyBeginAllowThreads();
15952 result = ((wxLocale const *)arg1)->GetCanonicalName();
15953 wxPyEndAllowThreads(__tstate);
15954 if (PyErr_Occurred()) SWIG_fail;
15955 }
15956 {
15957 #if wxUSE_UNICODE
15958 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15959 #else
15960 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15961 #endif
15962 }
15963 return resultobj;
15964 fail:
15965 return NULL;
15966 }
15967
15968
15969 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15970 PyObject *resultobj = 0;
15971 wxString *arg1 = 0 ;
15972 bool temp1 = false ;
15973 PyObject * obj0 = 0 ;
15974 char * kwnames[] = {
15975 (char *) "prefix", NULL
15976 };
15977
15978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15979 {
15980 arg1 = wxString_in_helper(obj0);
15981 if (arg1 == NULL) SWIG_fail;
15982 temp1 = true;
15983 }
15984 {
15985 PyThreadState* __tstate = wxPyBeginAllowThreads();
15986 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15987 wxPyEndAllowThreads(__tstate);
15988 if (PyErr_Occurred()) SWIG_fail;
15989 }
15990 resultobj = SWIG_Py_Void();
15991 {
15992 if (temp1)
15993 delete arg1;
15994 }
15995 return resultobj;
15996 fail:
15997 {
15998 if (temp1)
15999 delete arg1;
16000 }
16001 return NULL;
16002 }
16003
16004
16005 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16006 PyObject *resultobj = 0;
16007 wxLocale *arg1 = (wxLocale *) 0 ;
16008 wxString *arg2 = 0 ;
16009 bool result;
16010 void *argp1 = 0 ;
16011 int res1 = 0 ;
16012 bool temp2 = false ;
16013 PyObject * obj0 = 0 ;
16014 PyObject * obj1 = 0 ;
16015 char * kwnames[] = {
16016 (char *) "self",(char *) "szDomain", NULL
16017 };
16018
16019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16021 if (!SWIG_IsOK(res1)) {
16022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16023 }
16024 arg1 = reinterpret_cast< wxLocale * >(argp1);
16025 {
16026 arg2 = wxString_in_helper(obj1);
16027 if (arg2 == NULL) SWIG_fail;
16028 temp2 = true;
16029 }
16030 {
16031 PyThreadState* __tstate = wxPyBeginAllowThreads();
16032 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16033 wxPyEndAllowThreads(__tstate);
16034 if (PyErr_Occurred()) SWIG_fail;
16035 }
16036 {
16037 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16038 }
16039 {
16040 if (temp2)
16041 delete arg2;
16042 }
16043 return resultobj;
16044 fail:
16045 {
16046 if (temp2)
16047 delete arg2;
16048 }
16049 return NULL;
16050 }
16051
16052
16053 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16054 PyObject *resultobj = 0;
16055 int arg1 ;
16056 bool result;
16057 int val1 ;
16058 int ecode1 = 0 ;
16059 PyObject * obj0 = 0 ;
16060 char * kwnames[] = {
16061 (char *) "lang", NULL
16062 };
16063
16064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16065 ecode1 = SWIG_AsVal_int(obj0, &val1);
16066 if (!SWIG_IsOK(ecode1)) {
16067 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16068 }
16069 arg1 = static_cast< int >(val1);
16070 {
16071 PyThreadState* __tstate = wxPyBeginAllowThreads();
16072 result = (bool)wxLocale::IsAvailable(arg1);
16073 wxPyEndAllowThreads(__tstate);
16074 if (PyErr_Occurred()) SWIG_fail;
16075 }
16076 {
16077 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16078 }
16079 return resultobj;
16080 fail:
16081 return NULL;
16082 }
16083
16084
16085 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16086 PyObject *resultobj = 0;
16087 wxLocale *arg1 = (wxLocale *) 0 ;
16088 wxString *arg2 = 0 ;
16089 bool result;
16090 void *argp1 = 0 ;
16091 int res1 = 0 ;
16092 bool temp2 = false ;
16093 PyObject * obj0 = 0 ;
16094 PyObject * obj1 = 0 ;
16095 char * kwnames[] = {
16096 (char *) "self",(char *) "szDomain", NULL
16097 };
16098
16099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16101 if (!SWIG_IsOK(res1)) {
16102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16103 }
16104 arg1 = reinterpret_cast< wxLocale * >(argp1);
16105 {
16106 arg2 = wxString_in_helper(obj1);
16107 if (arg2 == NULL) SWIG_fail;
16108 temp2 = true;
16109 }
16110 {
16111 PyThreadState* __tstate = wxPyBeginAllowThreads();
16112 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16113 wxPyEndAllowThreads(__tstate);
16114 if (PyErr_Occurred()) SWIG_fail;
16115 }
16116 {
16117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16118 }
16119 {
16120 if (temp2)
16121 delete arg2;
16122 }
16123 return resultobj;
16124 fail:
16125 {
16126 if (temp2)
16127 delete arg2;
16128 }
16129 return NULL;
16130 }
16131
16132
16133 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16134 PyObject *resultobj = 0;
16135 int arg1 ;
16136 wxLanguageInfo *result = 0 ;
16137 int val1 ;
16138 int ecode1 = 0 ;
16139 PyObject * obj0 = 0 ;
16140 char * kwnames[] = {
16141 (char *) "lang", NULL
16142 };
16143
16144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16145 ecode1 = SWIG_AsVal_int(obj0, &val1);
16146 if (!SWIG_IsOK(ecode1)) {
16147 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16148 }
16149 arg1 = static_cast< int >(val1);
16150 {
16151 PyThreadState* __tstate = wxPyBeginAllowThreads();
16152 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16153 wxPyEndAllowThreads(__tstate);
16154 if (PyErr_Occurred()) SWIG_fail;
16155 }
16156 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16157 return resultobj;
16158 fail:
16159 return NULL;
16160 }
16161
16162
16163 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16164 PyObject *resultobj = 0;
16165 int arg1 ;
16166 wxString result;
16167 int val1 ;
16168 int ecode1 = 0 ;
16169 PyObject * obj0 = 0 ;
16170 char * kwnames[] = {
16171 (char *) "lang", NULL
16172 };
16173
16174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16175 ecode1 = SWIG_AsVal_int(obj0, &val1);
16176 if (!SWIG_IsOK(ecode1)) {
16177 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16178 }
16179 arg1 = static_cast< int >(val1);
16180 {
16181 PyThreadState* __tstate = wxPyBeginAllowThreads();
16182 result = wxLocale::GetLanguageName(arg1);
16183 wxPyEndAllowThreads(__tstate);
16184 if (PyErr_Occurred()) SWIG_fail;
16185 }
16186 {
16187 #if wxUSE_UNICODE
16188 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16189 #else
16190 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16191 #endif
16192 }
16193 return resultobj;
16194 fail:
16195 return NULL;
16196 }
16197
16198
16199 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16200 PyObject *resultobj = 0;
16201 wxString *arg1 = 0 ;
16202 wxLanguageInfo *result = 0 ;
16203 bool temp1 = false ;
16204 PyObject * obj0 = 0 ;
16205 char * kwnames[] = {
16206 (char *) "locale", NULL
16207 };
16208
16209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16210 {
16211 arg1 = wxString_in_helper(obj0);
16212 if (arg1 == NULL) SWIG_fail;
16213 temp1 = true;
16214 }
16215 {
16216 PyThreadState* __tstate = wxPyBeginAllowThreads();
16217 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16218 wxPyEndAllowThreads(__tstate);
16219 if (PyErr_Occurred()) SWIG_fail;
16220 }
16221 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16222 {
16223 if (temp1)
16224 delete arg1;
16225 }
16226 return resultobj;
16227 fail:
16228 {
16229 if (temp1)
16230 delete arg1;
16231 }
16232 return NULL;
16233 }
16234
16235
16236 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16237 PyObject *resultobj = 0;
16238 wxLanguageInfo *arg1 = 0 ;
16239 void *argp1 = 0 ;
16240 int res1 = 0 ;
16241 PyObject * obj0 = 0 ;
16242 char * kwnames[] = {
16243 (char *) "info", NULL
16244 };
16245
16246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16247 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16248 if (!SWIG_IsOK(res1)) {
16249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16250 }
16251 if (!argp1) {
16252 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16253 }
16254 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16255 {
16256 PyThreadState* __tstate = wxPyBeginAllowThreads();
16257 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16258 wxPyEndAllowThreads(__tstate);
16259 if (PyErr_Occurred()) SWIG_fail;
16260 }
16261 resultobj = SWIG_Py_Void();
16262 return resultobj;
16263 fail:
16264 return NULL;
16265 }
16266
16267
16268 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16269 PyObject *resultobj = 0;
16270 wxLocale *arg1 = (wxLocale *) 0 ;
16271 wxString *arg2 = 0 ;
16272 wxString const &arg3_defvalue = wxPyEmptyString ;
16273 wxString *arg3 = (wxString *) &arg3_defvalue ;
16274 wxString result;
16275 void *argp1 = 0 ;
16276 int res1 = 0 ;
16277 bool temp2 = false ;
16278 bool temp3 = false ;
16279 PyObject * obj0 = 0 ;
16280 PyObject * obj1 = 0 ;
16281 PyObject * obj2 = 0 ;
16282 char * kwnames[] = {
16283 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16284 };
16285
16286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16288 if (!SWIG_IsOK(res1)) {
16289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16290 }
16291 arg1 = reinterpret_cast< wxLocale * >(argp1);
16292 {
16293 arg2 = wxString_in_helper(obj1);
16294 if (arg2 == NULL) SWIG_fail;
16295 temp2 = true;
16296 }
16297 if (obj2) {
16298 {
16299 arg3 = wxString_in_helper(obj2);
16300 if (arg3 == NULL) SWIG_fail;
16301 temp3 = true;
16302 }
16303 }
16304 {
16305 PyThreadState* __tstate = wxPyBeginAllowThreads();
16306 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16307 wxPyEndAllowThreads(__tstate);
16308 if (PyErr_Occurred()) SWIG_fail;
16309 }
16310 {
16311 #if wxUSE_UNICODE
16312 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16313 #else
16314 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16315 #endif
16316 }
16317 {
16318 if (temp2)
16319 delete arg2;
16320 }
16321 {
16322 if (temp3)
16323 delete arg3;
16324 }
16325 return resultobj;
16326 fail:
16327 {
16328 if (temp2)
16329 delete arg2;
16330 }
16331 {
16332 if (temp3)
16333 delete arg3;
16334 }
16335 return NULL;
16336 }
16337
16338
16339 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16340 PyObject *resultobj = 0;
16341 wxLocale *arg1 = (wxLocale *) 0 ;
16342 wxString *result = 0 ;
16343 void *argp1 = 0 ;
16344 int res1 = 0 ;
16345 PyObject *swig_obj[1] ;
16346
16347 if (!args) SWIG_fail;
16348 swig_obj[0] = args;
16349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16350 if (!SWIG_IsOK(res1)) {
16351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16352 }
16353 arg1 = reinterpret_cast< wxLocale * >(argp1);
16354 {
16355 PyThreadState* __tstate = wxPyBeginAllowThreads();
16356 {
16357 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16358 result = (wxString *) &_result_ref;
16359 }
16360 wxPyEndAllowThreads(__tstate);
16361 if (PyErr_Occurred()) SWIG_fail;
16362 }
16363 {
16364 #if wxUSE_UNICODE
16365 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16366 #else
16367 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16368 #endif
16369 }
16370 return resultobj;
16371 fail:
16372 return NULL;
16373 }
16374
16375
16376 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16377 PyObject *obj;
16378 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16379 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16380 return SWIG_Py_Void();
16381 }
16382
16383 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16384 return SWIG_Python_InitShadowInstance(args);
16385 }
16386
16387 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16388 PyObject *resultobj = 0;
16389 int arg1 = (int) -1 ;
16390 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16391 wxPyLocale *result = 0 ;
16392 int val1 ;
16393 int ecode1 = 0 ;
16394 int val2 ;
16395 int ecode2 = 0 ;
16396 PyObject * obj0 = 0 ;
16397 PyObject * obj1 = 0 ;
16398 char * kwnames[] = {
16399 (char *) "language",(char *) "flags", NULL
16400 };
16401
16402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16403 if (obj0) {
16404 ecode1 = SWIG_AsVal_int(obj0, &val1);
16405 if (!SWIG_IsOK(ecode1)) {
16406 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16407 }
16408 arg1 = static_cast< int >(val1);
16409 }
16410 if (obj1) {
16411 ecode2 = SWIG_AsVal_int(obj1, &val2);
16412 if (!SWIG_IsOK(ecode2)) {
16413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16414 }
16415 arg2 = static_cast< int >(val2);
16416 }
16417 {
16418 PyThreadState* __tstate = wxPyBeginAllowThreads();
16419 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16420 wxPyEndAllowThreads(__tstate);
16421 if (PyErr_Occurred()) SWIG_fail;
16422 }
16423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16424 return resultobj;
16425 fail:
16426 return NULL;
16427 }
16428
16429
16430 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16431 PyObject *resultobj = 0;
16432 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16433 void *argp1 = 0 ;
16434 int res1 = 0 ;
16435 PyObject *swig_obj[1] ;
16436
16437 if (!args) SWIG_fail;
16438 swig_obj[0] = args;
16439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16440 if (!SWIG_IsOK(res1)) {
16441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16442 }
16443 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16444 {
16445 PyThreadState* __tstate = wxPyBeginAllowThreads();
16446 delete arg1;
16447
16448 wxPyEndAllowThreads(__tstate);
16449 if (PyErr_Occurred()) SWIG_fail;
16450 }
16451 resultobj = SWIG_Py_Void();
16452 return resultobj;
16453 fail:
16454 return NULL;
16455 }
16456
16457
16458 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16459 PyObject *resultobj = 0;
16460 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16461 PyObject *arg2 = (PyObject *) 0 ;
16462 PyObject *arg3 = (PyObject *) 0 ;
16463 void *argp1 = 0 ;
16464 int res1 = 0 ;
16465 PyObject * obj0 = 0 ;
16466 PyObject * obj1 = 0 ;
16467 PyObject * obj2 = 0 ;
16468 char * kwnames[] = {
16469 (char *) "self",(char *) "self",(char *) "_class", NULL
16470 };
16471
16472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16474 if (!SWIG_IsOK(res1)) {
16475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16476 }
16477 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16478 arg2 = obj1;
16479 arg3 = obj2;
16480 {
16481 PyThreadState* __tstate = wxPyBeginAllowThreads();
16482 (arg1)->_setCallbackInfo(arg2,arg3);
16483 wxPyEndAllowThreads(__tstate);
16484 if (PyErr_Occurred()) SWIG_fail;
16485 }
16486 resultobj = SWIG_Py_Void();
16487 return resultobj;
16488 fail:
16489 return NULL;
16490 }
16491
16492
16493 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16494 PyObject *resultobj = 0;
16495 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16496 wxChar *arg2 = (wxChar *) 0 ;
16497 wxChar *arg3 = (wxChar *) NULL ;
16498 wxChar *result = 0 ;
16499 void *argp1 = 0 ;
16500 int res1 = 0 ;
16501 void *argp2 = 0 ;
16502 int res2 = 0 ;
16503 void *argp3 = 0 ;
16504 int res3 = 0 ;
16505 PyObject * obj0 = 0 ;
16506 PyObject * obj1 = 0 ;
16507 PyObject * obj2 = 0 ;
16508 char * kwnames[] = {
16509 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16510 };
16511
16512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16514 if (!SWIG_IsOK(res1)) {
16515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16516 }
16517 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16518 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16519 if (!SWIG_IsOK(res2)) {
16520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16521 }
16522 arg2 = reinterpret_cast< wxChar * >(argp2);
16523 if (obj2) {
16524 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16525 if (!SWIG_IsOK(res3)) {
16526 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16527 }
16528 arg3 = reinterpret_cast< wxChar * >(argp3);
16529 }
16530 {
16531 PyThreadState* __tstate = wxPyBeginAllowThreads();
16532 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16533 wxPyEndAllowThreads(__tstate);
16534 if (PyErr_Occurred()) SWIG_fail;
16535 }
16536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16537 return resultobj;
16538 fail:
16539 return NULL;
16540 }
16541
16542
16543 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16544 PyObject *resultobj = 0;
16545 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16546 wxChar *arg2 = (wxChar *) 0 ;
16547 wxChar *arg3 = (wxChar *) 0 ;
16548 size_t arg4 ;
16549 wxChar *arg5 = (wxChar *) NULL ;
16550 wxChar *result = 0 ;
16551 void *argp1 = 0 ;
16552 int res1 = 0 ;
16553 void *argp2 = 0 ;
16554 int res2 = 0 ;
16555 void *argp3 = 0 ;
16556 int res3 = 0 ;
16557 size_t val4 ;
16558 int ecode4 = 0 ;
16559 void *argp5 = 0 ;
16560 int res5 = 0 ;
16561 PyObject * obj0 = 0 ;
16562 PyObject * obj1 = 0 ;
16563 PyObject * obj2 = 0 ;
16564 PyObject * obj3 = 0 ;
16565 PyObject * obj4 = 0 ;
16566 char * kwnames[] = {
16567 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16568 };
16569
16570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16572 if (!SWIG_IsOK(res1)) {
16573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16574 }
16575 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16576 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16577 if (!SWIG_IsOK(res2)) {
16578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16579 }
16580 arg2 = reinterpret_cast< wxChar * >(argp2);
16581 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16582 if (!SWIG_IsOK(res3)) {
16583 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16584 }
16585 arg3 = reinterpret_cast< wxChar * >(argp3);
16586 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16587 if (!SWIG_IsOK(ecode4)) {
16588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16589 }
16590 arg4 = static_cast< size_t >(val4);
16591 if (obj4) {
16592 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16593 if (!SWIG_IsOK(res5)) {
16594 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16595 }
16596 arg5 = reinterpret_cast< wxChar * >(argp5);
16597 }
16598 {
16599 PyThreadState* __tstate = wxPyBeginAllowThreads();
16600 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16601 wxPyEndAllowThreads(__tstate);
16602 if (PyErr_Occurred()) SWIG_fail;
16603 }
16604 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16605 return resultobj;
16606 fail:
16607 return NULL;
16608 }
16609
16610
16611 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16612 PyObject *obj;
16613 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16614 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16615 return SWIG_Py_Void();
16616 }
16617
16618 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16619 return SWIG_Python_InitShadowInstance(args);
16620 }
16621
16622 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16623 PyObject *resultobj = 0;
16624 wxLocale *result = 0 ;
16625
16626 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16627 {
16628 PyThreadState* __tstate = wxPyBeginAllowThreads();
16629 result = (wxLocale *)wxGetLocale();
16630 wxPyEndAllowThreads(__tstate);
16631 if (PyErr_Occurred()) SWIG_fail;
16632 }
16633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16634 return resultobj;
16635 fail:
16636 return NULL;
16637 }
16638
16639
16640 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16641 PyObject *resultobj = 0;
16642 wxString *arg1 = 0 ;
16643 wxString result;
16644 bool temp1 = false ;
16645
16646 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16647 {
16648 arg1 = wxString_in_helper(swig_obj[0]);
16649 if (arg1 == NULL) SWIG_fail;
16650 temp1 = true;
16651 }
16652 {
16653 PyThreadState* __tstate = wxPyBeginAllowThreads();
16654 result = wxGetTranslation((wxString const &)*arg1);
16655 wxPyEndAllowThreads(__tstate);
16656 if (PyErr_Occurred()) SWIG_fail;
16657 }
16658 {
16659 #if wxUSE_UNICODE
16660 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16661 #else
16662 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16663 #endif
16664 }
16665 {
16666 if (temp1)
16667 delete arg1;
16668 }
16669 return resultobj;
16670 fail:
16671 {
16672 if (temp1)
16673 delete arg1;
16674 }
16675 return NULL;
16676 }
16677
16678
16679 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16680 PyObject *resultobj = 0;
16681 wxString *arg1 = 0 ;
16682 wxString *arg2 = 0 ;
16683 wxString result;
16684 bool temp1 = false ;
16685 bool temp2 = false ;
16686
16687 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16688 {
16689 arg1 = wxString_in_helper(swig_obj[0]);
16690 if (arg1 == NULL) SWIG_fail;
16691 temp1 = true;
16692 }
16693 {
16694 arg2 = wxString_in_helper(swig_obj[1]);
16695 if (arg2 == NULL) SWIG_fail;
16696 temp2 = true;
16697 }
16698 {
16699 PyThreadState* __tstate = wxPyBeginAllowThreads();
16700 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16701 wxPyEndAllowThreads(__tstate);
16702 if (PyErr_Occurred()) SWIG_fail;
16703 }
16704 {
16705 #if wxUSE_UNICODE
16706 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16707 #else
16708 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16709 #endif
16710 }
16711 {
16712 if (temp1)
16713 delete arg1;
16714 }
16715 {
16716 if (temp2)
16717 delete arg2;
16718 }
16719 return resultobj;
16720 fail:
16721 {
16722 if (temp1)
16723 delete arg1;
16724 }
16725 {
16726 if (temp2)
16727 delete arg2;
16728 }
16729 return NULL;
16730 }
16731
16732
16733 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16734 PyObject *resultobj = 0;
16735 wxString *arg1 = 0 ;
16736 wxString *arg2 = 0 ;
16737 size_t arg3 ;
16738 wxString result;
16739 bool temp1 = false ;
16740 bool temp2 = false ;
16741 size_t val3 ;
16742 int ecode3 = 0 ;
16743
16744 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16745 {
16746 arg1 = wxString_in_helper(swig_obj[0]);
16747 if (arg1 == NULL) SWIG_fail;
16748 temp1 = true;
16749 }
16750 {
16751 arg2 = wxString_in_helper(swig_obj[1]);
16752 if (arg2 == NULL) SWIG_fail;
16753 temp2 = true;
16754 }
16755 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16756 if (!SWIG_IsOK(ecode3)) {
16757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16758 }
16759 arg3 = static_cast< size_t >(val3);
16760 {
16761 PyThreadState* __tstate = wxPyBeginAllowThreads();
16762 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16763 wxPyEndAllowThreads(__tstate);
16764 if (PyErr_Occurred()) SWIG_fail;
16765 }
16766 {
16767 #if wxUSE_UNICODE
16768 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16769 #else
16770 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16771 #endif
16772 }
16773 {
16774 if (temp1)
16775 delete arg1;
16776 }
16777 {
16778 if (temp2)
16779 delete arg2;
16780 }
16781 return resultobj;
16782 fail:
16783 {
16784 if (temp1)
16785 delete arg1;
16786 }
16787 {
16788 if (temp2)
16789 delete arg2;
16790 }
16791 return NULL;
16792 }
16793
16794
16795 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16796 PyObject *resultobj = 0;
16797 wxString *arg1 = 0 ;
16798 wxString *arg2 = 0 ;
16799 size_t arg3 ;
16800 wxString *arg4 = 0 ;
16801 wxString result;
16802 bool temp1 = false ;
16803 bool temp2 = false ;
16804 size_t val3 ;
16805 int ecode3 = 0 ;
16806 bool temp4 = false ;
16807
16808 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16809 {
16810 arg1 = wxString_in_helper(swig_obj[0]);
16811 if (arg1 == NULL) SWIG_fail;
16812 temp1 = true;
16813 }
16814 {
16815 arg2 = wxString_in_helper(swig_obj[1]);
16816 if (arg2 == NULL) SWIG_fail;
16817 temp2 = true;
16818 }
16819 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16820 if (!SWIG_IsOK(ecode3)) {
16821 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16822 }
16823 arg3 = static_cast< size_t >(val3);
16824 {
16825 arg4 = wxString_in_helper(swig_obj[3]);
16826 if (arg4 == NULL) SWIG_fail;
16827 temp4 = true;
16828 }
16829 {
16830 PyThreadState* __tstate = wxPyBeginAllowThreads();
16831 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16832 wxPyEndAllowThreads(__tstate);
16833 if (PyErr_Occurred()) SWIG_fail;
16834 }
16835 {
16836 #if wxUSE_UNICODE
16837 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16838 #else
16839 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16840 #endif
16841 }
16842 {
16843 if (temp1)
16844 delete arg1;
16845 }
16846 {
16847 if (temp2)
16848 delete arg2;
16849 }
16850 {
16851 if (temp4)
16852 delete arg4;
16853 }
16854 return resultobj;
16855 fail:
16856 {
16857 if (temp1)
16858 delete arg1;
16859 }
16860 {
16861 if (temp2)
16862 delete arg2;
16863 }
16864 {
16865 if (temp4)
16866 delete arg4;
16867 }
16868 return NULL;
16869 }
16870
16871
16872 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16873 int argc;
16874 PyObject *argv[5];
16875
16876 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16877 --argc;
16878 if (argc == 1) {
16879 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16880 }
16881 if (argc == 2) {
16882 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16883 }
16884 if (argc == 3) {
16885 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16886 }
16887 if (argc == 4) {
16888 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16889 }
16890
16891 fail:
16892 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16893 return NULL;
16894 }
16895
16896
16897 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16898 PyObject *resultobj = 0;
16899 wxEncodingConverter *result = 0 ;
16900
16901 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16902 {
16903 PyThreadState* __tstate = wxPyBeginAllowThreads();
16904 result = (wxEncodingConverter *)new wxEncodingConverter();
16905 wxPyEndAllowThreads(__tstate);
16906 if (PyErr_Occurred()) SWIG_fail;
16907 }
16908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16909 return resultobj;
16910 fail:
16911 return NULL;
16912 }
16913
16914
16915 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16916 PyObject *resultobj = 0;
16917 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16918 void *argp1 = 0 ;
16919 int res1 = 0 ;
16920 PyObject *swig_obj[1] ;
16921
16922 if (!args) SWIG_fail;
16923 swig_obj[0] = args;
16924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16925 if (!SWIG_IsOK(res1)) {
16926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16927 }
16928 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16929 {
16930 PyThreadState* __tstate = wxPyBeginAllowThreads();
16931 delete arg1;
16932
16933 wxPyEndAllowThreads(__tstate);
16934 if (PyErr_Occurred()) SWIG_fail;
16935 }
16936 resultobj = SWIG_Py_Void();
16937 return resultobj;
16938 fail:
16939 return NULL;
16940 }
16941
16942
16943 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16944 PyObject *resultobj = 0;
16945 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16946 wxFontEncoding arg2 ;
16947 wxFontEncoding arg3 ;
16948 int arg4 = (int) wxCONVERT_STRICT ;
16949 bool result;
16950 void *argp1 = 0 ;
16951 int res1 = 0 ;
16952 int val2 ;
16953 int ecode2 = 0 ;
16954 int val3 ;
16955 int ecode3 = 0 ;
16956 int val4 ;
16957 int ecode4 = 0 ;
16958 PyObject * obj0 = 0 ;
16959 PyObject * obj1 = 0 ;
16960 PyObject * obj2 = 0 ;
16961 PyObject * obj3 = 0 ;
16962 char * kwnames[] = {
16963 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16964 };
16965
16966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16968 if (!SWIG_IsOK(res1)) {
16969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16970 }
16971 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16972 ecode2 = SWIG_AsVal_int(obj1, &val2);
16973 if (!SWIG_IsOK(ecode2)) {
16974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16975 }
16976 arg2 = static_cast< wxFontEncoding >(val2);
16977 ecode3 = SWIG_AsVal_int(obj2, &val3);
16978 if (!SWIG_IsOK(ecode3)) {
16979 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16980 }
16981 arg3 = static_cast< wxFontEncoding >(val3);
16982 if (obj3) {
16983 ecode4 = SWIG_AsVal_int(obj3, &val4);
16984 if (!SWIG_IsOK(ecode4)) {
16985 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16986 }
16987 arg4 = static_cast< int >(val4);
16988 }
16989 {
16990 PyThreadState* __tstate = wxPyBeginAllowThreads();
16991 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16992 wxPyEndAllowThreads(__tstate);
16993 if (PyErr_Occurred()) SWIG_fail;
16994 }
16995 {
16996 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16997 }
16998 return resultobj;
16999 fail:
17000 return NULL;
17001 }
17002
17003
17004 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17005 PyObject *resultobj = 0;
17006 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17007 wxString *arg2 = 0 ;
17008 wxString result;
17009 void *argp1 = 0 ;
17010 int res1 = 0 ;
17011 bool temp2 = false ;
17012 PyObject * obj0 = 0 ;
17013 PyObject * obj1 = 0 ;
17014 char * kwnames[] = {
17015 (char *) "self",(char *) "input", NULL
17016 };
17017
17018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17020 if (!SWIG_IsOK(res1)) {
17021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17022 }
17023 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17024 {
17025 arg2 = wxString_in_helper(obj1);
17026 if (arg2 == NULL) SWIG_fail;
17027 temp2 = true;
17028 }
17029 {
17030 PyThreadState* __tstate = wxPyBeginAllowThreads();
17031 result = (arg1)->Convert((wxString const &)*arg2);
17032 wxPyEndAllowThreads(__tstate);
17033 if (PyErr_Occurred()) SWIG_fail;
17034 }
17035 {
17036 #if wxUSE_UNICODE
17037 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17038 #else
17039 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17040 #endif
17041 }
17042 {
17043 if (temp2)
17044 delete arg2;
17045 }
17046 return resultobj;
17047 fail:
17048 {
17049 if (temp2)
17050 delete arg2;
17051 }
17052 return NULL;
17053 }
17054
17055
17056 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17057 PyObject *resultobj = 0;
17058 wxFontEncoding arg1 ;
17059 int arg2 = (int) wxPLATFORM_CURRENT ;
17060 wxFontEncodingArray result;
17061 int val1 ;
17062 int ecode1 = 0 ;
17063 int val2 ;
17064 int ecode2 = 0 ;
17065 PyObject * obj0 = 0 ;
17066 PyObject * obj1 = 0 ;
17067 char * kwnames[] = {
17068 (char *) "enc",(char *) "platform", NULL
17069 };
17070
17071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17072 ecode1 = SWIG_AsVal_int(obj0, &val1);
17073 if (!SWIG_IsOK(ecode1)) {
17074 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17075 }
17076 arg1 = static_cast< wxFontEncoding >(val1);
17077 if (obj1) {
17078 ecode2 = SWIG_AsVal_int(obj1, &val2);
17079 if (!SWIG_IsOK(ecode2)) {
17080 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17081 }
17082 arg2 = static_cast< int >(val2);
17083 }
17084 {
17085 PyThreadState* __tstate = wxPyBeginAllowThreads();
17086 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17087 wxPyEndAllowThreads(__tstate);
17088 if (PyErr_Occurred()) SWIG_fail;
17089 }
17090 {
17091 resultobj = PyList_New(0);
17092 for (size_t i=0; i < (&result)->GetCount(); i++) {
17093 PyObject* number = PyInt_FromLong((&result)->Item(i));
17094 PyList_Append(resultobj, number);
17095 Py_DECREF(number);
17096 }
17097 }
17098 return resultobj;
17099 fail:
17100 return NULL;
17101 }
17102
17103
17104 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17105 PyObject *resultobj = 0;
17106 wxFontEncoding arg1 ;
17107 wxFontEncodingArray result;
17108 int val1 ;
17109 int ecode1 = 0 ;
17110 PyObject * obj0 = 0 ;
17111 char * kwnames[] = {
17112 (char *) "enc", NULL
17113 };
17114
17115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17116 ecode1 = SWIG_AsVal_int(obj0, &val1);
17117 if (!SWIG_IsOK(ecode1)) {
17118 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17119 }
17120 arg1 = static_cast< wxFontEncoding >(val1);
17121 {
17122 PyThreadState* __tstate = wxPyBeginAllowThreads();
17123 result = wxEncodingConverter::GetAllEquivalents(arg1);
17124 wxPyEndAllowThreads(__tstate);
17125 if (PyErr_Occurred()) SWIG_fail;
17126 }
17127 {
17128 resultobj = PyList_New(0);
17129 for (size_t i=0; i < (&result)->GetCount(); i++) {
17130 PyObject* number = PyInt_FromLong((&result)->Item(i));
17131 PyList_Append(resultobj, number);
17132 Py_DECREF(number);
17133 }
17134 }
17135 return resultobj;
17136 fail:
17137 return NULL;
17138 }
17139
17140
17141 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17142 PyObject *resultobj = 0;
17143 wxFontEncoding arg1 ;
17144 wxFontEncoding arg2 ;
17145 bool result;
17146 int val1 ;
17147 int ecode1 = 0 ;
17148 int val2 ;
17149 int ecode2 = 0 ;
17150 PyObject * obj0 = 0 ;
17151 PyObject * obj1 = 0 ;
17152 char * kwnames[] = {
17153 (char *) "encIn",(char *) "encOut", NULL
17154 };
17155
17156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17157 ecode1 = SWIG_AsVal_int(obj0, &val1);
17158 if (!SWIG_IsOK(ecode1)) {
17159 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17160 }
17161 arg1 = static_cast< wxFontEncoding >(val1);
17162 ecode2 = SWIG_AsVal_int(obj1, &val2);
17163 if (!SWIG_IsOK(ecode2)) {
17164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17165 }
17166 arg2 = static_cast< wxFontEncoding >(val2);
17167 {
17168 PyThreadState* __tstate = wxPyBeginAllowThreads();
17169 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17170 wxPyEndAllowThreads(__tstate);
17171 if (PyErr_Occurred()) SWIG_fail;
17172 }
17173 {
17174 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17175 }
17176 return resultobj;
17177 fail:
17178 return NULL;
17179 }
17180
17181
17182 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17183 PyObject *obj;
17184 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17185 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17186 return SWIG_Py_Void();
17187 }
17188
17189 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17190 return SWIG_Python_InitShadowInstance(args);
17191 }
17192
17193 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17194 PyObject *resultobj = 0;
17195 wxDC *arg1 = (wxDC *) 0 ;
17196 void *argp1 = 0 ;
17197 int res1 = 0 ;
17198 PyObject *swig_obj[1] ;
17199
17200 if (!args) SWIG_fail;
17201 swig_obj[0] = args;
17202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17203 if (!SWIG_IsOK(res1)) {
17204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17205 }
17206 arg1 = reinterpret_cast< wxDC * >(argp1);
17207 {
17208 PyThreadState* __tstate = wxPyBeginAllowThreads();
17209 delete arg1;
17210
17211 wxPyEndAllowThreads(__tstate);
17212 if (PyErr_Occurred()) SWIG_fail;
17213 }
17214 resultobj = SWIG_Py_Void();
17215 return resultobj;
17216 fail:
17217 return NULL;
17218 }
17219
17220
17221 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17222 PyObject *resultobj = 0;
17223 wxDC *arg1 = (wxDC *) 0 ;
17224 int arg2 ;
17225 int arg3 ;
17226 wxColour *arg4 = 0 ;
17227 int arg5 = (int) wxFLOOD_SURFACE ;
17228 bool result;
17229 void *argp1 = 0 ;
17230 int res1 = 0 ;
17231 int val2 ;
17232 int ecode2 = 0 ;
17233 int val3 ;
17234 int ecode3 = 0 ;
17235 wxColour temp4 ;
17236 int val5 ;
17237 int ecode5 = 0 ;
17238 PyObject * obj0 = 0 ;
17239 PyObject * obj1 = 0 ;
17240 PyObject * obj2 = 0 ;
17241 PyObject * obj3 = 0 ;
17242 PyObject * obj4 = 0 ;
17243 char * kwnames[] = {
17244 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17245 };
17246
17247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17249 if (!SWIG_IsOK(res1)) {
17250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17251 }
17252 arg1 = reinterpret_cast< wxDC * >(argp1);
17253 ecode2 = SWIG_AsVal_int(obj1, &val2);
17254 if (!SWIG_IsOK(ecode2)) {
17255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17256 }
17257 arg2 = static_cast< int >(val2);
17258 ecode3 = SWIG_AsVal_int(obj2, &val3);
17259 if (!SWIG_IsOK(ecode3)) {
17260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17261 }
17262 arg3 = static_cast< int >(val3);
17263 {
17264 arg4 = &temp4;
17265 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17266 }
17267 if (obj4) {
17268 ecode5 = SWIG_AsVal_int(obj4, &val5);
17269 if (!SWIG_IsOK(ecode5)) {
17270 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17271 }
17272 arg5 = static_cast< int >(val5);
17273 }
17274 {
17275 PyThreadState* __tstate = wxPyBeginAllowThreads();
17276 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17277 wxPyEndAllowThreads(__tstate);
17278 if (PyErr_Occurred()) SWIG_fail;
17279 }
17280 {
17281 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17282 }
17283 return resultobj;
17284 fail:
17285 return NULL;
17286 }
17287
17288
17289 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17290 PyObject *resultobj = 0;
17291 wxDC *arg1 = (wxDC *) 0 ;
17292 wxPoint *arg2 = 0 ;
17293 wxColour *arg3 = 0 ;
17294 int arg4 = (int) wxFLOOD_SURFACE ;
17295 bool result;
17296 void *argp1 = 0 ;
17297 int res1 = 0 ;
17298 wxPoint temp2 ;
17299 wxColour temp3 ;
17300 int val4 ;
17301 int ecode4 = 0 ;
17302 PyObject * obj0 = 0 ;
17303 PyObject * obj1 = 0 ;
17304 PyObject * obj2 = 0 ;
17305 PyObject * obj3 = 0 ;
17306 char * kwnames[] = {
17307 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17308 };
17309
17310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17312 if (!SWIG_IsOK(res1)) {
17313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17314 }
17315 arg1 = reinterpret_cast< wxDC * >(argp1);
17316 {
17317 arg2 = &temp2;
17318 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17319 }
17320 {
17321 arg3 = &temp3;
17322 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17323 }
17324 if (obj3) {
17325 ecode4 = SWIG_AsVal_int(obj3, &val4);
17326 if (!SWIG_IsOK(ecode4)) {
17327 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17328 }
17329 arg4 = static_cast< int >(val4);
17330 }
17331 {
17332 PyThreadState* __tstate = wxPyBeginAllowThreads();
17333 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17334 wxPyEndAllowThreads(__tstate);
17335 if (PyErr_Occurred()) SWIG_fail;
17336 }
17337 {
17338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17339 }
17340 return resultobj;
17341 fail:
17342 return NULL;
17343 }
17344
17345
17346 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17347 PyObject *resultobj = 0;
17348 wxDC *arg1 = (wxDC *) 0 ;
17349 wxRect *arg2 = 0 ;
17350 wxColour *arg3 = 0 ;
17351 wxColour *arg4 = 0 ;
17352 wxPoint *arg5 = 0 ;
17353 void *argp1 = 0 ;
17354 int res1 = 0 ;
17355 wxRect temp2 ;
17356 wxColour temp3 ;
17357 wxColour temp4 ;
17358 wxPoint temp5 ;
17359 PyObject * obj0 = 0 ;
17360 PyObject * obj1 = 0 ;
17361 PyObject * obj2 = 0 ;
17362 PyObject * obj3 = 0 ;
17363 PyObject * obj4 = 0 ;
17364 char * kwnames[] = {
17365 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17366 };
17367
17368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17370 if (!SWIG_IsOK(res1)) {
17371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17372 }
17373 arg1 = reinterpret_cast< wxDC * >(argp1);
17374 {
17375 arg2 = &temp2;
17376 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17377 }
17378 {
17379 arg3 = &temp3;
17380 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17381 }
17382 {
17383 arg4 = &temp4;
17384 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17385 }
17386 {
17387 arg5 = &temp5;
17388 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17389 }
17390 {
17391 PyThreadState* __tstate = wxPyBeginAllowThreads();
17392 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17393 wxPyEndAllowThreads(__tstate);
17394 if (PyErr_Occurred()) SWIG_fail;
17395 }
17396 resultobj = SWIG_Py_Void();
17397 return resultobj;
17398 fail:
17399 return NULL;
17400 }
17401
17402
17403 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17404 PyObject *resultobj = 0;
17405 wxDC *arg1 = (wxDC *) 0 ;
17406 wxRect *arg2 = 0 ;
17407 wxColour *arg3 = 0 ;
17408 wxColour *arg4 = 0 ;
17409 wxDirection arg5 = (wxDirection) wxEAST ;
17410 void *argp1 = 0 ;
17411 int res1 = 0 ;
17412 wxRect temp2 ;
17413 wxColour temp3 ;
17414 wxColour temp4 ;
17415 int val5 ;
17416 int ecode5 = 0 ;
17417 PyObject * obj0 = 0 ;
17418 PyObject * obj1 = 0 ;
17419 PyObject * obj2 = 0 ;
17420 PyObject * obj3 = 0 ;
17421 PyObject * obj4 = 0 ;
17422 char * kwnames[] = {
17423 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17424 };
17425
17426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17428 if (!SWIG_IsOK(res1)) {
17429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17430 }
17431 arg1 = reinterpret_cast< wxDC * >(argp1);
17432 {
17433 arg2 = &temp2;
17434 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17435 }
17436 {
17437 arg3 = &temp3;
17438 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17439 }
17440 {
17441 arg4 = &temp4;
17442 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17443 }
17444 if (obj4) {
17445 ecode5 = SWIG_AsVal_int(obj4, &val5);
17446 if (!SWIG_IsOK(ecode5)) {
17447 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17448 }
17449 arg5 = static_cast< wxDirection >(val5);
17450 }
17451 {
17452 PyThreadState* __tstate = wxPyBeginAllowThreads();
17453 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17454 wxPyEndAllowThreads(__tstate);
17455 if (PyErr_Occurred()) SWIG_fail;
17456 }
17457 resultobj = SWIG_Py_Void();
17458 return resultobj;
17459 fail:
17460 return NULL;
17461 }
17462
17463
17464 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17465 PyObject *resultobj = 0;
17466 wxDC *arg1 = (wxDC *) 0 ;
17467 int arg2 ;
17468 int arg3 ;
17469 wxColour result;
17470 void *argp1 = 0 ;
17471 int res1 = 0 ;
17472 int val2 ;
17473 int ecode2 = 0 ;
17474 int val3 ;
17475 int ecode3 = 0 ;
17476 PyObject * obj0 = 0 ;
17477 PyObject * obj1 = 0 ;
17478 PyObject * obj2 = 0 ;
17479 char * kwnames[] = {
17480 (char *) "self",(char *) "x",(char *) "y", NULL
17481 };
17482
17483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17485 if (!SWIG_IsOK(res1)) {
17486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17487 }
17488 arg1 = reinterpret_cast< wxDC * >(argp1);
17489 ecode2 = SWIG_AsVal_int(obj1, &val2);
17490 if (!SWIG_IsOK(ecode2)) {
17491 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17492 }
17493 arg2 = static_cast< int >(val2);
17494 ecode3 = SWIG_AsVal_int(obj2, &val3);
17495 if (!SWIG_IsOK(ecode3)) {
17496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17497 }
17498 arg3 = static_cast< int >(val3);
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 result = wxDC_GetPixel(arg1,arg2,arg3);
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17506 return resultobj;
17507 fail:
17508 return NULL;
17509 }
17510
17511
17512 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17513 PyObject *resultobj = 0;
17514 wxDC *arg1 = (wxDC *) 0 ;
17515 wxPoint *arg2 = 0 ;
17516 wxColour result;
17517 void *argp1 = 0 ;
17518 int res1 = 0 ;
17519 wxPoint temp2 ;
17520 PyObject * obj0 = 0 ;
17521 PyObject * obj1 = 0 ;
17522 char * kwnames[] = {
17523 (char *) "self",(char *) "pt", NULL
17524 };
17525
17526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17528 if (!SWIG_IsOK(res1)) {
17529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17530 }
17531 arg1 = reinterpret_cast< wxDC * >(argp1);
17532 {
17533 arg2 = &temp2;
17534 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17535 }
17536 {
17537 PyThreadState* __tstate = wxPyBeginAllowThreads();
17538 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17539 wxPyEndAllowThreads(__tstate);
17540 if (PyErr_Occurred()) SWIG_fail;
17541 }
17542 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17543 return resultobj;
17544 fail:
17545 return NULL;
17546 }
17547
17548
17549 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17550 PyObject *resultobj = 0;
17551 wxDC *arg1 = (wxDC *) 0 ;
17552 int arg2 ;
17553 int arg3 ;
17554 int arg4 ;
17555 int arg5 ;
17556 void *argp1 = 0 ;
17557 int res1 = 0 ;
17558 int val2 ;
17559 int ecode2 = 0 ;
17560 int val3 ;
17561 int ecode3 = 0 ;
17562 int val4 ;
17563 int ecode4 = 0 ;
17564 int val5 ;
17565 int ecode5 = 0 ;
17566 PyObject * obj0 = 0 ;
17567 PyObject * obj1 = 0 ;
17568 PyObject * obj2 = 0 ;
17569 PyObject * obj3 = 0 ;
17570 PyObject * obj4 = 0 ;
17571 char * kwnames[] = {
17572 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17573 };
17574
17575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17577 if (!SWIG_IsOK(res1)) {
17578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17579 }
17580 arg1 = reinterpret_cast< wxDC * >(argp1);
17581 ecode2 = SWIG_AsVal_int(obj1, &val2);
17582 if (!SWIG_IsOK(ecode2)) {
17583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17584 }
17585 arg2 = static_cast< int >(val2);
17586 ecode3 = SWIG_AsVal_int(obj2, &val3);
17587 if (!SWIG_IsOK(ecode3)) {
17588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17589 }
17590 arg3 = static_cast< int >(val3);
17591 ecode4 = SWIG_AsVal_int(obj3, &val4);
17592 if (!SWIG_IsOK(ecode4)) {
17593 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17594 }
17595 arg4 = static_cast< int >(val4);
17596 ecode5 = SWIG_AsVal_int(obj4, &val5);
17597 if (!SWIG_IsOK(ecode5)) {
17598 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17599 }
17600 arg5 = static_cast< int >(val5);
17601 {
17602 PyThreadState* __tstate = wxPyBeginAllowThreads();
17603 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17604 wxPyEndAllowThreads(__tstate);
17605 if (PyErr_Occurred()) SWIG_fail;
17606 }
17607 resultobj = SWIG_Py_Void();
17608 return resultobj;
17609 fail:
17610 return NULL;
17611 }
17612
17613
17614 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17615 PyObject *resultobj = 0;
17616 wxDC *arg1 = (wxDC *) 0 ;
17617 wxPoint *arg2 = 0 ;
17618 wxPoint *arg3 = 0 ;
17619 void *argp1 = 0 ;
17620 int res1 = 0 ;
17621 wxPoint temp2 ;
17622 wxPoint temp3 ;
17623 PyObject * obj0 = 0 ;
17624 PyObject * obj1 = 0 ;
17625 PyObject * obj2 = 0 ;
17626 char * kwnames[] = {
17627 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17628 };
17629
17630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17632 if (!SWIG_IsOK(res1)) {
17633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17634 }
17635 arg1 = reinterpret_cast< wxDC * >(argp1);
17636 {
17637 arg2 = &temp2;
17638 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17639 }
17640 {
17641 arg3 = &temp3;
17642 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17643 }
17644 {
17645 PyThreadState* __tstate = wxPyBeginAllowThreads();
17646 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17647 wxPyEndAllowThreads(__tstate);
17648 if (PyErr_Occurred()) SWIG_fail;
17649 }
17650 resultobj = SWIG_Py_Void();
17651 return resultobj;
17652 fail:
17653 return NULL;
17654 }
17655
17656
17657 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17658 PyObject *resultobj = 0;
17659 wxDC *arg1 = (wxDC *) 0 ;
17660 int arg2 ;
17661 int arg3 ;
17662 void *argp1 = 0 ;
17663 int res1 = 0 ;
17664 int val2 ;
17665 int ecode2 = 0 ;
17666 int val3 ;
17667 int ecode3 = 0 ;
17668 PyObject * obj0 = 0 ;
17669 PyObject * obj1 = 0 ;
17670 PyObject * obj2 = 0 ;
17671 char * kwnames[] = {
17672 (char *) "self",(char *) "x",(char *) "y", NULL
17673 };
17674
17675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17677 if (!SWIG_IsOK(res1)) {
17678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17679 }
17680 arg1 = reinterpret_cast< wxDC * >(argp1);
17681 ecode2 = SWIG_AsVal_int(obj1, &val2);
17682 if (!SWIG_IsOK(ecode2)) {
17683 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17684 }
17685 arg2 = static_cast< int >(val2);
17686 ecode3 = SWIG_AsVal_int(obj2, &val3);
17687 if (!SWIG_IsOK(ecode3)) {
17688 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17689 }
17690 arg3 = static_cast< int >(val3);
17691 {
17692 PyThreadState* __tstate = wxPyBeginAllowThreads();
17693 (arg1)->CrossHair(arg2,arg3);
17694 wxPyEndAllowThreads(__tstate);
17695 if (PyErr_Occurred()) SWIG_fail;
17696 }
17697 resultobj = SWIG_Py_Void();
17698 return resultobj;
17699 fail:
17700 return NULL;
17701 }
17702
17703
17704 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17705 PyObject *resultobj = 0;
17706 wxDC *arg1 = (wxDC *) 0 ;
17707 wxPoint *arg2 = 0 ;
17708 void *argp1 = 0 ;
17709 int res1 = 0 ;
17710 wxPoint temp2 ;
17711 PyObject * obj0 = 0 ;
17712 PyObject * obj1 = 0 ;
17713 char * kwnames[] = {
17714 (char *) "self",(char *) "pt", NULL
17715 };
17716
17717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17719 if (!SWIG_IsOK(res1)) {
17720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17721 }
17722 arg1 = reinterpret_cast< wxDC * >(argp1);
17723 {
17724 arg2 = &temp2;
17725 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17726 }
17727 {
17728 PyThreadState* __tstate = wxPyBeginAllowThreads();
17729 (arg1)->CrossHair((wxPoint const &)*arg2);
17730 wxPyEndAllowThreads(__tstate);
17731 if (PyErr_Occurred()) SWIG_fail;
17732 }
17733 resultobj = SWIG_Py_Void();
17734 return resultobj;
17735 fail:
17736 return NULL;
17737 }
17738
17739
17740 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17741 PyObject *resultobj = 0;
17742 wxDC *arg1 = (wxDC *) 0 ;
17743 int arg2 ;
17744 int arg3 ;
17745 int arg4 ;
17746 int arg5 ;
17747 int arg6 ;
17748 int arg7 ;
17749 void *argp1 = 0 ;
17750 int res1 = 0 ;
17751 int val2 ;
17752 int ecode2 = 0 ;
17753 int val3 ;
17754 int ecode3 = 0 ;
17755 int val4 ;
17756 int ecode4 = 0 ;
17757 int val5 ;
17758 int ecode5 = 0 ;
17759 int val6 ;
17760 int ecode6 = 0 ;
17761 int val7 ;
17762 int ecode7 = 0 ;
17763 PyObject * obj0 = 0 ;
17764 PyObject * obj1 = 0 ;
17765 PyObject * obj2 = 0 ;
17766 PyObject * obj3 = 0 ;
17767 PyObject * obj4 = 0 ;
17768 PyObject * obj5 = 0 ;
17769 PyObject * obj6 = 0 ;
17770 char * kwnames[] = {
17771 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17772 };
17773
17774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17776 if (!SWIG_IsOK(res1)) {
17777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17778 }
17779 arg1 = reinterpret_cast< wxDC * >(argp1);
17780 ecode2 = SWIG_AsVal_int(obj1, &val2);
17781 if (!SWIG_IsOK(ecode2)) {
17782 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17783 }
17784 arg2 = static_cast< int >(val2);
17785 ecode3 = SWIG_AsVal_int(obj2, &val3);
17786 if (!SWIG_IsOK(ecode3)) {
17787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17788 }
17789 arg3 = static_cast< int >(val3);
17790 ecode4 = SWIG_AsVal_int(obj3, &val4);
17791 if (!SWIG_IsOK(ecode4)) {
17792 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17793 }
17794 arg4 = static_cast< int >(val4);
17795 ecode5 = SWIG_AsVal_int(obj4, &val5);
17796 if (!SWIG_IsOK(ecode5)) {
17797 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17798 }
17799 arg5 = static_cast< int >(val5);
17800 ecode6 = SWIG_AsVal_int(obj5, &val6);
17801 if (!SWIG_IsOK(ecode6)) {
17802 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17803 }
17804 arg6 = static_cast< int >(val6);
17805 ecode7 = SWIG_AsVal_int(obj6, &val7);
17806 if (!SWIG_IsOK(ecode7)) {
17807 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17808 }
17809 arg7 = static_cast< int >(val7);
17810 {
17811 PyThreadState* __tstate = wxPyBeginAllowThreads();
17812 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17813 wxPyEndAllowThreads(__tstate);
17814 if (PyErr_Occurred()) SWIG_fail;
17815 }
17816 resultobj = SWIG_Py_Void();
17817 return resultobj;
17818 fail:
17819 return NULL;
17820 }
17821
17822
17823 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17824 PyObject *resultobj = 0;
17825 wxDC *arg1 = (wxDC *) 0 ;
17826 wxPoint *arg2 = 0 ;
17827 wxPoint *arg3 = 0 ;
17828 wxPoint *arg4 = 0 ;
17829 void *argp1 = 0 ;
17830 int res1 = 0 ;
17831 wxPoint temp2 ;
17832 wxPoint temp3 ;
17833 wxPoint temp4 ;
17834 PyObject * obj0 = 0 ;
17835 PyObject * obj1 = 0 ;
17836 PyObject * obj2 = 0 ;
17837 PyObject * obj3 = 0 ;
17838 char * kwnames[] = {
17839 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17840 };
17841
17842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17844 if (!SWIG_IsOK(res1)) {
17845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17846 }
17847 arg1 = reinterpret_cast< wxDC * >(argp1);
17848 {
17849 arg2 = &temp2;
17850 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17851 }
17852 {
17853 arg3 = &temp3;
17854 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17855 }
17856 {
17857 arg4 = &temp4;
17858 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17859 }
17860 {
17861 PyThreadState* __tstate = wxPyBeginAllowThreads();
17862 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
17863 wxPyEndAllowThreads(__tstate);
17864 if (PyErr_Occurred()) SWIG_fail;
17865 }
17866 resultobj = SWIG_Py_Void();
17867 return resultobj;
17868 fail:
17869 return NULL;
17870 }
17871
17872
17873 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17874 PyObject *resultobj = 0;
17875 wxDC *arg1 = (wxDC *) 0 ;
17876 int arg2 ;
17877 int arg3 ;
17878 int arg4 ;
17879 int arg5 ;
17880 void *argp1 = 0 ;
17881 int res1 = 0 ;
17882 int val2 ;
17883 int ecode2 = 0 ;
17884 int val3 ;
17885 int ecode3 = 0 ;
17886 int val4 ;
17887 int ecode4 = 0 ;
17888 int val5 ;
17889 int ecode5 = 0 ;
17890 PyObject * obj0 = 0 ;
17891 PyObject * obj1 = 0 ;
17892 PyObject * obj2 = 0 ;
17893 PyObject * obj3 = 0 ;
17894 PyObject * obj4 = 0 ;
17895 char * kwnames[] = {
17896 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17897 };
17898
17899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17900 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17901 if (!SWIG_IsOK(res1)) {
17902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17903 }
17904 arg1 = reinterpret_cast< wxDC * >(argp1);
17905 ecode2 = SWIG_AsVal_int(obj1, &val2);
17906 if (!SWIG_IsOK(ecode2)) {
17907 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17908 }
17909 arg2 = static_cast< int >(val2);
17910 ecode3 = SWIG_AsVal_int(obj2, &val3);
17911 if (!SWIG_IsOK(ecode3)) {
17912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17913 }
17914 arg3 = static_cast< int >(val3);
17915 ecode4 = SWIG_AsVal_int(obj3, &val4);
17916 if (!SWIG_IsOK(ecode4)) {
17917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17918 }
17919 arg4 = static_cast< int >(val4);
17920 ecode5 = SWIG_AsVal_int(obj4, &val5);
17921 if (!SWIG_IsOK(ecode5)) {
17922 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17923 }
17924 arg5 = static_cast< int >(val5);
17925 {
17926 PyThreadState* __tstate = wxPyBeginAllowThreads();
17927 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17928 wxPyEndAllowThreads(__tstate);
17929 if (PyErr_Occurred()) SWIG_fail;
17930 }
17931 resultobj = SWIG_Py_Void();
17932 return resultobj;
17933 fail:
17934 return NULL;
17935 }
17936
17937
17938 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17939 PyObject *resultobj = 0;
17940 wxDC *arg1 = (wxDC *) 0 ;
17941 wxRect *arg2 = 0 ;
17942 void *argp1 = 0 ;
17943 int res1 = 0 ;
17944 wxRect temp2 ;
17945 PyObject * obj0 = 0 ;
17946 PyObject * obj1 = 0 ;
17947 char * kwnames[] = {
17948 (char *) "self",(char *) "rect", NULL
17949 };
17950
17951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17953 if (!SWIG_IsOK(res1)) {
17954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17955 }
17956 arg1 = reinterpret_cast< wxDC * >(argp1);
17957 {
17958 arg2 = &temp2;
17959 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17960 }
17961 {
17962 PyThreadState* __tstate = wxPyBeginAllowThreads();
17963 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17964 wxPyEndAllowThreads(__tstate);
17965 if (PyErr_Occurred()) SWIG_fail;
17966 }
17967 resultobj = SWIG_Py_Void();
17968 return resultobj;
17969 fail:
17970 return NULL;
17971 }
17972
17973
17974 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17975 PyObject *resultobj = 0;
17976 wxDC *arg1 = (wxDC *) 0 ;
17977 int arg2 ;
17978 int arg3 ;
17979 int arg4 ;
17980 int arg5 ;
17981 double arg6 ;
17982 double arg7 ;
17983 void *argp1 = 0 ;
17984 int res1 = 0 ;
17985 int val2 ;
17986 int ecode2 = 0 ;
17987 int val3 ;
17988 int ecode3 = 0 ;
17989 int val4 ;
17990 int ecode4 = 0 ;
17991 int val5 ;
17992 int ecode5 = 0 ;
17993 double val6 ;
17994 int ecode6 = 0 ;
17995 double val7 ;
17996 int ecode7 = 0 ;
17997 PyObject * obj0 = 0 ;
17998 PyObject * obj1 = 0 ;
17999 PyObject * obj2 = 0 ;
18000 PyObject * obj3 = 0 ;
18001 PyObject * obj4 = 0 ;
18002 PyObject * obj5 = 0 ;
18003 PyObject * obj6 = 0 ;
18004 char * kwnames[] = {
18005 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18006 };
18007
18008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18010 if (!SWIG_IsOK(res1)) {
18011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18012 }
18013 arg1 = reinterpret_cast< wxDC * >(argp1);
18014 ecode2 = SWIG_AsVal_int(obj1, &val2);
18015 if (!SWIG_IsOK(ecode2)) {
18016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18017 }
18018 arg2 = static_cast< int >(val2);
18019 ecode3 = SWIG_AsVal_int(obj2, &val3);
18020 if (!SWIG_IsOK(ecode3)) {
18021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18022 }
18023 arg3 = static_cast< int >(val3);
18024 ecode4 = SWIG_AsVal_int(obj3, &val4);
18025 if (!SWIG_IsOK(ecode4)) {
18026 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18027 }
18028 arg4 = static_cast< int >(val4);
18029 ecode5 = SWIG_AsVal_int(obj4, &val5);
18030 if (!SWIG_IsOK(ecode5)) {
18031 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18032 }
18033 arg5 = static_cast< int >(val5);
18034 ecode6 = SWIG_AsVal_double(obj5, &val6);
18035 if (!SWIG_IsOK(ecode6)) {
18036 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18037 }
18038 arg6 = static_cast< double >(val6);
18039 ecode7 = SWIG_AsVal_double(obj6, &val7);
18040 if (!SWIG_IsOK(ecode7)) {
18041 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18042 }
18043 arg7 = static_cast< double >(val7);
18044 {
18045 PyThreadState* __tstate = wxPyBeginAllowThreads();
18046 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18047 wxPyEndAllowThreads(__tstate);
18048 if (PyErr_Occurred()) SWIG_fail;
18049 }
18050 resultobj = SWIG_Py_Void();
18051 return resultobj;
18052 fail:
18053 return NULL;
18054 }
18055
18056
18057 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18058 PyObject *resultobj = 0;
18059 wxDC *arg1 = (wxDC *) 0 ;
18060 wxPoint *arg2 = 0 ;
18061 wxSize *arg3 = 0 ;
18062 double arg4 ;
18063 double arg5 ;
18064 void *argp1 = 0 ;
18065 int res1 = 0 ;
18066 wxPoint temp2 ;
18067 wxSize temp3 ;
18068 double val4 ;
18069 int ecode4 = 0 ;
18070 double val5 ;
18071 int ecode5 = 0 ;
18072 PyObject * obj0 = 0 ;
18073 PyObject * obj1 = 0 ;
18074 PyObject * obj2 = 0 ;
18075 PyObject * obj3 = 0 ;
18076 PyObject * obj4 = 0 ;
18077 char * kwnames[] = {
18078 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18079 };
18080
18081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18083 if (!SWIG_IsOK(res1)) {
18084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18085 }
18086 arg1 = reinterpret_cast< wxDC * >(argp1);
18087 {
18088 arg2 = &temp2;
18089 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18090 }
18091 {
18092 arg3 = &temp3;
18093 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18094 }
18095 ecode4 = SWIG_AsVal_double(obj3, &val4);
18096 if (!SWIG_IsOK(ecode4)) {
18097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18098 }
18099 arg4 = static_cast< double >(val4);
18100 ecode5 = SWIG_AsVal_double(obj4, &val5);
18101 if (!SWIG_IsOK(ecode5)) {
18102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18103 }
18104 arg5 = static_cast< double >(val5);
18105 {
18106 PyThreadState* __tstate = wxPyBeginAllowThreads();
18107 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18108 wxPyEndAllowThreads(__tstate);
18109 if (PyErr_Occurred()) SWIG_fail;
18110 }
18111 resultobj = SWIG_Py_Void();
18112 return resultobj;
18113 fail:
18114 return NULL;
18115 }
18116
18117
18118 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18119 PyObject *resultobj = 0;
18120 wxDC *arg1 = (wxDC *) 0 ;
18121 int arg2 ;
18122 int arg3 ;
18123 void *argp1 = 0 ;
18124 int res1 = 0 ;
18125 int val2 ;
18126 int ecode2 = 0 ;
18127 int val3 ;
18128 int ecode3 = 0 ;
18129 PyObject * obj0 = 0 ;
18130 PyObject * obj1 = 0 ;
18131 PyObject * obj2 = 0 ;
18132 char * kwnames[] = {
18133 (char *) "self",(char *) "x",(char *) "y", NULL
18134 };
18135
18136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18138 if (!SWIG_IsOK(res1)) {
18139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18140 }
18141 arg1 = reinterpret_cast< wxDC * >(argp1);
18142 ecode2 = SWIG_AsVal_int(obj1, &val2);
18143 if (!SWIG_IsOK(ecode2)) {
18144 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18145 }
18146 arg2 = static_cast< int >(val2);
18147 ecode3 = SWIG_AsVal_int(obj2, &val3);
18148 if (!SWIG_IsOK(ecode3)) {
18149 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18150 }
18151 arg3 = static_cast< int >(val3);
18152 {
18153 PyThreadState* __tstate = wxPyBeginAllowThreads();
18154 (arg1)->DrawPoint(arg2,arg3);
18155 wxPyEndAllowThreads(__tstate);
18156 if (PyErr_Occurred()) SWIG_fail;
18157 }
18158 resultobj = SWIG_Py_Void();
18159 return resultobj;
18160 fail:
18161 return NULL;
18162 }
18163
18164
18165 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18166 PyObject *resultobj = 0;
18167 wxDC *arg1 = (wxDC *) 0 ;
18168 wxPoint *arg2 = 0 ;
18169 void *argp1 = 0 ;
18170 int res1 = 0 ;
18171 wxPoint temp2 ;
18172 PyObject * obj0 = 0 ;
18173 PyObject * obj1 = 0 ;
18174 char * kwnames[] = {
18175 (char *) "self",(char *) "pt", NULL
18176 };
18177
18178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18180 if (!SWIG_IsOK(res1)) {
18181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18182 }
18183 arg1 = reinterpret_cast< wxDC * >(argp1);
18184 {
18185 arg2 = &temp2;
18186 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18187 }
18188 {
18189 PyThreadState* __tstate = wxPyBeginAllowThreads();
18190 (arg1)->DrawPoint((wxPoint const &)*arg2);
18191 wxPyEndAllowThreads(__tstate);
18192 if (PyErr_Occurred()) SWIG_fail;
18193 }
18194 resultobj = SWIG_Py_Void();
18195 return resultobj;
18196 fail:
18197 return NULL;
18198 }
18199
18200
18201 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18202 PyObject *resultobj = 0;
18203 wxDC *arg1 = (wxDC *) 0 ;
18204 int arg2 ;
18205 int arg3 ;
18206 int arg4 ;
18207 int arg5 ;
18208 void *argp1 = 0 ;
18209 int res1 = 0 ;
18210 int val2 ;
18211 int ecode2 = 0 ;
18212 int val3 ;
18213 int ecode3 = 0 ;
18214 int val4 ;
18215 int ecode4 = 0 ;
18216 int val5 ;
18217 int ecode5 = 0 ;
18218 PyObject * obj0 = 0 ;
18219 PyObject * obj1 = 0 ;
18220 PyObject * obj2 = 0 ;
18221 PyObject * obj3 = 0 ;
18222 PyObject * obj4 = 0 ;
18223 char * kwnames[] = {
18224 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18225 };
18226
18227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18229 if (!SWIG_IsOK(res1)) {
18230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18231 }
18232 arg1 = reinterpret_cast< wxDC * >(argp1);
18233 ecode2 = SWIG_AsVal_int(obj1, &val2);
18234 if (!SWIG_IsOK(ecode2)) {
18235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18236 }
18237 arg2 = static_cast< int >(val2);
18238 ecode3 = SWIG_AsVal_int(obj2, &val3);
18239 if (!SWIG_IsOK(ecode3)) {
18240 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18241 }
18242 arg3 = static_cast< int >(val3);
18243 ecode4 = SWIG_AsVal_int(obj3, &val4);
18244 if (!SWIG_IsOK(ecode4)) {
18245 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18246 }
18247 arg4 = static_cast< int >(val4);
18248 ecode5 = SWIG_AsVal_int(obj4, &val5);
18249 if (!SWIG_IsOK(ecode5)) {
18250 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18251 }
18252 arg5 = static_cast< int >(val5);
18253 {
18254 PyThreadState* __tstate = wxPyBeginAllowThreads();
18255 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18256 wxPyEndAllowThreads(__tstate);
18257 if (PyErr_Occurred()) SWIG_fail;
18258 }
18259 resultobj = SWIG_Py_Void();
18260 return resultobj;
18261 fail:
18262 return NULL;
18263 }
18264
18265
18266 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18267 PyObject *resultobj = 0;
18268 wxDC *arg1 = (wxDC *) 0 ;
18269 wxRect *arg2 = 0 ;
18270 void *argp1 = 0 ;
18271 int res1 = 0 ;
18272 wxRect temp2 ;
18273 PyObject * obj0 = 0 ;
18274 PyObject * obj1 = 0 ;
18275 char * kwnames[] = {
18276 (char *) "self",(char *) "rect", NULL
18277 };
18278
18279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18281 if (!SWIG_IsOK(res1)) {
18282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18283 }
18284 arg1 = reinterpret_cast< wxDC * >(argp1);
18285 {
18286 arg2 = &temp2;
18287 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18288 }
18289 {
18290 PyThreadState* __tstate = wxPyBeginAllowThreads();
18291 (arg1)->DrawRectangle((wxRect const &)*arg2);
18292 wxPyEndAllowThreads(__tstate);
18293 if (PyErr_Occurred()) SWIG_fail;
18294 }
18295 resultobj = SWIG_Py_Void();
18296 return resultobj;
18297 fail:
18298 return NULL;
18299 }
18300
18301
18302 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18303 PyObject *resultobj = 0;
18304 wxDC *arg1 = (wxDC *) 0 ;
18305 wxPoint *arg2 = 0 ;
18306 wxSize *arg3 = 0 ;
18307 void *argp1 = 0 ;
18308 int res1 = 0 ;
18309 wxPoint temp2 ;
18310 wxSize temp3 ;
18311 PyObject * obj0 = 0 ;
18312 PyObject * obj1 = 0 ;
18313 PyObject * obj2 = 0 ;
18314 char * kwnames[] = {
18315 (char *) "self",(char *) "pt",(char *) "sz", NULL
18316 };
18317
18318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18320 if (!SWIG_IsOK(res1)) {
18321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18322 }
18323 arg1 = reinterpret_cast< wxDC * >(argp1);
18324 {
18325 arg2 = &temp2;
18326 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18327 }
18328 {
18329 arg3 = &temp3;
18330 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18331 }
18332 {
18333 PyThreadState* __tstate = wxPyBeginAllowThreads();
18334 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18335 wxPyEndAllowThreads(__tstate);
18336 if (PyErr_Occurred()) SWIG_fail;
18337 }
18338 resultobj = SWIG_Py_Void();
18339 return resultobj;
18340 fail:
18341 return NULL;
18342 }
18343
18344
18345 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18346 PyObject *resultobj = 0;
18347 wxDC *arg1 = (wxDC *) 0 ;
18348 int arg2 ;
18349 int arg3 ;
18350 int arg4 ;
18351 int arg5 ;
18352 double arg6 ;
18353 void *argp1 = 0 ;
18354 int res1 = 0 ;
18355 int val2 ;
18356 int ecode2 = 0 ;
18357 int val3 ;
18358 int ecode3 = 0 ;
18359 int val4 ;
18360 int ecode4 = 0 ;
18361 int val5 ;
18362 int ecode5 = 0 ;
18363 double val6 ;
18364 int ecode6 = 0 ;
18365 PyObject * obj0 = 0 ;
18366 PyObject * obj1 = 0 ;
18367 PyObject * obj2 = 0 ;
18368 PyObject * obj3 = 0 ;
18369 PyObject * obj4 = 0 ;
18370 PyObject * obj5 = 0 ;
18371 char * kwnames[] = {
18372 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18373 };
18374
18375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18377 if (!SWIG_IsOK(res1)) {
18378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18379 }
18380 arg1 = reinterpret_cast< wxDC * >(argp1);
18381 ecode2 = SWIG_AsVal_int(obj1, &val2);
18382 if (!SWIG_IsOK(ecode2)) {
18383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18384 }
18385 arg2 = static_cast< int >(val2);
18386 ecode3 = SWIG_AsVal_int(obj2, &val3);
18387 if (!SWIG_IsOK(ecode3)) {
18388 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18389 }
18390 arg3 = static_cast< int >(val3);
18391 ecode4 = SWIG_AsVal_int(obj3, &val4);
18392 if (!SWIG_IsOK(ecode4)) {
18393 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18394 }
18395 arg4 = static_cast< int >(val4);
18396 ecode5 = SWIG_AsVal_int(obj4, &val5);
18397 if (!SWIG_IsOK(ecode5)) {
18398 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18399 }
18400 arg5 = static_cast< int >(val5);
18401 ecode6 = SWIG_AsVal_double(obj5, &val6);
18402 if (!SWIG_IsOK(ecode6)) {
18403 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18404 }
18405 arg6 = static_cast< double >(val6);
18406 {
18407 PyThreadState* __tstate = wxPyBeginAllowThreads();
18408 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18409 wxPyEndAllowThreads(__tstate);
18410 if (PyErr_Occurred()) SWIG_fail;
18411 }
18412 resultobj = SWIG_Py_Void();
18413 return resultobj;
18414 fail:
18415 return NULL;
18416 }
18417
18418
18419 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18420 PyObject *resultobj = 0;
18421 wxDC *arg1 = (wxDC *) 0 ;
18422 wxRect *arg2 = 0 ;
18423 double arg3 ;
18424 void *argp1 = 0 ;
18425 int res1 = 0 ;
18426 wxRect temp2 ;
18427 double val3 ;
18428 int ecode3 = 0 ;
18429 PyObject * obj0 = 0 ;
18430 PyObject * obj1 = 0 ;
18431 PyObject * obj2 = 0 ;
18432 char * kwnames[] = {
18433 (char *) "self",(char *) "r",(char *) "radius", NULL
18434 };
18435
18436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18438 if (!SWIG_IsOK(res1)) {
18439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18440 }
18441 arg1 = reinterpret_cast< wxDC * >(argp1);
18442 {
18443 arg2 = &temp2;
18444 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18445 }
18446 ecode3 = SWIG_AsVal_double(obj2, &val3);
18447 if (!SWIG_IsOK(ecode3)) {
18448 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18449 }
18450 arg3 = static_cast< double >(val3);
18451 {
18452 PyThreadState* __tstate = wxPyBeginAllowThreads();
18453 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18454 wxPyEndAllowThreads(__tstate);
18455 if (PyErr_Occurred()) SWIG_fail;
18456 }
18457 resultobj = SWIG_Py_Void();
18458 return resultobj;
18459 fail:
18460 return NULL;
18461 }
18462
18463
18464 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18465 PyObject *resultobj = 0;
18466 wxDC *arg1 = (wxDC *) 0 ;
18467 wxPoint *arg2 = 0 ;
18468 wxSize *arg3 = 0 ;
18469 double arg4 ;
18470 void *argp1 = 0 ;
18471 int res1 = 0 ;
18472 wxPoint temp2 ;
18473 wxSize temp3 ;
18474 double val4 ;
18475 int ecode4 = 0 ;
18476 PyObject * obj0 = 0 ;
18477 PyObject * obj1 = 0 ;
18478 PyObject * obj2 = 0 ;
18479 PyObject * obj3 = 0 ;
18480 char * kwnames[] = {
18481 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18482 };
18483
18484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18486 if (!SWIG_IsOK(res1)) {
18487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18488 }
18489 arg1 = reinterpret_cast< wxDC * >(argp1);
18490 {
18491 arg2 = &temp2;
18492 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18493 }
18494 {
18495 arg3 = &temp3;
18496 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18497 }
18498 ecode4 = SWIG_AsVal_double(obj3, &val4);
18499 if (!SWIG_IsOK(ecode4)) {
18500 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18501 }
18502 arg4 = static_cast< double >(val4);
18503 {
18504 PyThreadState* __tstate = wxPyBeginAllowThreads();
18505 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18506 wxPyEndAllowThreads(__tstate);
18507 if (PyErr_Occurred()) SWIG_fail;
18508 }
18509 resultobj = SWIG_Py_Void();
18510 return resultobj;
18511 fail:
18512 return NULL;
18513 }
18514
18515
18516 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18517 PyObject *resultobj = 0;
18518 wxDC *arg1 = (wxDC *) 0 ;
18519 int arg2 ;
18520 int arg3 ;
18521 int arg4 ;
18522 void *argp1 = 0 ;
18523 int res1 = 0 ;
18524 int val2 ;
18525 int ecode2 = 0 ;
18526 int val3 ;
18527 int ecode3 = 0 ;
18528 int val4 ;
18529 int ecode4 = 0 ;
18530 PyObject * obj0 = 0 ;
18531 PyObject * obj1 = 0 ;
18532 PyObject * obj2 = 0 ;
18533 PyObject * obj3 = 0 ;
18534 char * kwnames[] = {
18535 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18536 };
18537
18538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18540 if (!SWIG_IsOK(res1)) {
18541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18542 }
18543 arg1 = reinterpret_cast< wxDC * >(argp1);
18544 ecode2 = SWIG_AsVal_int(obj1, &val2);
18545 if (!SWIG_IsOK(ecode2)) {
18546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18547 }
18548 arg2 = static_cast< int >(val2);
18549 ecode3 = SWIG_AsVal_int(obj2, &val3);
18550 if (!SWIG_IsOK(ecode3)) {
18551 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18552 }
18553 arg3 = static_cast< int >(val3);
18554 ecode4 = SWIG_AsVal_int(obj3, &val4);
18555 if (!SWIG_IsOK(ecode4)) {
18556 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18557 }
18558 arg4 = static_cast< int >(val4);
18559 {
18560 PyThreadState* __tstate = wxPyBeginAllowThreads();
18561 (arg1)->DrawCircle(arg2,arg3,arg4);
18562 wxPyEndAllowThreads(__tstate);
18563 if (PyErr_Occurred()) SWIG_fail;
18564 }
18565 resultobj = SWIG_Py_Void();
18566 return resultobj;
18567 fail:
18568 return NULL;
18569 }
18570
18571
18572 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18573 PyObject *resultobj = 0;
18574 wxDC *arg1 = (wxDC *) 0 ;
18575 wxPoint *arg2 = 0 ;
18576 int arg3 ;
18577 void *argp1 = 0 ;
18578 int res1 = 0 ;
18579 wxPoint temp2 ;
18580 int val3 ;
18581 int ecode3 = 0 ;
18582 PyObject * obj0 = 0 ;
18583 PyObject * obj1 = 0 ;
18584 PyObject * obj2 = 0 ;
18585 char * kwnames[] = {
18586 (char *) "self",(char *) "pt",(char *) "radius", NULL
18587 };
18588
18589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18591 if (!SWIG_IsOK(res1)) {
18592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18593 }
18594 arg1 = reinterpret_cast< wxDC * >(argp1);
18595 {
18596 arg2 = &temp2;
18597 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18598 }
18599 ecode3 = SWIG_AsVal_int(obj2, &val3);
18600 if (!SWIG_IsOK(ecode3)) {
18601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18602 }
18603 arg3 = static_cast< int >(val3);
18604 {
18605 PyThreadState* __tstate = wxPyBeginAllowThreads();
18606 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18607 wxPyEndAllowThreads(__tstate);
18608 if (PyErr_Occurred()) SWIG_fail;
18609 }
18610 resultobj = SWIG_Py_Void();
18611 return resultobj;
18612 fail:
18613 return NULL;
18614 }
18615
18616
18617 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18618 PyObject *resultobj = 0;
18619 wxDC *arg1 = (wxDC *) 0 ;
18620 int arg2 ;
18621 int arg3 ;
18622 int arg4 ;
18623 int arg5 ;
18624 void *argp1 = 0 ;
18625 int res1 = 0 ;
18626 int val2 ;
18627 int ecode2 = 0 ;
18628 int val3 ;
18629 int ecode3 = 0 ;
18630 int val4 ;
18631 int ecode4 = 0 ;
18632 int val5 ;
18633 int ecode5 = 0 ;
18634 PyObject * obj0 = 0 ;
18635 PyObject * obj1 = 0 ;
18636 PyObject * obj2 = 0 ;
18637 PyObject * obj3 = 0 ;
18638 PyObject * obj4 = 0 ;
18639 char * kwnames[] = {
18640 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18641 };
18642
18643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18645 if (!SWIG_IsOK(res1)) {
18646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18647 }
18648 arg1 = reinterpret_cast< wxDC * >(argp1);
18649 ecode2 = SWIG_AsVal_int(obj1, &val2);
18650 if (!SWIG_IsOK(ecode2)) {
18651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18652 }
18653 arg2 = static_cast< int >(val2);
18654 ecode3 = SWIG_AsVal_int(obj2, &val3);
18655 if (!SWIG_IsOK(ecode3)) {
18656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18657 }
18658 arg3 = static_cast< int >(val3);
18659 ecode4 = SWIG_AsVal_int(obj3, &val4);
18660 if (!SWIG_IsOK(ecode4)) {
18661 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18662 }
18663 arg4 = static_cast< int >(val4);
18664 ecode5 = SWIG_AsVal_int(obj4, &val5);
18665 if (!SWIG_IsOK(ecode5)) {
18666 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18667 }
18668 arg5 = static_cast< int >(val5);
18669 {
18670 PyThreadState* __tstate = wxPyBeginAllowThreads();
18671 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18672 wxPyEndAllowThreads(__tstate);
18673 if (PyErr_Occurred()) SWIG_fail;
18674 }
18675 resultobj = SWIG_Py_Void();
18676 return resultobj;
18677 fail:
18678 return NULL;
18679 }
18680
18681
18682 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18683 PyObject *resultobj = 0;
18684 wxDC *arg1 = (wxDC *) 0 ;
18685 wxRect *arg2 = 0 ;
18686 void *argp1 = 0 ;
18687 int res1 = 0 ;
18688 wxRect temp2 ;
18689 PyObject * obj0 = 0 ;
18690 PyObject * obj1 = 0 ;
18691 char * kwnames[] = {
18692 (char *) "self",(char *) "rect", NULL
18693 };
18694
18695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18697 if (!SWIG_IsOK(res1)) {
18698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18699 }
18700 arg1 = reinterpret_cast< wxDC * >(argp1);
18701 {
18702 arg2 = &temp2;
18703 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18704 }
18705 {
18706 PyThreadState* __tstate = wxPyBeginAllowThreads();
18707 (arg1)->DrawEllipse((wxRect const &)*arg2);
18708 wxPyEndAllowThreads(__tstate);
18709 if (PyErr_Occurred()) SWIG_fail;
18710 }
18711 resultobj = SWIG_Py_Void();
18712 return resultobj;
18713 fail:
18714 return NULL;
18715 }
18716
18717
18718 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18719 PyObject *resultobj = 0;
18720 wxDC *arg1 = (wxDC *) 0 ;
18721 wxPoint *arg2 = 0 ;
18722 wxSize *arg3 = 0 ;
18723 void *argp1 = 0 ;
18724 int res1 = 0 ;
18725 wxPoint temp2 ;
18726 wxSize temp3 ;
18727 PyObject * obj0 = 0 ;
18728 PyObject * obj1 = 0 ;
18729 PyObject * obj2 = 0 ;
18730 char * kwnames[] = {
18731 (char *) "self",(char *) "pt",(char *) "sz", NULL
18732 };
18733
18734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18736 if (!SWIG_IsOK(res1)) {
18737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18738 }
18739 arg1 = reinterpret_cast< wxDC * >(argp1);
18740 {
18741 arg2 = &temp2;
18742 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18743 }
18744 {
18745 arg3 = &temp3;
18746 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18747 }
18748 {
18749 PyThreadState* __tstate = wxPyBeginAllowThreads();
18750 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18751 wxPyEndAllowThreads(__tstate);
18752 if (PyErr_Occurred()) SWIG_fail;
18753 }
18754 resultobj = SWIG_Py_Void();
18755 return resultobj;
18756 fail:
18757 return NULL;
18758 }
18759
18760
18761 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18762 PyObject *resultobj = 0;
18763 wxDC *arg1 = (wxDC *) 0 ;
18764 wxIcon *arg2 = 0 ;
18765 int arg3 ;
18766 int arg4 ;
18767 void *argp1 = 0 ;
18768 int res1 = 0 ;
18769 void *argp2 = 0 ;
18770 int res2 = 0 ;
18771 int val3 ;
18772 int ecode3 = 0 ;
18773 int val4 ;
18774 int ecode4 = 0 ;
18775 PyObject * obj0 = 0 ;
18776 PyObject * obj1 = 0 ;
18777 PyObject * obj2 = 0 ;
18778 PyObject * obj3 = 0 ;
18779 char * kwnames[] = {
18780 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18781 };
18782
18783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18785 if (!SWIG_IsOK(res1)) {
18786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18787 }
18788 arg1 = reinterpret_cast< wxDC * >(argp1);
18789 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18790 if (!SWIG_IsOK(res2)) {
18791 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18792 }
18793 if (!argp2) {
18794 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18795 }
18796 arg2 = reinterpret_cast< wxIcon * >(argp2);
18797 ecode3 = SWIG_AsVal_int(obj2, &val3);
18798 if (!SWIG_IsOK(ecode3)) {
18799 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18800 }
18801 arg3 = static_cast< int >(val3);
18802 ecode4 = SWIG_AsVal_int(obj3, &val4);
18803 if (!SWIG_IsOK(ecode4)) {
18804 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18805 }
18806 arg4 = static_cast< int >(val4);
18807 {
18808 PyThreadState* __tstate = wxPyBeginAllowThreads();
18809 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18810 wxPyEndAllowThreads(__tstate);
18811 if (PyErr_Occurred()) SWIG_fail;
18812 }
18813 resultobj = SWIG_Py_Void();
18814 return resultobj;
18815 fail:
18816 return NULL;
18817 }
18818
18819
18820 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18821 PyObject *resultobj = 0;
18822 wxDC *arg1 = (wxDC *) 0 ;
18823 wxIcon *arg2 = 0 ;
18824 wxPoint *arg3 = 0 ;
18825 void *argp1 = 0 ;
18826 int res1 = 0 ;
18827 void *argp2 = 0 ;
18828 int res2 = 0 ;
18829 wxPoint temp3 ;
18830 PyObject * obj0 = 0 ;
18831 PyObject * obj1 = 0 ;
18832 PyObject * obj2 = 0 ;
18833 char * kwnames[] = {
18834 (char *) "self",(char *) "icon",(char *) "pt", NULL
18835 };
18836
18837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18839 if (!SWIG_IsOK(res1)) {
18840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18841 }
18842 arg1 = reinterpret_cast< wxDC * >(argp1);
18843 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18844 if (!SWIG_IsOK(res2)) {
18845 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18846 }
18847 if (!argp2) {
18848 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18849 }
18850 arg2 = reinterpret_cast< wxIcon * >(argp2);
18851 {
18852 arg3 = &temp3;
18853 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18854 }
18855 {
18856 PyThreadState* __tstate = wxPyBeginAllowThreads();
18857 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 resultobj = SWIG_Py_Void();
18862 return resultobj;
18863 fail:
18864 return NULL;
18865 }
18866
18867
18868 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18869 PyObject *resultobj = 0;
18870 wxDC *arg1 = (wxDC *) 0 ;
18871 wxBitmap *arg2 = 0 ;
18872 int arg3 ;
18873 int arg4 ;
18874 bool arg5 = (bool) false ;
18875 void *argp1 = 0 ;
18876 int res1 = 0 ;
18877 void *argp2 = 0 ;
18878 int res2 = 0 ;
18879 int val3 ;
18880 int ecode3 = 0 ;
18881 int val4 ;
18882 int ecode4 = 0 ;
18883 bool val5 ;
18884 int ecode5 = 0 ;
18885 PyObject * obj0 = 0 ;
18886 PyObject * obj1 = 0 ;
18887 PyObject * obj2 = 0 ;
18888 PyObject * obj3 = 0 ;
18889 PyObject * obj4 = 0 ;
18890 char * kwnames[] = {
18891 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18892 };
18893
18894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18896 if (!SWIG_IsOK(res1)) {
18897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18898 }
18899 arg1 = reinterpret_cast< wxDC * >(argp1);
18900 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18901 if (!SWIG_IsOK(res2)) {
18902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18903 }
18904 if (!argp2) {
18905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18906 }
18907 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18908 ecode3 = SWIG_AsVal_int(obj2, &val3);
18909 if (!SWIG_IsOK(ecode3)) {
18910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18911 }
18912 arg3 = static_cast< int >(val3);
18913 ecode4 = SWIG_AsVal_int(obj3, &val4);
18914 if (!SWIG_IsOK(ecode4)) {
18915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18916 }
18917 arg4 = static_cast< int >(val4);
18918 if (obj4) {
18919 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18920 if (!SWIG_IsOK(ecode5)) {
18921 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18922 }
18923 arg5 = static_cast< bool >(val5);
18924 }
18925 {
18926 PyThreadState* __tstate = wxPyBeginAllowThreads();
18927 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18928 wxPyEndAllowThreads(__tstate);
18929 if (PyErr_Occurred()) SWIG_fail;
18930 }
18931 resultobj = SWIG_Py_Void();
18932 return resultobj;
18933 fail:
18934 return NULL;
18935 }
18936
18937
18938 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18939 PyObject *resultobj = 0;
18940 wxDC *arg1 = (wxDC *) 0 ;
18941 wxBitmap *arg2 = 0 ;
18942 wxPoint *arg3 = 0 ;
18943 bool arg4 = (bool) false ;
18944 void *argp1 = 0 ;
18945 int res1 = 0 ;
18946 void *argp2 = 0 ;
18947 int res2 = 0 ;
18948 wxPoint temp3 ;
18949 bool val4 ;
18950 int ecode4 = 0 ;
18951 PyObject * obj0 = 0 ;
18952 PyObject * obj1 = 0 ;
18953 PyObject * obj2 = 0 ;
18954 PyObject * obj3 = 0 ;
18955 char * kwnames[] = {
18956 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18957 };
18958
18959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18961 if (!SWIG_IsOK(res1)) {
18962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18963 }
18964 arg1 = reinterpret_cast< wxDC * >(argp1);
18965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18966 if (!SWIG_IsOK(res2)) {
18967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18968 }
18969 if (!argp2) {
18970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18971 }
18972 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18973 {
18974 arg3 = &temp3;
18975 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18976 }
18977 if (obj3) {
18978 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18979 if (!SWIG_IsOK(ecode4)) {
18980 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18981 }
18982 arg4 = static_cast< bool >(val4);
18983 }
18984 {
18985 PyThreadState* __tstate = wxPyBeginAllowThreads();
18986 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18987 wxPyEndAllowThreads(__tstate);
18988 if (PyErr_Occurred()) SWIG_fail;
18989 }
18990 resultobj = SWIG_Py_Void();
18991 return resultobj;
18992 fail:
18993 return NULL;
18994 }
18995
18996
18997 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18998 PyObject *resultobj = 0;
18999 wxDC *arg1 = (wxDC *) 0 ;
19000 wxString *arg2 = 0 ;
19001 int arg3 ;
19002 int arg4 ;
19003 void *argp1 = 0 ;
19004 int res1 = 0 ;
19005 bool temp2 = false ;
19006 int val3 ;
19007 int ecode3 = 0 ;
19008 int val4 ;
19009 int ecode4 = 0 ;
19010 PyObject * obj0 = 0 ;
19011 PyObject * obj1 = 0 ;
19012 PyObject * obj2 = 0 ;
19013 PyObject * obj3 = 0 ;
19014 char * kwnames[] = {
19015 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19016 };
19017
19018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19020 if (!SWIG_IsOK(res1)) {
19021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19022 }
19023 arg1 = reinterpret_cast< wxDC * >(argp1);
19024 {
19025 arg2 = wxString_in_helper(obj1);
19026 if (arg2 == NULL) SWIG_fail;
19027 temp2 = true;
19028 }
19029 ecode3 = SWIG_AsVal_int(obj2, &val3);
19030 if (!SWIG_IsOK(ecode3)) {
19031 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19032 }
19033 arg3 = static_cast< int >(val3);
19034 ecode4 = SWIG_AsVal_int(obj3, &val4);
19035 if (!SWIG_IsOK(ecode4)) {
19036 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19037 }
19038 arg4 = static_cast< int >(val4);
19039 {
19040 PyThreadState* __tstate = wxPyBeginAllowThreads();
19041 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19042 wxPyEndAllowThreads(__tstate);
19043 if (PyErr_Occurred()) SWIG_fail;
19044 }
19045 resultobj = SWIG_Py_Void();
19046 {
19047 if (temp2)
19048 delete arg2;
19049 }
19050 return resultobj;
19051 fail:
19052 {
19053 if (temp2)
19054 delete arg2;
19055 }
19056 return NULL;
19057 }
19058
19059
19060 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19061 PyObject *resultobj = 0;
19062 wxDC *arg1 = (wxDC *) 0 ;
19063 wxString *arg2 = 0 ;
19064 wxPoint *arg3 = 0 ;
19065 void *argp1 = 0 ;
19066 int res1 = 0 ;
19067 bool temp2 = false ;
19068 wxPoint temp3 ;
19069 PyObject * obj0 = 0 ;
19070 PyObject * obj1 = 0 ;
19071 PyObject * obj2 = 0 ;
19072 char * kwnames[] = {
19073 (char *) "self",(char *) "text",(char *) "pt", NULL
19074 };
19075
19076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19078 if (!SWIG_IsOK(res1)) {
19079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19080 }
19081 arg1 = reinterpret_cast< wxDC * >(argp1);
19082 {
19083 arg2 = wxString_in_helper(obj1);
19084 if (arg2 == NULL) SWIG_fail;
19085 temp2 = true;
19086 }
19087 {
19088 arg3 = &temp3;
19089 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19090 }
19091 {
19092 PyThreadState* __tstate = wxPyBeginAllowThreads();
19093 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19094 wxPyEndAllowThreads(__tstate);
19095 if (PyErr_Occurred()) SWIG_fail;
19096 }
19097 resultobj = SWIG_Py_Void();
19098 {
19099 if (temp2)
19100 delete arg2;
19101 }
19102 return resultobj;
19103 fail:
19104 {
19105 if (temp2)
19106 delete arg2;
19107 }
19108 return NULL;
19109 }
19110
19111
19112 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19113 PyObject *resultobj = 0;
19114 wxDC *arg1 = (wxDC *) 0 ;
19115 wxString *arg2 = 0 ;
19116 int arg3 ;
19117 int arg4 ;
19118 double arg5 ;
19119 void *argp1 = 0 ;
19120 int res1 = 0 ;
19121 bool temp2 = false ;
19122 int val3 ;
19123 int ecode3 = 0 ;
19124 int val4 ;
19125 int ecode4 = 0 ;
19126 double val5 ;
19127 int ecode5 = 0 ;
19128 PyObject * obj0 = 0 ;
19129 PyObject * obj1 = 0 ;
19130 PyObject * obj2 = 0 ;
19131 PyObject * obj3 = 0 ;
19132 PyObject * obj4 = 0 ;
19133 char * kwnames[] = {
19134 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19135 };
19136
19137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19139 if (!SWIG_IsOK(res1)) {
19140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19141 }
19142 arg1 = reinterpret_cast< wxDC * >(argp1);
19143 {
19144 arg2 = wxString_in_helper(obj1);
19145 if (arg2 == NULL) SWIG_fail;
19146 temp2 = true;
19147 }
19148 ecode3 = SWIG_AsVal_int(obj2, &val3);
19149 if (!SWIG_IsOK(ecode3)) {
19150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19151 }
19152 arg3 = static_cast< int >(val3);
19153 ecode4 = SWIG_AsVal_int(obj3, &val4);
19154 if (!SWIG_IsOK(ecode4)) {
19155 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19156 }
19157 arg4 = static_cast< int >(val4);
19158 ecode5 = SWIG_AsVal_double(obj4, &val5);
19159 if (!SWIG_IsOK(ecode5)) {
19160 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19161 }
19162 arg5 = static_cast< double >(val5);
19163 {
19164 PyThreadState* __tstate = wxPyBeginAllowThreads();
19165 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19166 wxPyEndAllowThreads(__tstate);
19167 if (PyErr_Occurred()) SWIG_fail;
19168 }
19169 resultobj = SWIG_Py_Void();
19170 {
19171 if (temp2)
19172 delete arg2;
19173 }
19174 return resultobj;
19175 fail:
19176 {
19177 if (temp2)
19178 delete arg2;
19179 }
19180 return NULL;
19181 }
19182
19183
19184 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19185 PyObject *resultobj = 0;
19186 wxDC *arg1 = (wxDC *) 0 ;
19187 wxString *arg2 = 0 ;
19188 wxPoint *arg3 = 0 ;
19189 double arg4 ;
19190 void *argp1 = 0 ;
19191 int res1 = 0 ;
19192 bool temp2 = false ;
19193 wxPoint temp3 ;
19194 double val4 ;
19195 int ecode4 = 0 ;
19196 PyObject * obj0 = 0 ;
19197 PyObject * obj1 = 0 ;
19198 PyObject * obj2 = 0 ;
19199 PyObject * obj3 = 0 ;
19200 char * kwnames[] = {
19201 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19202 };
19203
19204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19206 if (!SWIG_IsOK(res1)) {
19207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19208 }
19209 arg1 = reinterpret_cast< wxDC * >(argp1);
19210 {
19211 arg2 = wxString_in_helper(obj1);
19212 if (arg2 == NULL) SWIG_fail;
19213 temp2 = true;
19214 }
19215 {
19216 arg3 = &temp3;
19217 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19218 }
19219 ecode4 = SWIG_AsVal_double(obj3, &val4);
19220 if (!SWIG_IsOK(ecode4)) {
19221 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19222 }
19223 arg4 = static_cast< double >(val4);
19224 {
19225 PyThreadState* __tstate = wxPyBeginAllowThreads();
19226 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19227 wxPyEndAllowThreads(__tstate);
19228 if (PyErr_Occurred()) SWIG_fail;
19229 }
19230 resultobj = SWIG_Py_Void();
19231 {
19232 if (temp2)
19233 delete arg2;
19234 }
19235 return resultobj;
19236 fail:
19237 {
19238 if (temp2)
19239 delete arg2;
19240 }
19241 return NULL;
19242 }
19243
19244
19245 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19246 PyObject *resultobj = 0;
19247 wxDC *arg1 = (wxDC *) 0 ;
19248 int arg2 ;
19249 int arg3 ;
19250 int arg4 ;
19251 int arg5 ;
19252 wxDC *arg6 = (wxDC *) 0 ;
19253 int arg7 ;
19254 int arg8 ;
19255 int arg9 = (int) wxCOPY ;
19256 bool arg10 = (bool) false ;
19257 int arg11 = (int) -1 ;
19258 int arg12 = (int) -1 ;
19259 bool result;
19260 void *argp1 = 0 ;
19261 int res1 = 0 ;
19262 int val2 ;
19263 int ecode2 = 0 ;
19264 int val3 ;
19265 int ecode3 = 0 ;
19266 int val4 ;
19267 int ecode4 = 0 ;
19268 int val5 ;
19269 int ecode5 = 0 ;
19270 void *argp6 = 0 ;
19271 int res6 = 0 ;
19272 int val7 ;
19273 int ecode7 = 0 ;
19274 int val8 ;
19275 int ecode8 = 0 ;
19276 int val9 ;
19277 int ecode9 = 0 ;
19278 bool val10 ;
19279 int ecode10 = 0 ;
19280 int val11 ;
19281 int ecode11 = 0 ;
19282 int val12 ;
19283 int ecode12 = 0 ;
19284 PyObject * obj0 = 0 ;
19285 PyObject * obj1 = 0 ;
19286 PyObject * obj2 = 0 ;
19287 PyObject * obj3 = 0 ;
19288 PyObject * obj4 = 0 ;
19289 PyObject * obj5 = 0 ;
19290 PyObject * obj6 = 0 ;
19291 PyObject * obj7 = 0 ;
19292 PyObject * obj8 = 0 ;
19293 PyObject * obj9 = 0 ;
19294 PyObject * obj10 = 0 ;
19295 PyObject * obj11 = 0 ;
19296 char * kwnames[] = {
19297 (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
19298 };
19299
19300 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;
19301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19302 if (!SWIG_IsOK(res1)) {
19303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19304 }
19305 arg1 = reinterpret_cast< wxDC * >(argp1);
19306 ecode2 = SWIG_AsVal_int(obj1, &val2);
19307 if (!SWIG_IsOK(ecode2)) {
19308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19309 }
19310 arg2 = static_cast< int >(val2);
19311 ecode3 = SWIG_AsVal_int(obj2, &val3);
19312 if (!SWIG_IsOK(ecode3)) {
19313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19314 }
19315 arg3 = static_cast< int >(val3);
19316 ecode4 = SWIG_AsVal_int(obj3, &val4);
19317 if (!SWIG_IsOK(ecode4)) {
19318 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19319 }
19320 arg4 = static_cast< int >(val4);
19321 ecode5 = SWIG_AsVal_int(obj4, &val5);
19322 if (!SWIG_IsOK(ecode5)) {
19323 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19324 }
19325 arg5 = static_cast< int >(val5);
19326 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19327 if (!SWIG_IsOK(res6)) {
19328 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19329 }
19330 arg6 = reinterpret_cast< wxDC * >(argp6);
19331 ecode7 = SWIG_AsVal_int(obj6, &val7);
19332 if (!SWIG_IsOK(ecode7)) {
19333 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19334 }
19335 arg7 = static_cast< int >(val7);
19336 ecode8 = SWIG_AsVal_int(obj7, &val8);
19337 if (!SWIG_IsOK(ecode8)) {
19338 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19339 }
19340 arg8 = static_cast< int >(val8);
19341 if (obj8) {
19342 ecode9 = SWIG_AsVal_int(obj8, &val9);
19343 if (!SWIG_IsOK(ecode9)) {
19344 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19345 }
19346 arg9 = static_cast< int >(val9);
19347 }
19348 if (obj9) {
19349 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19350 if (!SWIG_IsOK(ecode10)) {
19351 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19352 }
19353 arg10 = static_cast< bool >(val10);
19354 }
19355 if (obj10) {
19356 ecode11 = SWIG_AsVal_int(obj10, &val11);
19357 if (!SWIG_IsOK(ecode11)) {
19358 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19359 }
19360 arg11 = static_cast< int >(val11);
19361 }
19362 if (obj11) {
19363 ecode12 = SWIG_AsVal_int(obj11, &val12);
19364 if (!SWIG_IsOK(ecode12)) {
19365 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19366 }
19367 arg12 = static_cast< int >(val12);
19368 }
19369 {
19370 PyThreadState* __tstate = wxPyBeginAllowThreads();
19371 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19372 wxPyEndAllowThreads(__tstate);
19373 if (PyErr_Occurred()) SWIG_fail;
19374 }
19375 {
19376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19377 }
19378 return resultobj;
19379 fail:
19380 return NULL;
19381 }
19382
19383
19384 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19385 PyObject *resultobj = 0;
19386 wxDC *arg1 = (wxDC *) 0 ;
19387 wxPoint *arg2 = 0 ;
19388 wxSize *arg3 = 0 ;
19389 wxDC *arg4 = (wxDC *) 0 ;
19390 wxPoint *arg5 = 0 ;
19391 int arg6 = (int) wxCOPY ;
19392 bool arg7 = (bool) false ;
19393 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19394 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19395 bool result;
19396 void *argp1 = 0 ;
19397 int res1 = 0 ;
19398 wxPoint temp2 ;
19399 wxSize temp3 ;
19400 void *argp4 = 0 ;
19401 int res4 = 0 ;
19402 wxPoint temp5 ;
19403 int val6 ;
19404 int ecode6 = 0 ;
19405 bool val7 ;
19406 int ecode7 = 0 ;
19407 wxPoint temp8 ;
19408 PyObject * obj0 = 0 ;
19409 PyObject * obj1 = 0 ;
19410 PyObject * obj2 = 0 ;
19411 PyObject * obj3 = 0 ;
19412 PyObject * obj4 = 0 ;
19413 PyObject * obj5 = 0 ;
19414 PyObject * obj6 = 0 ;
19415 PyObject * obj7 = 0 ;
19416 char * kwnames[] = {
19417 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19418 };
19419
19420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
19421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19422 if (!SWIG_IsOK(res1)) {
19423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19424 }
19425 arg1 = reinterpret_cast< wxDC * >(argp1);
19426 {
19427 arg2 = &temp2;
19428 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19429 }
19430 {
19431 arg3 = &temp3;
19432 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19433 }
19434 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19435 if (!SWIG_IsOK(res4)) {
19436 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19437 }
19438 arg4 = reinterpret_cast< wxDC * >(argp4);
19439 {
19440 arg5 = &temp5;
19441 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19442 }
19443 if (obj5) {
19444 ecode6 = SWIG_AsVal_int(obj5, &val6);
19445 if (!SWIG_IsOK(ecode6)) {
19446 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19447 }
19448 arg6 = static_cast< int >(val6);
19449 }
19450 if (obj6) {
19451 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19452 if (!SWIG_IsOK(ecode7)) {
19453 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19454 }
19455 arg7 = static_cast< bool >(val7);
19456 }
19457 if (obj7) {
19458 {
19459 arg8 = &temp8;
19460 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19461 }
19462 }
19463 {
19464 PyThreadState* __tstate = wxPyBeginAllowThreads();
19465 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19466 wxPyEndAllowThreads(__tstate);
19467 if (PyErr_Occurred()) SWIG_fail;
19468 }
19469 {
19470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19471 }
19472 return resultobj;
19473 fail:
19474 return NULL;
19475 }
19476
19477
19478 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19479 PyObject *resultobj = 0;
19480 wxDC *arg1 = (wxDC *) 0 ;
19481 int arg2 ;
19482 int arg3 ;
19483 int arg4 ;
19484 int arg5 ;
19485 void *argp1 = 0 ;
19486 int res1 = 0 ;
19487 int val2 ;
19488 int ecode2 = 0 ;
19489 int val3 ;
19490 int ecode3 = 0 ;
19491 int val4 ;
19492 int ecode4 = 0 ;
19493 int val5 ;
19494 int ecode5 = 0 ;
19495 PyObject * obj0 = 0 ;
19496 PyObject * obj1 = 0 ;
19497 PyObject * obj2 = 0 ;
19498 PyObject * obj3 = 0 ;
19499 PyObject * obj4 = 0 ;
19500 char * kwnames[] = {
19501 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19502 };
19503
19504 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19505 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19506 if (!SWIG_IsOK(res1)) {
19507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19508 }
19509 arg1 = reinterpret_cast< wxDC * >(argp1);
19510 ecode2 = SWIG_AsVal_int(obj1, &val2);
19511 if (!SWIG_IsOK(ecode2)) {
19512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19513 }
19514 arg2 = static_cast< int >(val2);
19515 ecode3 = SWIG_AsVal_int(obj2, &val3);
19516 if (!SWIG_IsOK(ecode3)) {
19517 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19518 }
19519 arg3 = static_cast< int >(val3);
19520 ecode4 = SWIG_AsVal_int(obj3, &val4);
19521 if (!SWIG_IsOK(ecode4)) {
19522 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19523 }
19524 arg4 = static_cast< int >(val4);
19525 ecode5 = SWIG_AsVal_int(obj4, &val5);
19526 if (!SWIG_IsOK(ecode5)) {
19527 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19528 }
19529 arg5 = static_cast< int >(val5);
19530 {
19531 PyThreadState* __tstate = wxPyBeginAllowThreads();
19532 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19533 wxPyEndAllowThreads(__tstate);
19534 if (PyErr_Occurred()) SWIG_fail;
19535 }
19536 resultobj = SWIG_Py_Void();
19537 return resultobj;
19538 fail:
19539 return NULL;
19540 }
19541
19542
19543 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19544 PyObject *resultobj = 0;
19545 wxDC *arg1 = (wxDC *) 0 ;
19546 wxPoint *arg2 = 0 ;
19547 wxSize *arg3 = 0 ;
19548 void *argp1 = 0 ;
19549 int res1 = 0 ;
19550 wxPoint temp2 ;
19551 wxSize temp3 ;
19552 PyObject * obj0 = 0 ;
19553 PyObject * obj1 = 0 ;
19554 PyObject * obj2 = 0 ;
19555 char * kwnames[] = {
19556 (char *) "self",(char *) "pt",(char *) "sz", NULL
19557 };
19558
19559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19561 if (!SWIG_IsOK(res1)) {
19562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19563 }
19564 arg1 = reinterpret_cast< wxDC * >(argp1);
19565 {
19566 arg2 = &temp2;
19567 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19568 }
19569 {
19570 arg3 = &temp3;
19571 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19572 }
19573 {
19574 PyThreadState* __tstate = wxPyBeginAllowThreads();
19575 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19576 wxPyEndAllowThreads(__tstate);
19577 if (PyErr_Occurred()) SWIG_fail;
19578 }
19579 resultobj = SWIG_Py_Void();
19580 return resultobj;
19581 fail:
19582 return NULL;
19583 }
19584
19585
19586 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19587 PyObject *resultobj = 0;
19588 wxDC *arg1 = (wxDC *) 0 ;
19589 wxRegion *arg2 = 0 ;
19590 void *argp1 = 0 ;
19591 int res1 = 0 ;
19592 void *argp2 = 0 ;
19593 int res2 = 0 ;
19594 PyObject * obj0 = 0 ;
19595 PyObject * obj1 = 0 ;
19596 char * kwnames[] = {
19597 (char *) "self",(char *) "region", NULL
19598 };
19599
19600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19602 if (!SWIG_IsOK(res1)) {
19603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19604 }
19605 arg1 = reinterpret_cast< wxDC * >(argp1);
19606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19607 if (!SWIG_IsOK(res2)) {
19608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19609 }
19610 if (!argp2) {
19611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19612 }
19613 arg2 = reinterpret_cast< wxRegion * >(argp2);
19614 {
19615 PyThreadState* __tstate = wxPyBeginAllowThreads();
19616 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19617 wxPyEndAllowThreads(__tstate);
19618 if (PyErr_Occurred()) SWIG_fail;
19619 }
19620 resultobj = SWIG_Py_Void();
19621 return resultobj;
19622 fail:
19623 return NULL;
19624 }
19625
19626
19627 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19628 PyObject *resultobj = 0;
19629 wxDC *arg1 = (wxDC *) 0 ;
19630 wxRect *arg2 = 0 ;
19631 void *argp1 = 0 ;
19632 int res1 = 0 ;
19633 wxRect temp2 ;
19634 PyObject * obj0 = 0 ;
19635 PyObject * obj1 = 0 ;
19636 char * kwnames[] = {
19637 (char *) "self",(char *) "rect", NULL
19638 };
19639
19640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19642 if (!SWIG_IsOK(res1)) {
19643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19644 }
19645 arg1 = reinterpret_cast< wxDC * >(argp1);
19646 {
19647 arg2 = &temp2;
19648 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19649 }
19650 {
19651 PyThreadState* __tstate = wxPyBeginAllowThreads();
19652 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19653 wxPyEndAllowThreads(__tstate);
19654 if (PyErr_Occurred()) SWIG_fail;
19655 }
19656 resultobj = SWIG_Py_Void();
19657 return resultobj;
19658 fail:
19659 return NULL;
19660 }
19661
19662
19663 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19664 PyObject *resultobj = 0;
19665 wxDC *arg1 = (wxDC *) 0 ;
19666 int arg2 ;
19667 wxPoint *arg3 = (wxPoint *) 0 ;
19668 int arg4 = (int) 0 ;
19669 int arg5 = (int) 0 ;
19670 void *argp1 = 0 ;
19671 int res1 = 0 ;
19672 int val4 ;
19673 int ecode4 = 0 ;
19674 int val5 ;
19675 int ecode5 = 0 ;
19676 PyObject * obj0 = 0 ;
19677 PyObject * obj1 = 0 ;
19678 PyObject * obj2 = 0 ;
19679 PyObject * obj3 = 0 ;
19680 char * kwnames[] = {
19681 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19682 };
19683
19684 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19685 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19686 if (!SWIG_IsOK(res1)) {
19687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19688 }
19689 arg1 = reinterpret_cast< wxDC * >(argp1);
19690 {
19691 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19692 if (arg3 == NULL) SWIG_fail;
19693 }
19694 if (obj2) {
19695 ecode4 = SWIG_AsVal_int(obj2, &val4);
19696 if (!SWIG_IsOK(ecode4)) {
19697 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19698 }
19699 arg4 = static_cast< int >(val4);
19700 }
19701 if (obj3) {
19702 ecode5 = SWIG_AsVal_int(obj3, &val5);
19703 if (!SWIG_IsOK(ecode5)) {
19704 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19705 }
19706 arg5 = static_cast< int >(val5);
19707 }
19708 {
19709 PyThreadState* __tstate = wxPyBeginAllowThreads();
19710 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19711 wxPyEndAllowThreads(__tstate);
19712 if (PyErr_Occurred()) SWIG_fail;
19713 }
19714 resultobj = SWIG_Py_Void();
19715 {
19716 if (arg3) delete [] arg3;
19717 }
19718 return resultobj;
19719 fail:
19720 {
19721 if (arg3) delete [] arg3;
19722 }
19723 return NULL;
19724 }
19725
19726
19727 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19728 PyObject *resultobj = 0;
19729 wxDC *arg1 = (wxDC *) 0 ;
19730 int arg2 ;
19731 wxPoint *arg3 = (wxPoint *) 0 ;
19732 int arg4 = (int) 0 ;
19733 int arg5 = (int) 0 ;
19734 int arg6 = (int) wxODDEVEN_RULE ;
19735 void *argp1 = 0 ;
19736 int res1 = 0 ;
19737 int val4 ;
19738 int ecode4 = 0 ;
19739 int val5 ;
19740 int ecode5 = 0 ;
19741 int val6 ;
19742 int ecode6 = 0 ;
19743 PyObject * obj0 = 0 ;
19744 PyObject * obj1 = 0 ;
19745 PyObject * obj2 = 0 ;
19746 PyObject * obj3 = 0 ;
19747 PyObject * obj4 = 0 ;
19748 char * kwnames[] = {
19749 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19750 };
19751
19752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19754 if (!SWIG_IsOK(res1)) {
19755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19756 }
19757 arg1 = reinterpret_cast< wxDC * >(argp1);
19758 {
19759 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19760 if (arg3 == NULL) SWIG_fail;
19761 }
19762 if (obj2) {
19763 ecode4 = SWIG_AsVal_int(obj2, &val4);
19764 if (!SWIG_IsOK(ecode4)) {
19765 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19766 }
19767 arg4 = static_cast< int >(val4);
19768 }
19769 if (obj3) {
19770 ecode5 = SWIG_AsVal_int(obj3, &val5);
19771 if (!SWIG_IsOK(ecode5)) {
19772 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19773 }
19774 arg5 = static_cast< int >(val5);
19775 }
19776 if (obj4) {
19777 ecode6 = SWIG_AsVal_int(obj4, &val6);
19778 if (!SWIG_IsOK(ecode6)) {
19779 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19780 }
19781 arg6 = static_cast< int >(val6);
19782 }
19783 {
19784 PyThreadState* __tstate = wxPyBeginAllowThreads();
19785 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19786 wxPyEndAllowThreads(__tstate);
19787 if (PyErr_Occurred()) SWIG_fail;
19788 }
19789 resultobj = SWIG_Py_Void();
19790 {
19791 if (arg3) delete [] arg3;
19792 }
19793 return resultobj;
19794 fail:
19795 {
19796 if (arg3) delete [] arg3;
19797 }
19798 return NULL;
19799 }
19800
19801
19802 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19803 PyObject *resultobj = 0;
19804 wxDC *arg1 = (wxDC *) 0 ;
19805 wxString *arg2 = 0 ;
19806 wxRect *arg3 = 0 ;
19807 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19808 int arg5 = (int) -1 ;
19809 void *argp1 = 0 ;
19810 int res1 = 0 ;
19811 bool temp2 = false ;
19812 wxRect temp3 ;
19813 int val4 ;
19814 int ecode4 = 0 ;
19815 int val5 ;
19816 int ecode5 = 0 ;
19817 PyObject * obj0 = 0 ;
19818 PyObject * obj1 = 0 ;
19819 PyObject * obj2 = 0 ;
19820 PyObject * obj3 = 0 ;
19821 PyObject * obj4 = 0 ;
19822 char * kwnames[] = {
19823 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19824 };
19825
19826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19828 if (!SWIG_IsOK(res1)) {
19829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19830 }
19831 arg1 = reinterpret_cast< wxDC * >(argp1);
19832 {
19833 arg2 = wxString_in_helper(obj1);
19834 if (arg2 == NULL) SWIG_fail;
19835 temp2 = true;
19836 }
19837 {
19838 arg3 = &temp3;
19839 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19840 }
19841 if (obj3) {
19842 ecode4 = SWIG_AsVal_int(obj3, &val4);
19843 if (!SWIG_IsOK(ecode4)) {
19844 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19845 }
19846 arg4 = static_cast< int >(val4);
19847 }
19848 if (obj4) {
19849 ecode5 = SWIG_AsVal_int(obj4, &val5);
19850 if (!SWIG_IsOK(ecode5)) {
19851 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19852 }
19853 arg5 = static_cast< int >(val5);
19854 }
19855 {
19856 PyThreadState* __tstate = wxPyBeginAllowThreads();
19857 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19858 wxPyEndAllowThreads(__tstate);
19859 if (PyErr_Occurred()) SWIG_fail;
19860 }
19861 resultobj = SWIG_Py_Void();
19862 {
19863 if (temp2)
19864 delete arg2;
19865 }
19866 return resultobj;
19867 fail:
19868 {
19869 if (temp2)
19870 delete arg2;
19871 }
19872 return NULL;
19873 }
19874
19875
19876 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19877 PyObject *resultobj = 0;
19878 wxDC *arg1 = (wxDC *) 0 ;
19879 wxString *arg2 = 0 ;
19880 wxBitmap *arg3 = 0 ;
19881 wxRect *arg4 = 0 ;
19882 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19883 int arg6 = (int) -1 ;
19884 wxRect result;
19885 void *argp1 = 0 ;
19886 int res1 = 0 ;
19887 bool temp2 = false ;
19888 void *argp3 = 0 ;
19889 int res3 = 0 ;
19890 wxRect temp4 ;
19891 int val5 ;
19892 int ecode5 = 0 ;
19893 int val6 ;
19894 int ecode6 = 0 ;
19895 PyObject * obj0 = 0 ;
19896 PyObject * obj1 = 0 ;
19897 PyObject * obj2 = 0 ;
19898 PyObject * obj3 = 0 ;
19899 PyObject * obj4 = 0 ;
19900 PyObject * obj5 = 0 ;
19901 char * kwnames[] = {
19902 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19903 };
19904
19905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19907 if (!SWIG_IsOK(res1)) {
19908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19909 }
19910 arg1 = reinterpret_cast< wxDC * >(argp1);
19911 {
19912 arg2 = wxString_in_helper(obj1);
19913 if (arg2 == NULL) SWIG_fail;
19914 temp2 = true;
19915 }
19916 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19917 if (!SWIG_IsOK(res3)) {
19918 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19919 }
19920 if (!argp3) {
19921 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19922 }
19923 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19924 {
19925 arg4 = &temp4;
19926 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19927 }
19928 if (obj4) {
19929 ecode5 = SWIG_AsVal_int(obj4, &val5);
19930 if (!SWIG_IsOK(ecode5)) {
19931 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19932 }
19933 arg5 = static_cast< int >(val5);
19934 }
19935 if (obj5) {
19936 ecode6 = SWIG_AsVal_int(obj5, &val6);
19937 if (!SWIG_IsOK(ecode6)) {
19938 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19939 }
19940 arg6 = static_cast< int >(val6);
19941 }
19942 {
19943 PyThreadState* __tstate = wxPyBeginAllowThreads();
19944 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19945 wxPyEndAllowThreads(__tstate);
19946 if (PyErr_Occurred()) SWIG_fail;
19947 }
19948 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19949 {
19950 if (temp2)
19951 delete arg2;
19952 }
19953 return resultobj;
19954 fail:
19955 {
19956 if (temp2)
19957 delete arg2;
19958 }
19959 return NULL;
19960 }
19961
19962
19963 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19964 PyObject *resultobj = 0;
19965 wxDC *arg1 = (wxDC *) 0 ;
19966 int arg2 ;
19967 wxPoint *arg3 = (wxPoint *) 0 ;
19968 void *argp1 = 0 ;
19969 int res1 = 0 ;
19970 PyObject * obj0 = 0 ;
19971 PyObject * obj1 = 0 ;
19972 char * kwnames[] = {
19973 (char *) "self",(char *) "points", NULL
19974 };
19975
19976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19978 if (!SWIG_IsOK(res1)) {
19979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19980 }
19981 arg1 = reinterpret_cast< wxDC * >(argp1);
19982 {
19983 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19984 if (arg3 == NULL) SWIG_fail;
19985 }
19986 {
19987 PyThreadState* __tstate = wxPyBeginAllowThreads();
19988 (arg1)->DrawSpline(arg2,arg3);
19989 wxPyEndAllowThreads(__tstate);
19990 if (PyErr_Occurred()) SWIG_fail;
19991 }
19992 resultobj = SWIG_Py_Void();
19993 {
19994 if (arg3) delete [] arg3;
19995 }
19996 return resultobj;
19997 fail:
19998 {
19999 if (arg3) delete [] arg3;
20000 }
20001 return NULL;
20002 }
20003
20004
20005 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20006 PyObject *resultobj = 0;
20007 wxDC *arg1 = (wxDC *) 0 ;
20008 void *argp1 = 0 ;
20009 int res1 = 0 ;
20010 PyObject *swig_obj[1] ;
20011
20012 if (!args) SWIG_fail;
20013 swig_obj[0] = args;
20014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20015 if (!SWIG_IsOK(res1)) {
20016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20017 }
20018 arg1 = reinterpret_cast< wxDC * >(argp1);
20019 {
20020 PyThreadState* __tstate = wxPyBeginAllowThreads();
20021 (arg1)->Clear();
20022 wxPyEndAllowThreads(__tstate);
20023 if (PyErr_Occurred()) SWIG_fail;
20024 }
20025 resultobj = SWIG_Py_Void();
20026 return resultobj;
20027 fail:
20028 return NULL;
20029 }
20030
20031
20032 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20033 PyObject *resultobj = 0;
20034 wxDC *arg1 = (wxDC *) 0 ;
20035 wxString *arg2 = 0 ;
20036 bool result;
20037 void *argp1 = 0 ;
20038 int res1 = 0 ;
20039 bool temp2 = false ;
20040 PyObject * obj0 = 0 ;
20041 PyObject * obj1 = 0 ;
20042 char * kwnames[] = {
20043 (char *) "self",(char *) "message", NULL
20044 };
20045
20046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20048 if (!SWIG_IsOK(res1)) {
20049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20050 }
20051 arg1 = reinterpret_cast< wxDC * >(argp1);
20052 {
20053 arg2 = wxString_in_helper(obj1);
20054 if (arg2 == NULL) SWIG_fail;
20055 temp2 = true;
20056 }
20057 {
20058 PyThreadState* __tstate = wxPyBeginAllowThreads();
20059 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20060 wxPyEndAllowThreads(__tstate);
20061 if (PyErr_Occurred()) SWIG_fail;
20062 }
20063 {
20064 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20065 }
20066 {
20067 if (temp2)
20068 delete arg2;
20069 }
20070 return resultobj;
20071 fail:
20072 {
20073 if (temp2)
20074 delete arg2;
20075 }
20076 return NULL;
20077 }
20078
20079
20080 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20081 PyObject *resultobj = 0;
20082 wxDC *arg1 = (wxDC *) 0 ;
20083 void *argp1 = 0 ;
20084 int res1 = 0 ;
20085 PyObject *swig_obj[1] ;
20086
20087 if (!args) SWIG_fail;
20088 swig_obj[0] = args;
20089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20090 if (!SWIG_IsOK(res1)) {
20091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20092 }
20093 arg1 = reinterpret_cast< wxDC * >(argp1);
20094 {
20095 PyThreadState* __tstate = wxPyBeginAllowThreads();
20096 (arg1)->EndDoc();
20097 wxPyEndAllowThreads(__tstate);
20098 if (PyErr_Occurred()) SWIG_fail;
20099 }
20100 resultobj = SWIG_Py_Void();
20101 return resultobj;
20102 fail:
20103 return NULL;
20104 }
20105
20106
20107 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20108 PyObject *resultobj = 0;
20109 wxDC *arg1 = (wxDC *) 0 ;
20110 void *argp1 = 0 ;
20111 int res1 = 0 ;
20112 PyObject *swig_obj[1] ;
20113
20114 if (!args) SWIG_fail;
20115 swig_obj[0] = args;
20116 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20117 if (!SWIG_IsOK(res1)) {
20118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20119 }
20120 arg1 = reinterpret_cast< wxDC * >(argp1);
20121 {
20122 PyThreadState* __tstate = wxPyBeginAllowThreads();
20123 (arg1)->StartPage();
20124 wxPyEndAllowThreads(__tstate);
20125 if (PyErr_Occurred()) SWIG_fail;
20126 }
20127 resultobj = SWIG_Py_Void();
20128 return resultobj;
20129 fail:
20130 return NULL;
20131 }
20132
20133
20134 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20135 PyObject *resultobj = 0;
20136 wxDC *arg1 = (wxDC *) 0 ;
20137 void *argp1 = 0 ;
20138 int res1 = 0 ;
20139 PyObject *swig_obj[1] ;
20140
20141 if (!args) SWIG_fail;
20142 swig_obj[0] = args;
20143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20144 if (!SWIG_IsOK(res1)) {
20145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20146 }
20147 arg1 = reinterpret_cast< wxDC * >(argp1);
20148 {
20149 PyThreadState* __tstate = wxPyBeginAllowThreads();
20150 (arg1)->EndPage();
20151 wxPyEndAllowThreads(__tstate);
20152 if (PyErr_Occurred()) SWIG_fail;
20153 }
20154 resultobj = SWIG_Py_Void();
20155 return resultobj;
20156 fail:
20157 return NULL;
20158 }
20159
20160
20161 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20162 PyObject *resultobj = 0;
20163 wxDC *arg1 = (wxDC *) 0 ;
20164 wxFont *arg2 = 0 ;
20165 void *argp1 = 0 ;
20166 int res1 = 0 ;
20167 void *argp2 = 0 ;
20168 int res2 = 0 ;
20169 PyObject * obj0 = 0 ;
20170 PyObject * obj1 = 0 ;
20171 char * kwnames[] = {
20172 (char *) "self",(char *) "font", NULL
20173 };
20174
20175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20177 if (!SWIG_IsOK(res1)) {
20178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20179 }
20180 arg1 = reinterpret_cast< wxDC * >(argp1);
20181 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20182 if (!SWIG_IsOK(res2)) {
20183 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20184 }
20185 if (!argp2) {
20186 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20187 }
20188 arg2 = reinterpret_cast< wxFont * >(argp2);
20189 {
20190 PyThreadState* __tstate = wxPyBeginAllowThreads();
20191 (arg1)->SetFont((wxFont const &)*arg2);
20192 wxPyEndAllowThreads(__tstate);
20193 if (PyErr_Occurred()) SWIG_fail;
20194 }
20195 resultobj = SWIG_Py_Void();
20196 return resultobj;
20197 fail:
20198 return NULL;
20199 }
20200
20201
20202 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20203 PyObject *resultobj = 0;
20204 wxDC *arg1 = (wxDC *) 0 ;
20205 wxPen *arg2 = 0 ;
20206 void *argp1 = 0 ;
20207 int res1 = 0 ;
20208 void *argp2 = 0 ;
20209 int res2 = 0 ;
20210 PyObject * obj0 = 0 ;
20211 PyObject * obj1 = 0 ;
20212 char * kwnames[] = {
20213 (char *) "self",(char *) "pen", NULL
20214 };
20215
20216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20218 if (!SWIG_IsOK(res1)) {
20219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20220 }
20221 arg1 = reinterpret_cast< wxDC * >(argp1);
20222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20223 if (!SWIG_IsOK(res2)) {
20224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20225 }
20226 if (!argp2) {
20227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20228 }
20229 arg2 = reinterpret_cast< wxPen * >(argp2);
20230 {
20231 PyThreadState* __tstate = wxPyBeginAllowThreads();
20232 (arg1)->SetPen((wxPen const &)*arg2);
20233 wxPyEndAllowThreads(__tstate);
20234 if (PyErr_Occurred()) SWIG_fail;
20235 }
20236 resultobj = SWIG_Py_Void();
20237 return resultobj;
20238 fail:
20239 return NULL;
20240 }
20241
20242
20243 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20244 PyObject *resultobj = 0;
20245 wxDC *arg1 = (wxDC *) 0 ;
20246 wxBrush *arg2 = 0 ;
20247 void *argp1 = 0 ;
20248 int res1 = 0 ;
20249 void *argp2 = 0 ;
20250 int res2 = 0 ;
20251 PyObject * obj0 = 0 ;
20252 PyObject * obj1 = 0 ;
20253 char * kwnames[] = {
20254 (char *) "self",(char *) "brush", NULL
20255 };
20256
20257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20259 if (!SWIG_IsOK(res1)) {
20260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20261 }
20262 arg1 = reinterpret_cast< wxDC * >(argp1);
20263 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20264 if (!SWIG_IsOK(res2)) {
20265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20266 }
20267 if (!argp2) {
20268 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20269 }
20270 arg2 = reinterpret_cast< wxBrush * >(argp2);
20271 {
20272 PyThreadState* __tstate = wxPyBeginAllowThreads();
20273 (arg1)->SetBrush((wxBrush const &)*arg2);
20274 wxPyEndAllowThreads(__tstate);
20275 if (PyErr_Occurred()) SWIG_fail;
20276 }
20277 resultobj = SWIG_Py_Void();
20278 return resultobj;
20279 fail:
20280 return NULL;
20281 }
20282
20283
20284 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20285 PyObject *resultobj = 0;
20286 wxDC *arg1 = (wxDC *) 0 ;
20287 wxBrush *arg2 = 0 ;
20288 void *argp1 = 0 ;
20289 int res1 = 0 ;
20290 void *argp2 = 0 ;
20291 int res2 = 0 ;
20292 PyObject * obj0 = 0 ;
20293 PyObject * obj1 = 0 ;
20294 char * kwnames[] = {
20295 (char *) "self",(char *) "brush", NULL
20296 };
20297
20298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20300 if (!SWIG_IsOK(res1)) {
20301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20302 }
20303 arg1 = reinterpret_cast< wxDC * >(argp1);
20304 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20305 if (!SWIG_IsOK(res2)) {
20306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20307 }
20308 if (!argp2) {
20309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20310 }
20311 arg2 = reinterpret_cast< wxBrush * >(argp2);
20312 {
20313 PyThreadState* __tstate = wxPyBeginAllowThreads();
20314 (arg1)->SetBackground((wxBrush const &)*arg2);
20315 wxPyEndAllowThreads(__tstate);
20316 if (PyErr_Occurred()) SWIG_fail;
20317 }
20318 resultobj = SWIG_Py_Void();
20319 return resultobj;
20320 fail:
20321 return NULL;
20322 }
20323
20324
20325 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20326 PyObject *resultobj = 0;
20327 wxDC *arg1 = (wxDC *) 0 ;
20328 int arg2 ;
20329 void *argp1 = 0 ;
20330 int res1 = 0 ;
20331 int val2 ;
20332 int ecode2 = 0 ;
20333 PyObject * obj0 = 0 ;
20334 PyObject * obj1 = 0 ;
20335 char * kwnames[] = {
20336 (char *) "self",(char *) "mode", NULL
20337 };
20338
20339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20341 if (!SWIG_IsOK(res1)) {
20342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20343 }
20344 arg1 = reinterpret_cast< wxDC * >(argp1);
20345 ecode2 = SWIG_AsVal_int(obj1, &val2);
20346 if (!SWIG_IsOK(ecode2)) {
20347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20348 }
20349 arg2 = static_cast< int >(val2);
20350 {
20351 PyThreadState* __tstate = wxPyBeginAllowThreads();
20352 (arg1)->SetBackgroundMode(arg2);
20353 wxPyEndAllowThreads(__tstate);
20354 if (PyErr_Occurred()) SWIG_fail;
20355 }
20356 resultobj = SWIG_Py_Void();
20357 return resultobj;
20358 fail:
20359 return NULL;
20360 }
20361
20362
20363 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20364 PyObject *resultobj = 0;
20365 wxDC *arg1 = (wxDC *) 0 ;
20366 wxPalette *arg2 = 0 ;
20367 void *argp1 = 0 ;
20368 int res1 = 0 ;
20369 void *argp2 = 0 ;
20370 int res2 = 0 ;
20371 PyObject * obj0 = 0 ;
20372 PyObject * obj1 = 0 ;
20373 char * kwnames[] = {
20374 (char *) "self",(char *) "palette", NULL
20375 };
20376
20377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20379 if (!SWIG_IsOK(res1)) {
20380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20381 }
20382 arg1 = reinterpret_cast< wxDC * >(argp1);
20383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20384 if (!SWIG_IsOK(res2)) {
20385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20386 }
20387 if (!argp2) {
20388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20389 }
20390 arg2 = reinterpret_cast< wxPalette * >(argp2);
20391 {
20392 PyThreadState* __tstate = wxPyBeginAllowThreads();
20393 (arg1)->SetPalette((wxPalette const &)*arg2);
20394 wxPyEndAllowThreads(__tstate);
20395 if (PyErr_Occurred()) SWIG_fail;
20396 }
20397 resultobj = SWIG_Py_Void();
20398 return resultobj;
20399 fail:
20400 return NULL;
20401 }
20402
20403
20404 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20405 PyObject *resultobj = 0;
20406 wxDC *arg1 = (wxDC *) 0 ;
20407 void *argp1 = 0 ;
20408 int res1 = 0 ;
20409 PyObject *swig_obj[1] ;
20410
20411 if (!args) SWIG_fail;
20412 swig_obj[0] = args;
20413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20414 if (!SWIG_IsOK(res1)) {
20415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20416 }
20417 arg1 = reinterpret_cast< wxDC * >(argp1);
20418 {
20419 PyThreadState* __tstate = wxPyBeginAllowThreads();
20420 (arg1)->DestroyClippingRegion();
20421 wxPyEndAllowThreads(__tstate);
20422 if (PyErr_Occurred()) SWIG_fail;
20423 }
20424 resultobj = SWIG_Py_Void();
20425 return resultobj;
20426 fail:
20427 return NULL;
20428 }
20429
20430
20431 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20432 PyObject *resultobj = 0;
20433 wxDC *arg1 = (wxDC *) 0 ;
20434 int *arg2 = (int *) 0 ;
20435 int *arg3 = (int *) 0 ;
20436 int *arg4 = (int *) 0 ;
20437 int *arg5 = (int *) 0 ;
20438 void *argp1 = 0 ;
20439 int res1 = 0 ;
20440 int temp2 ;
20441 int res2 = SWIG_TMPOBJ ;
20442 int temp3 ;
20443 int res3 = SWIG_TMPOBJ ;
20444 int temp4 ;
20445 int res4 = SWIG_TMPOBJ ;
20446 int temp5 ;
20447 int res5 = SWIG_TMPOBJ ;
20448 PyObject *swig_obj[1] ;
20449
20450 arg2 = &temp2;
20451 arg3 = &temp3;
20452 arg4 = &temp4;
20453 arg5 = &temp5;
20454 if (!args) SWIG_fail;
20455 swig_obj[0] = args;
20456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20457 if (!SWIG_IsOK(res1)) {
20458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20459 }
20460 arg1 = reinterpret_cast< wxDC * >(argp1);
20461 {
20462 PyThreadState* __tstate = wxPyBeginAllowThreads();
20463 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20464 wxPyEndAllowThreads(__tstate);
20465 if (PyErr_Occurred()) SWIG_fail;
20466 }
20467 resultobj = SWIG_Py_Void();
20468 if (SWIG_IsTmpObj(res2)) {
20469 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20470 } else {
20471 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20472 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20473 }
20474 if (SWIG_IsTmpObj(res3)) {
20475 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20476 } else {
20477 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20478 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20479 }
20480 if (SWIG_IsTmpObj(res4)) {
20481 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20482 } else {
20483 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20484 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20485 }
20486 if (SWIG_IsTmpObj(res5)) {
20487 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20488 } else {
20489 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20490 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20491 }
20492 return resultobj;
20493 fail:
20494 return NULL;
20495 }
20496
20497
20498 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20499 PyObject *resultobj = 0;
20500 wxDC *arg1 = (wxDC *) 0 ;
20501 wxRect result;
20502 void *argp1 = 0 ;
20503 int res1 = 0 ;
20504 PyObject *swig_obj[1] ;
20505
20506 if (!args) SWIG_fail;
20507 swig_obj[0] = args;
20508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20509 if (!SWIG_IsOK(res1)) {
20510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20511 }
20512 arg1 = reinterpret_cast< wxDC * >(argp1);
20513 {
20514 PyThreadState* __tstate = wxPyBeginAllowThreads();
20515 result = wxDC_GetClippingRect(arg1);
20516 wxPyEndAllowThreads(__tstate);
20517 if (PyErr_Occurred()) SWIG_fail;
20518 }
20519 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20520 return resultobj;
20521 fail:
20522 return NULL;
20523 }
20524
20525
20526 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20527 PyObject *resultobj = 0;
20528 wxDC *arg1 = (wxDC *) 0 ;
20529 int result;
20530 void *argp1 = 0 ;
20531 int res1 = 0 ;
20532 PyObject *swig_obj[1] ;
20533
20534 if (!args) SWIG_fail;
20535 swig_obj[0] = args;
20536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20537 if (!SWIG_IsOK(res1)) {
20538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20539 }
20540 arg1 = reinterpret_cast< wxDC * >(argp1);
20541 {
20542 PyThreadState* __tstate = wxPyBeginAllowThreads();
20543 result = (int)((wxDC const *)arg1)->GetCharHeight();
20544 wxPyEndAllowThreads(__tstate);
20545 if (PyErr_Occurred()) SWIG_fail;
20546 }
20547 resultobj = SWIG_From_int(static_cast< int >(result));
20548 return resultobj;
20549 fail:
20550 return NULL;
20551 }
20552
20553
20554 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20555 PyObject *resultobj = 0;
20556 wxDC *arg1 = (wxDC *) 0 ;
20557 int result;
20558 void *argp1 = 0 ;
20559 int res1 = 0 ;
20560 PyObject *swig_obj[1] ;
20561
20562 if (!args) SWIG_fail;
20563 swig_obj[0] = args;
20564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20565 if (!SWIG_IsOK(res1)) {
20566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20567 }
20568 arg1 = reinterpret_cast< wxDC * >(argp1);
20569 {
20570 PyThreadState* __tstate = wxPyBeginAllowThreads();
20571 result = (int)((wxDC const *)arg1)->GetCharWidth();
20572 wxPyEndAllowThreads(__tstate);
20573 if (PyErr_Occurred()) SWIG_fail;
20574 }
20575 resultobj = SWIG_From_int(static_cast< int >(result));
20576 return resultobj;
20577 fail:
20578 return NULL;
20579 }
20580
20581
20582 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20583 PyObject *resultobj = 0;
20584 wxDC *arg1 = (wxDC *) 0 ;
20585 wxString *arg2 = 0 ;
20586 int *arg3 = (int *) 0 ;
20587 int *arg4 = (int *) 0 ;
20588 void *argp1 = 0 ;
20589 int res1 = 0 ;
20590 bool temp2 = false ;
20591 int temp3 ;
20592 int res3 = SWIG_TMPOBJ ;
20593 int temp4 ;
20594 int res4 = SWIG_TMPOBJ ;
20595 PyObject * obj0 = 0 ;
20596 PyObject * obj1 = 0 ;
20597 char * kwnames[] = {
20598 (char *) "self",(char *) "string", NULL
20599 };
20600
20601 arg3 = &temp3;
20602 arg4 = &temp4;
20603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20605 if (!SWIG_IsOK(res1)) {
20606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20607 }
20608 arg1 = reinterpret_cast< wxDC * >(argp1);
20609 {
20610 arg2 = wxString_in_helper(obj1);
20611 if (arg2 == NULL) SWIG_fail;
20612 temp2 = true;
20613 }
20614 {
20615 PyThreadState* __tstate = wxPyBeginAllowThreads();
20616 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20617 wxPyEndAllowThreads(__tstate);
20618 if (PyErr_Occurred()) SWIG_fail;
20619 }
20620 resultobj = SWIG_Py_Void();
20621 if (SWIG_IsTmpObj(res3)) {
20622 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20623 } else {
20624 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20625 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20626 }
20627 if (SWIG_IsTmpObj(res4)) {
20628 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20629 } else {
20630 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20631 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20632 }
20633 {
20634 if (temp2)
20635 delete arg2;
20636 }
20637 return resultobj;
20638 fail:
20639 {
20640 if (temp2)
20641 delete arg2;
20642 }
20643 return NULL;
20644 }
20645
20646
20647 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20648 PyObject *resultobj = 0;
20649 wxDC *arg1 = (wxDC *) 0 ;
20650 wxString *arg2 = 0 ;
20651 int *arg3 = (int *) 0 ;
20652 int *arg4 = (int *) 0 ;
20653 int *arg5 = (int *) 0 ;
20654 int *arg6 = (int *) 0 ;
20655 wxFont *arg7 = (wxFont *) NULL ;
20656 void *argp1 = 0 ;
20657 int res1 = 0 ;
20658 bool temp2 = false ;
20659 int temp3 ;
20660 int res3 = SWIG_TMPOBJ ;
20661 int temp4 ;
20662 int res4 = SWIG_TMPOBJ ;
20663 int temp5 ;
20664 int res5 = SWIG_TMPOBJ ;
20665 int temp6 ;
20666 int res6 = SWIG_TMPOBJ ;
20667 void *argp7 = 0 ;
20668 int res7 = 0 ;
20669 PyObject * obj0 = 0 ;
20670 PyObject * obj1 = 0 ;
20671 PyObject * obj2 = 0 ;
20672 char * kwnames[] = {
20673 (char *) "self",(char *) "string",(char *) "font", NULL
20674 };
20675
20676 arg3 = &temp3;
20677 arg4 = &temp4;
20678 arg5 = &temp5;
20679 arg6 = &temp6;
20680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20682 if (!SWIG_IsOK(res1)) {
20683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20684 }
20685 arg1 = reinterpret_cast< wxDC * >(argp1);
20686 {
20687 arg2 = wxString_in_helper(obj1);
20688 if (arg2 == NULL) SWIG_fail;
20689 temp2 = true;
20690 }
20691 if (obj2) {
20692 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20693 if (!SWIG_IsOK(res7)) {
20694 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20695 }
20696 arg7 = reinterpret_cast< wxFont * >(argp7);
20697 }
20698 {
20699 PyThreadState* __tstate = wxPyBeginAllowThreads();
20700 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20701 wxPyEndAllowThreads(__tstate);
20702 if (PyErr_Occurred()) SWIG_fail;
20703 }
20704 resultobj = SWIG_Py_Void();
20705 if (SWIG_IsTmpObj(res3)) {
20706 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20707 } else {
20708 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20709 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20710 }
20711 if (SWIG_IsTmpObj(res4)) {
20712 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20713 } else {
20714 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20715 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20716 }
20717 if (SWIG_IsTmpObj(res5)) {
20718 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20719 } else {
20720 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20721 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20722 }
20723 if (SWIG_IsTmpObj(res6)) {
20724 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20725 } else {
20726 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20727 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20728 }
20729 {
20730 if (temp2)
20731 delete arg2;
20732 }
20733 return resultobj;
20734 fail:
20735 {
20736 if (temp2)
20737 delete arg2;
20738 }
20739 return NULL;
20740 }
20741
20742
20743 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20744 PyObject *resultobj = 0;
20745 wxDC *arg1 = (wxDC *) 0 ;
20746 wxString *arg2 = 0 ;
20747 int *arg3 = (int *) 0 ;
20748 int *arg4 = (int *) 0 ;
20749 int *arg5 = (int *) 0 ;
20750 wxFont *arg6 = (wxFont *) NULL ;
20751 void *argp1 = 0 ;
20752 int res1 = 0 ;
20753 bool temp2 = false ;
20754 int temp3 ;
20755 int res3 = SWIG_TMPOBJ ;
20756 int temp4 ;
20757 int res4 = SWIG_TMPOBJ ;
20758 int temp5 ;
20759 int res5 = SWIG_TMPOBJ ;
20760 void *argp6 = 0 ;
20761 int res6 = 0 ;
20762 PyObject * obj0 = 0 ;
20763 PyObject * obj1 = 0 ;
20764 PyObject * obj2 = 0 ;
20765 char * kwnames[] = {
20766 (char *) "self",(char *) "text",(char *) "font", NULL
20767 };
20768
20769 arg3 = &temp3;
20770 arg4 = &temp4;
20771 arg5 = &temp5;
20772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20774 if (!SWIG_IsOK(res1)) {
20775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20776 }
20777 arg1 = reinterpret_cast< wxDC * >(argp1);
20778 {
20779 arg2 = wxString_in_helper(obj1);
20780 if (arg2 == NULL) SWIG_fail;
20781 temp2 = true;
20782 }
20783 if (obj2) {
20784 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20785 if (!SWIG_IsOK(res6)) {
20786 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20787 }
20788 arg6 = reinterpret_cast< wxFont * >(argp6);
20789 }
20790 {
20791 PyThreadState* __tstate = wxPyBeginAllowThreads();
20792 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20793 wxPyEndAllowThreads(__tstate);
20794 if (PyErr_Occurred()) SWIG_fail;
20795 }
20796 resultobj = SWIG_Py_Void();
20797 if (SWIG_IsTmpObj(res3)) {
20798 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20799 } else {
20800 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20801 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20802 }
20803 if (SWIG_IsTmpObj(res4)) {
20804 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20805 } else {
20806 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20807 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20808 }
20809 if (SWIG_IsTmpObj(res5)) {
20810 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20811 } else {
20812 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20813 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20814 }
20815 {
20816 if (temp2)
20817 delete arg2;
20818 }
20819 return resultobj;
20820 fail:
20821 {
20822 if (temp2)
20823 delete arg2;
20824 }
20825 return NULL;
20826 }
20827
20828
20829 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20830 PyObject *resultobj = 0;
20831 wxDC *arg1 = (wxDC *) 0 ;
20832 wxString *arg2 = 0 ;
20833 wxArrayInt result;
20834 void *argp1 = 0 ;
20835 int res1 = 0 ;
20836 bool temp2 = false ;
20837 PyObject * obj0 = 0 ;
20838 PyObject * obj1 = 0 ;
20839 char * kwnames[] = {
20840 (char *) "self",(char *) "text", NULL
20841 };
20842
20843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20845 if (!SWIG_IsOK(res1)) {
20846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20847 }
20848 arg1 = reinterpret_cast< wxDC * >(argp1);
20849 {
20850 arg2 = wxString_in_helper(obj1);
20851 if (arg2 == NULL) SWIG_fail;
20852 temp2 = true;
20853 }
20854 {
20855 PyThreadState* __tstate = wxPyBeginAllowThreads();
20856 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20857 wxPyEndAllowThreads(__tstate);
20858 if (PyErr_Occurred()) SWIG_fail;
20859 }
20860 {
20861 resultobj = wxArrayInt2PyList_helper(result);
20862 }
20863 {
20864 if (temp2)
20865 delete arg2;
20866 }
20867 return resultobj;
20868 fail:
20869 {
20870 if (temp2)
20871 delete arg2;
20872 }
20873 return NULL;
20874 }
20875
20876
20877 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20878 PyObject *resultobj = 0;
20879 wxDC *arg1 = (wxDC *) 0 ;
20880 wxSize result;
20881 void *argp1 = 0 ;
20882 int res1 = 0 ;
20883 PyObject *swig_obj[1] ;
20884
20885 if (!args) SWIG_fail;
20886 swig_obj[0] = args;
20887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20888 if (!SWIG_IsOK(res1)) {
20889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20890 }
20891 arg1 = reinterpret_cast< wxDC * >(argp1);
20892 {
20893 PyThreadState* __tstate = wxPyBeginAllowThreads();
20894 result = (arg1)->GetSize();
20895 wxPyEndAllowThreads(__tstate);
20896 if (PyErr_Occurred()) SWIG_fail;
20897 }
20898 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20899 return resultobj;
20900 fail:
20901 return NULL;
20902 }
20903
20904
20905 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20906 PyObject *resultobj = 0;
20907 wxDC *arg1 = (wxDC *) 0 ;
20908 int *arg2 = (int *) 0 ;
20909 int *arg3 = (int *) 0 ;
20910 void *argp1 = 0 ;
20911 int res1 = 0 ;
20912 int temp2 ;
20913 int res2 = SWIG_TMPOBJ ;
20914 int temp3 ;
20915 int res3 = SWIG_TMPOBJ ;
20916 PyObject *swig_obj[1] ;
20917
20918 arg2 = &temp2;
20919 arg3 = &temp3;
20920 if (!args) SWIG_fail;
20921 swig_obj[0] = args;
20922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20923 if (!SWIG_IsOK(res1)) {
20924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20925 }
20926 arg1 = reinterpret_cast< wxDC * >(argp1);
20927 {
20928 PyThreadState* __tstate = wxPyBeginAllowThreads();
20929 (arg1)->GetSize(arg2,arg3);
20930 wxPyEndAllowThreads(__tstate);
20931 if (PyErr_Occurred()) SWIG_fail;
20932 }
20933 resultobj = SWIG_Py_Void();
20934 if (SWIG_IsTmpObj(res2)) {
20935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20936 } else {
20937 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20939 }
20940 if (SWIG_IsTmpObj(res3)) {
20941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20942 } else {
20943 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20945 }
20946 return resultobj;
20947 fail:
20948 return NULL;
20949 }
20950
20951
20952 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20953 PyObject *resultobj = 0;
20954 wxDC *arg1 = (wxDC *) 0 ;
20955 wxSize result;
20956 void *argp1 = 0 ;
20957 int res1 = 0 ;
20958 PyObject *swig_obj[1] ;
20959
20960 if (!args) SWIG_fail;
20961 swig_obj[0] = args;
20962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20963 if (!SWIG_IsOK(res1)) {
20964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20965 }
20966 arg1 = reinterpret_cast< wxDC * >(argp1);
20967 {
20968 PyThreadState* __tstate = wxPyBeginAllowThreads();
20969 result = ((wxDC const *)arg1)->GetSizeMM();
20970 wxPyEndAllowThreads(__tstate);
20971 if (PyErr_Occurred()) SWIG_fail;
20972 }
20973 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20974 return resultobj;
20975 fail:
20976 return NULL;
20977 }
20978
20979
20980 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20981 PyObject *resultobj = 0;
20982 wxDC *arg1 = (wxDC *) 0 ;
20983 int *arg2 = (int *) 0 ;
20984 int *arg3 = (int *) 0 ;
20985 void *argp1 = 0 ;
20986 int res1 = 0 ;
20987 int temp2 ;
20988 int res2 = SWIG_TMPOBJ ;
20989 int temp3 ;
20990 int res3 = SWIG_TMPOBJ ;
20991 PyObject *swig_obj[1] ;
20992
20993 arg2 = &temp2;
20994 arg3 = &temp3;
20995 if (!args) SWIG_fail;
20996 swig_obj[0] = args;
20997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20998 if (!SWIG_IsOK(res1)) {
20999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21000 }
21001 arg1 = reinterpret_cast< wxDC * >(argp1);
21002 {
21003 PyThreadState* __tstate = wxPyBeginAllowThreads();
21004 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21005 wxPyEndAllowThreads(__tstate);
21006 if (PyErr_Occurred()) SWIG_fail;
21007 }
21008 resultobj = SWIG_Py_Void();
21009 if (SWIG_IsTmpObj(res2)) {
21010 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21011 } else {
21012 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21013 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21014 }
21015 if (SWIG_IsTmpObj(res3)) {
21016 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21017 } else {
21018 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21019 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21020 }
21021 return resultobj;
21022 fail:
21023 return NULL;
21024 }
21025
21026
21027 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21028 PyObject *resultobj = 0;
21029 wxDC *arg1 = (wxDC *) 0 ;
21030 int arg2 ;
21031 int result;
21032 void *argp1 = 0 ;
21033 int res1 = 0 ;
21034 int val2 ;
21035 int ecode2 = 0 ;
21036 PyObject * obj0 = 0 ;
21037 PyObject * obj1 = 0 ;
21038 char * kwnames[] = {
21039 (char *) "self",(char *) "x", NULL
21040 };
21041
21042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21043 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21044 if (!SWIG_IsOK(res1)) {
21045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21046 }
21047 arg1 = reinterpret_cast< wxDC * >(argp1);
21048 ecode2 = SWIG_AsVal_int(obj1, &val2);
21049 if (!SWIG_IsOK(ecode2)) {
21050 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21051 }
21052 arg2 = static_cast< int >(val2);
21053 {
21054 PyThreadState* __tstate = wxPyBeginAllowThreads();
21055 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21056 wxPyEndAllowThreads(__tstate);
21057 if (PyErr_Occurred()) SWIG_fail;
21058 }
21059 resultobj = SWIG_From_int(static_cast< int >(result));
21060 return resultobj;
21061 fail:
21062 return NULL;
21063 }
21064
21065
21066 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21067 PyObject *resultobj = 0;
21068 wxDC *arg1 = (wxDC *) 0 ;
21069 int arg2 ;
21070 int result;
21071 void *argp1 = 0 ;
21072 int res1 = 0 ;
21073 int val2 ;
21074 int ecode2 = 0 ;
21075 PyObject * obj0 = 0 ;
21076 PyObject * obj1 = 0 ;
21077 char * kwnames[] = {
21078 (char *) "self",(char *) "y", NULL
21079 };
21080
21081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21083 if (!SWIG_IsOK(res1)) {
21084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21085 }
21086 arg1 = reinterpret_cast< wxDC * >(argp1);
21087 ecode2 = SWIG_AsVal_int(obj1, &val2);
21088 if (!SWIG_IsOK(ecode2)) {
21089 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21090 }
21091 arg2 = static_cast< int >(val2);
21092 {
21093 PyThreadState* __tstate = wxPyBeginAllowThreads();
21094 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21095 wxPyEndAllowThreads(__tstate);
21096 if (PyErr_Occurred()) SWIG_fail;
21097 }
21098 resultobj = SWIG_From_int(static_cast< int >(result));
21099 return resultobj;
21100 fail:
21101 return NULL;
21102 }
21103
21104
21105 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21106 PyObject *resultobj = 0;
21107 wxDC *arg1 = (wxDC *) 0 ;
21108 int arg2 ;
21109 int result;
21110 void *argp1 = 0 ;
21111 int res1 = 0 ;
21112 int val2 ;
21113 int ecode2 = 0 ;
21114 PyObject * obj0 = 0 ;
21115 PyObject * obj1 = 0 ;
21116 char * kwnames[] = {
21117 (char *) "self",(char *) "x", NULL
21118 };
21119
21120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21122 if (!SWIG_IsOK(res1)) {
21123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21124 }
21125 arg1 = reinterpret_cast< wxDC * >(argp1);
21126 ecode2 = SWIG_AsVal_int(obj1, &val2);
21127 if (!SWIG_IsOK(ecode2)) {
21128 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21129 }
21130 arg2 = static_cast< int >(val2);
21131 {
21132 PyThreadState* __tstate = wxPyBeginAllowThreads();
21133 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21134 wxPyEndAllowThreads(__tstate);
21135 if (PyErr_Occurred()) SWIG_fail;
21136 }
21137 resultobj = SWIG_From_int(static_cast< int >(result));
21138 return resultobj;
21139 fail:
21140 return NULL;
21141 }
21142
21143
21144 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21145 PyObject *resultobj = 0;
21146 wxDC *arg1 = (wxDC *) 0 ;
21147 int arg2 ;
21148 int result;
21149 void *argp1 = 0 ;
21150 int res1 = 0 ;
21151 int val2 ;
21152 int ecode2 = 0 ;
21153 PyObject * obj0 = 0 ;
21154 PyObject * obj1 = 0 ;
21155 char * kwnames[] = {
21156 (char *) "self",(char *) "y", NULL
21157 };
21158
21159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21161 if (!SWIG_IsOK(res1)) {
21162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21163 }
21164 arg1 = reinterpret_cast< wxDC * >(argp1);
21165 ecode2 = SWIG_AsVal_int(obj1, &val2);
21166 if (!SWIG_IsOK(ecode2)) {
21167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21168 }
21169 arg2 = static_cast< int >(val2);
21170 {
21171 PyThreadState* __tstate = wxPyBeginAllowThreads();
21172 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21173 wxPyEndAllowThreads(__tstate);
21174 if (PyErr_Occurred()) SWIG_fail;
21175 }
21176 resultobj = SWIG_From_int(static_cast< int >(result));
21177 return resultobj;
21178 fail:
21179 return NULL;
21180 }
21181
21182
21183 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21184 PyObject *resultobj = 0;
21185 wxDC *arg1 = (wxDC *) 0 ;
21186 int arg2 ;
21187 int result;
21188 void *argp1 = 0 ;
21189 int res1 = 0 ;
21190 int val2 ;
21191 int ecode2 = 0 ;
21192 PyObject * obj0 = 0 ;
21193 PyObject * obj1 = 0 ;
21194 char * kwnames[] = {
21195 (char *) "self",(char *) "x", NULL
21196 };
21197
21198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21200 if (!SWIG_IsOK(res1)) {
21201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21202 }
21203 arg1 = reinterpret_cast< wxDC * >(argp1);
21204 ecode2 = SWIG_AsVal_int(obj1, &val2);
21205 if (!SWIG_IsOK(ecode2)) {
21206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21207 }
21208 arg2 = static_cast< int >(val2);
21209 {
21210 PyThreadState* __tstate = wxPyBeginAllowThreads();
21211 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21212 wxPyEndAllowThreads(__tstate);
21213 if (PyErr_Occurred()) SWIG_fail;
21214 }
21215 resultobj = SWIG_From_int(static_cast< int >(result));
21216 return resultobj;
21217 fail:
21218 return NULL;
21219 }
21220
21221
21222 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21223 PyObject *resultobj = 0;
21224 wxDC *arg1 = (wxDC *) 0 ;
21225 int arg2 ;
21226 int result;
21227 void *argp1 = 0 ;
21228 int res1 = 0 ;
21229 int val2 ;
21230 int ecode2 = 0 ;
21231 PyObject * obj0 = 0 ;
21232 PyObject * obj1 = 0 ;
21233 char * kwnames[] = {
21234 (char *) "self",(char *) "y", NULL
21235 };
21236
21237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21239 if (!SWIG_IsOK(res1)) {
21240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21241 }
21242 arg1 = reinterpret_cast< wxDC * >(argp1);
21243 ecode2 = SWIG_AsVal_int(obj1, &val2);
21244 if (!SWIG_IsOK(ecode2)) {
21245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21246 }
21247 arg2 = static_cast< int >(val2);
21248 {
21249 PyThreadState* __tstate = wxPyBeginAllowThreads();
21250 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21251 wxPyEndAllowThreads(__tstate);
21252 if (PyErr_Occurred()) SWIG_fail;
21253 }
21254 resultobj = SWIG_From_int(static_cast< int >(result));
21255 return resultobj;
21256 fail:
21257 return NULL;
21258 }
21259
21260
21261 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21262 PyObject *resultobj = 0;
21263 wxDC *arg1 = (wxDC *) 0 ;
21264 int arg2 ;
21265 int result;
21266 void *argp1 = 0 ;
21267 int res1 = 0 ;
21268 int val2 ;
21269 int ecode2 = 0 ;
21270 PyObject * obj0 = 0 ;
21271 PyObject * obj1 = 0 ;
21272 char * kwnames[] = {
21273 (char *) "self",(char *) "x", NULL
21274 };
21275
21276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21278 if (!SWIG_IsOK(res1)) {
21279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21280 }
21281 arg1 = reinterpret_cast< wxDC * >(argp1);
21282 ecode2 = SWIG_AsVal_int(obj1, &val2);
21283 if (!SWIG_IsOK(ecode2)) {
21284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21285 }
21286 arg2 = static_cast< int >(val2);
21287 {
21288 PyThreadState* __tstate = wxPyBeginAllowThreads();
21289 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21290 wxPyEndAllowThreads(__tstate);
21291 if (PyErr_Occurred()) SWIG_fail;
21292 }
21293 resultobj = SWIG_From_int(static_cast< int >(result));
21294 return resultobj;
21295 fail:
21296 return NULL;
21297 }
21298
21299
21300 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21301 PyObject *resultobj = 0;
21302 wxDC *arg1 = (wxDC *) 0 ;
21303 int arg2 ;
21304 int result;
21305 void *argp1 = 0 ;
21306 int res1 = 0 ;
21307 int val2 ;
21308 int ecode2 = 0 ;
21309 PyObject * obj0 = 0 ;
21310 PyObject * obj1 = 0 ;
21311 char * kwnames[] = {
21312 (char *) "self",(char *) "y", NULL
21313 };
21314
21315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21317 if (!SWIG_IsOK(res1)) {
21318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21319 }
21320 arg1 = reinterpret_cast< wxDC * >(argp1);
21321 ecode2 = SWIG_AsVal_int(obj1, &val2);
21322 if (!SWIG_IsOK(ecode2)) {
21323 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21324 }
21325 arg2 = static_cast< int >(val2);
21326 {
21327 PyThreadState* __tstate = wxPyBeginAllowThreads();
21328 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21329 wxPyEndAllowThreads(__tstate);
21330 if (PyErr_Occurred()) SWIG_fail;
21331 }
21332 resultobj = SWIG_From_int(static_cast< int >(result));
21333 return resultobj;
21334 fail:
21335 return NULL;
21336 }
21337
21338
21339 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21340 PyObject *resultobj = 0;
21341 wxDC *arg1 = (wxDC *) 0 ;
21342 bool result;
21343 void *argp1 = 0 ;
21344 int res1 = 0 ;
21345 PyObject *swig_obj[1] ;
21346
21347 if (!args) SWIG_fail;
21348 swig_obj[0] = args;
21349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21350 if (!SWIG_IsOK(res1)) {
21351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21352 }
21353 arg1 = reinterpret_cast< wxDC * >(argp1);
21354 {
21355 PyThreadState* __tstate = wxPyBeginAllowThreads();
21356 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21357 wxPyEndAllowThreads(__tstate);
21358 if (PyErr_Occurred()) SWIG_fail;
21359 }
21360 {
21361 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21362 }
21363 return resultobj;
21364 fail:
21365 return NULL;
21366 }
21367
21368
21369 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21370 PyObject *resultobj = 0;
21371 wxDC *arg1 = (wxDC *) 0 ;
21372 bool result;
21373 void *argp1 = 0 ;
21374 int res1 = 0 ;
21375 PyObject *swig_obj[1] ;
21376
21377 if (!args) SWIG_fail;
21378 swig_obj[0] = args;
21379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21380 if (!SWIG_IsOK(res1)) {
21381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21382 }
21383 arg1 = reinterpret_cast< wxDC * >(argp1);
21384 {
21385 PyThreadState* __tstate = wxPyBeginAllowThreads();
21386 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21387 wxPyEndAllowThreads(__tstate);
21388 if (PyErr_Occurred()) SWIG_fail;
21389 }
21390 {
21391 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21392 }
21393 return resultobj;
21394 fail:
21395 return NULL;
21396 }
21397
21398
21399 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21400 PyObject *resultobj = 0;
21401 wxDC *arg1 = (wxDC *) 0 ;
21402 int result;
21403 void *argp1 = 0 ;
21404 int res1 = 0 ;
21405 PyObject *swig_obj[1] ;
21406
21407 if (!args) SWIG_fail;
21408 swig_obj[0] = args;
21409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21410 if (!SWIG_IsOK(res1)) {
21411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21412 }
21413 arg1 = reinterpret_cast< wxDC * >(argp1);
21414 {
21415 PyThreadState* __tstate = wxPyBeginAllowThreads();
21416 result = (int)((wxDC const *)arg1)->GetDepth();
21417 wxPyEndAllowThreads(__tstate);
21418 if (PyErr_Occurred()) SWIG_fail;
21419 }
21420 resultobj = SWIG_From_int(static_cast< int >(result));
21421 return resultobj;
21422 fail:
21423 return NULL;
21424 }
21425
21426
21427 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21428 PyObject *resultobj = 0;
21429 wxDC *arg1 = (wxDC *) 0 ;
21430 wxSize result;
21431 void *argp1 = 0 ;
21432 int res1 = 0 ;
21433 PyObject *swig_obj[1] ;
21434
21435 if (!args) SWIG_fail;
21436 swig_obj[0] = args;
21437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21438 if (!SWIG_IsOK(res1)) {
21439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21440 }
21441 arg1 = reinterpret_cast< wxDC * >(argp1);
21442 {
21443 PyThreadState* __tstate = wxPyBeginAllowThreads();
21444 result = ((wxDC const *)arg1)->GetPPI();
21445 wxPyEndAllowThreads(__tstate);
21446 if (PyErr_Occurred()) SWIG_fail;
21447 }
21448 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21449 return resultobj;
21450 fail:
21451 return NULL;
21452 }
21453
21454
21455 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21456 PyObject *resultobj = 0;
21457 wxDC *arg1 = (wxDC *) 0 ;
21458 bool result;
21459 void *argp1 = 0 ;
21460 int res1 = 0 ;
21461 PyObject *swig_obj[1] ;
21462
21463 if (!args) SWIG_fail;
21464 swig_obj[0] = args;
21465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21466 if (!SWIG_IsOK(res1)) {
21467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
21468 }
21469 arg1 = reinterpret_cast< wxDC * >(argp1);
21470 {
21471 PyThreadState* __tstate = wxPyBeginAllowThreads();
21472 result = (bool)((wxDC const *)arg1)->IsOk();
21473 wxPyEndAllowThreads(__tstate);
21474 if (PyErr_Occurred()) SWIG_fail;
21475 }
21476 {
21477 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21478 }
21479 return resultobj;
21480 fail:
21481 return NULL;
21482 }
21483
21484
21485 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21486 PyObject *resultobj = 0;
21487 wxDC *arg1 = (wxDC *) 0 ;
21488 int result;
21489 void *argp1 = 0 ;
21490 int res1 = 0 ;
21491 PyObject *swig_obj[1] ;
21492
21493 if (!args) SWIG_fail;
21494 swig_obj[0] = args;
21495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21496 if (!SWIG_IsOK(res1)) {
21497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21498 }
21499 arg1 = reinterpret_cast< wxDC * >(argp1);
21500 {
21501 PyThreadState* __tstate = wxPyBeginAllowThreads();
21502 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21503 wxPyEndAllowThreads(__tstate);
21504 if (PyErr_Occurred()) SWIG_fail;
21505 }
21506 resultobj = SWIG_From_int(static_cast< int >(result));
21507 return resultobj;
21508 fail:
21509 return NULL;
21510 }
21511
21512
21513 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21514 PyObject *resultobj = 0;
21515 wxDC *arg1 = (wxDC *) 0 ;
21516 wxBrush *result = 0 ;
21517 void *argp1 = 0 ;
21518 int res1 = 0 ;
21519 PyObject *swig_obj[1] ;
21520
21521 if (!args) SWIG_fail;
21522 swig_obj[0] = args;
21523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21524 if (!SWIG_IsOK(res1)) {
21525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21526 }
21527 arg1 = reinterpret_cast< wxDC * >(argp1);
21528 {
21529 PyThreadState* __tstate = wxPyBeginAllowThreads();
21530 {
21531 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21532 result = (wxBrush *) &_result_ref;
21533 }
21534 wxPyEndAllowThreads(__tstate);
21535 if (PyErr_Occurred()) SWIG_fail;
21536 }
21537 {
21538 wxBrush* resultptr = new wxBrush(*result);
21539 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21540 }
21541 return resultobj;
21542 fail:
21543 return NULL;
21544 }
21545
21546
21547 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21548 PyObject *resultobj = 0;
21549 wxDC *arg1 = (wxDC *) 0 ;
21550 wxBrush *result = 0 ;
21551 void *argp1 = 0 ;
21552 int res1 = 0 ;
21553 PyObject *swig_obj[1] ;
21554
21555 if (!args) SWIG_fail;
21556 swig_obj[0] = args;
21557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21558 if (!SWIG_IsOK(res1)) {
21559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21560 }
21561 arg1 = reinterpret_cast< wxDC * >(argp1);
21562 {
21563 PyThreadState* __tstate = wxPyBeginAllowThreads();
21564 {
21565 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21566 result = (wxBrush *) &_result_ref;
21567 }
21568 wxPyEndAllowThreads(__tstate);
21569 if (PyErr_Occurred()) SWIG_fail;
21570 }
21571 {
21572 wxBrush* resultptr = new wxBrush(*result);
21573 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21574 }
21575 return resultobj;
21576 fail:
21577 return NULL;
21578 }
21579
21580
21581 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21582 PyObject *resultobj = 0;
21583 wxDC *arg1 = (wxDC *) 0 ;
21584 wxFont *result = 0 ;
21585 void *argp1 = 0 ;
21586 int res1 = 0 ;
21587 PyObject *swig_obj[1] ;
21588
21589 if (!args) SWIG_fail;
21590 swig_obj[0] = args;
21591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21592 if (!SWIG_IsOK(res1)) {
21593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21594 }
21595 arg1 = reinterpret_cast< wxDC * >(argp1);
21596 {
21597 PyThreadState* __tstate = wxPyBeginAllowThreads();
21598 {
21599 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21600 result = (wxFont *) &_result_ref;
21601 }
21602 wxPyEndAllowThreads(__tstate);
21603 if (PyErr_Occurred()) SWIG_fail;
21604 }
21605 {
21606 wxFont* resultptr = new wxFont(*result);
21607 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21608 }
21609 return resultobj;
21610 fail:
21611 return NULL;
21612 }
21613
21614
21615 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21616 PyObject *resultobj = 0;
21617 wxDC *arg1 = (wxDC *) 0 ;
21618 wxPen *result = 0 ;
21619 void *argp1 = 0 ;
21620 int res1 = 0 ;
21621 PyObject *swig_obj[1] ;
21622
21623 if (!args) SWIG_fail;
21624 swig_obj[0] = args;
21625 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21626 if (!SWIG_IsOK(res1)) {
21627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21628 }
21629 arg1 = reinterpret_cast< wxDC * >(argp1);
21630 {
21631 PyThreadState* __tstate = wxPyBeginAllowThreads();
21632 {
21633 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21634 result = (wxPen *) &_result_ref;
21635 }
21636 wxPyEndAllowThreads(__tstate);
21637 if (PyErr_Occurred()) SWIG_fail;
21638 }
21639 {
21640 wxPen* resultptr = new wxPen(*result);
21641 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21642 }
21643 return resultobj;
21644 fail:
21645 return NULL;
21646 }
21647
21648
21649 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21650 PyObject *resultobj = 0;
21651 wxDC *arg1 = (wxDC *) 0 ;
21652 wxColour *result = 0 ;
21653 void *argp1 = 0 ;
21654 int res1 = 0 ;
21655 PyObject *swig_obj[1] ;
21656
21657 if (!args) SWIG_fail;
21658 swig_obj[0] = args;
21659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21660 if (!SWIG_IsOK(res1)) {
21661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21662 }
21663 arg1 = reinterpret_cast< wxDC * >(argp1);
21664 {
21665 PyThreadState* __tstate = wxPyBeginAllowThreads();
21666 {
21667 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21668 result = (wxColour *) &_result_ref;
21669 }
21670 wxPyEndAllowThreads(__tstate);
21671 if (PyErr_Occurred()) SWIG_fail;
21672 }
21673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21674 return resultobj;
21675 fail:
21676 return NULL;
21677 }
21678
21679
21680 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21681 PyObject *resultobj = 0;
21682 wxDC *arg1 = (wxDC *) 0 ;
21683 wxColour *result = 0 ;
21684 void *argp1 = 0 ;
21685 int res1 = 0 ;
21686 PyObject *swig_obj[1] ;
21687
21688 if (!args) SWIG_fail;
21689 swig_obj[0] = args;
21690 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21691 if (!SWIG_IsOK(res1)) {
21692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21693 }
21694 arg1 = reinterpret_cast< wxDC * >(argp1);
21695 {
21696 PyThreadState* __tstate = wxPyBeginAllowThreads();
21697 {
21698 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21699 result = (wxColour *) &_result_ref;
21700 }
21701 wxPyEndAllowThreads(__tstate);
21702 if (PyErr_Occurred()) SWIG_fail;
21703 }
21704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21705 return resultobj;
21706 fail:
21707 return NULL;
21708 }
21709
21710
21711 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21712 PyObject *resultobj = 0;
21713 wxDC *arg1 = (wxDC *) 0 ;
21714 wxColour *arg2 = 0 ;
21715 void *argp1 = 0 ;
21716 int res1 = 0 ;
21717 wxColour temp2 ;
21718 PyObject * obj0 = 0 ;
21719 PyObject * obj1 = 0 ;
21720 char * kwnames[] = {
21721 (char *) "self",(char *) "colour", NULL
21722 };
21723
21724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21726 if (!SWIG_IsOK(res1)) {
21727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21728 }
21729 arg1 = reinterpret_cast< wxDC * >(argp1);
21730 {
21731 arg2 = &temp2;
21732 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21733 }
21734 {
21735 PyThreadState* __tstate = wxPyBeginAllowThreads();
21736 (arg1)->SetTextForeground((wxColour const &)*arg2);
21737 wxPyEndAllowThreads(__tstate);
21738 if (PyErr_Occurred()) SWIG_fail;
21739 }
21740 resultobj = SWIG_Py_Void();
21741 return resultobj;
21742 fail:
21743 return NULL;
21744 }
21745
21746
21747 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21748 PyObject *resultobj = 0;
21749 wxDC *arg1 = (wxDC *) 0 ;
21750 wxColour *arg2 = 0 ;
21751 void *argp1 = 0 ;
21752 int res1 = 0 ;
21753 wxColour temp2 ;
21754 PyObject * obj0 = 0 ;
21755 PyObject * obj1 = 0 ;
21756 char * kwnames[] = {
21757 (char *) "self",(char *) "colour", NULL
21758 };
21759
21760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21762 if (!SWIG_IsOK(res1)) {
21763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21764 }
21765 arg1 = reinterpret_cast< wxDC * >(argp1);
21766 {
21767 arg2 = &temp2;
21768 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21769 }
21770 {
21771 PyThreadState* __tstate = wxPyBeginAllowThreads();
21772 (arg1)->SetTextBackground((wxColour const &)*arg2);
21773 wxPyEndAllowThreads(__tstate);
21774 if (PyErr_Occurred()) SWIG_fail;
21775 }
21776 resultobj = SWIG_Py_Void();
21777 return resultobj;
21778 fail:
21779 return NULL;
21780 }
21781
21782
21783 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21784 PyObject *resultobj = 0;
21785 wxDC *arg1 = (wxDC *) 0 ;
21786 int result;
21787 void *argp1 = 0 ;
21788 int res1 = 0 ;
21789 PyObject *swig_obj[1] ;
21790
21791 if (!args) SWIG_fail;
21792 swig_obj[0] = args;
21793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21794 if (!SWIG_IsOK(res1)) {
21795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21796 }
21797 arg1 = reinterpret_cast< wxDC * >(argp1);
21798 {
21799 PyThreadState* __tstate = wxPyBeginAllowThreads();
21800 result = (int)((wxDC const *)arg1)->GetMapMode();
21801 wxPyEndAllowThreads(__tstate);
21802 if (PyErr_Occurred()) SWIG_fail;
21803 }
21804 resultobj = SWIG_From_int(static_cast< int >(result));
21805 return resultobj;
21806 fail:
21807 return NULL;
21808 }
21809
21810
21811 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21812 PyObject *resultobj = 0;
21813 wxDC *arg1 = (wxDC *) 0 ;
21814 int arg2 ;
21815 void *argp1 = 0 ;
21816 int res1 = 0 ;
21817 int val2 ;
21818 int ecode2 = 0 ;
21819 PyObject * obj0 = 0 ;
21820 PyObject * obj1 = 0 ;
21821 char * kwnames[] = {
21822 (char *) "self",(char *) "mode", NULL
21823 };
21824
21825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21827 if (!SWIG_IsOK(res1)) {
21828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21829 }
21830 arg1 = reinterpret_cast< wxDC * >(argp1);
21831 ecode2 = SWIG_AsVal_int(obj1, &val2);
21832 if (!SWIG_IsOK(ecode2)) {
21833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21834 }
21835 arg2 = static_cast< int >(val2);
21836 {
21837 PyThreadState* __tstate = wxPyBeginAllowThreads();
21838 (arg1)->SetMapMode(arg2);
21839 wxPyEndAllowThreads(__tstate);
21840 if (PyErr_Occurred()) SWIG_fail;
21841 }
21842 resultobj = SWIG_Py_Void();
21843 return resultobj;
21844 fail:
21845 return NULL;
21846 }
21847
21848
21849 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21850 PyObject *resultobj = 0;
21851 wxDC *arg1 = (wxDC *) 0 ;
21852 double *arg2 = (double *) 0 ;
21853 double *arg3 = (double *) 0 ;
21854 void *argp1 = 0 ;
21855 int res1 = 0 ;
21856 double temp2 ;
21857 int res2 = SWIG_TMPOBJ ;
21858 double temp3 ;
21859 int res3 = SWIG_TMPOBJ ;
21860 PyObject *swig_obj[1] ;
21861
21862 arg2 = &temp2;
21863 arg3 = &temp3;
21864 if (!args) SWIG_fail;
21865 swig_obj[0] = args;
21866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21867 if (!SWIG_IsOK(res1)) {
21868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21869 }
21870 arg1 = reinterpret_cast< wxDC * >(argp1);
21871 {
21872 PyThreadState* __tstate = wxPyBeginAllowThreads();
21873 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21874 wxPyEndAllowThreads(__tstate);
21875 if (PyErr_Occurred()) SWIG_fail;
21876 }
21877 resultobj = SWIG_Py_Void();
21878 if (SWIG_IsTmpObj(res2)) {
21879 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21880 } else {
21881 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21882 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21883 }
21884 if (SWIG_IsTmpObj(res3)) {
21885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21886 } else {
21887 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21888 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21889 }
21890 return resultobj;
21891 fail:
21892 return NULL;
21893 }
21894
21895
21896 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21897 PyObject *resultobj = 0;
21898 wxDC *arg1 = (wxDC *) 0 ;
21899 double arg2 ;
21900 double arg3 ;
21901 void *argp1 = 0 ;
21902 int res1 = 0 ;
21903 double val2 ;
21904 int ecode2 = 0 ;
21905 double val3 ;
21906 int ecode3 = 0 ;
21907 PyObject * obj0 = 0 ;
21908 PyObject * obj1 = 0 ;
21909 PyObject * obj2 = 0 ;
21910 char * kwnames[] = {
21911 (char *) "self",(char *) "x",(char *) "y", NULL
21912 };
21913
21914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21916 if (!SWIG_IsOK(res1)) {
21917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21918 }
21919 arg1 = reinterpret_cast< wxDC * >(argp1);
21920 ecode2 = SWIG_AsVal_double(obj1, &val2);
21921 if (!SWIG_IsOK(ecode2)) {
21922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21923 }
21924 arg2 = static_cast< double >(val2);
21925 ecode3 = SWIG_AsVal_double(obj2, &val3);
21926 if (!SWIG_IsOK(ecode3)) {
21927 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21928 }
21929 arg3 = static_cast< double >(val3);
21930 {
21931 PyThreadState* __tstate = wxPyBeginAllowThreads();
21932 (arg1)->SetUserScale(arg2,arg3);
21933 wxPyEndAllowThreads(__tstate);
21934 if (PyErr_Occurred()) SWIG_fail;
21935 }
21936 resultobj = SWIG_Py_Void();
21937 return resultobj;
21938 fail:
21939 return NULL;
21940 }
21941
21942
21943 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21944 PyObject *resultobj = 0;
21945 wxDC *arg1 = (wxDC *) 0 ;
21946 double *arg2 = (double *) 0 ;
21947 double *arg3 = (double *) 0 ;
21948 void *argp1 = 0 ;
21949 int res1 = 0 ;
21950 double temp2 ;
21951 int res2 = SWIG_TMPOBJ ;
21952 double temp3 ;
21953 int res3 = SWIG_TMPOBJ ;
21954 PyObject *swig_obj[1] ;
21955
21956 arg2 = &temp2;
21957 arg3 = &temp3;
21958 if (!args) SWIG_fail;
21959 swig_obj[0] = args;
21960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21961 if (!SWIG_IsOK(res1)) {
21962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21963 }
21964 arg1 = reinterpret_cast< wxDC * >(argp1);
21965 {
21966 PyThreadState* __tstate = wxPyBeginAllowThreads();
21967 (arg1)->GetLogicalScale(arg2,arg3);
21968 wxPyEndAllowThreads(__tstate);
21969 if (PyErr_Occurred()) SWIG_fail;
21970 }
21971 resultobj = SWIG_Py_Void();
21972 if (SWIG_IsTmpObj(res2)) {
21973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21974 } else {
21975 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21977 }
21978 if (SWIG_IsTmpObj(res3)) {
21979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21980 } else {
21981 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21983 }
21984 return resultobj;
21985 fail:
21986 return NULL;
21987 }
21988
21989
21990 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21991 PyObject *resultobj = 0;
21992 wxDC *arg1 = (wxDC *) 0 ;
21993 double arg2 ;
21994 double arg3 ;
21995 void *argp1 = 0 ;
21996 int res1 = 0 ;
21997 double val2 ;
21998 int ecode2 = 0 ;
21999 double val3 ;
22000 int ecode3 = 0 ;
22001 PyObject * obj0 = 0 ;
22002 PyObject * obj1 = 0 ;
22003 PyObject * obj2 = 0 ;
22004 char * kwnames[] = {
22005 (char *) "self",(char *) "x",(char *) "y", NULL
22006 };
22007
22008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22010 if (!SWIG_IsOK(res1)) {
22011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22012 }
22013 arg1 = reinterpret_cast< wxDC * >(argp1);
22014 ecode2 = SWIG_AsVal_double(obj1, &val2);
22015 if (!SWIG_IsOK(ecode2)) {
22016 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22017 }
22018 arg2 = static_cast< double >(val2);
22019 ecode3 = SWIG_AsVal_double(obj2, &val3);
22020 if (!SWIG_IsOK(ecode3)) {
22021 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22022 }
22023 arg3 = static_cast< double >(val3);
22024 {
22025 PyThreadState* __tstate = wxPyBeginAllowThreads();
22026 (arg1)->SetLogicalScale(arg2,arg3);
22027 wxPyEndAllowThreads(__tstate);
22028 if (PyErr_Occurred()) SWIG_fail;
22029 }
22030 resultobj = SWIG_Py_Void();
22031 return resultobj;
22032 fail:
22033 return NULL;
22034 }
22035
22036
22037 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22038 PyObject *resultobj = 0;
22039 wxDC *arg1 = (wxDC *) 0 ;
22040 wxPoint result;
22041 void *argp1 = 0 ;
22042 int res1 = 0 ;
22043 PyObject *swig_obj[1] ;
22044
22045 if (!args) SWIG_fail;
22046 swig_obj[0] = args;
22047 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22048 if (!SWIG_IsOK(res1)) {
22049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22050 }
22051 arg1 = reinterpret_cast< wxDC * >(argp1);
22052 {
22053 PyThreadState* __tstate = wxPyBeginAllowThreads();
22054 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22055 wxPyEndAllowThreads(__tstate);
22056 if (PyErr_Occurred()) SWIG_fail;
22057 }
22058 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22059 return resultobj;
22060 fail:
22061 return NULL;
22062 }
22063
22064
22065 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22066 PyObject *resultobj = 0;
22067 wxDC *arg1 = (wxDC *) 0 ;
22068 int *arg2 = (int *) 0 ;
22069 int *arg3 = (int *) 0 ;
22070 void *argp1 = 0 ;
22071 int res1 = 0 ;
22072 int temp2 ;
22073 int res2 = SWIG_TMPOBJ ;
22074 int temp3 ;
22075 int res3 = SWIG_TMPOBJ ;
22076 PyObject *swig_obj[1] ;
22077
22078 arg2 = &temp2;
22079 arg3 = &temp3;
22080 if (!args) SWIG_fail;
22081 swig_obj[0] = args;
22082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22083 if (!SWIG_IsOK(res1)) {
22084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22085 }
22086 arg1 = reinterpret_cast< wxDC * >(argp1);
22087 {
22088 PyThreadState* __tstate = wxPyBeginAllowThreads();
22089 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22090 wxPyEndAllowThreads(__tstate);
22091 if (PyErr_Occurred()) SWIG_fail;
22092 }
22093 resultobj = SWIG_Py_Void();
22094 if (SWIG_IsTmpObj(res2)) {
22095 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22096 } else {
22097 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22098 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22099 }
22100 if (SWIG_IsTmpObj(res3)) {
22101 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22102 } else {
22103 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22104 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22105 }
22106 return resultobj;
22107 fail:
22108 return NULL;
22109 }
22110
22111
22112 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22113 PyObject *resultobj = 0;
22114 wxDC *arg1 = (wxDC *) 0 ;
22115 int arg2 ;
22116 int arg3 ;
22117 void *argp1 = 0 ;
22118 int res1 = 0 ;
22119 int val2 ;
22120 int ecode2 = 0 ;
22121 int val3 ;
22122 int ecode3 = 0 ;
22123 PyObject * obj0 = 0 ;
22124 PyObject * obj1 = 0 ;
22125 PyObject * obj2 = 0 ;
22126 char * kwnames[] = {
22127 (char *) "self",(char *) "x",(char *) "y", NULL
22128 };
22129
22130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22132 if (!SWIG_IsOK(res1)) {
22133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22134 }
22135 arg1 = reinterpret_cast< wxDC * >(argp1);
22136 ecode2 = SWIG_AsVal_int(obj1, &val2);
22137 if (!SWIG_IsOK(ecode2)) {
22138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22139 }
22140 arg2 = static_cast< int >(val2);
22141 ecode3 = SWIG_AsVal_int(obj2, &val3);
22142 if (!SWIG_IsOK(ecode3)) {
22143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22144 }
22145 arg3 = static_cast< int >(val3);
22146 {
22147 PyThreadState* __tstate = wxPyBeginAllowThreads();
22148 (arg1)->SetLogicalOrigin(arg2,arg3);
22149 wxPyEndAllowThreads(__tstate);
22150 if (PyErr_Occurred()) SWIG_fail;
22151 }
22152 resultobj = SWIG_Py_Void();
22153 return resultobj;
22154 fail:
22155 return NULL;
22156 }
22157
22158
22159 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22160 PyObject *resultobj = 0;
22161 wxDC *arg1 = (wxDC *) 0 ;
22162 wxPoint *arg2 = 0 ;
22163 void *argp1 = 0 ;
22164 int res1 = 0 ;
22165 wxPoint temp2 ;
22166 PyObject * obj0 = 0 ;
22167 PyObject * obj1 = 0 ;
22168 char * kwnames[] = {
22169 (char *) "self",(char *) "point", NULL
22170 };
22171
22172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22174 if (!SWIG_IsOK(res1)) {
22175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22176 }
22177 arg1 = reinterpret_cast< wxDC * >(argp1);
22178 {
22179 arg2 = &temp2;
22180 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22181 }
22182 {
22183 PyThreadState* __tstate = wxPyBeginAllowThreads();
22184 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22185 wxPyEndAllowThreads(__tstate);
22186 if (PyErr_Occurred()) SWIG_fail;
22187 }
22188 resultobj = SWIG_Py_Void();
22189 return resultobj;
22190 fail:
22191 return NULL;
22192 }
22193
22194
22195 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22196 PyObject *resultobj = 0;
22197 wxDC *arg1 = (wxDC *) 0 ;
22198 wxPoint result;
22199 void *argp1 = 0 ;
22200 int res1 = 0 ;
22201 PyObject *swig_obj[1] ;
22202
22203 if (!args) SWIG_fail;
22204 swig_obj[0] = args;
22205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22206 if (!SWIG_IsOK(res1)) {
22207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22208 }
22209 arg1 = reinterpret_cast< wxDC * >(argp1);
22210 {
22211 PyThreadState* __tstate = wxPyBeginAllowThreads();
22212 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22213 wxPyEndAllowThreads(__tstate);
22214 if (PyErr_Occurred()) SWIG_fail;
22215 }
22216 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22217 return resultobj;
22218 fail:
22219 return NULL;
22220 }
22221
22222
22223 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22224 PyObject *resultobj = 0;
22225 wxDC *arg1 = (wxDC *) 0 ;
22226 int *arg2 = (int *) 0 ;
22227 int *arg3 = (int *) 0 ;
22228 void *argp1 = 0 ;
22229 int res1 = 0 ;
22230 int temp2 ;
22231 int res2 = SWIG_TMPOBJ ;
22232 int temp3 ;
22233 int res3 = SWIG_TMPOBJ ;
22234 PyObject *swig_obj[1] ;
22235
22236 arg2 = &temp2;
22237 arg3 = &temp3;
22238 if (!args) SWIG_fail;
22239 swig_obj[0] = args;
22240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22241 if (!SWIG_IsOK(res1)) {
22242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22243 }
22244 arg1 = reinterpret_cast< wxDC * >(argp1);
22245 {
22246 PyThreadState* __tstate = wxPyBeginAllowThreads();
22247 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22248 wxPyEndAllowThreads(__tstate);
22249 if (PyErr_Occurred()) SWIG_fail;
22250 }
22251 resultobj = SWIG_Py_Void();
22252 if (SWIG_IsTmpObj(res2)) {
22253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22254 } else {
22255 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22257 }
22258 if (SWIG_IsTmpObj(res3)) {
22259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22260 } else {
22261 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22263 }
22264 return resultobj;
22265 fail:
22266 return NULL;
22267 }
22268
22269
22270 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22271 PyObject *resultobj = 0;
22272 wxDC *arg1 = (wxDC *) 0 ;
22273 int arg2 ;
22274 int arg3 ;
22275 void *argp1 = 0 ;
22276 int res1 = 0 ;
22277 int val2 ;
22278 int ecode2 = 0 ;
22279 int val3 ;
22280 int ecode3 = 0 ;
22281 PyObject * obj0 = 0 ;
22282 PyObject * obj1 = 0 ;
22283 PyObject * obj2 = 0 ;
22284 char * kwnames[] = {
22285 (char *) "self",(char *) "x",(char *) "y", NULL
22286 };
22287
22288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22290 if (!SWIG_IsOK(res1)) {
22291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22292 }
22293 arg1 = reinterpret_cast< wxDC * >(argp1);
22294 ecode2 = SWIG_AsVal_int(obj1, &val2);
22295 if (!SWIG_IsOK(ecode2)) {
22296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22297 }
22298 arg2 = static_cast< int >(val2);
22299 ecode3 = SWIG_AsVal_int(obj2, &val3);
22300 if (!SWIG_IsOK(ecode3)) {
22301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22302 }
22303 arg3 = static_cast< int >(val3);
22304 {
22305 PyThreadState* __tstate = wxPyBeginAllowThreads();
22306 (arg1)->SetDeviceOrigin(arg2,arg3);
22307 wxPyEndAllowThreads(__tstate);
22308 if (PyErr_Occurred()) SWIG_fail;
22309 }
22310 resultobj = SWIG_Py_Void();
22311 return resultobj;
22312 fail:
22313 return NULL;
22314 }
22315
22316
22317 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22318 PyObject *resultobj = 0;
22319 wxDC *arg1 = (wxDC *) 0 ;
22320 wxPoint *arg2 = 0 ;
22321 void *argp1 = 0 ;
22322 int res1 = 0 ;
22323 wxPoint temp2 ;
22324 PyObject * obj0 = 0 ;
22325 PyObject * obj1 = 0 ;
22326 char * kwnames[] = {
22327 (char *) "self",(char *) "point", NULL
22328 };
22329
22330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22332 if (!SWIG_IsOK(res1)) {
22333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22334 }
22335 arg1 = reinterpret_cast< wxDC * >(argp1);
22336 {
22337 arg2 = &temp2;
22338 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22339 }
22340 {
22341 PyThreadState* __tstate = wxPyBeginAllowThreads();
22342 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22343 wxPyEndAllowThreads(__tstate);
22344 if (PyErr_Occurred()) SWIG_fail;
22345 }
22346 resultobj = SWIG_Py_Void();
22347 return resultobj;
22348 fail:
22349 return NULL;
22350 }
22351
22352
22353 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22354 PyObject *resultobj = 0;
22355 wxDC *arg1 = (wxDC *) 0 ;
22356 bool arg2 ;
22357 bool arg3 ;
22358 void *argp1 = 0 ;
22359 int res1 = 0 ;
22360 bool val2 ;
22361 int ecode2 = 0 ;
22362 bool val3 ;
22363 int ecode3 = 0 ;
22364 PyObject * obj0 = 0 ;
22365 PyObject * obj1 = 0 ;
22366 PyObject * obj2 = 0 ;
22367 char * kwnames[] = {
22368 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22369 };
22370
22371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22373 if (!SWIG_IsOK(res1)) {
22374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22375 }
22376 arg1 = reinterpret_cast< wxDC * >(argp1);
22377 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22378 if (!SWIG_IsOK(ecode2)) {
22379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22380 }
22381 arg2 = static_cast< bool >(val2);
22382 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22383 if (!SWIG_IsOK(ecode3)) {
22384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22385 }
22386 arg3 = static_cast< bool >(val3);
22387 {
22388 PyThreadState* __tstate = wxPyBeginAllowThreads();
22389 (arg1)->SetAxisOrientation(arg2,arg3);
22390 wxPyEndAllowThreads(__tstate);
22391 if (PyErr_Occurred()) SWIG_fail;
22392 }
22393 resultobj = SWIG_Py_Void();
22394 return resultobj;
22395 fail:
22396 return NULL;
22397 }
22398
22399
22400 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22401 PyObject *resultobj = 0;
22402 wxDC *arg1 = (wxDC *) 0 ;
22403 int result;
22404 void *argp1 = 0 ;
22405 int res1 = 0 ;
22406 PyObject *swig_obj[1] ;
22407
22408 if (!args) SWIG_fail;
22409 swig_obj[0] = args;
22410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22411 if (!SWIG_IsOK(res1)) {
22412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22413 }
22414 arg1 = reinterpret_cast< wxDC * >(argp1);
22415 {
22416 PyThreadState* __tstate = wxPyBeginAllowThreads();
22417 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22418 wxPyEndAllowThreads(__tstate);
22419 if (PyErr_Occurred()) SWIG_fail;
22420 }
22421 resultobj = SWIG_From_int(static_cast< int >(result));
22422 return resultobj;
22423 fail:
22424 return NULL;
22425 }
22426
22427
22428 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22429 PyObject *resultobj = 0;
22430 wxDC *arg1 = (wxDC *) 0 ;
22431 int arg2 ;
22432 void *argp1 = 0 ;
22433 int res1 = 0 ;
22434 int val2 ;
22435 int ecode2 = 0 ;
22436 PyObject * obj0 = 0 ;
22437 PyObject * obj1 = 0 ;
22438 char * kwnames[] = {
22439 (char *) "self",(char *) "function", NULL
22440 };
22441
22442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22444 if (!SWIG_IsOK(res1)) {
22445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22446 }
22447 arg1 = reinterpret_cast< wxDC * >(argp1);
22448 ecode2 = SWIG_AsVal_int(obj1, &val2);
22449 if (!SWIG_IsOK(ecode2)) {
22450 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22451 }
22452 arg2 = static_cast< int >(val2);
22453 {
22454 PyThreadState* __tstate = wxPyBeginAllowThreads();
22455 (arg1)->SetLogicalFunction(arg2);
22456 wxPyEndAllowThreads(__tstate);
22457 if (PyErr_Occurred()) SWIG_fail;
22458 }
22459 resultobj = SWIG_Py_Void();
22460 return resultobj;
22461 fail:
22462 return NULL;
22463 }
22464
22465
22466 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22467 PyObject *resultobj = 0;
22468 wxDC *arg1 = (wxDC *) 0 ;
22469 void *argp1 = 0 ;
22470 int res1 = 0 ;
22471 PyObject *swig_obj[1] ;
22472
22473 if (!args) SWIG_fail;
22474 swig_obj[0] = args;
22475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22476 if (!SWIG_IsOK(res1)) {
22477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22478 }
22479 arg1 = reinterpret_cast< wxDC * >(argp1);
22480 {
22481 PyThreadState* __tstate = wxPyBeginAllowThreads();
22482 (arg1)->ComputeScaleAndOrigin();
22483 wxPyEndAllowThreads(__tstate);
22484 if (PyErr_Occurred()) SWIG_fail;
22485 }
22486 resultobj = SWIG_Py_Void();
22487 return resultobj;
22488 fail:
22489 return NULL;
22490 }
22491
22492
22493 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22494 PyObject *resultobj = 0;
22495 wxDC *arg1 = (wxDC *) 0 ;
22496 int arg2 ;
22497 int arg3 ;
22498 void *argp1 = 0 ;
22499 int res1 = 0 ;
22500 int val2 ;
22501 int ecode2 = 0 ;
22502 int val3 ;
22503 int ecode3 = 0 ;
22504 PyObject * obj0 = 0 ;
22505 PyObject * obj1 = 0 ;
22506 PyObject * obj2 = 0 ;
22507 char * kwnames[] = {
22508 (char *) "self",(char *) "x",(char *) "y", NULL
22509 };
22510
22511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22513 if (!SWIG_IsOK(res1)) {
22514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22515 }
22516 arg1 = reinterpret_cast< wxDC * >(argp1);
22517 ecode2 = SWIG_AsVal_int(obj1, &val2);
22518 if (!SWIG_IsOK(ecode2)) {
22519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22520 }
22521 arg2 = static_cast< int >(val2);
22522 ecode3 = SWIG_AsVal_int(obj2, &val3);
22523 if (!SWIG_IsOK(ecode3)) {
22524 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22525 }
22526 arg3 = static_cast< int >(val3);
22527 {
22528 PyThreadState* __tstate = wxPyBeginAllowThreads();
22529 (arg1)->CalcBoundingBox(arg2,arg3);
22530 wxPyEndAllowThreads(__tstate);
22531 if (PyErr_Occurred()) SWIG_fail;
22532 }
22533 resultobj = SWIG_Py_Void();
22534 return resultobj;
22535 fail:
22536 return NULL;
22537 }
22538
22539
22540 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22541 PyObject *resultobj = 0;
22542 wxDC *arg1 = (wxDC *) 0 ;
22543 wxPoint *arg2 = 0 ;
22544 void *argp1 = 0 ;
22545 int res1 = 0 ;
22546 wxPoint temp2 ;
22547 PyObject * obj0 = 0 ;
22548 PyObject * obj1 = 0 ;
22549 char * kwnames[] = {
22550 (char *) "self",(char *) "point", NULL
22551 };
22552
22553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22555 if (!SWIG_IsOK(res1)) {
22556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22557 }
22558 arg1 = reinterpret_cast< wxDC * >(argp1);
22559 {
22560 arg2 = &temp2;
22561 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22562 }
22563 {
22564 PyThreadState* __tstate = wxPyBeginAllowThreads();
22565 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22566 wxPyEndAllowThreads(__tstate);
22567 if (PyErr_Occurred()) SWIG_fail;
22568 }
22569 resultobj = SWIG_Py_Void();
22570 return resultobj;
22571 fail:
22572 return NULL;
22573 }
22574
22575
22576 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22577 PyObject *resultobj = 0;
22578 wxDC *arg1 = (wxDC *) 0 ;
22579 void *argp1 = 0 ;
22580 int res1 = 0 ;
22581 PyObject *swig_obj[1] ;
22582
22583 if (!args) SWIG_fail;
22584 swig_obj[0] = args;
22585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22586 if (!SWIG_IsOK(res1)) {
22587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22588 }
22589 arg1 = reinterpret_cast< wxDC * >(argp1);
22590 {
22591 PyThreadState* __tstate = wxPyBeginAllowThreads();
22592 (arg1)->ResetBoundingBox();
22593 wxPyEndAllowThreads(__tstate);
22594 if (PyErr_Occurred()) SWIG_fail;
22595 }
22596 resultobj = SWIG_Py_Void();
22597 return resultobj;
22598 fail:
22599 return NULL;
22600 }
22601
22602
22603 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22604 PyObject *resultobj = 0;
22605 wxDC *arg1 = (wxDC *) 0 ;
22606 int result;
22607 void *argp1 = 0 ;
22608 int res1 = 0 ;
22609 PyObject *swig_obj[1] ;
22610
22611 if (!args) SWIG_fail;
22612 swig_obj[0] = args;
22613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22614 if (!SWIG_IsOK(res1)) {
22615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22616 }
22617 arg1 = reinterpret_cast< wxDC * >(argp1);
22618 {
22619 PyThreadState* __tstate = wxPyBeginAllowThreads();
22620 result = (int)((wxDC const *)arg1)->MinX();
22621 wxPyEndAllowThreads(__tstate);
22622 if (PyErr_Occurred()) SWIG_fail;
22623 }
22624 resultobj = SWIG_From_int(static_cast< int >(result));
22625 return resultobj;
22626 fail:
22627 return NULL;
22628 }
22629
22630
22631 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22632 PyObject *resultobj = 0;
22633 wxDC *arg1 = (wxDC *) 0 ;
22634 int result;
22635 void *argp1 = 0 ;
22636 int res1 = 0 ;
22637 PyObject *swig_obj[1] ;
22638
22639 if (!args) SWIG_fail;
22640 swig_obj[0] = args;
22641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22642 if (!SWIG_IsOK(res1)) {
22643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22644 }
22645 arg1 = reinterpret_cast< wxDC * >(argp1);
22646 {
22647 PyThreadState* __tstate = wxPyBeginAllowThreads();
22648 result = (int)((wxDC const *)arg1)->MaxX();
22649 wxPyEndAllowThreads(__tstate);
22650 if (PyErr_Occurred()) SWIG_fail;
22651 }
22652 resultobj = SWIG_From_int(static_cast< int >(result));
22653 return resultobj;
22654 fail:
22655 return NULL;
22656 }
22657
22658
22659 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22660 PyObject *resultobj = 0;
22661 wxDC *arg1 = (wxDC *) 0 ;
22662 int result;
22663 void *argp1 = 0 ;
22664 int res1 = 0 ;
22665 PyObject *swig_obj[1] ;
22666
22667 if (!args) SWIG_fail;
22668 swig_obj[0] = args;
22669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22670 if (!SWIG_IsOK(res1)) {
22671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22672 }
22673 arg1 = reinterpret_cast< wxDC * >(argp1);
22674 {
22675 PyThreadState* __tstate = wxPyBeginAllowThreads();
22676 result = (int)((wxDC const *)arg1)->MinY();
22677 wxPyEndAllowThreads(__tstate);
22678 if (PyErr_Occurred()) SWIG_fail;
22679 }
22680 resultobj = SWIG_From_int(static_cast< int >(result));
22681 return resultobj;
22682 fail:
22683 return NULL;
22684 }
22685
22686
22687 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22688 PyObject *resultobj = 0;
22689 wxDC *arg1 = (wxDC *) 0 ;
22690 int result;
22691 void *argp1 = 0 ;
22692 int res1 = 0 ;
22693 PyObject *swig_obj[1] ;
22694
22695 if (!args) SWIG_fail;
22696 swig_obj[0] = args;
22697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22698 if (!SWIG_IsOK(res1)) {
22699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22700 }
22701 arg1 = reinterpret_cast< wxDC * >(argp1);
22702 {
22703 PyThreadState* __tstate = wxPyBeginAllowThreads();
22704 result = (int)((wxDC const *)arg1)->MaxY();
22705 wxPyEndAllowThreads(__tstate);
22706 if (PyErr_Occurred()) SWIG_fail;
22707 }
22708 resultobj = SWIG_From_int(static_cast< int >(result));
22709 return resultobj;
22710 fail:
22711 return NULL;
22712 }
22713
22714
22715 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22716 PyObject *resultobj = 0;
22717 wxDC *arg1 = (wxDC *) 0 ;
22718 int *arg2 = (int *) 0 ;
22719 int *arg3 = (int *) 0 ;
22720 int *arg4 = (int *) 0 ;
22721 int *arg5 = (int *) 0 ;
22722 void *argp1 = 0 ;
22723 int res1 = 0 ;
22724 int temp2 ;
22725 int res2 = SWIG_TMPOBJ ;
22726 int temp3 ;
22727 int res3 = SWIG_TMPOBJ ;
22728 int temp4 ;
22729 int res4 = SWIG_TMPOBJ ;
22730 int temp5 ;
22731 int res5 = SWIG_TMPOBJ ;
22732 PyObject *swig_obj[1] ;
22733
22734 arg2 = &temp2;
22735 arg3 = &temp3;
22736 arg4 = &temp4;
22737 arg5 = &temp5;
22738 if (!args) SWIG_fail;
22739 swig_obj[0] = args;
22740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22741 if (!SWIG_IsOK(res1)) {
22742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22743 }
22744 arg1 = reinterpret_cast< wxDC * >(argp1);
22745 {
22746 PyThreadState* __tstate = wxPyBeginAllowThreads();
22747 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22748 wxPyEndAllowThreads(__tstate);
22749 if (PyErr_Occurred()) SWIG_fail;
22750 }
22751 resultobj = SWIG_Py_Void();
22752 if (SWIG_IsTmpObj(res2)) {
22753 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22754 } else {
22755 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22756 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22757 }
22758 if (SWIG_IsTmpObj(res3)) {
22759 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22760 } else {
22761 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22762 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22763 }
22764 if (SWIG_IsTmpObj(res4)) {
22765 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22766 } else {
22767 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22768 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22769 }
22770 if (SWIG_IsTmpObj(res5)) {
22771 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22772 } else {
22773 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22774 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22775 }
22776 return resultobj;
22777 fail:
22778 return NULL;
22779 }
22780
22781
22782 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22783 PyObject *resultobj = 0;
22784 wxDC *arg1 = (wxDC *) 0 ;
22785 wxLayoutDirection result;
22786 void *argp1 = 0 ;
22787 int res1 = 0 ;
22788 PyObject *swig_obj[1] ;
22789
22790 if (!args) SWIG_fail;
22791 swig_obj[0] = args;
22792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22793 if (!SWIG_IsOK(res1)) {
22794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
22795 }
22796 arg1 = reinterpret_cast< wxDC * >(argp1);
22797 {
22798 PyThreadState* __tstate = wxPyBeginAllowThreads();
22799 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
22800 wxPyEndAllowThreads(__tstate);
22801 if (PyErr_Occurred()) SWIG_fail;
22802 }
22803 resultobj = SWIG_From_int(static_cast< int >(result));
22804 return resultobj;
22805 fail:
22806 return NULL;
22807 }
22808
22809
22810 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22811 PyObject *resultobj = 0;
22812 wxDC *arg1 = (wxDC *) 0 ;
22813 wxLayoutDirection arg2 ;
22814 void *argp1 = 0 ;
22815 int res1 = 0 ;
22816 int val2 ;
22817 int ecode2 = 0 ;
22818 PyObject * obj0 = 0 ;
22819 PyObject * obj1 = 0 ;
22820 char * kwnames[] = {
22821 (char *) "self",(char *) "dir", NULL
22822 };
22823
22824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
22825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22826 if (!SWIG_IsOK(res1)) {
22827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
22828 }
22829 arg1 = reinterpret_cast< wxDC * >(argp1);
22830 ecode2 = SWIG_AsVal_int(obj1, &val2);
22831 if (!SWIG_IsOK(ecode2)) {
22832 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
22833 }
22834 arg2 = static_cast< wxLayoutDirection >(val2);
22835 {
22836 PyThreadState* __tstate = wxPyBeginAllowThreads();
22837 (arg1)->SetLayoutDirection(arg2);
22838 wxPyEndAllowThreads(__tstate);
22839 if (PyErr_Occurred()) SWIG_fail;
22840 }
22841 resultobj = SWIG_Py_Void();
22842 return resultobj;
22843 fail:
22844 return NULL;
22845 }
22846
22847
22848 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22849 PyObject *resultobj = 0;
22850 wxDC *arg1 = (wxDC *) 0 ;
22851 PyObject *arg2 = (PyObject *) 0 ;
22852 PyObject *arg3 = (PyObject *) 0 ;
22853 PyObject *arg4 = (PyObject *) 0 ;
22854 PyObject *result = 0 ;
22855 void *argp1 = 0 ;
22856 int res1 = 0 ;
22857 PyObject * obj0 = 0 ;
22858 PyObject * obj1 = 0 ;
22859 PyObject * obj2 = 0 ;
22860 PyObject * obj3 = 0 ;
22861 char * kwnames[] = {
22862 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22863 };
22864
22865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22867 if (!SWIG_IsOK(res1)) {
22868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22869 }
22870 arg1 = reinterpret_cast< wxDC * >(argp1);
22871 arg2 = obj1;
22872 arg3 = obj2;
22873 arg4 = obj3;
22874 {
22875 PyThreadState* __tstate = wxPyBeginAllowThreads();
22876 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22877 wxPyEndAllowThreads(__tstate);
22878 if (PyErr_Occurred()) SWIG_fail;
22879 }
22880 resultobj = result;
22881 return resultobj;
22882 fail:
22883 return NULL;
22884 }
22885
22886
22887 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22888 PyObject *resultobj = 0;
22889 wxDC *arg1 = (wxDC *) 0 ;
22890 PyObject *arg2 = (PyObject *) 0 ;
22891 PyObject *arg3 = (PyObject *) 0 ;
22892 PyObject *arg4 = (PyObject *) 0 ;
22893 PyObject *result = 0 ;
22894 void *argp1 = 0 ;
22895 int res1 = 0 ;
22896 PyObject * obj0 = 0 ;
22897 PyObject * obj1 = 0 ;
22898 PyObject * obj2 = 0 ;
22899 PyObject * obj3 = 0 ;
22900 char * kwnames[] = {
22901 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22902 };
22903
22904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22906 if (!SWIG_IsOK(res1)) {
22907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22908 }
22909 arg1 = reinterpret_cast< wxDC * >(argp1);
22910 arg2 = obj1;
22911 arg3 = obj2;
22912 arg4 = obj3;
22913 {
22914 PyThreadState* __tstate = wxPyBeginAllowThreads();
22915 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22916 wxPyEndAllowThreads(__tstate);
22917 if (PyErr_Occurred()) SWIG_fail;
22918 }
22919 resultobj = result;
22920 return resultobj;
22921 fail:
22922 return NULL;
22923 }
22924
22925
22926 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22927 PyObject *resultobj = 0;
22928 wxDC *arg1 = (wxDC *) 0 ;
22929 PyObject *arg2 = (PyObject *) 0 ;
22930 PyObject *arg3 = (PyObject *) 0 ;
22931 PyObject *arg4 = (PyObject *) 0 ;
22932 PyObject *result = 0 ;
22933 void *argp1 = 0 ;
22934 int res1 = 0 ;
22935 PyObject * obj0 = 0 ;
22936 PyObject * obj1 = 0 ;
22937 PyObject * obj2 = 0 ;
22938 PyObject * obj3 = 0 ;
22939 char * kwnames[] = {
22940 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22941 };
22942
22943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22945 if (!SWIG_IsOK(res1)) {
22946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22947 }
22948 arg1 = reinterpret_cast< wxDC * >(argp1);
22949 arg2 = obj1;
22950 arg3 = obj2;
22951 arg4 = obj3;
22952 {
22953 PyThreadState* __tstate = wxPyBeginAllowThreads();
22954 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22955 wxPyEndAllowThreads(__tstate);
22956 if (PyErr_Occurred()) SWIG_fail;
22957 }
22958 resultobj = result;
22959 return resultobj;
22960 fail:
22961 return NULL;
22962 }
22963
22964
22965 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22966 PyObject *resultobj = 0;
22967 wxDC *arg1 = (wxDC *) 0 ;
22968 PyObject *arg2 = (PyObject *) 0 ;
22969 PyObject *arg3 = (PyObject *) 0 ;
22970 PyObject *arg4 = (PyObject *) 0 ;
22971 PyObject *result = 0 ;
22972 void *argp1 = 0 ;
22973 int res1 = 0 ;
22974 PyObject * obj0 = 0 ;
22975 PyObject * obj1 = 0 ;
22976 PyObject * obj2 = 0 ;
22977 PyObject * obj3 = 0 ;
22978 char * kwnames[] = {
22979 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22980 };
22981
22982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22984 if (!SWIG_IsOK(res1)) {
22985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22986 }
22987 arg1 = reinterpret_cast< wxDC * >(argp1);
22988 arg2 = obj1;
22989 arg3 = obj2;
22990 arg4 = obj3;
22991 {
22992 PyThreadState* __tstate = wxPyBeginAllowThreads();
22993 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22994 wxPyEndAllowThreads(__tstate);
22995 if (PyErr_Occurred()) SWIG_fail;
22996 }
22997 resultobj = result;
22998 return resultobj;
22999 fail:
23000 return NULL;
23001 }
23002
23003
23004 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23005 PyObject *resultobj = 0;
23006 wxDC *arg1 = (wxDC *) 0 ;
23007 PyObject *arg2 = (PyObject *) 0 ;
23008 PyObject *arg3 = (PyObject *) 0 ;
23009 PyObject *arg4 = (PyObject *) 0 ;
23010 PyObject *result = 0 ;
23011 void *argp1 = 0 ;
23012 int res1 = 0 ;
23013 PyObject * obj0 = 0 ;
23014 PyObject * obj1 = 0 ;
23015 PyObject * obj2 = 0 ;
23016 PyObject * obj3 = 0 ;
23017 char * kwnames[] = {
23018 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23019 };
23020
23021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23023 if (!SWIG_IsOK(res1)) {
23024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23025 }
23026 arg1 = reinterpret_cast< wxDC * >(argp1);
23027 arg2 = obj1;
23028 arg3 = obj2;
23029 arg4 = obj3;
23030 {
23031 PyThreadState* __tstate = wxPyBeginAllowThreads();
23032 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23033 wxPyEndAllowThreads(__tstate);
23034 if (PyErr_Occurred()) SWIG_fail;
23035 }
23036 resultobj = result;
23037 return resultobj;
23038 fail:
23039 return NULL;
23040 }
23041
23042
23043 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23044 PyObject *resultobj = 0;
23045 wxDC *arg1 = (wxDC *) 0 ;
23046 PyObject *arg2 = (PyObject *) 0 ;
23047 PyObject *arg3 = (PyObject *) 0 ;
23048 PyObject *arg4 = (PyObject *) 0 ;
23049 PyObject *arg5 = (PyObject *) 0 ;
23050 PyObject *result = 0 ;
23051 void *argp1 = 0 ;
23052 int res1 = 0 ;
23053 PyObject * obj0 = 0 ;
23054 PyObject * obj1 = 0 ;
23055 PyObject * obj2 = 0 ;
23056 PyObject * obj3 = 0 ;
23057 PyObject * obj4 = 0 ;
23058 char * kwnames[] = {
23059 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23060 };
23061
23062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23064 if (!SWIG_IsOK(res1)) {
23065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23066 }
23067 arg1 = reinterpret_cast< wxDC * >(argp1);
23068 arg2 = obj1;
23069 arg3 = obj2;
23070 arg4 = obj3;
23071 arg5 = obj4;
23072 {
23073 PyThreadState* __tstate = wxPyBeginAllowThreads();
23074 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23075 wxPyEndAllowThreads(__tstate);
23076 if (PyErr_Occurred()) SWIG_fail;
23077 }
23078 resultobj = result;
23079 return resultobj;
23080 fail:
23081 return NULL;
23082 }
23083
23084
23085 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23086 PyObject *obj;
23087 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23088 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23089 return SWIG_Py_Void();
23090 }
23091
23092 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23093 PyObject *resultobj = 0;
23094 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23095 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23096 wxMemoryDC *result = 0 ;
23097 void *argp1 = 0 ;
23098 int res1 = 0 ;
23099 PyObject * obj0 = 0 ;
23100 char * kwnames[] = {
23101 (char *) "bitmap", NULL
23102 };
23103
23104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23105 if (obj0) {
23106 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23107 if (!SWIG_IsOK(res1)) {
23108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23109 }
23110 if (!argp1) {
23111 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23112 }
23113 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23114 }
23115 {
23116 if (!wxPyCheckForApp()) SWIG_fail;
23117 PyThreadState* __tstate = wxPyBeginAllowThreads();
23118 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23119 wxPyEndAllowThreads(__tstate);
23120 if (PyErr_Occurred()) SWIG_fail;
23121 }
23122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23123 return resultobj;
23124 fail:
23125 return NULL;
23126 }
23127
23128
23129 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23130 PyObject *resultobj = 0;
23131 wxDC *arg1 = (wxDC *) 0 ;
23132 wxMemoryDC *result = 0 ;
23133 void *argp1 = 0 ;
23134 int res1 = 0 ;
23135 PyObject * obj0 = 0 ;
23136 char * kwnames[] = {
23137 (char *) "oldDC", NULL
23138 };
23139
23140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23142 if (!SWIG_IsOK(res1)) {
23143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23144 }
23145 arg1 = reinterpret_cast< wxDC * >(argp1);
23146 {
23147 if (!wxPyCheckForApp()) SWIG_fail;
23148 PyThreadState* __tstate = wxPyBeginAllowThreads();
23149 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23150 wxPyEndAllowThreads(__tstate);
23151 if (PyErr_Occurred()) SWIG_fail;
23152 }
23153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23154 return resultobj;
23155 fail:
23156 return NULL;
23157 }
23158
23159
23160 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23161 PyObject *resultobj = 0;
23162 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23163 wxBitmap *arg2 = 0 ;
23164 void *argp1 = 0 ;
23165 int res1 = 0 ;
23166 void *argp2 = 0 ;
23167 int res2 = 0 ;
23168 PyObject * obj0 = 0 ;
23169 PyObject * obj1 = 0 ;
23170 char * kwnames[] = {
23171 (char *) "self",(char *) "bitmap", NULL
23172 };
23173
23174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23176 if (!SWIG_IsOK(res1)) {
23177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23178 }
23179 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23180 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23181 if (!SWIG_IsOK(res2)) {
23182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23183 }
23184 if (!argp2) {
23185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23186 }
23187 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23188 {
23189 PyThreadState* __tstate = wxPyBeginAllowThreads();
23190 (arg1)->SelectObject((wxBitmap const &)*arg2);
23191 wxPyEndAllowThreads(__tstate);
23192 if (PyErr_Occurred()) SWIG_fail;
23193 }
23194 resultobj = SWIG_Py_Void();
23195 return resultobj;
23196 fail:
23197 return NULL;
23198 }
23199
23200
23201 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23202 PyObject *obj;
23203 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23204 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23205 return SWIG_Py_Void();
23206 }
23207
23208 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23209 return SWIG_Python_InitShadowInstance(args);
23210 }
23211
23212 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23213 PyObject *resultobj = 0;
23214 wxScreenDC *result = 0 ;
23215
23216 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23217 {
23218 if (!wxPyCheckForApp()) SWIG_fail;
23219 PyThreadState* __tstate = wxPyBeginAllowThreads();
23220 result = (wxScreenDC *)new wxScreenDC();
23221 wxPyEndAllowThreads(__tstate);
23222 if (PyErr_Occurred()) SWIG_fail;
23223 }
23224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23225 return resultobj;
23226 fail:
23227 return NULL;
23228 }
23229
23230
23231 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23232 PyObject *resultobj = 0;
23233 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23234 wxWindow *arg2 = (wxWindow *) 0 ;
23235 bool result;
23236 void *argp1 = 0 ;
23237 int res1 = 0 ;
23238 void *argp2 = 0 ;
23239 int res2 = 0 ;
23240 PyObject * obj0 = 0 ;
23241 PyObject * obj1 = 0 ;
23242 char * kwnames[] = {
23243 (char *) "self",(char *) "window", NULL
23244 };
23245
23246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23248 if (!SWIG_IsOK(res1)) {
23249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23250 }
23251 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23252 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23253 if (!SWIG_IsOK(res2)) {
23254 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23255 }
23256 arg2 = reinterpret_cast< wxWindow * >(argp2);
23257 {
23258 PyThreadState* __tstate = wxPyBeginAllowThreads();
23259 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23260 wxPyEndAllowThreads(__tstate);
23261 if (PyErr_Occurred()) SWIG_fail;
23262 }
23263 {
23264 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23265 }
23266 return resultobj;
23267 fail:
23268 return NULL;
23269 }
23270
23271
23272 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23273 PyObject *resultobj = 0;
23274 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23275 wxRect *arg2 = (wxRect *) NULL ;
23276 bool result;
23277 void *argp1 = 0 ;
23278 int res1 = 0 ;
23279 void *argp2 = 0 ;
23280 int res2 = 0 ;
23281 PyObject * obj0 = 0 ;
23282 PyObject * obj1 = 0 ;
23283 char * kwnames[] = {
23284 (char *) "self",(char *) "rect", NULL
23285 };
23286
23287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23289 if (!SWIG_IsOK(res1)) {
23290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23291 }
23292 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23293 if (obj1) {
23294 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23295 if (!SWIG_IsOK(res2)) {
23296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23297 }
23298 arg2 = reinterpret_cast< wxRect * >(argp2);
23299 }
23300 {
23301 PyThreadState* __tstate = wxPyBeginAllowThreads();
23302 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23303 wxPyEndAllowThreads(__tstate);
23304 if (PyErr_Occurred()) SWIG_fail;
23305 }
23306 {
23307 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23308 }
23309 return resultobj;
23310 fail:
23311 return NULL;
23312 }
23313
23314
23315 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23316 PyObject *resultobj = 0;
23317 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23318 bool result;
23319 void *argp1 = 0 ;
23320 int res1 = 0 ;
23321 PyObject *swig_obj[1] ;
23322
23323 if (!args) SWIG_fail;
23324 swig_obj[0] = args;
23325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23326 if (!SWIG_IsOK(res1)) {
23327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23328 }
23329 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23330 {
23331 PyThreadState* __tstate = wxPyBeginAllowThreads();
23332 result = (bool)(arg1)->EndDrawingOnTop();
23333 wxPyEndAllowThreads(__tstate);
23334 if (PyErr_Occurred()) SWIG_fail;
23335 }
23336 {
23337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23338 }
23339 return resultobj;
23340 fail:
23341 return NULL;
23342 }
23343
23344
23345 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23346 PyObject *obj;
23347 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23348 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23349 return SWIG_Py_Void();
23350 }
23351
23352 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23353 return SWIG_Python_InitShadowInstance(args);
23354 }
23355
23356 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23357 PyObject *resultobj = 0;
23358 wxWindow *arg1 = (wxWindow *) 0 ;
23359 wxWindowDC *result = 0 ;
23360 void *argp1 = 0 ;
23361 int res1 = 0 ;
23362 PyObject * obj0 = 0 ;
23363 char * kwnames[] = {
23364 (char *) "win", NULL
23365 };
23366
23367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23369 if (!SWIG_IsOK(res1)) {
23370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23371 }
23372 arg1 = reinterpret_cast< wxWindow * >(argp1);
23373 {
23374 if (!wxPyCheckForApp()) SWIG_fail;
23375 PyThreadState* __tstate = wxPyBeginAllowThreads();
23376 result = (wxWindowDC *)new wxWindowDC(arg1);
23377 wxPyEndAllowThreads(__tstate);
23378 if (PyErr_Occurred()) SWIG_fail;
23379 }
23380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23381 return resultobj;
23382 fail:
23383 return NULL;
23384 }
23385
23386
23387 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23388 PyObject *obj;
23389 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23390 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23391 return SWIG_Py_Void();
23392 }
23393
23394 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23395 return SWIG_Python_InitShadowInstance(args);
23396 }
23397
23398 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23399 PyObject *resultobj = 0;
23400 wxWindow *arg1 = (wxWindow *) 0 ;
23401 wxClientDC *result = 0 ;
23402 void *argp1 = 0 ;
23403 int res1 = 0 ;
23404 PyObject * obj0 = 0 ;
23405 char * kwnames[] = {
23406 (char *) "win", NULL
23407 };
23408
23409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23411 if (!SWIG_IsOK(res1)) {
23412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23413 }
23414 arg1 = reinterpret_cast< wxWindow * >(argp1);
23415 {
23416 if (!wxPyCheckForApp()) SWIG_fail;
23417 PyThreadState* __tstate = wxPyBeginAllowThreads();
23418 result = (wxClientDC *)new wxClientDC(arg1);
23419 wxPyEndAllowThreads(__tstate);
23420 if (PyErr_Occurred()) SWIG_fail;
23421 }
23422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23423 return resultobj;
23424 fail:
23425 return NULL;
23426 }
23427
23428
23429 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23430 PyObject *obj;
23431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23432 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23433 return SWIG_Py_Void();
23434 }
23435
23436 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23437 return SWIG_Python_InitShadowInstance(args);
23438 }
23439
23440 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23441 PyObject *resultobj = 0;
23442 wxWindow *arg1 = (wxWindow *) 0 ;
23443 wxPaintDC *result = 0 ;
23444 void *argp1 = 0 ;
23445 int res1 = 0 ;
23446 PyObject * obj0 = 0 ;
23447 char * kwnames[] = {
23448 (char *) "win", NULL
23449 };
23450
23451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23453 if (!SWIG_IsOK(res1)) {
23454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23455 }
23456 arg1 = reinterpret_cast< wxWindow * >(argp1);
23457 {
23458 if (!wxPyCheckForApp()) SWIG_fail;
23459 PyThreadState* __tstate = wxPyBeginAllowThreads();
23460 result = (wxPaintDC *)new wxPaintDC(arg1);
23461 wxPyEndAllowThreads(__tstate);
23462 if (PyErr_Occurred()) SWIG_fail;
23463 }
23464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23465 return resultobj;
23466 fail:
23467 return NULL;
23468 }
23469
23470
23471 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23472 PyObject *obj;
23473 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23474 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23475 return SWIG_Py_Void();
23476 }
23477
23478 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23479 return SWIG_Python_InitShadowInstance(args);
23480 }
23481
23482 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23483 PyObject *resultobj = 0;
23484 wxDC *arg1 = (wxDC *) 0 ;
23485 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23486 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23487 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23488 wxBufferedDC *result = 0 ;
23489 void *argp1 = 0 ;
23490 int res1 = 0 ;
23491 void *argp2 = 0 ;
23492 int res2 = 0 ;
23493 int val3 ;
23494 int ecode3 = 0 ;
23495
23496 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23498 if (!SWIG_IsOK(res1)) {
23499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23500 }
23501 arg1 = reinterpret_cast< wxDC * >(argp1);
23502 if (swig_obj[1]) {
23503 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23504 if (!SWIG_IsOK(res2)) {
23505 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23506 }
23507 if (!argp2) {
23508 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23509 }
23510 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23511 }
23512 if (swig_obj[2]) {
23513 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23514 if (!SWIG_IsOK(ecode3)) {
23515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23516 }
23517 arg3 = static_cast< int >(val3);
23518 }
23519 {
23520 if (!wxPyCheckForApp()) SWIG_fail;
23521 PyThreadState* __tstate = wxPyBeginAllowThreads();
23522 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23523 wxPyEndAllowThreads(__tstate);
23524 if (PyErr_Occurred()) SWIG_fail;
23525 }
23526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23527 return resultobj;
23528 fail:
23529 return NULL;
23530 }
23531
23532
23533 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23534 PyObject *resultobj = 0;
23535 wxDC *arg1 = (wxDC *) 0 ;
23536 wxSize *arg2 = 0 ;
23537 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23538 wxBufferedDC *result = 0 ;
23539 void *argp1 = 0 ;
23540 int res1 = 0 ;
23541 wxSize temp2 ;
23542 int val3 ;
23543 int ecode3 = 0 ;
23544
23545 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23547 if (!SWIG_IsOK(res1)) {
23548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23549 }
23550 arg1 = reinterpret_cast< wxDC * >(argp1);
23551 {
23552 arg2 = &temp2;
23553 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23554 }
23555 if (swig_obj[2]) {
23556 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23557 if (!SWIG_IsOK(ecode3)) {
23558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23559 }
23560 arg3 = static_cast< int >(val3);
23561 }
23562 {
23563 if (!wxPyCheckForApp()) SWIG_fail;
23564 PyThreadState* __tstate = wxPyBeginAllowThreads();
23565 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23566 wxPyEndAllowThreads(__tstate);
23567 if (PyErr_Occurred()) SWIG_fail;
23568 }
23569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23570 return resultobj;
23571 fail:
23572 return NULL;
23573 }
23574
23575
23576 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23577 int argc;
23578 PyObject *argv[4];
23579
23580 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23581 --argc;
23582 if ((argc >= 1) && (argc <= 3)) {
23583 int _v = 0;
23584 if (argc > 1) {
23585 {
23586 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23587 _v = SWIG_CheckState(res);
23588 }
23589 if (!_v) goto check_1;
23590 }
23591 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23592 }
23593 check_1:
23594
23595 if ((argc >= 2) && (argc <= 3)) {
23596 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23597 }
23598
23599 fail:
23600 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23601 return NULL;
23602 }
23603
23604
23605 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23606 PyObject *resultobj = 0;
23607 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23608 void *argp1 = 0 ;
23609 int res1 = 0 ;
23610 PyObject *swig_obj[1] ;
23611
23612 if (!args) SWIG_fail;
23613 swig_obj[0] = args;
23614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23615 if (!SWIG_IsOK(res1)) {
23616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23617 }
23618 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23619 {
23620 PyThreadState* __tstate = wxPyBeginAllowThreads();
23621 delete arg1;
23622
23623 wxPyEndAllowThreads(__tstate);
23624 if (PyErr_Occurred()) SWIG_fail;
23625 }
23626 resultobj = SWIG_Py_Void();
23627 return resultobj;
23628 fail:
23629 return NULL;
23630 }
23631
23632
23633 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23634 PyObject *resultobj = 0;
23635 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23636 void *argp1 = 0 ;
23637 int res1 = 0 ;
23638 PyObject *swig_obj[1] ;
23639
23640 if (!args) SWIG_fail;
23641 swig_obj[0] = args;
23642 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23643 if (!SWIG_IsOK(res1)) {
23644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23645 }
23646 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23647 {
23648 PyThreadState* __tstate = wxPyBeginAllowThreads();
23649 (arg1)->UnMask();
23650 wxPyEndAllowThreads(__tstate);
23651 if (PyErr_Occurred()) SWIG_fail;
23652 }
23653 resultobj = SWIG_Py_Void();
23654 return resultobj;
23655 fail:
23656 return NULL;
23657 }
23658
23659
23660 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23661 PyObject *obj;
23662 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23663 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23664 return SWIG_Py_Void();
23665 }
23666
23667 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23668 return SWIG_Python_InitShadowInstance(args);
23669 }
23670
23671 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23672 PyObject *resultobj = 0;
23673 wxWindow *arg1 = (wxWindow *) 0 ;
23674 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23675 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23676 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23677 wxBufferedPaintDC *result = 0 ;
23678 void *argp1 = 0 ;
23679 int res1 = 0 ;
23680 void *argp2 = 0 ;
23681 int res2 = 0 ;
23682 int val3 ;
23683 int ecode3 = 0 ;
23684 PyObject * obj0 = 0 ;
23685 PyObject * obj1 = 0 ;
23686 PyObject * obj2 = 0 ;
23687 char * kwnames[] = {
23688 (char *) "window",(char *) "buffer",(char *) "style", NULL
23689 };
23690
23691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23693 if (!SWIG_IsOK(res1)) {
23694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23695 }
23696 arg1 = reinterpret_cast< wxWindow * >(argp1);
23697 if (obj1) {
23698 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23699 if (!SWIG_IsOK(res2)) {
23700 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23701 }
23702 if (!argp2) {
23703 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23704 }
23705 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23706 }
23707 if (obj2) {
23708 ecode3 = SWIG_AsVal_int(obj2, &val3);
23709 if (!SWIG_IsOK(ecode3)) {
23710 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23711 }
23712 arg3 = static_cast< int >(val3);
23713 }
23714 {
23715 if (!wxPyCheckForApp()) SWIG_fail;
23716 PyThreadState* __tstate = wxPyBeginAllowThreads();
23717 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23718 wxPyEndAllowThreads(__tstate);
23719 if (PyErr_Occurred()) SWIG_fail;
23720 }
23721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23722 return resultobj;
23723 fail:
23724 return NULL;
23725 }
23726
23727
23728 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23729 PyObject *obj;
23730 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23731 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23732 return SWIG_Py_Void();
23733 }
23734
23735 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23736 return SWIG_Python_InitShadowInstance(args);
23737 }
23738
23739 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23740 PyObject *resultobj = 0;
23741 wxWindow *arg1 = (wxWindow *) 0 ;
23742 wxAutoBufferedPaintDC *result = 0 ;
23743 void *argp1 = 0 ;
23744 int res1 = 0 ;
23745 PyObject * obj0 = 0 ;
23746 char * kwnames[] = {
23747 (char *) "win", NULL
23748 };
23749
23750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
23751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23752 if (!SWIG_IsOK(res1)) {
23753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23754 }
23755 arg1 = reinterpret_cast< wxWindow * >(argp1);
23756 {
23757 PyThreadState* __tstate = wxPyBeginAllowThreads();
23758 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
23759 wxPyEndAllowThreads(__tstate);
23760 if (PyErr_Occurred()) SWIG_fail;
23761 }
23762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23763 return resultobj;
23764 fail:
23765 return NULL;
23766 }
23767
23768
23769 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23770 PyObject *obj;
23771 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23772 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
23773 return SWIG_Py_Void();
23774 }
23775
23776 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23777 return SWIG_Python_InitShadowInstance(args);
23778 }
23779
23780 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23781 PyObject *resultobj = 0;
23782 wxWindow *arg1 = (wxWindow *) 0 ;
23783 wxDC *result = 0 ;
23784 void *argp1 = 0 ;
23785 int res1 = 0 ;
23786 PyObject * obj0 = 0 ;
23787 char * kwnames[] = {
23788 (char *) "window", NULL
23789 };
23790
23791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
23792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23793 if (!SWIG_IsOK(res1)) {
23794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
23795 }
23796 arg1 = reinterpret_cast< wxWindow * >(argp1);
23797 {
23798 PyThreadState* __tstate = wxPyBeginAllowThreads();
23799 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
23800 wxPyEndAllowThreads(__tstate);
23801 if (PyErr_Occurred()) SWIG_fail;
23802 }
23803 {
23804 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
23805 }
23806 return resultobj;
23807 fail:
23808 return NULL;
23809 }
23810
23811
23812 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23813 PyObject *resultobj = 0;
23814 wxDC *arg1 = 0 ;
23815 bool arg2 ;
23816 wxMirrorDC *result = 0 ;
23817 void *argp1 = 0 ;
23818 int res1 = 0 ;
23819 bool val2 ;
23820 int ecode2 = 0 ;
23821 PyObject * obj0 = 0 ;
23822 PyObject * obj1 = 0 ;
23823 char * kwnames[] = {
23824 (char *) "dc",(char *) "mirror", NULL
23825 };
23826
23827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23828 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23829 if (!SWIG_IsOK(res1)) {
23830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23831 }
23832 if (!argp1) {
23833 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23834 }
23835 arg1 = reinterpret_cast< wxDC * >(argp1);
23836 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23837 if (!SWIG_IsOK(ecode2)) {
23838 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23839 }
23840 arg2 = static_cast< bool >(val2);
23841 {
23842 if (!wxPyCheckForApp()) SWIG_fail;
23843 PyThreadState* __tstate = wxPyBeginAllowThreads();
23844 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23845 wxPyEndAllowThreads(__tstate);
23846 if (PyErr_Occurred()) SWIG_fail;
23847 }
23848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23849 return resultobj;
23850 fail:
23851 return NULL;
23852 }
23853
23854
23855 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23856 PyObject *obj;
23857 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23858 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23859 return SWIG_Py_Void();
23860 }
23861
23862 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23863 return SWIG_Python_InitShadowInstance(args);
23864 }
23865
23866 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23867 PyObject *resultobj = 0;
23868 wxPrintData *arg1 = 0 ;
23869 wxPostScriptDC *result = 0 ;
23870 void *argp1 = 0 ;
23871 int res1 = 0 ;
23872 PyObject * obj0 = 0 ;
23873 char * kwnames[] = {
23874 (char *) "printData", NULL
23875 };
23876
23877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23878 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23879 if (!SWIG_IsOK(res1)) {
23880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23881 }
23882 if (!argp1) {
23883 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23884 }
23885 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23886 {
23887 if (!wxPyCheckForApp()) SWIG_fail;
23888 PyThreadState* __tstate = wxPyBeginAllowThreads();
23889 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23890 wxPyEndAllowThreads(__tstate);
23891 if (PyErr_Occurred()) SWIG_fail;
23892 }
23893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23894 return resultobj;
23895 fail:
23896 return NULL;
23897 }
23898
23899
23900 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23901 PyObject *resultobj = 0;
23902 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23903 wxPrintData *result = 0 ;
23904 void *argp1 = 0 ;
23905 int res1 = 0 ;
23906 PyObject *swig_obj[1] ;
23907
23908 if (!args) SWIG_fail;
23909 swig_obj[0] = args;
23910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23911 if (!SWIG_IsOK(res1)) {
23912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23913 }
23914 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23915 {
23916 PyThreadState* __tstate = wxPyBeginAllowThreads();
23917 {
23918 wxPrintData &_result_ref = (arg1)->GetPrintData();
23919 result = (wxPrintData *) &_result_ref;
23920 }
23921 wxPyEndAllowThreads(__tstate);
23922 if (PyErr_Occurred()) SWIG_fail;
23923 }
23924 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23925 return resultobj;
23926 fail:
23927 return NULL;
23928 }
23929
23930
23931 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23932 PyObject *resultobj = 0;
23933 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23934 wxPrintData *arg2 = 0 ;
23935 void *argp1 = 0 ;
23936 int res1 = 0 ;
23937 void *argp2 = 0 ;
23938 int res2 = 0 ;
23939 PyObject * obj0 = 0 ;
23940 PyObject * obj1 = 0 ;
23941 char * kwnames[] = {
23942 (char *) "self",(char *) "data", NULL
23943 };
23944
23945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23947 if (!SWIG_IsOK(res1)) {
23948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23949 }
23950 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23951 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23952 if (!SWIG_IsOK(res2)) {
23953 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23954 }
23955 if (!argp2) {
23956 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23957 }
23958 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23959 {
23960 PyThreadState* __tstate = wxPyBeginAllowThreads();
23961 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23962 wxPyEndAllowThreads(__tstate);
23963 if (PyErr_Occurred()) SWIG_fail;
23964 }
23965 resultobj = SWIG_Py_Void();
23966 return resultobj;
23967 fail:
23968 return NULL;
23969 }
23970
23971
23972 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23973 PyObject *resultobj = 0;
23974 int arg1 ;
23975 int val1 ;
23976 int ecode1 = 0 ;
23977 PyObject * obj0 = 0 ;
23978 char * kwnames[] = {
23979 (char *) "ppi", NULL
23980 };
23981
23982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23983 ecode1 = SWIG_AsVal_int(obj0, &val1);
23984 if (!SWIG_IsOK(ecode1)) {
23985 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23986 }
23987 arg1 = static_cast< int >(val1);
23988 {
23989 PyThreadState* __tstate = wxPyBeginAllowThreads();
23990 wxPostScriptDC::SetResolution(arg1);
23991 wxPyEndAllowThreads(__tstate);
23992 if (PyErr_Occurred()) SWIG_fail;
23993 }
23994 resultobj = SWIG_Py_Void();
23995 return resultobj;
23996 fail:
23997 return NULL;
23998 }
23999
24000
24001 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24002 PyObject *resultobj = 0;
24003 int result;
24004
24005 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24006 {
24007 PyThreadState* __tstate = wxPyBeginAllowThreads();
24008 result = (int)wxPostScriptDC::GetResolution();
24009 wxPyEndAllowThreads(__tstate);
24010 if (PyErr_Occurred()) SWIG_fail;
24011 }
24012 resultobj = SWIG_From_int(static_cast< int >(result));
24013 return resultobj;
24014 fail:
24015 return NULL;
24016 }
24017
24018
24019 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24020 PyObject *obj;
24021 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24022 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24023 return SWIG_Py_Void();
24024 }
24025
24026 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24027 return SWIG_Python_InitShadowInstance(args);
24028 }
24029
24030 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24031 PyObject *resultobj = 0;
24032 wxString const &arg1_defvalue = wxPyEmptyString ;
24033 wxString *arg1 = (wxString *) &arg1_defvalue ;
24034 wxMetaFile *result = 0 ;
24035 bool temp1 = false ;
24036 PyObject * obj0 = 0 ;
24037 char * kwnames[] = {
24038 (char *) "filename", NULL
24039 };
24040
24041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24042 if (obj0) {
24043 {
24044 arg1 = wxString_in_helper(obj0);
24045 if (arg1 == NULL) SWIG_fail;
24046 temp1 = true;
24047 }
24048 }
24049 {
24050 if (!wxPyCheckForApp()) SWIG_fail;
24051 PyThreadState* __tstate = wxPyBeginAllowThreads();
24052 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24053 wxPyEndAllowThreads(__tstate);
24054 if (PyErr_Occurred()) SWIG_fail;
24055 }
24056 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24057 {
24058 if (temp1)
24059 delete arg1;
24060 }
24061 return resultobj;
24062 fail:
24063 {
24064 if (temp1)
24065 delete arg1;
24066 }
24067 return NULL;
24068 }
24069
24070
24071 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24072 PyObject *resultobj = 0;
24073 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24074 void *argp1 = 0 ;
24075 int res1 = 0 ;
24076 PyObject *swig_obj[1] ;
24077
24078 if (!args) SWIG_fail;
24079 swig_obj[0] = args;
24080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24081 if (!SWIG_IsOK(res1)) {
24082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24083 }
24084 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24085 {
24086 PyThreadState* __tstate = wxPyBeginAllowThreads();
24087 delete arg1;
24088
24089 wxPyEndAllowThreads(__tstate);
24090 if (PyErr_Occurred()) SWIG_fail;
24091 }
24092 resultobj = SWIG_Py_Void();
24093 return resultobj;
24094 fail:
24095 return NULL;
24096 }
24097
24098
24099 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24100 PyObject *resultobj = 0;
24101 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24102 bool result;
24103 void *argp1 = 0 ;
24104 int res1 = 0 ;
24105 PyObject *swig_obj[1] ;
24106
24107 if (!args) SWIG_fail;
24108 swig_obj[0] = args;
24109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24110 if (!SWIG_IsOK(res1)) {
24111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24112 }
24113 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24114 {
24115 PyThreadState* __tstate = wxPyBeginAllowThreads();
24116 result = (bool)(arg1)->IsOk();
24117 wxPyEndAllowThreads(__tstate);
24118 if (PyErr_Occurred()) SWIG_fail;
24119 }
24120 {
24121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24122 }
24123 return resultobj;
24124 fail:
24125 return NULL;
24126 }
24127
24128
24129 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24130 PyObject *resultobj = 0;
24131 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24132 int arg2 = (int) 0 ;
24133 int arg3 = (int) 0 ;
24134 bool result;
24135 void *argp1 = 0 ;
24136 int res1 = 0 ;
24137 int val2 ;
24138 int ecode2 = 0 ;
24139 int val3 ;
24140 int ecode3 = 0 ;
24141 PyObject * obj0 = 0 ;
24142 PyObject * obj1 = 0 ;
24143 PyObject * obj2 = 0 ;
24144 char * kwnames[] = {
24145 (char *) "self",(char *) "width",(char *) "height", NULL
24146 };
24147
24148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24150 if (!SWIG_IsOK(res1)) {
24151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24152 }
24153 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24154 if (obj1) {
24155 ecode2 = SWIG_AsVal_int(obj1, &val2);
24156 if (!SWIG_IsOK(ecode2)) {
24157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24158 }
24159 arg2 = static_cast< int >(val2);
24160 }
24161 if (obj2) {
24162 ecode3 = SWIG_AsVal_int(obj2, &val3);
24163 if (!SWIG_IsOK(ecode3)) {
24164 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24165 }
24166 arg3 = static_cast< int >(val3);
24167 }
24168 {
24169 PyThreadState* __tstate = wxPyBeginAllowThreads();
24170 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24171 wxPyEndAllowThreads(__tstate);
24172 if (PyErr_Occurred()) SWIG_fail;
24173 }
24174 {
24175 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24176 }
24177 return resultobj;
24178 fail:
24179 return NULL;
24180 }
24181
24182
24183 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24184 PyObject *resultobj = 0;
24185 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24186 wxSize result;
24187 void *argp1 = 0 ;
24188 int res1 = 0 ;
24189 PyObject *swig_obj[1] ;
24190
24191 if (!args) SWIG_fail;
24192 swig_obj[0] = args;
24193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24194 if (!SWIG_IsOK(res1)) {
24195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24196 }
24197 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24198 {
24199 PyThreadState* __tstate = wxPyBeginAllowThreads();
24200 result = (arg1)->GetSize();
24201 wxPyEndAllowThreads(__tstate);
24202 if (PyErr_Occurred()) SWIG_fail;
24203 }
24204 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24205 return resultobj;
24206 fail:
24207 return NULL;
24208 }
24209
24210
24211 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24212 PyObject *resultobj = 0;
24213 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24214 int result;
24215 void *argp1 = 0 ;
24216 int res1 = 0 ;
24217 PyObject *swig_obj[1] ;
24218
24219 if (!args) SWIG_fail;
24220 swig_obj[0] = args;
24221 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24222 if (!SWIG_IsOK(res1)) {
24223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24224 }
24225 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24226 {
24227 PyThreadState* __tstate = wxPyBeginAllowThreads();
24228 result = (int)(arg1)->GetWidth();
24229 wxPyEndAllowThreads(__tstate);
24230 if (PyErr_Occurred()) SWIG_fail;
24231 }
24232 resultobj = SWIG_From_int(static_cast< int >(result));
24233 return resultobj;
24234 fail:
24235 return NULL;
24236 }
24237
24238
24239 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24240 PyObject *resultobj = 0;
24241 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24242 int result;
24243 void *argp1 = 0 ;
24244 int res1 = 0 ;
24245 PyObject *swig_obj[1] ;
24246
24247 if (!args) SWIG_fail;
24248 swig_obj[0] = args;
24249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24250 if (!SWIG_IsOK(res1)) {
24251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24252 }
24253 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24254 {
24255 PyThreadState* __tstate = wxPyBeginAllowThreads();
24256 result = (int)(arg1)->GetHeight();
24257 wxPyEndAllowThreads(__tstate);
24258 if (PyErr_Occurred()) SWIG_fail;
24259 }
24260 resultobj = SWIG_From_int(static_cast< int >(result));
24261 return resultobj;
24262 fail:
24263 return NULL;
24264 }
24265
24266
24267 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24268 PyObject *obj;
24269 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24270 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
24271 return SWIG_Py_Void();
24272 }
24273
24274 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24275 return SWIG_Python_InitShadowInstance(args);
24276 }
24277
24278 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24279 PyObject *resultobj = 0;
24280 wxString const &arg1_defvalue = wxPyEmptyString ;
24281 wxString *arg1 = (wxString *) &arg1_defvalue ;
24282 int arg2 = (int) 0 ;
24283 int arg3 = (int) 0 ;
24284 wxString const &arg4_defvalue = wxPyEmptyString ;
24285 wxString *arg4 = (wxString *) &arg4_defvalue ;
24286 wxMetaFileDC *result = 0 ;
24287 bool temp1 = false ;
24288 int val2 ;
24289 int ecode2 = 0 ;
24290 int val3 ;
24291 int ecode3 = 0 ;
24292 bool temp4 = false ;
24293 PyObject * obj0 = 0 ;
24294 PyObject * obj1 = 0 ;
24295 PyObject * obj2 = 0 ;
24296 PyObject * obj3 = 0 ;
24297 char * kwnames[] = {
24298 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
24299 };
24300
24301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24302 if (obj0) {
24303 {
24304 arg1 = wxString_in_helper(obj0);
24305 if (arg1 == NULL) SWIG_fail;
24306 temp1 = true;
24307 }
24308 }
24309 if (obj1) {
24310 ecode2 = SWIG_AsVal_int(obj1, &val2);
24311 if (!SWIG_IsOK(ecode2)) {
24312 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
24313 }
24314 arg2 = static_cast< int >(val2);
24315 }
24316 if (obj2) {
24317 ecode3 = SWIG_AsVal_int(obj2, &val3);
24318 if (!SWIG_IsOK(ecode3)) {
24319 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
24320 }
24321 arg3 = static_cast< int >(val3);
24322 }
24323 if (obj3) {
24324 {
24325 arg4 = wxString_in_helper(obj3);
24326 if (arg4 == NULL) SWIG_fail;
24327 temp4 = true;
24328 }
24329 }
24330 {
24331 if (!wxPyCheckForApp()) SWIG_fail;
24332 PyThreadState* __tstate = wxPyBeginAllowThreads();
24333 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
24334 wxPyEndAllowThreads(__tstate);
24335 if (PyErr_Occurred()) SWIG_fail;
24336 }
24337 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
24338 {
24339 if (temp1)
24340 delete arg1;
24341 }
24342 {
24343 if (temp4)
24344 delete arg4;
24345 }
24346 return resultobj;
24347 fail:
24348 {
24349 if (temp1)
24350 delete arg1;
24351 }
24352 {
24353 if (temp4)
24354 delete arg4;
24355 }
24356 return NULL;
24357 }
24358
24359
24360 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24361 PyObject *resultobj = 0;
24362 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
24363 wxMetaFile *result = 0 ;
24364 void *argp1 = 0 ;
24365 int res1 = 0 ;
24366 PyObject *swig_obj[1] ;
24367
24368 if (!args) SWIG_fail;
24369 swig_obj[0] = args;
24370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
24371 if (!SWIG_IsOK(res1)) {
24372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
24373 }
24374 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
24375 {
24376 PyThreadState* __tstate = wxPyBeginAllowThreads();
24377 result = (wxMetaFile *)(arg1)->Close();
24378 wxPyEndAllowThreads(__tstate);
24379 if (PyErr_Occurred()) SWIG_fail;
24380 }
24381 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
24382 return resultobj;
24383 fail:
24384 return NULL;
24385 }
24386
24387
24388 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24389 PyObject *obj;
24390 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24391 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
24392 return SWIG_Py_Void();
24393 }
24394
24395 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24396 return SWIG_Python_InitShadowInstance(args);
24397 }
24398
24399 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24400 PyObject *resultobj = 0;
24401 wxPrintData *arg1 = 0 ;
24402 wxPrinterDC *result = 0 ;
24403 void *argp1 = 0 ;
24404 int res1 = 0 ;
24405 PyObject * obj0 = 0 ;
24406 char * kwnames[] = {
24407 (char *) "printData", NULL
24408 };
24409
24410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
24411 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24412 if (!SWIG_IsOK(res1)) {
24413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24414 }
24415 if (!argp1) {
24416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24417 }
24418 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24419 {
24420 if (!wxPyCheckForApp()) SWIG_fail;
24421 PyThreadState* __tstate = wxPyBeginAllowThreads();
24422 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
24423 wxPyEndAllowThreads(__tstate);
24424 if (PyErr_Occurred()) SWIG_fail;
24425 }
24426 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
24427 return resultobj;
24428 fail:
24429 return NULL;
24430 }
24431
24432
24433 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24434 PyObject *obj;
24435 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24436 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
24437 return SWIG_Py_Void();
24438 }
24439
24440 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24441 return SWIG_Python_InitShadowInstance(args);
24442 }
24443
24444 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24445 PyObject *resultobj = 0;
24446 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24447 void *argp1 = 0 ;
24448 int res1 = 0 ;
24449 PyObject *swig_obj[1] ;
24450
24451 if (!args) SWIG_fail;
24452 swig_obj[0] = args;
24453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
24454 if (!SWIG_IsOK(res1)) {
24455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24456 }
24457 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24458 {
24459 delete arg1;
24460
24461 if (PyErr_Occurred()) SWIG_fail;
24462 }
24463 resultobj = SWIG_Py_Void();
24464 return resultobj;
24465 fail:
24466 return NULL;
24467 }
24468
24469
24470 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24471 PyObject *resultobj = 0;
24472 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24473 wxDouble arg2 ;
24474 wxDouble arg3 ;
24475 void *argp1 = 0 ;
24476 int res1 = 0 ;
24477 double val2 ;
24478 int ecode2 = 0 ;
24479 double val3 ;
24480 int ecode3 = 0 ;
24481 PyObject * obj0 = 0 ;
24482 PyObject * obj1 = 0 ;
24483 PyObject * obj2 = 0 ;
24484 char * kwnames[] = {
24485 (char *) "self",(char *) "x",(char *) "y", NULL
24486 };
24487
24488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24490 if (!SWIG_IsOK(res1)) {
24491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24492 }
24493 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24494 ecode2 = SWIG_AsVal_double(obj1, &val2);
24495 if (!SWIG_IsOK(ecode2)) {
24496 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24497 }
24498 arg2 = static_cast< wxDouble >(val2);
24499 ecode3 = SWIG_AsVal_double(obj2, &val3);
24500 if (!SWIG_IsOK(ecode3)) {
24501 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24502 }
24503 arg3 = static_cast< wxDouble >(val3);
24504 {
24505 (arg1)->MoveToPoint(arg2,arg3);
24506 if (PyErr_Occurred()) SWIG_fail;
24507 }
24508 resultobj = SWIG_Py_Void();
24509 return resultobj;
24510 fail:
24511 return NULL;
24512 }
24513
24514
24515 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24516 PyObject *resultobj = 0;
24517 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24518 wxDouble arg2 ;
24519 wxDouble arg3 ;
24520 void *argp1 = 0 ;
24521 int res1 = 0 ;
24522 double val2 ;
24523 int ecode2 = 0 ;
24524 double val3 ;
24525 int ecode3 = 0 ;
24526 PyObject * obj0 = 0 ;
24527 PyObject * obj1 = 0 ;
24528 PyObject * obj2 = 0 ;
24529 char * kwnames[] = {
24530 (char *) "self",(char *) "x",(char *) "y", NULL
24531 };
24532
24533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24535 if (!SWIG_IsOK(res1)) {
24536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24537 }
24538 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24539 ecode2 = SWIG_AsVal_double(obj1, &val2);
24540 if (!SWIG_IsOK(ecode2)) {
24541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24542 }
24543 arg2 = static_cast< wxDouble >(val2);
24544 ecode3 = SWIG_AsVal_double(obj2, &val3);
24545 if (!SWIG_IsOK(ecode3)) {
24546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24547 }
24548 arg3 = static_cast< wxDouble >(val3);
24549 {
24550 (arg1)->AddLineToPoint(arg2,arg3);
24551 if (PyErr_Occurred()) SWIG_fail;
24552 }
24553 resultobj = SWIG_Py_Void();
24554 return resultobj;
24555 fail:
24556 return NULL;
24557 }
24558
24559
24560 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24561 PyObject *resultobj = 0;
24562 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24563 wxDouble arg2 ;
24564 wxDouble arg3 ;
24565 wxDouble arg4 ;
24566 wxDouble arg5 ;
24567 wxDouble arg6 ;
24568 wxDouble arg7 ;
24569 void *argp1 = 0 ;
24570 int res1 = 0 ;
24571 double val2 ;
24572 int ecode2 = 0 ;
24573 double val3 ;
24574 int ecode3 = 0 ;
24575 double val4 ;
24576 int ecode4 = 0 ;
24577 double val5 ;
24578 int ecode5 = 0 ;
24579 double val6 ;
24580 int ecode6 = 0 ;
24581 double val7 ;
24582 int ecode7 = 0 ;
24583 PyObject * obj0 = 0 ;
24584 PyObject * obj1 = 0 ;
24585 PyObject * obj2 = 0 ;
24586 PyObject * obj3 = 0 ;
24587 PyObject * obj4 = 0 ;
24588 PyObject * obj5 = 0 ;
24589 PyObject * obj6 = 0 ;
24590 char * kwnames[] = {
24591 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
24592 };
24593
24594 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24595 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24596 if (!SWIG_IsOK(res1)) {
24597 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24598 }
24599 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24600 ecode2 = SWIG_AsVal_double(obj1, &val2);
24601 if (!SWIG_IsOK(ecode2)) {
24602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24603 }
24604 arg2 = static_cast< wxDouble >(val2);
24605 ecode3 = SWIG_AsVal_double(obj2, &val3);
24606 if (!SWIG_IsOK(ecode3)) {
24607 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24608 }
24609 arg3 = static_cast< wxDouble >(val3);
24610 ecode4 = SWIG_AsVal_double(obj3, &val4);
24611 if (!SWIG_IsOK(ecode4)) {
24612 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24613 }
24614 arg4 = static_cast< wxDouble >(val4);
24615 ecode5 = SWIG_AsVal_double(obj4, &val5);
24616 if (!SWIG_IsOK(ecode5)) {
24617 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24618 }
24619 arg5 = static_cast< wxDouble >(val5);
24620 ecode6 = SWIG_AsVal_double(obj5, &val6);
24621 if (!SWIG_IsOK(ecode6)) {
24622 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
24623 }
24624 arg6 = static_cast< wxDouble >(val6);
24625 ecode7 = SWIG_AsVal_double(obj6, &val7);
24626 if (!SWIG_IsOK(ecode7)) {
24627 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
24628 }
24629 arg7 = static_cast< wxDouble >(val7);
24630 {
24631 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
24632 if (PyErr_Occurred()) SWIG_fail;
24633 }
24634 resultobj = SWIG_Py_Void();
24635 return resultobj;
24636 fail:
24637 return NULL;
24638 }
24639
24640
24641 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24642 PyObject *resultobj = 0;
24643 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24644 void *argp1 = 0 ;
24645 int res1 = 0 ;
24646 PyObject *swig_obj[1] ;
24647
24648 if (!args) SWIG_fail;
24649 swig_obj[0] = args;
24650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24651 if (!SWIG_IsOK(res1)) {
24652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24653 }
24654 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24655 {
24656 (arg1)->CloseSubpath();
24657 if (PyErr_Occurred()) SWIG_fail;
24658 }
24659 resultobj = SWIG_Py_Void();
24660 return resultobj;
24661 fail:
24662 return NULL;
24663 }
24664
24665
24666 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24667 PyObject *resultobj = 0;
24668 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24669 wxPoint2D result;
24670 void *argp1 = 0 ;
24671 int res1 = 0 ;
24672 PyObject *swig_obj[1] ;
24673
24674 if (!args) SWIG_fail;
24675 swig_obj[0] = args;
24676 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24677 if (!SWIG_IsOK(res1)) {
24678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24679 }
24680 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24681 {
24682 result = (arg1)->GetCurrentPoint();
24683 if (PyErr_Occurred()) SWIG_fail;
24684 }
24685 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
24686 return resultobj;
24687 fail:
24688 return NULL;
24689 }
24690
24691
24692 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24693 PyObject *resultobj = 0;
24694 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24695 wxDouble arg2 ;
24696 wxDouble arg3 ;
24697 wxDouble arg4 ;
24698 wxDouble arg5 ;
24699 wxDouble arg6 ;
24700 bool arg7 ;
24701 void *argp1 = 0 ;
24702 int res1 = 0 ;
24703 double val2 ;
24704 int ecode2 = 0 ;
24705 double val3 ;
24706 int ecode3 = 0 ;
24707 double val4 ;
24708 int ecode4 = 0 ;
24709 double val5 ;
24710 int ecode5 = 0 ;
24711 double val6 ;
24712 int ecode6 = 0 ;
24713 bool val7 ;
24714 int ecode7 = 0 ;
24715 PyObject * obj0 = 0 ;
24716 PyObject * obj1 = 0 ;
24717 PyObject * obj2 = 0 ;
24718 PyObject * obj3 = 0 ;
24719 PyObject * obj4 = 0 ;
24720 PyObject * obj5 = 0 ;
24721 PyObject * obj6 = 0 ;
24722 char * kwnames[] = {
24723 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
24724 };
24725
24726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24728 if (!SWIG_IsOK(res1)) {
24729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24730 }
24731 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24732 ecode2 = SWIG_AsVal_double(obj1, &val2);
24733 if (!SWIG_IsOK(ecode2)) {
24734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
24735 }
24736 arg2 = static_cast< wxDouble >(val2);
24737 ecode3 = SWIG_AsVal_double(obj2, &val3);
24738 if (!SWIG_IsOK(ecode3)) {
24739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
24740 }
24741 arg3 = static_cast< wxDouble >(val3);
24742 ecode4 = SWIG_AsVal_double(obj3, &val4);
24743 if (!SWIG_IsOK(ecode4)) {
24744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
24745 }
24746 arg4 = static_cast< wxDouble >(val4);
24747 ecode5 = SWIG_AsVal_double(obj4, &val5);
24748 if (!SWIG_IsOK(ecode5)) {
24749 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
24750 }
24751 arg5 = static_cast< wxDouble >(val5);
24752 ecode6 = SWIG_AsVal_double(obj5, &val6);
24753 if (!SWIG_IsOK(ecode6)) {
24754 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
24755 }
24756 arg6 = static_cast< wxDouble >(val6);
24757 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24758 if (!SWIG_IsOK(ecode7)) {
24759 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
24760 }
24761 arg7 = static_cast< bool >(val7);
24762 {
24763 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
24764 if (PyErr_Occurred()) SWIG_fail;
24765 }
24766 resultobj = SWIG_Py_Void();
24767 return resultobj;
24768 fail:
24769 return NULL;
24770 }
24771
24772
24773 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24774 PyObject *resultobj = 0;
24775 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24776 wxDouble arg2 ;
24777 wxDouble arg3 ;
24778 wxDouble arg4 ;
24779 wxDouble arg5 ;
24780 void *argp1 = 0 ;
24781 int res1 = 0 ;
24782 double val2 ;
24783 int ecode2 = 0 ;
24784 double val3 ;
24785 int ecode3 = 0 ;
24786 double val4 ;
24787 int ecode4 = 0 ;
24788 double val5 ;
24789 int ecode5 = 0 ;
24790 PyObject * obj0 = 0 ;
24791 PyObject * obj1 = 0 ;
24792 PyObject * obj2 = 0 ;
24793 PyObject * obj3 = 0 ;
24794 PyObject * obj4 = 0 ;
24795 char * kwnames[] = {
24796 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
24797 };
24798
24799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24801 if (!SWIG_IsOK(res1)) {
24802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24803 }
24804 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24805 ecode2 = SWIG_AsVal_double(obj1, &val2);
24806 if (!SWIG_IsOK(ecode2)) {
24807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24808 }
24809 arg2 = static_cast< wxDouble >(val2);
24810 ecode3 = SWIG_AsVal_double(obj2, &val3);
24811 if (!SWIG_IsOK(ecode3)) {
24812 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24813 }
24814 arg3 = static_cast< wxDouble >(val3);
24815 ecode4 = SWIG_AsVal_double(obj3, &val4);
24816 if (!SWIG_IsOK(ecode4)) {
24817 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
24818 }
24819 arg4 = static_cast< wxDouble >(val4);
24820 ecode5 = SWIG_AsVal_double(obj4, &val5);
24821 if (!SWIG_IsOK(ecode5)) {
24822 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
24823 }
24824 arg5 = static_cast< wxDouble >(val5);
24825 {
24826 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
24827 if (PyErr_Occurred()) SWIG_fail;
24828 }
24829 resultobj = SWIG_Py_Void();
24830 return resultobj;
24831 fail:
24832 return NULL;
24833 }
24834
24835
24836 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24837 PyObject *resultobj = 0;
24838 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24839 wxDouble arg2 ;
24840 wxDouble arg3 ;
24841 wxDouble arg4 ;
24842 wxDouble arg5 ;
24843 void *argp1 = 0 ;
24844 int res1 = 0 ;
24845 double val2 ;
24846 int ecode2 = 0 ;
24847 double val3 ;
24848 int ecode3 = 0 ;
24849 double val4 ;
24850 int ecode4 = 0 ;
24851 double val5 ;
24852 int ecode5 = 0 ;
24853 PyObject * obj0 = 0 ;
24854 PyObject * obj1 = 0 ;
24855 PyObject * obj2 = 0 ;
24856 PyObject * obj3 = 0 ;
24857 PyObject * obj4 = 0 ;
24858 char * kwnames[] = {
24859 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
24860 };
24861
24862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24864 if (!SWIG_IsOK(res1)) {
24865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24866 }
24867 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24868 ecode2 = SWIG_AsVal_double(obj1, &val2);
24869 if (!SWIG_IsOK(ecode2)) {
24870 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
24871 }
24872 arg2 = static_cast< wxDouble >(val2);
24873 ecode3 = SWIG_AsVal_double(obj2, &val3);
24874 if (!SWIG_IsOK(ecode3)) {
24875 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
24876 }
24877 arg3 = static_cast< wxDouble >(val3);
24878 ecode4 = SWIG_AsVal_double(obj3, &val4);
24879 if (!SWIG_IsOK(ecode4)) {
24880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
24881 }
24882 arg4 = static_cast< wxDouble >(val4);
24883 ecode5 = SWIG_AsVal_double(obj4, &val5);
24884 if (!SWIG_IsOK(ecode5)) {
24885 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
24886 }
24887 arg5 = static_cast< wxDouble >(val5);
24888 {
24889 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
24890 if (PyErr_Occurred()) SWIG_fail;
24891 }
24892 resultobj = SWIG_Py_Void();
24893 return resultobj;
24894 fail:
24895 return NULL;
24896 }
24897
24898
24899 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24900 PyObject *resultobj = 0;
24901 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24902 wxDouble arg2 ;
24903 wxDouble arg3 ;
24904 wxDouble arg4 ;
24905 void *argp1 = 0 ;
24906 int res1 = 0 ;
24907 double val2 ;
24908 int ecode2 = 0 ;
24909 double val3 ;
24910 int ecode3 = 0 ;
24911 double val4 ;
24912 int ecode4 = 0 ;
24913 PyObject * obj0 = 0 ;
24914 PyObject * obj1 = 0 ;
24915 PyObject * obj2 = 0 ;
24916 PyObject * obj3 = 0 ;
24917 char * kwnames[] = {
24918 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
24919 };
24920
24921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24923 if (!SWIG_IsOK(res1)) {
24924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24925 }
24926 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24927 ecode2 = SWIG_AsVal_double(obj1, &val2);
24928 if (!SWIG_IsOK(ecode2)) {
24929 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
24930 }
24931 arg2 = static_cast< wxDouble >(val2);
24932 ecode3 = SWIG_AsVal_double(obj2, &val3);
24933 if (!SWIG_IsOK(ecode3)) {
24934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
24935 }
24936 arg3 = static_cast< wxDouble >(val3);
24937 ecode4 = SWIG_AsVal_double(obj3, &val4);
24938 if (!SWIG_IsOK(ecode4)) {
24939 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
24940 }
24941 arg4 = static_cast< wxDouble >(val4);
24942 {
24943 (arg1)->AddCircle(arg2,arg3,arg4);
24944 if (PyErr_Occurred()) SWIG_fail;
24945 }
24946 resultobj = SWIG_Py_Void();
24947 return resultobj;
24948 fail:
24949 return NULL;
24950 }
24951
24952
24953 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24954 PyObject *resultobj = 0;
24955 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
24956 wxDouble arg2 ;
24957 wxDouble arg3 ;
24958 wxDouble arg4 ;
24959 wxDouble arg5 ;
24960 wxDouble arg6 ;
24961 void *argp1 = 0 ;
24962 int res1 = 0 ;
24963 double val2 ;
24964 int ecode2 = 0 ;
24965 double val3 ;
24966 int ecode3 = 0 ;
24967 double val4 ;
24968 int ecode4 = 0 ;
24969 double val5 ;
24970 int ecode5 = 0 ;
24971 double val6 ;
24972 int ecode6 = 0 ;
24973 PyObject * obj0 = 0 ;
24974 PyObject * obj1 = 0 ;
24975 PyObject * obj2 = 0 ;
24976 PyObject * obj3 = 0 ;
24977 PyObject * obj4 = 0 ;
24978 PyObject * obj5 = 0 ;
24979 char * kwnames[] = {
24980 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
24981 };
24982
24983 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24984 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
24985 if (!SWIG_IsOK(res1)) {
24986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
24987 }
24988 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
24989 ecode2 = SWIG_AsVal_double(obj1, &val2);
24990 if (!SWIG_IsOK(ecode2)) {
24991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
24992 }
24993 arg2 = static_cast< wxDouble >(val2);
24994 ecode3 = SWIG_AsVal_double(obj2, &val3);
24995 if (!SWIG_IsOK(ecode3)) {
24996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
24997 }
24998 arg3 = static_cast< wxDouble >(val3);
24999 ecode4 = SWIG_AsVal_double(obj3, &val4);
25000 if (!SWIG_IsOK(ecode4)) {
25001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25002 }
25003 arg4 = static_cast< wxDouble >(val4);
25004 ecode5 = SWIG_AsVal_double(obj4, &val5);
25005 if (!SWIG_IsOK(ecode5)) {
25006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25007 }
25008 arg5 = static_cast< wxDouble >(val5);
25009 ecode6 = SWIG_AsVal_double(obj5, &val6);
25010 if (!SWIG_IsOK(ecode6)) {
25011 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25012 }
25013 arg6 = static_cast< wxDouble >(val6);
25014 {
25015 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
25016 if (PyErr_Occurred()) SWIG_fail;
25017 }
25018 resultobj = SWIG_Py_Void();
25019 return resultobj;
25020 fail:
25021 return NULL;
25022 }
25023
25024
25025 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25026 PyObject *obj;
25027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25028 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25029 return SWIG_Py_Void();
25030 }
25031
25032 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25033 PyObject *resultobj = 0;
25034 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25035 void *argp1 = 0 ;
25036 int res1 = 0 ;
25037 PyObject *swig_obj[1] ;
25038
25039 if (!args) SWIG_fail;
25040 swig_obj[0] = args;
25041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25042 if (!SWIG_IsOK(res1)) {
25043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25044 }
25045 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25046 {
25047 delete arg1;
25048
25049 if (PyErr_Occurred()) SWIG_fail;
25050 }
25051 resultobj = SWIG_Py_Void();
25052 return resultobj;
25053 fail:
25054 return NULL;
25055 }
25056
25057
25058 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25059 PyObject *resultobj = 0;
25060 wxWindowDC *arg1 = 0 ;
25061 wxGraphicsContext *result = 0 ;
25062 void *argp1 = 0 ;
25063 int res1 = 0 ;
25064
25065 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25067 if (!SWIG_IsOK(res1)) {
25068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25069 }
25070 if (!argp1) {
25071 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25072 }
25073 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25074 {
25075 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
25076 if (PyErr_Occurred()) SWIG_fail;
25077 }
25078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25079 return resultobj;
25080 fail:
25081 return NULL;
25082 }
25083
25084
25085 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25086 PyObject *resultobj = 0;
25087 wxWindow *arg1 = (wxWindow *) 0 ;
25088 wxGraphicsContext *result = 0 ;
25089 void *argp1 = 0 ;
25090 int res1 = 0 ;
25091
25092 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25093 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25094 if (!SWIG_IsOK(res1)) {
25095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
25096 }
25097 arg1 = reinterpret_cast< wxWindow * >(argp1);
25098 {
25099 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
25100 if (PyErr_Occurred()) SWIG_fail;
25101 }
25102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25103 return resultobj;
25104 fail:
25105 return NULL;
25106 }
25107
25108
25109 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
25110 int argc;
25111 PyObject *argv[2];
25112
25113 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
25114 --argc;
25115 if (argc == 1) {
25116 int _v = 0;
25117 {
25118 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
25119 _v = SWIG_CheckState(res);
25120 }
25121 if (!_v) goto check_1;
25122 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
25123 }
25124 check_1:
25125
25126 if (argc == 1) {
25127 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
25128 }
25129
25130 fail:
25131 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
25132 return NULL;
25133 }
25134
25135
25136 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25137 PyObject *resultobj = 0;
25138 void *arg1 = (void *) 0 ;
25139 wxGraphicsContext *result = 0 ;
25140 int res1 ;
25141 PyObject * obj0 = 0 ;
25142 char * kwnames[] = {
25143 (char *) "context", NULL
25144 };
25145
25146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
25147 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
25148 if (!SWIG_IsOK(res1)) {
25149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
25150 }
25151 {
25152 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
25153 if (PyErr_Occurred()) SWIG_fail;
25154 }
25155 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25156 return resultobj;
25157 fail:
25158 return NULL;
25159 }
25160
25161
25162 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25163 PyObject *resultobj = 0;
25164 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25165 wxGraphicsPath *result = 0 ;
25166 void *argp1 = 0 ;
25167 int res1 = 0 ;
25168 PyObject *swig_obj[1] ;
25169
25170 if (!args) SWIG_fail;
25171 swig_obj[0] = args;
25172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25173 if (!SWIG_IsOK(res1)) {
25174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25175 }
25176 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25177 {
25178 result = (wxGraphicsPath *)(arg1)->CreatePath();
25179 if (PyErr_Occurred()) SWIG_fail;
25180 }
25181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25182 return resultobj;
25183 fail:
25184 return NULL;
25185 }
25186
25187
25188 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25189 PyObject *resultobj = 0;
25190 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25191 void *argp1 = 0 ;
25192 int res1 = 0 ;
25193 PyObject *swig_obj[1] ;
25194
25195 if (!args) SWIG_fail;
25196 swig_obj[0] = args;
25197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25198 if (!SWIG_IsOK(res1)) {
25199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25200 }
25201 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25202 {
25203 (arg1)->PushState();
25204 if (PyErr_Occurred()) SWIG_fail;
25205 }
25206 resultobj = SWIG_Py_Void();
25207 return resultobj;
25208 fail:
25209 return NULL;
25210 }
25211
25212
25213 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25214 PyObject *resultobj = 0;
25215 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25216 void *argp1 = 0 ;
25217 int res1 = 0 ;
25218 PyObject *swig_obj[1] ;
25219
25220 if (!args) SWIG_fail;
25221 swig_obj[0] = args;
25222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25223 if (!SWIG_IsOK(res1)) {
25224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25225 }
25226 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25227 {
25228 (arg1)->PopState();
25229 if (PyErr_Occurred()) SWIG_fail;
25230 }
25231 resultobj = SWIG_Py_Void();
25232 return resultobj;
25233 fail:
25234 return NULL;
25235 }
25236
25237
25238 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25239 PyObject *resultobj = 0;
25240 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25241 wxRegion *arg2 = 0 ;
25242 void *argp1 = 0 ;
25243 int res1 = 0 ;
25244 void *argp2 = 0 ;
25245 int res2 = 0 ;
25246 PyObject * obj0 = 0 ;
25247 PyObject * obj1 = 0 ;
25248 char * kwnames[] = {
25249 (char *) "self",(char *) "region", NULL
25250 };
25251
25252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
25253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25254 if (!SWIG_IsOK(res1)) {
25255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25256 }
25257 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25258 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25259 if (!SWIG_IsOK(res2)) {
25260 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
25261 }
25262 if (!argp2) {
25263 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
25264 }
25265 arg2 = reinterpret_cast< wxRegion * >(argp2);
25266 {
25267 (arg1)->Clip((wxRegion const &)*arg2);
25268 if (PyErr_Occurred()) SWIG_fail;
25269 }
25270 resultobj = SWIG_Py_Void();
25271 return resultobj;
25272 fail:
25273 return NULL;
25274 }
25275
25276
25277 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25278 PyObject *resultobj = 0;
25279 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25280 wxDouble arg2 ;
25281 wxDouble arg3 ;
25282 wxDouble arg4 ;
25283 wxDouble arg5 ;
25284 void *argp1 = 0 ;
25285 int res1 = 0 ;
25286 double val2 ;
25287 int ecode2 = 0 ;
25288 double val3 ;
25289 int ecode3 = 0 ;
25290 double val4 ;
25291 int ecode4 = 0 ;
25292 double val5 ;
25293 int ecode5 = 0 ;
25294 PyObject * obj0 = 0 ;
25295 PyObject * obj1 = 0 ;
25296 PyObject * obj2 = 0 ;
25297 PyObject * obj3 = 0 ;
25298 PyObject * obj4 = 0 ;
25299 char * kwnames[] = {
25300 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25301 };
25302
25303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25305 if (!SWIG_IsOK(res1)) {
25306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25307 }
25308 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25309 ecode2 = SWIG_AsVal_double(obj1, &val2);
25310 if (!SWIG_IsOK(ecode2)) {
25311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
25312 }
25313 arg2 = static_cast< wxDouble >(val2);
25314 ecode3 = SWIG_AsVal_double(obj2, &val3);
25315 if (!SWIG_IsOK(ecode3)) {
25316 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
25317 }
25318 arg3 = static_cast< wxDouble >(val3);
25319 ecode4 = SWIG_AsVal_double(obj3, &val4);
25320 if (!SWIG_IsOK(ecode4)) {
25321 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
25322 }
25323 arg4 = static_cast< wxDouble >(val4);
25324 ecode5 = SWIG_AsVal_double(obj4, &val5);
25325 if (!SWIG_IsOK(ecode5)) {
25326 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
25327 }
25328 arg5 = static_cast< wxDouble >(val5);
25329 {
25330 (arg1)->Clip(arg2,arg3,arg4,arg5);
25331 if (PyErr_Occurred()) SWIG_fail;
25332 }
25333 resultobj = SWIG_Py_Void();
25334 return resultobj;
25335 fail:
25336 return NULL;
25337 }
25338
25339
25340 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25341 PyObject *resultobj = 0;
25342 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25343 void *argp1 = 0 ;
25344 int res1 = 0 ;
25345 PyObject *swig_obj[1] ;
25346
25347 if (!args) SWIG_fail;
25348 swig_obj[0] = args;
25349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25350 if (!SWIG_IsOK(res1)) {
25351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25352 }
25353 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25354 {
25355 (arg1)->ResetClip();
25356 if (PyErr_Occurred()) SWIG_fail;
25357 }
25358 resultobj = SWIG_Py_Void();
25359 return resultobj;
25360 fail:
25361 return NULL;
25362 }
25363
25364
25365 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25366 PyObject *resultobj = 0;
25367 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25368 void *result = 0 ;
25369 void *argp1 = 0 ;
25370 int res1 = 0 ;
25371 PyObject *swig_obj[1] ;
25372
25373 if (!args) SWIG_fail;
25374 swig_obj[0] = args;
25375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25376 if (!SWIG_IsOK(res1)) {
25377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25378 }
25379 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25380 {
25381 result = (void *)(arg1)->GetNativeContext();
25382 if (PyErr_Occurred()) SWIG_fail;
25383 }
25384 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
25385 return resultobj;
25386 fail:
25387 return NULL;
25388 }
25389
25390
25391 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25392 PyObject *resultobj = 0;
25393 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25394 wxDouble arg2 ;
25395 wxDouble arg3 ;
25396 void *argp1 = 0 ;
25397 int res1 = 0 ;
25398 double val2 ;
25399 int ecode2 = 0 ;
25400 double val3 ;
25401 int ecode3 = 0 ;
25402 PyObject * obj0 = 0 ;
25403 PyObject * obj1 = 0 ;
25404 PyObject * obj2 = 0 ;
25405 char * kwnames[] = {
25406 (char *) "self",(char *) "dx",(char *) "dy", NULL
25407 };
25408
25409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25411 if (!SWIG_IsOK(res1)) {
25412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25413 }
25414 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25415 ecode2 = SWIG_AsVal_double(obj1, &val2);
25416 if (!SWIG_IsOK(ecode2)) {
25417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25418 }
25419 arg2 = static_cast< wxDouble >(val2);
25420 ecode3 = SWIG_AsVal_double(obj2, &val3);
25421 if (!SWIG_IsOK(ecode3)) {
25422 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25423 }
25424 arg3 = static_cast< wxDouble >(val3);
25425 {
25426 (arg1)->Translate(arg2,arg3);
25427 if (PyErr_Occurred()) SWIG_fail;
25428 }
25429 resultobj = SWIG_Py_Void();
25430 return resultobj;
25431 fail:
25432 return NULL;
25433 }
25434
25435
25436 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25437 PyObject *resultobj = 0;
25438 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25439 wxDouble arg2 ;
25440 wxDouble arg3 ;
25441 void *argp1 = 0 ;
25442 int res1 = 0 ;
25443 double val2 ;
25444 int ecode2 = 0 ;
25445 double val3 ;
25446 int ecode3 = 0 ;
25447 PyObject * obj0 = 0 ;
25448 PyObject * obj1 = 0 ;
25449 PyObject * obj2 = 0 ;
25450 char * kwnames[] = {
25451 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
25452 };
25453
25454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25456 if (!SWIG_IsOK(res1)) {
25457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25458 }
25459 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25460 ecode2 = SWIG_AsVal_double(obj1, &val2);
25461 if (!SWIG_IsOK(ecode2)) {
25462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
25463 }
25464 arg2 = static_cast< wxDouble >(val2);
25465 ecode3 = SWIG_AsVal_double(obj2, &val3);
25466 if (!SWIG_IsOK(ecode3)) {
25467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
25468 }
25469 arg3 = static_cast< wxDouble >(val3);
25470 {
25471 (arg1)->Scale(arg2,arg3);
25472 if (PyErr_Occurred()) SWIG_fail;
25473 }
25474 resultobj = SWIG_Py_Void();
25475 return resultobj;
25476 fail:
25477 return NULL;
25478 }
25479
25480
25481 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25482 PyObject *resultobj = 0;
25483 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25484 wxDouble arg2 ;
25485 void *argp1 = 0 ;
25486 int res1 = 0 ;
25487 double val2 ;
25488 int ecode2 = 0 ;
25489 PyObject * obj0 = 0 ;
25490 PyObject * obj1 = 0 ;
25491 char * kwnames[] = {
25492 (char *) "self",(char *) "angle", NULL
25493 };
25494
25495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
25496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25497 if (!SWIG_IsOK(res1)) {
25498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25499 }
25500 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25501 ecode2 = SWIG_AsVal_double(obj1, &val2);
25502 if (!SWIG_IsOK(ecode2)) {
25503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
25504 }
25505 arg2 = static_cast< wxDouble >(val2);
25506 {
25507 (arg1)->Rotate(arg2);
25508 if (PyErr_Occurred()) SWIG_fail;
25509 }
25510 resultobj = SWIG_Py_Void();
25511 return resultobj;
25512 fail:
25513 return NULL;
25514 }
25515
25516
25517 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25518 PyObject *resultobj = 0;
25519 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25520 wxPen *arg2 = 0 ;
25521 void *argp1 = 0 ;
25522 int res1 = 0 ;
25523 void *argp2 = 0 ;
25524 int res2 = 0 ;
25525 PyObject * obj0 = 0 ;
25526 PyObject * obj1 = 0 ;
25527 char * kwnames[] = {
25528 (char *) "self",(char *) "pen", NULL
25529 };
25530
25531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
25532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25533 if (!SWIG_IsOK(res1)) {
25534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25535 }
25536 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25537 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
25538 if (!SWIG_IsOK(res2)) {
25539 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25540 }
25541 if (!argp2) {
25542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
25543 }
25544 arg2 = reinterpret_cast< wxPen * >(argp2);
25545 {
25546 (arg1)->SetPen((wxPen const &)*arg2);
25547 if (PyErr_Occurred()) SWIG_fail;
25548 }
25549 resultobj = SWIG_Py_Void();
25550 return resultobj;
25551 fail:
25552 return NULL;
25553 }
25554
25555
25556 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25557 PyObject *resultobj = 0;
25558 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25559 wxBrush *arg2 = 0 ;
25560 void *argp1 = 0 ;
25561 int res1 = 0 ;
25562 void *argp2 = 0 ;
25563 int res2 = 0 ;
25564 PyObject * obj0 = 0 ;
25565 PyObject * obj1 = 0 ;
25566 char * kwnames[] = {
25567 (char *) "self",(char *) "brush", NULL
25568 };
25569
25570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25572 if (!SWIG_IsOK(res1)) {
25573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25574 }
25575 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
25577 if (!SWIG_IsOK(res2)) {
25578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25579 }
25580 if (!argp2) {
25581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
25582 }
25583 arg2 = reinterpret_cast< wxBrush * >(argp2);
25584 {
25585 (arg1)->SetBrush((wxBrush const &)*arg2);
25586 if (PyErr_Occurred()) SWIG_fail;
25587 }
25588 resultobj = SWIG_Py_Void();
25589 return resultobj;
25590 fail:
25591 return NULL;
25592 }
25593
25594
25595 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25596 PyObject *resultobj = 0;
25597 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25598 wxDouble arg2 ;
25599 wxDouble arg3 ;
25600 wxDouble arg4 ;
25601 wxDouble arg5 ;
25602 wxColour *arg6 = 0 ;
25603 wxColour *arg7 = 0 ;
25604 void *argp1 = 0 ;
25605 int res1 = 0 ;
25606 double val2 ;
25607 int ecode2 = 0 ;
25608 double val3 ;
25609 int ecode3 = 0 ;
25610 double val4 ;
25611 int ecode4 = 0 ;
25612 double val5 ;
25613 int ecode5 = 0 ;
25614 wxColour temp6 ;
25615 wxColour temp7 ;
25616 PyObject * obj0 = 0 ;
25617 PyObject * obj1 = 0 ;
25618 PyObject * obj2 = 0 ;
25619 PyObject * obj3 = 0 ;
25620 PyObject * obj4 = 0 ;
25621 PyObject * obj5 = 0 ;
25622 PyObject * obj6 = 0 ;
25623 char * kwnames[] = {
25624 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
25625 };
25626
25627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25629 if (!SWIG_IsOK(res1)) {
25630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25631 }
25632 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25633 ecode2 = SWIG_AsVal_double(obj1, &val2);
25634 if (!SWIG_IsOK(ecode2)) {
25635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25636 }
25637 arg2 = static_cast< wxDouble >(val2);
25638 ecode3 = SWIG_AsVal_double(obj2, &val3);
25639 if (!SWIG_IsOK(ecode3)) {
25640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25641 }
25642 arg3 = static_cast< wxDouble >(val3);
25643 ecode4 = SWIG_AsVal_double(obj3, &val4);
25644 if (!SWIG_IsOK(ecode4)) {
25645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25646 }
25647 arg4 = static_cast< wxDouble >(val4);
25648 ecode5 = SWIG_AsVal_double(obj4, &val5);
25649 if (!SWIG_IsOK(ecode5)) {
25650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25651 }
25652 arg5 = static_cast< wxDouble >(val5);
25653 {
25654 arg6 = &temp6;
25655 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
25656 }
25657 {
25658 arg7 = &temp7;
25659 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25660 }
25661 {
25662 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
25663 if (PyErr_Occurred()) SWIG_fail;
25664 }
25665 resultobj = SWIG_Py_Void();
25666 return resultobj;
25667 fail:
25668 return NULL;
25669 }
25670
25671
25672 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25673 PyObject *resultobj = 0;
25674 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25675 wxDouble arg2 ;
25676 wxDouble arg3 ;
25677 wxDouble arg4 ;
25678 wxDouble arg5 ;
25679 wxDouble arg6 ;
25680 wxColour *arg7 = 0 ;
25681 wxColour *arg8 = 0 ;
25682 void *argp1 = 0 ;
25683 int res1 = 0 ;
25684 double val2 ;
25685 int ecode2 = 0 ;
25686 double val3 ;
25687 int ecode3 = 0 ;
25688 double val4 ;
25689 int ecode4 = 0 ;
25690 double val5 ;
25691 int ecode5 = 0 ;
25692 double val6 ;
25693 int ecode6 = 0 ;
25694 wxColour temp7 ;
25695 wxColour temp8 ;
25696 PyObject * obj0 = 0 ;
25697 PyObject * obj1 = 0 ;
25698 PyObject * obj2 = 0 ;
25699 PyObject * obj3 = 0 ;
25700 PyObject * obj4 = 0 ;
25701 PyObject * obj5 = 0 ;
25702 PyObject * obj6 = 0 ;
25703 PyObject * obj7 = 0 ;
25704 char * kwnames[] = {
25705 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
25706 };
25707
25708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25710 if (!SWIG_IsOK(res1)) {
25711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25712 }
25713 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25714 ecode2 = SWIG_AsVal_double(obj1, &val2);
25715 if (!SWIG_IsOK(ecode2)) {
25716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
25717 }
25718 arg2 = static_cast< wxDouble >(val2);
25719 ecode3 = SWIG_AsVal_double(obj2, &val3);
25720 if (!SWIG_IsOK(ecode3)) {
25721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
25722 }
25723 arg3 = static_cast< wxDouble >(val3);
25724 ecode4 = SWIG_AsVal_double(obj3, &val4);
25725 if (!SWIG_IsOK(ecode4)) {
25726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
25727 }
25728 arg4 = static_cast< wxDouble >(val4);
25729 ecode5 = SWIG_AsVal_double(obj4, &val5);
25730 if (!SWIG_IsOK(ecode5)) {
25731 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
25732 }
25733 arg5 = static_cast< wxDouble >(val5);
25734 ecode6 = SWIG_AsVal_double(obj5, &val6);
25735 if (!SWIG_IsOK(ecode6)) {
25736 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
25737 }
25738 arg6 = static_cast< wxDouble >(val6);
25739 {
25740 arg7 = &temp7;
25741 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
25742 }
25743 {
25744 arg8 = &temp8;
25745 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
25746 }
25747 {
25748 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
25749 if (PyErr_Occurred()) SWIG_fail;
25750 }
25751 resultobj = SWIG_Py_Void();
25752 return resultobj;
25753 fail:
25754 return NULL;
25755 }
25756
25757
25758 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25759 PyObject *resultobj = 0;
25760 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25761 wxFont *arg2 = 0 ;
25762 void *argp1 = 0 ;
25763 int res1 = 0 ;
25764 void *argp2 = 0 ;
25765 int res2 = 0 ;
25766 PyObject * obj0 = 0 ;
25767 PyObject * obj1 = 0 ;
25768 char * kwnames[] = {
25769 (char *) "self",(char *) "font", NULL
25770 };
25771
25772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
25773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25774 if (!SWIG_IsOK(res1)) {
25775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25776 }
25777 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25778 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
25779 if (!SWIG_IsOK(res2)) {
25780 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25781 }
25782 if (!argp2) {
25783 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
25784 }
25785 arg2 = reinterpret_cast< wxFont * >(argp2);
25786 {
25787 (arg1)->SetFont((wxFont const &)*arg2);
25788 if (PyErr_Occurred()) SWIG_fail;
25789 }
25790 resultobj = SWIG_Py_Void();
25791 return resultobj;
25792 fail:
25793 return NULL;
25794 }
25795
25796
25797 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25798 PyObject *resultobj = 0;
25799 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25800 wxColour *arg2 = 0 ;
25801 void *argp1 = 0 ;
25802 int res1 = 0 ;
25803 wxColour temp2 ;
25804 PyObject * obj0 = 0 ;
25805 PyObject * obj1 = 0 ;
25806 char * kwnames[] = {
25807 (char *) "self",(char *) "col", NULL
25808 };
25809
25810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
25811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25812 if (!SWIG_IsOK(res1)) {
25813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25814 }
25815 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25816 {
25817 arg2 = &temp2;
25818 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25819 }
25820 {
25821 (arg1)->SetTextColor((wxColour const &)*arg2);
25822 if (PyErr_Occurred()) SWIG_fail;
25823 }
25824 resultobj = SWIG_Py_Void();
25825 return resultobj;
25826 fail:
25827 return NULL;
25828 }
25829
25830
25831 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25832 PyObject *resultobj = 0;
25833 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25834 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25835 void *argp1 = 0 ;
25836 int res1 = 0 ;
25837 void *argp2 = 0 ;
25838 int res2 = 0 ;
25839 PyObject * obj0 = 0 ;
25840 PyObject * obj1 = 0 ;
25841 char * kwnames[] = {
25842 (char *) "self",(char *) "path", NULL
25843 };
25844
25845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
25846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25847 if (!SWIG_IsOK(res1)) {
25848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25849 }
25850 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25851 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25852 if (!SWIG_IsOK(res2)) {
25853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25854 }
25855 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25856 {
25857 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
25858 if (PyErr_Occurred()) SWIG_fail;
25859 }
25860 resultobj = SWIG_Py_Void();
25861 return resultobj;
25862 fail:
25863 return NULL;
25864 }
25865
25866
25867 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25868 PyObject *resultobj = 0;
25869 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25870 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25871 int arg3 = (int) wxWINDING_RULE ;
25872 void *argp1 = 0 ;
25873 int res1 = 0 ;
25874 void *argp2 = 0 ;
25875 int res2 = 0 ;
25876 int val3 ;
25877 int ecode3 = 0 ;
25878 PyObject * obj0 = 0 ;
25879 PyObject * obj1 = 0 ;
25880 PyObject * obj2 = 0 ;
25881 char * kwnames[] = {
25882 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25883 };
25884
25885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25887 if (!SWIG_IsOK(res1)) {
25888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25889 }
25890 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25891 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25892 if (!SWIG_IsOK(res2)) {
25893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25894 }
25895 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25896 if (obj2) {
25897 ecode3 = SWIG_AsVal_int(obj2, &val3);
25898 if (!SWIG_IsOK(ecode3)) {
25899 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
25900 }
25901 arg3 = static_cast< int >(val3);
25902 }
25903 {
25904 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
25905 if (PyErr_Occurred()) SWIG_fail;
25906 }
25907 resultobj = SWIG_Py_Void();
25908 return resultobj;
25909 fail:
25910 return NULL;
25911 }
25912
25913
25914 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25915 PyObject *resultobj = 0;
25916 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25917 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
25918 int arg3 = (int) wxWINDING_RULE ;
25919 void *argp1 = 0 ;
25920 int res1 = 0 ;
25921 void *argp2 = 0 ;
25922 int res2 = 0 ;
25923 int val3 ;
25924 int ecode3 = 0 ;
25925 PyObject * obj0 = 0 ;
25926 PyObject * obj1 = 0 ;
25927 PyObject * obj2 = 0 ;
25928 char * kwnames[] = {
25929 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
25930 };
25931
25932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25934 if (!SWIG_IsOK(res1)) {
25935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25936 }
25937 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25938 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25939 if (!SWIG_IsOK(res2)) {
25940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
25941 }
25942 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
25943 if (obj2) {
25944 ecode3 = SWIG_AsVal_int(obj2, &val3);
25945 if (!SWIG_IsOK(ecode3)) {
25946 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
25947 }
25948 arg3 = static_cast< int >(val3);
25949 }
25950 {
25951 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
25952 if (PyErr_Occurred()) SWIG_fail;
25953 }
25954 resultobj = SWIG_Py_Void();
25955 return resultobj;
25956 fail:
25957 return NULL;
25958 }
25959
25960
25961 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25962 PyObject *resultobj = 0;
25963 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25964 wxString *arg2 = 0 ;
25965 wxDouble arg3 ;
25966 wxDouble arg4 ;
25967 void *argp1 = 0 ;
25968 int res1 = 0 ;
25969 bool temp2 = false ;
25970 double val3 ;
25971 int ecode3 = 0 ;
25972 double val4 ;
25973 int ecode4 = 0 ;
25974 PyObject * obj0 = 0 ;
25975 PyObject * obj1 = 0 ;
25976 PyObject * obj2 = 0 ;
25977 PyObject * obj3 = 0 ;
25978 char * kwnames[] = {
25979 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
25980 };
25981
25982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25984 if (!SWIG_IsOK(res1)) {
25985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25986 }
25987 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25988 {
25989 arg2 = wxString_in_helper(obj1);
25990 if (arg2 == NULL) SWIG_fail;
25991 temp2 = true;
25992 }
25993 ecode3 = SWIG_AsVal_double(obj2, &val3);
25994 if (!SWIG_IsOK(ecode3)) {
25995 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
25996 }
25997 arg3 = static_cast< wxDouble >(val3);
25998 ecode4 = SWIG_AsVal_double(obj3, &val4);
25999 if (!SWIG_IsOK(ecode4)) {
26000 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26001 }
26002 arg4 = static_cast< wxDouble >(val4);
26003 {
26004 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
26005 if (PyErr_Occurred()) SWIG_fail;
26006 }
26007 resultobj = SWIG_Py_Void();
26008 {
26009 if (temp2)
26010 delete arg2;
26011 }
26012 return resultobj;
26013 fail:
26014 {
26015 if (temp2)
26016 delete arg2;
26017 }
26018 return NULL;
26019 }
26020
26021
26022 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26023 PyObject *resultobj = 0;
26024 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26025 wxString *arg2 = 0 ;
26026 wxDouble arg3 ;
26027 wxDouble arg4 ;
26028 wxDouble arg5 ;
26029 void *argp1 = 0 ;
26030 int res1 = 0 ;
26031 bool temp2 = false ;
26032 double val3 ;
26033 int ecode3 = 0 ;
26034 double val4 ;
26035 int ecode4 = 0 ;
26036 double val5 ;
26037 int ecode5 = 0 ;
26038 PyObject * obj0 = 0 ;
26039 PyObject * obj1 = 0 ;
26040 PyObject * obj2 = 0 ;
26041 PyObject * obj3 = 0 ;
26042 PyObject * obj4 = 0 ;
26043 char * kwnames[] = {
26044 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
26045 };
26046
26047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26049 if (!SWIG_IsOK(res1)) {
26050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26051 }
26052 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26053 {
26054 arg2 = wxString_in_helper(obj1);
26055 if (arg2 == NULL) SWIG_fail;
26056 temp2 = true;
26057 }
26058 ecode3 = SWIG_AsVal_double(obj2, &val3);
26059 if (!SWIG_IsOK(ecode3)) {
26060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
26061 }
26062 arg3 = static_cast< wxDouble >(val3);
26063 ecode4 = SWIG_AsVal_double(obj3, &val4);
26064 if (!SWIG_IsOK(ecode4)) {
26065 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
26066 }
26067 arg4 = static_cast< wxDouble >(val4);
26068 ecode5 = SWIG_AsVal_double(obj4, &val5);
26069 if (!SWIG_IsOK(ecode5)) {
26070 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
26071 }
26072 arg5 = static_cast< wxDouble >(val5);
26073 {
26074 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
26075 if (PyErr_Occurred()) SWIG_fail;
26076 }
26077 resultobj = SWIG_Py_Void();
26078 {
26079 if (temp2)
26080 delete arg2;
26081 }
26082 return resultobj;
26083 fail:
26084 {
26085 if (temp2)
26086 delete arg2;
26087 }
26088 return NULL;
26089 }
26090
26091
26092 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26093 PyObject *resultobj = 0;
26094 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26095 wxString *arg2 = 0 ;
26096 wxDouble *arg3 = (wxDouble *) 0 ;
26097 wxDouble *arg4 = (wxDouble *) 0 ;
26098 wxDouble *arg5 = (wxDouble *) 0 ;
26099 wxDouble *arg6 = (wxDouble *) 0 ;
26100 void *argp1 = 0 ;
26101 int res1 = 0 ;
26102 bool temp2 = false ;
26103 wxDouble temp3 ;
26104 int res3 = SWIG_TMPOBJ ;
26105 wxDouble temp4 ;
26106 int res4 = SWIG_TMPOBJ ;
26107 wxDouble temp5 ;
26108 int res5 = SWIG_TMPOBJ ;
26109 wxDouble temp6 ;
26110 int res6 = SWIG_TMPOBJ ;
26111 PyObject * obj0 = 0 ;
26112 PyObject * obj1 = 0 ;
26113 char * kwnames[] = {
26114 (char *) "self",(char *) "text", NULL
26115 };
26116
26117 arg3 = &temp3;
26118 arg4 = &temp4;
26119 arg5 = &temp5;
26120 arg6 = &temp6;
26121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26123 if (!SWIG_IsOK(res1)) {
26124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26125 }
26126 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26127 {
26128 arg2 = wxString_in_helper(obj1);
26129 if (arg2 == NULL) SWIG_fail;
26130 temp2 = true;
26131 }
26132 {
26133 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
26134 if (PyErr_Occurred()) SWIG_fail;
26135 }
26136 resultobj = SWIG_Py_Void();
26137 if (SWIG_IsTmpObj(res3)) {
26138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26139 } else {
26140 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26142 }
26143 if (SWIG_IsTmpObj(res4)) {
26144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26145 } else {
26146 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26148 }
26149 if (SWIG_IsTmpObj(res5)) {
26150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26151 } else {
26152 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26154 }
26155 if (SWIG_IsTmpObj(res6)) {
26156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26157 } else {
26158 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26160 }
26161 {
26162 if (temp2)
26163 delete arg2;
26164 }
26165 return resultobj;
26166 fail:
26167 {
26168 if (temp2)
26169 delete arg2;
26170 }
26171 return NULL;
26172 }
26173
26174
26175 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26176 PyObject *resultobj = 0;
26177 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26178 wxString *arg2 = 0 ;
26179 wxArrayDouble result;
26180 void *argp1 = 0 ;
26181 int res1 = 0 ;
26182 bool temp2 = false ;
26183 PyObject * obj0 = 0 ;
26184 PyObject * obj1 = 0 ;
26185 char * kwnames[] = {
26186 (char *) "self",(char *) "text", NULL
26187 };
26188
26189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
26190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26191 if (!SWIG_IsOK(res1)) {
26192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26193 }
26194 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26195 {
26196 arg2 = wxString_in_helper(obj1);
26197 if (arg2 == NULL) SWIG_fail;
26198 temp2 = true;
26199 }
26200 {
26201 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
26202 if (PyErr_Occurred()) SWIG_fail;
26203 }
26204 {
26205 resultobj = wxArrayDouble2PyList_helper(result);
26206 }
26207 {
26208 if (temp2)
26209 delete arg2;
26210 }
26211 return resultobj;
26212 fail:
26213 {
26214 if (temp2)
26215 delete arg2;
26216 }
26217 return NULL;
26218 }
26219
26220
26221 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26222 PyObject *resultobj = 0;
26223 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26224 wxBitmap *arg2 = 0 ;
26225 wxDouble arg3 ;
26226 wxDouble arg4 ;
26227 wxDouble arg5 ;
26228 wxDouble arg6 ;
26229 void *argp1 = 0 ;
26230 int res1 = 0 ;
26231 void *argp2 = 0 ;
26232 int res2 = 0 ;
26233 double val3 ;
26234 int ecode3 = 0 ;
26235 double val4 ;
26236 int ecode4 = 0 ;
26237 double val5 ;
26238 int ecode5 = 0 ;
26239 double val6 ;
26240 int ecode6 = 0 ;
26241 PyObject * obj0 = 0 ;
26242 PyObject * obj1 = 0 ;
26243 PyObject * obj2 = 0 ;
26244 PyObject * obj3 = 0 ;
26245 PyObject * obj4 = 0 ;
26246 PyObject * obj5 = 0 ;
26247 char * kwnames[] = {
26248 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26249 };
26250
26251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26253 if (!SWIG_IsOK(res1)) {
26254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26255 }
26256 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26257 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26258 if (!SWIG_IsOK(res2)) {
26259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26260 }
26261 if (!argp2) {
26262 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26263 }
26264 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26265 ecode3 = SWIG_AsVal_double(obj2, &val3);
26266 if (!SWIG_IsOK(ecode3)) {
26267 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26268 }
26269 arg3 = static_cast< wxDouble >(val3);
26270 ecode4 = SWIG_AsVal_double(obj3, &val4);
26271 if (!SWIG_IsOK(ecode4)) {
26272 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26273 }
26274 arg4 = static_cast< wxDouble >(val4);
26275 ecode5 = SWIG_AsVal_double(obj4, &val5);
26276 if (!SWIG_IsOK(ecode5)) {
26277 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26278 }
26279 arg5 = static_cast< wxDouble >(val5);
26280 ecode6 = SWIG_AsVal_double(obj5, &val6);
26281 if (!SWIG_IsOK(ecode6)) {
26282 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26283 }
26284 arg6 = static_cast< wxDouble >(val6);
26285 {
26286 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
26287 if (PyErr_Occurred()) SWIG_fail;
26288 }
26289 resultobj = SWIG_Py_Void();
26290 return resultobj;
26291 fail:
26292 return NULL;
26293 }
26294
26295
26296 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26297 PyObject *resultobj = 0;
26298 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26299 wxIcon *arg2 = 0 ;
26300 wxDouble arg3 ;
26301 wxDouble arg4 ;
26302 wxDouble arg5 ;
26303 wxDouble arg6 ;
26304 void *argp1 = 0 ;
26305 int res1 = 0 ;
26306 void *argp2 = 0 ;
26307 int res2 = 0 ;
26308 double val3 ;
26309 int ecode3 = 0 ;
26310 double val4 ;
26311 int ecode4 = 0 ;
26312 double val5 ;
26313 int ecode5 = 0 ;
26314 double val6 ;
26315 int ecode6 = 0 ;
26316 PyObject * obj0 = 0 ;
26317 PyObject * obj1 = 0 ;
26318 PyObject * obj2 = 0 ;
26319 PyObject * obj3 = 0 ;
26320 PyObject * obj4 = 0 ;
26321 PyObject * obj5 = 0 ;
26322 char * kwnames[] = {
26323 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26324 };
26325
26326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26328 if (!SWIG_IsOK(res1)) {
26329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26330 }
26331 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26332 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26333 if (!SWIG_IsOK(res2)) {
26334 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26335 }
26336 if (!argp2) {
26337 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26338 }
26339 arg2 = reinterpret_cast< wxIcon * >(argp2);
26340 ecode3 = SWIG_AsVal_double(obj2, &val3);
26341 if (!SWIG_IsOK(ecode3)) {
26342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26343 }
26344 arg3 = static_cast< wxDouble >(val3);
26345 ecode4 = SWIG_AsVal_double(obj3, &val4);
26346 if (!SWIG_IsOK(ecode4)) {
26347 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26348 }
26349 arg4 = static_cast< wxDouble >(val4);
26350 ecode5 = SWIG_AsVal_double(obj4, &val5);
26351 if (!SWIG_IsOK(ecode5)) {
26352 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26353 }
26354 arg5 = static_cast< wxDouble >(val5);
26355 ecode6 = SWIG_AsVal_double(obj5, &val6);
26356 if (!SWIG_IsOK(ecode6)) {
26357 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26358 }
26359 arg6 = static_cast< wxDouble >(val6);
26360 {
26361 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
26362 if (PyErr_Occurred()) SWIG_fail;
26363 }
26364 resultobj = SWIG_Py_Void();
26365 return resultobj;
26366 fail:
26367 return NULL;
26368 }
26369
26370
26371 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26372 PyObject *resultobj = 0;
26373 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26374 wxDouble arg2 ;
26375 wxDouble arg3 ;
26376 wxDouble arg4 ;
26377 wxDouble arg5 ;
26378 void *argp1 = 0 ;
26379 int res1 = 0 ;
26380 double val2 ;
26381 int ecode2 = 0 ;
26382 double val3 ;
26383 int ecode3 = 0 ;
26384 double val4 ;
26385 int ecode4 = 0 ;
26386 double val5 ;
26387 int ecode5 = 0 ;
26388 PyObject * obj0 = 0 ;
26389 PyObject * obj1 = 0 ;
26390 PyObject * obj2 = 0 ;
26391 PyObject * obj3 = 0 ;
26392 PyObject * obj4 = 0 ;
26393 char * kwnames[] = {
26394 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26395 };
26396
26397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26399 if (!SWIG_IsOK(res1)) {
26400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26401 }
26402 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26403 ecode2 = SWIG_AsVal_double(obj1, &val2);
26404 if (!SWIG_IsOK(ecode2)) {
26405 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26406 }
26407 arg2 = static_cast< wxDouble >(val2);
26408 ecode3 = SWIG_AsVal_double(obj2, &val3);
26409 if (!SWIG_IsOK(ecode3)) {
26410 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26411 }
26412 arg3 = static_cast< wxDouble >(val3);
26413 ecode4 = SWIG_AsVal_double(obj3, &val4);
26414 if (!SWIG_IsOK(ecode4)) {
26415 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26416 }
26417 arg4 = static_cast< wxDouble >(val4);
26418 ecode5 = SWIG_AsVal_double(obj4, &val5);
26419 if (!SWIG_IsOK(ecode5)) {
26420 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26421 }
26422 arg5 = static_cast< wxDouble >(val5);
26423 {
26424 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26425 if (PyErr_Occurred()) SWIG_fail;
26426 }
26427 resultobj = SWIG_Py_Void();
26428 return resultobj;
26429 fail:
26430 return NULL;
26431 }
26432
26433
26434 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26435 PyObject *resultobj = 0;
26436 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26437 size_t arg2 ;
26438 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26439 void *argp1 = 0 ;
26440 int res1 = 0 ;
26441 PyObject * obj0 = 0 ;
26442 PyObject * obj1 = 0 ;
26443 char * kwnames[] = {
26444 (char *) "self",(char *) "points", NULL
26445 };
26446
26447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26449 if (!SWIG_IsOK(res1)) {
26450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26451 }
26452 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26453 {
26454 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26455 if (arg3 == NULL) SWIG_fail;
26456 }
26457 {
26458 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
26459 if (PyErr_Occurred()) SWIG_fail;
26460 }
26461 resultobj = SWIG_Py_Void();
26462 {
26463 if (arg3) delete [] arg3;
26464 }
26465 return resultobj;
26466 fail:
26467 {
26468 if (arg3) delete [] arg3;
26469 }
26470 return NULL;
26471 }
26472
26473
26474 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26475 PyObject *resultobj = 0;
26476 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26477 PyObject *arg2 = (PyObject *) 0 ;
26478 PyObject *arg3 = (PyObject *) 0 ;
26479 void *argp1 = 0 ;
26480 int res1 = 0 ;
26481 PyObject * obj0 = 0 ;
26482 PyObject * obj1 = 0 ;
26483 PyObject * obj2 = 0 ;
26484 char * kwnames[] = {
26485 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
26486 };
26487
26488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26490 if (!SWIG_IsOK(res1)) {
26491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26492 }
26493 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26494 arg2 = obj1;
26495 arg3 = obj2;
26496 {
26497 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
26498 if (PyErr_Occurred()) SWIG_fail;
26499 }
26500 resultobj = SWIG_Py_Void();
26501 return resultobj;
26502 fail:
26503 return NULL;
26504 }
26505
26506
26507 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26508 PyObject *resultobj = 0;
26509 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26510 size_t arg2 ;
26511 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26512 int arg4 = (int) wxWINDING_RULE ;
26513 void *argp1 = 0 ;
26514 int res1 = 0 ;
26515 int val4 ;
26516 int ecode4 = 0 ;
26517 PyObject * obj0 = 0 ;
26518 PyObject * obj1 = 0 ;
26519 PyObject * obj2 = 0 ;
26520 char * kwnames[] = {
26521 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
26522 };
26523
26524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26526 if (!SWIG_IsOK(res1)) {
26527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26528 }
26529 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26530 {
26531 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
26532 if (arg3 == NULL) SWIG_fail;
26533 }
26534 if (obj2) {
26535 ecode4 = SWIG_AsVal_int(obj2, &val4);
26536 if (!SWIG_IsOK(ecode4)) {
26537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
26538 }
26539 arg4 = static_cast< int >(val4);
26540 }
26541 {
26542 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
26543 if (PyErr_Occurred()) SWIG_fail;
26544 }
26545 resultobj = SWIG_Py_Void();
26546 {
26547 if (arg3) delete [] arg3;
26548 }
26549 return resultobj;
26550 fail:
26551 {
26552 if (arg3) delete [] arg3;
26553 }
26554 return NULL;
26555 }
26556
26557
26558 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26559 PyObject *resultobj = 0;
26560 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26561 wxDouble arg2 ;
26562 wxDouble arg3 ;
26563 wxDouble arg4 ;
26564 wxDouble arg5 ;
26565 void *argp1 = 0 ;
26566 int res1 = 0 ;
26567 double val2 ;
26568 int ecode2 = 0 ;
26569 double val3 ;
26570 int ecode3 = 0 ;
26571 double val4 ;
26572 int ecode4 = 0 ;
26573 double val5 ;
26574 int ecode5 = 0 ;
26575 PyObject * obj0 = 0 ;
26576 PyObject * obj1 = 0 ;
26577 PyObject * obj2 = 0 ;
26578 PyObject * obj3 = 0 ;
26579 PyObject * obj4 = 0 ;
26580 char * kwnames[] = {
26581 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26582 };
26583
26584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26586 if (!SWIG_IsOK(res1)) {
26587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26588 }
26589 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26590 ecode2 = SWIG_AsVal_double(obj1, &val2);
26591 if (!SWIG_IsOK(ecode2)) {
26592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26593 }
26594 arg2 = static_cast< wxDouble >(val2);
26595 ecode3 = SWIG_AsVal_double(obj2, &val3);
26596 if (!SWIG_IsOK(ecode3)) {
26597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26598 }
26599 arg3 = static_cast< wxDouble >(val3);
26600 ecode4 = SWIG_AsVal_double(obj3, &val4);
26601 if (!SWIG_IsOK(ecode4)) {
26602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26603 }
26604 arg4 = static_cast< wxDouble >(val4);
26605 ecode5 = SWIG_AsVal_double(obj4, &val5);
26606 if (!SWIG_IsOK(ecode5)) {
26607 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26608 }
26609 arg5 = static_cast< wxDouble >(val5);
26610 {
26611 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
26612 if (PyErr_Occurred()) SWIG_fail;
26613 }
26614 resultobj = SWIG_Py_Void();
26615 return resultobj;
26616 fail:
26617 return NULL;
26618 }
26619
26620
26621 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26622 PyObject *resultobj = 0;
26623 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26624 wxDouble arg2 ;
26625 wxDouble arg3 ;
26626 wxDouble arg4 ;
26627 wxDouble arg5 ;
26628 void *argp1 = 0 ;
26629 int res1 = 0 ;
26630 double val2 ;
26631 int ecode2 = 0 ;
26632 double val3 ;
26633 int ecode3 = 0 ;
26634 double val4 ;
26635 int ecode4 = 0 ;
26636 double val5 ;
26637 int ecode5 = 0 ;
26638 PyObject * obj0 = 0 ;
26639 PyObject * obj1 = 0 ;
26640 PyObject * obj2 = 0 ;
26641 PyObject * obj3 = 0 ;
26642 PyObject * obj4 = 0 ;
26643 char * kwnames[] = {
26644 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26645 };
26646
26647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26649 if (!SWIG_IsOK(res1)) {
26650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26651 }
26652 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26653 ecode2 = SWIG_AsVal_double(obj1, &val2);
26654 if (!SWIG_IsOK(ecode2)) {
26655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
26656 }
26657 arg2 = static_cast< wxDouble >(val2);
26658 ecode3 = SWIG_AsVal_double(obj2, &val3);
26659 if (!SWIG_IsOK(ecode3)) {
26660 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
26661 }
26662 arg3 = static_cast< wxDouble >(val3);
26663 ecode4 = SWIG_AsVal_double(obj3, &val4);
26664 if (!SWIG_IsOK(ecode4)) {
26665 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
26666 }
26667 arg4 = static_cast< wxDouble >(val4);
26668 ecode5 = SWIG_AsVal_double(obj4, &val5);
26669 if (!SWIG_IsOK(ecode5)) {
26670 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
26671 }
26672 arg5 = static_cast< wxDouble >(val5);
26673 {
26674 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
26675 if (PyErr_Occurred()) SWIG_fail;
26676 }
26677 resultobj = SWIG_Py_Void();
26678 return resultobj;
26679 fail:
26680 return NULL;
26681 }
26682
26683
26684 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26685 PyObject *resultobj = 0;
26686 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26687 wxDouble arg2 ;
26688 wxDouble arg3 ;
26689 wxDouble arg4 ;
26690 wxDouble arg5 ;
26691 wxDouble arg6 ;
26692 void *argp1 = 0 ;
26693 int res1 = 0 ;
26694 double val2 ;
26695 int ecode2 = 0 ;
26696 double val3 ;
26697 int ecode3 = 0 ;
26698 double val4 ;
26699 int ecode4 = 0 ;
26700 double val5 ;
26701 int ecode5 = 0 ;
26702 double val6 ;
26703 int ecode6 = 0 ;
26704 PyObject * obj0 = 0 ;
26705 PyObject * obj1 = 0 ;
26706 PyObject * obj2 = 0 ;
26707 PyObject * obj3 = 0 ;
26708 PyObject * obj4 = 0 ;
26709 PyObject * obj5 = 0 ;
26710 char * kwnames[] = {
26711 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
26712 };
26713
26714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26716 if (!SWIG_IsOK(res1)) {
26717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26718 }
26719 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26720 ecode2 = SWIG_AsVal_double(obj1, &val2);
26721 if (!SWIG_IsOK(ecode2)) {
26722 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
26723 }
26724 arg2 = static_cast< wxDouble >(val2);
26725 ecode3 = SWIG_AsVal_double(obj2, &val3);
26726 if (!SWIG_IsOK(ecode3)) {
26727 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
26728 }
26729 arg3 = static_cast< wxDouble >(val3);
26730 ecode4 = SWIG_AsVal_double(obj3, &val4);
26731 if (!SWIG_IsOK(ecode4)) {
26732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
26733 }
26734 arg4 = static_cast< wxDouble >(val4);
26735 ecode5 = SWIG_AsVal_double(obj4, &val5);
26736 if (!SWIG_IsOK(ecode5)) {
26737 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
26738 }
26739 arg5 = static_cast< wxDouble >(val5);
26740 ecode6 = SWIG_AsVal_double(obj5, &val6);
26741 if (!SWIG_IsOK(ecode6)) {
26742 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
26743 }
26744 arg6 = static_cast< wxDouble >(val6);
26745 {
26746 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
26747 if (PyErr_Occurred()) SWIG_fail;
26748 }
26749 resultobj = SWIG_Py_Void();
26750 return resultobj;
26751 fail:
26752 return NULL;
26753 }
26754
26755
26756 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26757 PyObject *obj;
26758 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26759 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
26760 return SWIG_Py_Void();
26761 }
26762
26763 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26764 PyObject *resultobj = 0;
26765 wxWindowDC *arg1 = 0 ;
26766 wxGCDC *result = 0 ;
26767 void *argp1 = 0 ;
26768 int res1 = 0 ;
26769 PyObject * obj0 = 0 ;
26770 char * kwnames[] = {
26771 (char *) "dc", NULL
26772 };
26773
26774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
26775 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
26776 if (!SWIG_IsOK(res1)) {
26777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26778 }
26779 if (!argp1) {
26780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
26781 }
26782 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
26783 {
26784 if (!wxPyCheckForApp()) SWIG_fail;
26785 PyThreadState* __tstate = wxPyBeginAllowThreads();
26786 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
26787 wxPyEndAllowThreads(__tstate);
26788 if (PyErr_Occurred()) SWIG_fail;
26789 }
26790 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
26791 return resultobj;
26792 fail:
26793 return NULL;
26794 }
26795
26796
26797 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26798 PyObject *resultobj = 0;
26799 wxGCDC *arg1 = (wxGCDC *) 0 ;
26800 void *argp1 = 0 ;
26801 int res1 = 0 ;
26802 PyObject *swig_obj[1] ;
26803
26804 if (!args) SWIG_fail;
26805 swig_obj[0] = args;
26806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
26807 if (!SWIG_IsOK(res1)) {
26808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
26809 }
26810 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26811 {
26812 delete arg1;
26813
26814 if (PyErr_Occurred()) SWIG_fail;
26815 }
26816 resultobj = SWIG_Py_Void();
26817 return resultobj;
26818 fail:
26819 return NULL;
26820 }
26821
26822
26823 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26824 PyObject *resultobj = 0;
26825 wxGCDC *arg1 = (wxGCDC *) 0 ;
26826 wxGraphicsContext *result = 0 ;
26827 void *argp1 = 0 ;
26828 int res1 = 0 ;
26829 PyObject *swig_obj[1] ;
26830
26831 if (!args) SWIG_fail;
26832 swig_obj[0] = args;
26833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26834 if (!SWIG_IsOK(res1)) {
26835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26836 }
26837 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26838 {
26839 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
26840 if (PyErr_Occurred()) SWIG_fail;
26841 }
26842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26843 return resultobj;
26844 fail:
26845 return NULL;
26846 }
26847
26848
26849 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26850 PyObject *resultobj = 0;
26851 wxGCDC *arg1 = (wxGCDC *) 0 ;
26852 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
26853 void *argp1 = 0 ;
26854 int res1 = 0 ;
26855 void *argp2 = 0 ;
26856 int res2 = 0 ;
26857 PyObject * obj0 = 0 ;
26858 PyObject * obj1 = 0 ;
26859 char * kwnames[] = {
26860 (char *) "self",(char *) "ctx", NULL
26861 };
26862
26863 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
26864 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
26865 if (!SWIG_IsOK(res1)) {
26866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
26867 }
26868 arg1 = reinterpret_cast< wxGCDC * >(argp1);
26869 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26870 if (!SWIG_IsOK(res2)) {
26871 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
26872 }
26873 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
26874 {
26875 (arg1)->SetGraphicsContext(arg2);
26876 if (PyErr_Occurred()) SWIG_fail;
26877 }
26878 resultobj = SWIG_Py_Void();
26879 return resultobj;
26880 fail:
26881 return NULL;
26882 }
26883
26884
26885 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26886 PyObject *obj;
26887 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26888 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
26889 return SWIG_Py_Void();
26890 }
26891
26892 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26893 return SWIG_Python_InitShadowInstance(args);
26894 }
26895
26896 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26897 PyObject *resultobj = 0;
26898 wxOverlay *result = 0 ;
26899
26900 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
26901 {
26902 PyThreadState* __tstate = wxPyBeginAllowThreads();
26903 result = (wxOverlay *)new wxOverlay();
26904 wxPyEndAllowThreads(__tstate);
26905 if (PyErr_Occurred()) SWIG_fail;
26906 }
26907 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
26908 return resultobj;
26909 fail:
26910 return NULL;
26911 }
26912
26913
26914 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26915 PyObject *resultobj = 0;
26916 wxOverlay *arg1 = (wxOverlay *) 0 ;
26917 void *argp1 = 0 ;
26918 int res1 = 0 ;
26919 PyObject *swig_obj[1] ;
26920
26921 if (!args) SWIG_fail;
26922 swig_obj[0] = args;
26923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
26924 if (!SWIG_IsOK(res1)) {
26925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
26926 }
26927 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26928 {
26929 PyThreadState* __tstate = wxPyBeginAllowThreads();
26930 delete arg1;
26931
26932 wxPyEndAllowThreads(__tstate);
26933 if (PyErr_Occurred()) SWIG_fail;
26934 }
26935 resultobj = SWIG_Py_Void();
26936 return resultobj;
26937 fail:
26938 return NULL;
26939 }
26940
26941
26942 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26943 PyObject *resultobj = 0;
26944 wxOverlay *arg1 = (wxOverlay *) 0 ;
26945 void *argp1 = 0 ;
26946 int res1 = 0 ;
26947 PyObject *swig_obj[1] ;
26948
26949 if (!args) SWIG_fail;
26950 swig_obj[0] = args;
26951 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
26952 if (!SWIG_IsOK(res1)) {
26953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
26954 }
26955 arg1 = reinterpret_cast< wxOverlay * >(argp1);
26956 {
26957 PyThreadState* __tstate = wxPyBeginAllowThreads();
26958 (arg1)->Reset();
26959 wxPyEndAllowThreads(__tstate);
26960 if (PyErr_Occurred()) SWIG_fail;
26961 }
26962 resultobj = SWIG_Py_Void();
26963 return resultobj;
26964 fail:
26965 return NULL;
26966 }
26967
26968
26969 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26970 PyObject *obj;
26971 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26972 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
26973 return SWIG_Py_Void();
26974 }
26975
26976 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26977 return SWIG_Python_InitShadowInstance(args);
26978 }
26979
26980 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
26981 PyObject *resultobj = 0;
26982 wxOverlay *arg1 = 0 ;
26983 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
26984 int arg3 ;
26985 int arg4 ;
26986 int arg5 ;
26987 int arg6 ;
26988 wxDCOverlay *result = 0 ;
26989 void *argp1 = 0 ;
26990 int res1 = 0 ;
26991 void *argp2 = 0 ;
26992 int res2 = 0 ;
26993 int val3 ;
26994 int ecode3 = 0 ;
26995 int val4 ;
26996 int ecode4 = 0 ;
26997 int val5 ;
26998 int ecode5 = 0 ;
26999 int val6 ;
27000 int ecode6 = 0 ;
27001
27002 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27004 if (!SWIG_IsOK(res1)) {
27005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27006 }
27007 if (!argp1) {
27008 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27009 }
27010 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27011 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27012 if (!SWIG_IsOK(res2)) {
27013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27014 }
27015 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27016 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27017 if (!SWIG_IsOK(ecode3)) {
27018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
27019 }
27020 arg3 = static_cast< int >(val3);
27021 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27022 if (!SWIG_IsOK(ecode4)) {
27023 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
27024 }
27025 arg4 = static_cast< int >(val4);
27026 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27027 if (!SWIG_IsOK(ecode5)) {
27028 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
27029 }
27030 arg5 = static_cast< int >(val5);
27031 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
27032 if (!SWIG_IsOK(ecode6)) {
27033 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
27034 }
27035 arg6 = static_cast< int >(val6);
27036 {
27037 PyThreadState* __tstate = wxPyBeginAllowThreads();
27038 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
27039 wxPyEndAllowThreads(__tstate);
27040 if (PyErr_Occurred()) SWIG_fail;
27041 }
27042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27043 return resultobj;
27044 fail:
27045 return NULL;
27046 }
27047
27048
27049 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27050 PyObject *resultobj = 0;
27051 wxOverlay *arg1 = 0 ;
27052 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27053 wxDCOverlay *result = 0 ;
27054 void *argp1 = 0 ;
27055 int res1 = 0 ;
27056 void *argp2 = 0 ;
27057 int res2 = 0 ;
27058
27059 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27061 if (!SWIG_IsOK(res1)) {
27062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27063 }
27064 if (!argp1) {
27065 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27066 }
27067 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27068 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27069 if (!SWIG_IsOK(res2)) {
27070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27071 }
27072 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27073 {
27074 PyThreadState* __tstate = wxPyBeginAllowThreads();
27075 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
27076 wxPyEndAllowThreads(__tstate);
27077 if (PyErr_Occurred()) SWIG_fail;
27078 }
27079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27080 return resultobj;
27081 fail:
27082 return NULL;
27083 }
27084
27085
27086 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
27087 int argc;
27088 PyObject *argv[7];
27089
27090 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
27091 --argc;
27092 if (argc == 2) {
27093 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
27094 }
27095 if (argc == 6) {
27096 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
27097 }
27098
27099 fail:
27100 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
27101 return NULL;
27102 }
27103
27104
27105 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27106 PyObject *resultobj = 0;
27107 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27108 void *argp1 = 0 ;
27109 int res1 = 0 ;
27110 PyObject *swig_obj[1] ;
27111
27112 if (!args) SWIG_fail;
27113 swig_obj[0] = args;
27114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
27115 if (!SWIG_IsOK(res1)) {
27116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27117 }
27118 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27119 {
27120 PyThreadState* __tstate = wxPyBeginAllowThreads();
27121 delete arg1;
27122
27123 wxPyEndAllowThreads(__tstate);
27124 if (PyErr_Occurred()) SWIG_fail;
27125 }
27126 resultobj = SWIG_Py_Void();
27127 return resultobj;
27128 fail:
27129 return NULL;
27130 }
27131
27132
27133 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27134 PyObject *resultobj = 0;
27135 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27136 void *argp1 = 0 ;
27137 int res1 = 0 ;
27138 PyObject *swig_obj[1] ;
27139
27140 if (!args) SWIG_fail;
27141 swig_obj[0] = args;
27142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
27143 if (!SWIG_IsOK(res1)) {
27144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27145 }
27146 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27147 {
27148 PyThreadState* __tstate = wxPyBeginAllowThreads();
27149 (arg1)->Clear();
27150 wxPyEndAllowThreads(__tstate);
27151 if (PyErr_Occurred()) SWIG_fail;
27152 }
27153 resultobj = SWIG_Py_Void();
27154 return resultobj;
27155 fail:
27156 return NULL;
27157 }
27158
27159
27160 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27161 PyObject *obj;
27162 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27163 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
27164 return SWIG_Py_Void();
27165 }
27166
27167 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27168 return SWIG_Python_InitShadowInstance(args);
27169 }
27170
27171 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27172 PyObject *resultobj = 0;
27173 int arg1 ;
27174 int arg2 ;
27175 int arg3 = (int) true ;
27176 int arg4 = (int) 1 ;
27177 wxImageList *result = 0 ;
27178 int val1 ;
27179 int ecode1 = 0 ;
27180 int val2 ;
27181 int ecode2 = 0 ;
27182 int val3 ;
27183 int ecode3 = 0 ;
27184 int val4 ;
27185 int ecode4 = 0 ;
27186 PyObject * obj0 = 0 ;
27187 PyObject * obj1 = 0 ;
27188 PyObject * obj2 = 0 ;
27189 PyObject * obj3 = 0 ;
27190 char * kwnames[] = {
27191 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27192 };
27193
27194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27195 ecode1 = SWIG_AsVal_int(obj0, &val1);
27196 if (!SWIG_IsOK(ecode1)) {
27197 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27198 }
27199 arg1 = static_cast< int >(val1);
27200 ecode2 = SWIG_AsVal_int(obj1, &val2);
27201 if (!SWIG_IsOK(ecode2)) {
27202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27203 }
27204 arg2 = static_cast< int >(val2);
27205 if (obj2) {
27206 ecode3 = SWIG_AsVal_int(obj2, &val3);
27207 if (!SWIG_IsOK(ecode3)) {
27208 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27209 }
27210 arg3 = static_cast< int >(val3);
27211 }
27212 if (obj3) {
27213 ecode4 = SWIG_AsVal_int(obj3, &val4);
27214 if (!SWIG_IsOK(ecode4)) {
27215 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27216 }
27217 arg4 = static_cast< int >(val4);
27218 }
27219 {
27220 if (!wxPyCheckForApp()) SWIG_fail;
27221 PyThreadState* __tstate = wxPyBeginAllowThreads();
27222 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27223 wxPyEndAllowThreads(__tstate);
27224 if (PyErr_Occurred()) SWIG_fail;
27225 }
27226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
27227 return resultobj;
27228 fail:
27229 return NULL;
27230 }
27231
27232
27233 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27234 PyObject *resultobj = 0;
27235 wxImageList *arg1 = (wxImageList *) 0 ;
27236 void *argp1 = 0 ;
27237 int res1 = 0 ;
27238 PyObject *swig_obj[1] ;
27239
27240 if (!args) SWIG_fail;
27241 swig_obj[0] = args;
27242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27243 if (!SWIG_IsOK(res1)) {
27244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27245 }
27246 arg1 = reinterpret_cast< wxImageList * >(argp1);
27247 {
27248 PyThreadState* __tstate = wxPyBeginAllowThreads();
27249 delete arg1;
27250
27251 wxPyEndAllowThreads(__tstate);
27252 if (PyErr_Occurred()) SWIG_fail;
27253 }
27254 resultobj = SWIG_Py_Void();
27255 return resultobj;
27256 fail:
27257 return NULL;
27258 }
27259
27260
27261 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27262 PyObject *resultobj = 0;
27263 wxImageList *arg1 = (wxImageList *) 0 ;
27264 wxBitmap *arg2 = 0 ;
27265 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27266 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27267 int result;
27268 void *argp1 = 0 ;
27269 int res1 = 0 ;
27270 void *argp2 = 0 ;
27271 int res2 = 0 ;
27272 void *argp3 = 0 ;
27273 int res3 = 0 ;
27274 PyObject * obj0 = 0 ;
27275 PyObject * obj1 = 0 ;
27276 PyObject * obj2 = 0 ;
27277 char * kwnames[] = {
27278 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27279 };
27280
27281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27283 if (!SWIG_IsOK(res1)) {
27284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27285 }
27286 arg1 = reinterpret_cast< wxImageList * >(argp1);
27287 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27288 if (!SWIG_IsOK(res2)) {
27289 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27290 }
27291 if (!argp2) {
27292 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27293 }
27294 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27295 if (obj2) {
27296 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27297 if (!SWIG_IsOK(res3)) {
27298 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27299 }
27300 if (!argp3) {
27301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27302 }
27303 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27304 }
27305 {
27306 PyThreadState* __tstate = wxPyBeginAllowThreads();
27307 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27308 wxPyEndAllowThreads(__tstate);
27309 if (PyErr_Occurred()) SWIG_fail;
27310 }
27311 resultobj = SWIG_From_int(static_cast< int >(result));
27312 return resultobj;
27313 fail:
27314 return NULL;
27315 }
27316
27317
27318 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27319 PyObject *resultobj = 0;
27320 wxImageList *arg1 = (wxImageList *) 0 ;
27321 wxBitmap *arg2 = 0 ;
27322 wxColour *arg3 = 0 ;
27323 int result;
27324 void *argp1 = 0 ;
27325 int res1 = 0 ;
27326 void *argp2 = 0 ;
27327 int res2 = 0 ;
27328 wxColour temp3 ;
27329 PyObject * obj0 = 0 ;
27330 PyObject * obj1 = 0 ;
27331 PyObject * obj2 = 0 ;
27332 char * kwnames[] = {
27333 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27334 };
27335
27336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27338 if (!SWIG_IsOK(res1)) {
27339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27340 }
27341 arg1 = reinterpret_cast< wxImageList * >(argp1);
27342 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27343 if (!SWIG_IsOK(res2)) {
27344 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27345 }
27346 if (!argp2) {
27347 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27348 }
27349 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27350 {
27351 arg3 = &temp3;
27352 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27353 }
27354 {
27355 PyThreadState* __tstate = wxPyBeginAllowThreads();
27356 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27357 wxPyEndAllowThreads(__tstate);
27358 if (PyErr_Occurred()) SWIG_fail;
27359 }
27360 resultobj = SWIG_From_int(static_cast< int >(result));
27361 return resultobj;
27362 fail:
27363 return NULL;
27364 }
27365
27366
27367 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27368 PyObject *resultobj = 0;
27369 wxImageList *arg1 = (wxImageList *) 0 ;
27370 wxIcon *arg2 = 0 ;
27371 int result;
27372 void *argp1 = 0 ;
27373 int res1 = 0 ;
27374 void *argp2 = 0 ;
27375 int res2 = 0 ;
27376 PyObject * obj0 = 0 ;
27377 PyObject * obj1 = 0 ;
27378 char * kwnames[] = {
27379 (char *) "self",(char *) "icon", NULL
27380 };
27381
27382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27384 if (!SWIG_IsOK(res1)) {
27385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27386 }
27387 arg1 = reinterpret_cast< wxImageList * >(argp1);
27388 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27389 if (!SWIG_IsOK(res2)) {
27390 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27391 }
27392 if (!argp2) {
27393 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27394 }
27395 arg2 = reinterpret_cast< wxIcon * >(argp2);
27396 {
27397 PyThreadState* __tstate = wxPyBeginAllowThreads();
27398 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27399 wxPyEndAllowThreads(__tstate);
27400 if (PyErr_Occurred()) SWIG_fail;
27401 }
27402 resultobj = SWIG_From_int(static_cast< int >(result));
27403 return resultobj;
27404 fail:
27405 return NULL;
27406 }
27407
27408
27409 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27410 PyObject *resultobj = 0;
27411 wxImageList *arg1 = (wxImageList *) 0 ;
27412 int arg2 ;
27413 SwigValueWrapper<wxBitmap > result;
27414 void *argp1 = 0 ;
27415 int res1 = 0 ;
27416 int val2 ;
27417 int ecode2 = 0 ;
27418 PyObject * obj0 = 0 ;
27419 PyObject * obj1 = 0 ;
27420 char * kwnames[] = {
27421 (char *) "self",(char *) "index", NULL
27422 };
27423
27424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27426 if (!SWIG_IsOK(res1)) {
27427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27428 }
27429 arg1 = reinterpret_cast< wxImageList * >(argp1);
27430 ecode2 = SWIG_AsVal_int(obj1, &val2);
27431 if (!SWIG_IsOK(ecode2)) {
27432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27433 }
27434 arg2 = static_cast< int >(val2);
27435 {
27436 PyThreadState* __tstate = wxPyBeginAllowThreads();
27437 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27438 wxPyEndAllowThreads(__tstate);
27439 if (PyErr_Occurred()) SWIG_fail;
27440 }
27441 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27442 return resultobj;
27443 fail:
27444 return NULL;
27445 }
27446
27447
27448 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27449 PyObject *resultobj = 0;
27450 wxImageList *arg1 = (wxImageList *) 0 ;
27451 int arg2 ;
27452 wxIcon result;
27453 void *argp1 = 0 ;
27454 int res1 = 0 ;
27455 int val2 ;
27456 int ecode2 = 0 ;
27457 PyObject * obj0 = 0 ;
27458 PyObject * obj1 = 0 ;
27459 char * kwnames[] = {
27460 (char *) "self",(char *) "index", NULL
27461 };
27462
27463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27465 if (!SWIG_IsOK(res1)) {
27466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27467 }
27468 arg1 = reinterpret_cast< wxImageList * >(argp1);
27469 ecode2 = SWIG_AsVal_int(obj1, &val2);
27470 if (!SWIG_IsOK(ecode2)) {
27471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27472 }
27473 arg2 = static_cast< int >(val2);
27474 {
27475 PyThreadState* __tstate = wxPyBeginAllowThreads();
27476 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27477 wxPyEndAllowThreads(__tstate);
27478 if (PyErr_Occurred()) SWIG_fail;
27479 }
27480 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27481 return resultobj;
27482 fail:
27483 return NULL;
27484 }
27485
27486
27487 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27488 PyObject *resultobj = 0;
27489 wxImageList *arg1 = (wxImageList *) 0 ;
27490 int arg2 ;
27491 wxBitmap *arg3 = 0 ;
27492 wxBitmap const &arg4_defvalue = wxNullBitmap ;
27493 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
27494 bool result;
27495 void *argp1 = 0 ;
27496 int res1 = 0 ;
27497 int val2 ;
27498 int ecode2 = 0 ;
27499 void *argp3 = 0 ;
27500 int res3 = 0 ;
27501 void *argp4 = 0 ;
27502 int res4 = 0 ;
27503 PyObject * obj0 = 0 ;
27504 PyObject * obj1 = 0 ;
27505 PyObject * obj2 = 0 ;
27506 PyObject * obj3 = 0 ;
27507 char * kwnames[] = {
27508 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
27509 };
27510
27511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27513 if (!SWIG_IsOK(res1)) {
27514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
27515 }
27516 arg1 = reinterpret_cast< wxImageList * >(argp1);
27517 ecode2 = SWIG_AsVal_int(obj1, &val2);
27518 if (!SWIG_IsOK(ecode2)) {
27519 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
27520 }
27521 arg2 = static_cast< int >(val2);
27522 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27523 if (!SWIG_IsOK(res3)) {
27524 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27525 }
27526 if (!argp3) {
27527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27528 }
27529 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27530 if (obj3) {
27531 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
27532 if (!SWIG_IsOK(res4)) {
27533 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27534 }
27535 if (!argp4) {
27536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
27537 }
27538 arg4 = reinterpret_cast< wxBitmap * >(argp4);
27539 }
27540 {
27541 PyThreadState* __tstate = wxPyBeginAllowThreads();
27542 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
27543 wxPyEndAllowThreads(__tstate);
27544 if (PyErr_Occurred()) SWIG_fail;
27545 }
27546 {
27547 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27548 }
27549 return resultobj;
27550 fail:
27551 return NULL;
27552 }
27553
27554
27555 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27556 PyObject *resultobj = 0;
27557 wxImageList *arg1 = (wxImageList *) 0 ;
27558 int arg2 ;
27559 wxDC *arg3 = 0 ;
27560 int arg4 ;
27561 int arg5 ;
27562 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
27563 bool arg7 = (bool) (bool)false ;
27564 bool result;
27565 void *argp1 = 0 ;
27566 int res1 = 0 ;
27567 int val2 ;
27568 int ecode2 = 0 ;
27569 void *argp3 = 0 ;
27570 int res3 = 0 ;
27571 int val4 ;
27572 int ecode4 = 0 ;
27573 int val5 ;
27574 int ecode5 = 0 ;
27575 int val6 ;
27576 int ecode6 = 0 ;
27577 bool val7 ;
27578 int ecode7 = 0 ;
27579 PyObject * obj0 = 0 ;
27580 PyObject * obj1 = 0 ;
27581 PyObject * obj2 = 0 ;
27582 PyObject * obj3 = 0 ;
27583 PyObject * obj4 = 0 ;
27584 PyObject * obj5 = 0 ;
27585 PyObject * obj6 = 0 ;
27586 char * kwnames[] = {
27587 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
27588 };
27589
27590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27592 if (!SWIG_IsOK(res1)) {
27593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
27594 }
27595 arg1 = reinterpret_cast< wxImageList * >(argp1);
27596 ecode2 = SWIG_AsVal_int(obj1, &val2);
27597 if (!SWIG_IsOK(ecode2)) {
27598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
27599 }
27600 arg2 = static_cast< int >(val2);
27601 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27602 if (!SWIG_IsOK(res3)) {
27603 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27604 }
27605 if (!argp3) {
27606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
27607 }
27608 arg3 = reinterpret_cast< wxDC * >(argp3);
27609 ecode4 = SWIG_AsVal_int(obj3, &val4);
27610 if (!SWIG_IsOK(ecode4)) {
27611 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
27612 }
27613 arg4 = static_cast< int >(val4);
27614 ecode5 = SWIG_AsVal_int(obj4, &val5);
27615 if (!SWIG_IsOK(ecode5)) {
27616 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
27617 }
27618 arg5 = static_cast< int >(val5);
27619 if (obj5) {
27620 ecode6 = SWIG_AsVal_int(obj5, &val6);
27621 if (!SWIG_IsOK(ecode6)) {
27622 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
27623 }
27624 arg6 = static_cast< int >(val6);
27625 }
27626 if (obj6) {
27627 ecode7 = SWIG_AsVal_bool(obj6, &val7);
27628 if (!SWIG_IsOK(ecode7)) {
27629 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
27630 }
27631 arg7 = static_cast< bool >(val7);
27632 }
27633 {
27634 PyThreadState* __tstate = wxPyBeginAllowThreads();
27635 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
27636 wxPyEndAllowThreads(__tstate);
27637 if (PyErr_Occurred()) SWIG_fail;
27638 }
27639 {
27640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27641 }
27642 return resultobj;
27643 fail:
27644 return NULL;
27645 }
27646
27647
27648 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27649 PyObject *resultobj = 0;
27650 wxImageList *arg1 = (wxImageList *) 0 ;
27651 int result;
27652 void *argp1 = 0 ;
27653 int res1 = 0 ;
27654 PyObject *swig_obj[1] ;
27655
27656 if (!args) SWIG_fail;
27657 swig_obj[0] = args;
27658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27659 if (!SWIG_IsOK(res1)) {
27660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
27661 }
27662 arg1 = reinterpret_cast< wxImageList * >(argp1);
27663 {
27664 PyThreadState* __tstate = wxPyBeginAllowThreads();
27665 result = (int)(arg1)->GetImageCount();
27666 wxPyEndAllowThreads(__tstate);
27667 if (PyErr_Occurred()) SWIG_fail;
27668 }
27669 resultobj = SWIG_From_int(static_cast< int >(result));
27670 return resultobj;
27671 fail:
27672 return NULL;
27673 }
27674
27675
27676 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27677 PyObject *resultobj = 0;
27678 wxImageList *arg1 = (wxImageList *) 0 ;
27679 int arg2 ;
27680 bool result;
27681 void *argp1 = 0 ;
27682 int res1 = 0 ;
27683 int val2 ;
27684 int ecode2 = 0 ;
27685 PyObject * obj0 = 0 ;
27686 PyObject * obj1 = 0 ;
27687 char * kwnames[] = {
27688 (char *) "self",(char *) "index", NULL
27689 };
27690
27691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
27692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27693 if (!SWIG_IsOK(res1)) {
27694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
27695 }
27696 arg1 = reinterpret_cast< wxImageList * >(argp1);
27697 ecode2 = SWIG_AsVal_int(obj1, &val2);
27698 if (!SWIG_IsOK(ecode2)) {
27699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
27700 }
27701 arg2 = static_cast< int >(val2);
27702 {
27703 PyThreadState* __tstate = wxPyBeginAllowThreads();
27704 result = (bool)(arg1)->Remove(arg2);
27705 wxPyEndAllowThreads(__tstate);
27706 if (PyErr_Occurred()) SWIG_fail;
27707 }
27708 {
27709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27710 }
27711 return resultobj;
27712 fail:
27713 return NULL;
27714 }
27715
27716
27717 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27718 PyObject *resultobj = 0;
27719 wxImageList *arg1 = (wxImageList *) 0 ;
27720 bool result;
27721 void *argp1 = 0 ;
27722 int res1 = 0 ;
27723 PyObject *swig_obj[1] ;
27724
27725 if (!args) SWIG_fail;
27726 swig_obj[0] = args;
27727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27728 if (!SWIG_IsOK(res1)) {
27729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
27730 }
27731 arg1 = reinterpret_cast< wxImageList * >(argp1);
27732 {
27733 PyThreadState* __tstate = wxPyBeginAllowThreads();
27734 result = (bool)(arg1)->RemoveAll();
27735 wxPyEndAllowThreads(__tstate);
27736 if (PyErr_Occurred()) SWIG_fail;
27737 }
27738 {
27739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
27740 }
27741 return resultobj;
27742 fail:
27743 return NULL;
27744 }
27745
27746
27747 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27748 PyObject *resultobj = 0;
27749 wxImageList *arg1 = (wxImageList *) 0 ;
27750 int arg2 ;
27751 int *arg3 = 0 ;
27752 int *arg4 = 0 ;
27753 void *argp1 = 0 ;
27754 int res1 = 0 ;
27755 int val2 ;
27756 int ecode2 = 0 ;
27757 int temp3 ;
27758 int res3 = SWIG_TMPOBJ ;
27759 int temp4 ;
27760 int res4 = SWIG_TMPOBJ ;
27761 PyObject * obj0 = 0 ;
27762 PyObject * obj1 = 0 ;
27763 char * kwnames[] = {
27764 (char *) "self",(char *) "index", NULL
27765 };
27766
27767 arg3 = &temp3;
27768 arg4 = &temp4;
27769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
27770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27771 if (!SWIG_IsOK(res1)) {
27772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
27773 }
27774 arg1 = reinterpret_cast< wxImageList * >(argp1);
27775 ecode2 = SWIG_AsVal_int(obj1, &val2);
27776 if (!SWIG_IsOK(ecode2)) {
27777 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
27778 }
27779 arg2 = static_cast< int >(val2);
27780 {
27781 PyThreadState* __tstate = wxPyBeginAllowThreads();
27782 (arg1)->GetSize(arg2,*arg3,*arg4);
27783 wxPyEndAllowThreads(__tstate);
27784 if (PyErr_Occurred()) SWIG_fail;
27785 }
27786 resultobj = SWIG_Py_Void();
27787 if (SWIG_IsTmpObj(res3)) {
27788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
27789 } else {
27790 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
27792 }
27793 if (SWIG_IsTmpObj(res4)) {
27794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
27795 } else {
27796 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
27797 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
27798 }
27799 return resultobj;
27800 fail:
27801 return NULL;
27802 }
27803
27804
27805 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27806 PyObject *obj;
27807 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27808 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
27809 return SWIG_Py_Void();
27810 }
27811
27812 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27813 return SWIG_Python_InitShadowInstance(args);
27814 }
27815
27816 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27817 PyObject *resultobj = 0;
27818 wxStockGDI *result = 0 ;
27819
27820 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
27821 {
27822 PyThreadState* __tstate = wxPyBeginAllowThreads();
27823 result = (wxStockGDI *)new wxStockGDI();
27824 wxPyEndAllowThreads(__tstate);
27825 if (PyErr_Occurred()) SWIG_fail;
27826 }
27827 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
27828 return resultobj;
27829 fail:
27830 return NULL;
27831 }
27832
27833
27834 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27835 PyObject *resultobj = 0;
27836 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
27837 void *argp1 = 0 ;
27838 int res1 = 0 ;
27839 PyObject *swig_obj[1] ;
27840
27841 if (!args) SWIG_fail;
27842 swig_obj[0] = args;
27843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
27844 if (!SWIG_IsOK(res1)) {
27845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
27846 }
27847 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
27848 {
27849 PyThreadState* __tstate = wxPyBeginAllowThreads();
27850 delete arg1;
27851
27852 wxPyEndAllowThreads(__tstate);
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_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27863 PyObject *resultobj = 0;
27864
27865 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
27866 {
27867 PyThreadState* __tstate = wxPyBeginAllowThreads();
27868 wxStockGDI::DeleteAll();
27869 wxPyEndAllowThreads(__tstate);
27870 if (PyErr_Occurred()) SWIG_fail;
27871 }
27872 resultobj = SWIG_Py_Void();
27873 return resultobj;
27874 fail:
27875 return NULL;
27876 }
27877
27878
27879 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27880 PyObject *resultobj = 0;
27881 wxStockGDI *result = 0 ;
27882
27883 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
27884 {
27885 PyThreadState* __tstate = wxPyBeginAllowThreads();
27886 {
27887 wxStockGDI &_result_ref = wxStockGDI::instance();
27888 result = (wxStockGDI *) &_result_ref;
27889 }
27890 wxPyEndAllowThreads(__tstate);
27891 if (PyErr_Occurred()) SWIG_fail;
27892 }
27893 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
27894 return resultobj;
27895 fail:
27896 return NULL;
27897 }
27898
27899
27900 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27901 PyObject *resultobj = 0;
27902 wxStockGDI::Item arg1 ;
27903 wxBrush *result = 0 ;
27904 int val1 ;
27905 int ecode1 = 0 ;
27906 PyObject * obj0 = 0 ;
27907 char * kwnames[] = {
27908 (char *) "item", NULL
27909 };
27910
27911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
27912 ecode1 = SWIG_AsVal_int(obj0, &val1);
27913 if (!SWIG_IsOK(ecode1)) {
27914 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27915 }
27916 arg1 = static_cast< wxStockGDI::Item >(val1);
27917 {
27918 PyThreadState* __tstate = wxPyBeginAllowThreads();
27919 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
27920 wxPyEndAllowThreads(__tstate);
27921 if (PyErr_Occurred()) SWIG_fail;
27922 }
27923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
27924 return resultobj;
27925 fail:
27926 return NULL;
27927 }
27928
27929
27930 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27931 PyObject *resultobj = 0;
27932 wxStockGDI::Item arg1 ;
27933 wxColour *result = 0 ;
27934 int val1 ;
27935 int ecode1 = 0 ;
27936 PyObject * obj0 = 0 ;
27937 char * kwnames[] = {
27938 (char *) "item", NULL
27939 };
27940
27941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
27942 ecode1 = SWIG_AsVal_int(obj0, &val1);
27943 if (!SWIG_IsOK(ecode1)) {
27944 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27945 }
27946 arg1 = static_cast< wxStockGDI::Item >(val1);
27947 {
27948 PyThreadState* __tstate = wxPyBeginAllowThreads();
27949 result = (wxColour *)wxStockGDI::GetColour(arg1);
27950 wxPyEndAllowThreads(__tstate);
27951 if (PyErr_Occurred()) SWIG_fail;
27952 }
27953 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
27954 return resultobj;
27955 fail:
27956 return NULL;
27957 }
27958
27959
27960 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27961 PyObject *resultobj = 0;
27962 wxStockGDI::Item arg1 ;
27963 wxCursor *result = 0 ;
27964 int val1 ;
27965 int ecode1 = 0 ;
27966 PyObject * obj0 = 0 ;
27967 char * kwnames[] = {
27968 (char *) "item", NULL
27969 };
27970
27971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
27972 ecode1 = SWIG_AsVal_int(obj0, &val1);
27973 if (!SWIG_IsOK(ecode1)) {
27974 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
27975 }
27976 arg1 = static_cast< wxStockGDI::Item >(val1);
27977 {
27978 PyThreadState* __tstate = wxPyBeginAllowThreads();
27979 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
27980 wxPyEndAllowThreads(__tstate);
27981 if (PyErr_Occurred()) SWIG_fail;
27982 }
27983 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
27984 return resultobj;
27985 fail:
27986 return NULL;
27987 }
27988
27989
27990 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27991 PyObject *resultobj = 0;
27992 wxStockGDI::Item arg1 ;
27993 wxPen *result = 0 ;
27994 int val1 ;
27995 int ecode1 = 0 ;
27996 PyObject * obj0 = 0 ;
27997 char * kwnames[] = {
27998 (char *) "item", NULL
27999 };
28000
28001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28002 ecode1 = SWIG_AsVal_int(obj0, &val1);
28003 if (!SWIG_IsOK(ecode1)) {
28004 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28005 }
28006 arg1 = static_cast< wxStockGDI::Item >(val1);
28007 {
28008 PyThreadState* __tstate = wxPyBeginAllowThreads();
28009 result = (wxPen *)wxStockGDI::GetPen(arg1);
28010 wxPyEndAllowThreads(__tstate);
28011 if (PyErr_Occurred()) SWIG_fail;
28012 }
28013 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28014 return resultobj;
28015 fail:
28016 return NULL;
28017 }
28018
28019
28020 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28021 PyObject *resultobj = 0;
28022 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28023 wxStockGDI::Item arg2 ;
28024 wxFont *result = 0 ;
28025 void *argp1 = 0 ;
28026 int res1 = 0 ;
28027 int val2 ;
28028 int ecode2 = 0 ;
28029 PyObject * obj0 = 0 ;
28030 PyObject * obj1 = 0 ;
28031 char * kwnames[] = {
28032 (char *) "self",(char *) "item", NULL
28033 };
28034
28035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28037 if (!SWIG_IsOK(res1)) {
28038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28039 }
28040 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28041 ecode2 = SWIG_AsVal_int(obj1, &val2);
28042 if (!SWIG_IsOK(ecode2)) {
28043 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28044 }
28045 arg2 = static_cast< wxStockGDI::Item >(val2);
28046 {
28047 PyThreadState* __tstate = wxPyBeginAllowThreads();
28048 result = (wxFont *)(arg1)->GetFont(arg2);
28049 wxPyEndAllowThreads(__tstate);
28050 if (PyErr_Occurred()) SWIG_fail;
28051 }
28052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28053 return resultobj;
28054 fail:
28055 return NULL;
28056 }
28057
28058
28059 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28060 PyObject *obj;
28061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28062 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28063 return SWIG_Py_Void();
28064 }
28065
28066 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28067 return SWIG_Python_InitShadowInstance(args);
28068 }
28069
28070 SWIGINTERN int NullBitmap_set(PyObject *) {
28071 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28072 return 1;
28073 }
28074
28075
28076 SWIGINTERN PyObject *NullBitmap_get(void) {
28077 PyObject *pyobj = 0;
28078
28079 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28080 return pyobj;
28081 }
28082
28083
28084 SWIGINTERN int NullIcon_set(PyObject *) {
28085 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28086 return 1;
28087 }
28088
28089
28090 SWIGINTERN PyObject *NullIcon_get(void) {
28091 PyObject *pyobj = 0;
28092
28093 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28094 return pyobj;
28095 }
28096
28097
28098 SWIGINTERN int NullCursor_set(PyObject *) {
28099 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28100 return 1;
28101 }
28102
28103
28104 SWIGINTERN PyObject *NullCursor_get(void) {
28105 PyObject *pyobj = 0;
28106
28107 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28108 return pyobj;
28109 }
28110
28111
28112 SWIGINTERN int NullPen_set(PyObject *) {
28113 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28114 return 1;
28115 }
28116
28117
28118 SWIGINTERN PyObject *NullPen_get(void) {
28119 PyObject *pyobj = 0;
28120
28121 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28122 return pyobj;
28123 }
28124
28125
28126 SWIGINTERN int NullBrush_set(PyObject *) {
28127 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28128 return 1;
28129 }
28130
28131
28132 SWIGINTERN PyObject *NullBrush_get(void) {
28133 PyObject *pyobj = 0;
28134
28135 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28136 return pyobj;
28137 }
28138
28139
28140 SWIGINTERN int NullPalette_set(PyObject *) {
28141 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28142 return 1;
28143 }
28144
28145
28146 SWIGINTERN PyObject *NullPalette_get(void) {
28147 PyObject *pyobj = 0;
28148
28149 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28150 return pyobj;
28151 }
28152
28153
28154 SWIGINTERN int NullFont_set(PyObject *) {
28155 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28156 return 1;
28157 }
28158
28159
28160 SWIGINTERN PyObject *NullFont_get(void) {
28161 PyObject *pyobj = 0;
28162
28163 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28164 return pyobj;
28165 }
28166
28167
28168 SWIGINTERN int NullColour_set(PyObject *) {
28169 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28170 return 1;
28171 }
28172
28173
28174 SWIGINTERN PyObject *NullColour_get(void) {
28175 PyObject *pyobj = 0;
28176
28177 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28178 return pyobj;
28179 }
28180
28181
28182 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28183 PyObject *resultobj = 0;
28184 wxGDIObjListBase *result = 0 ;
28185
28186 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28187 {
28188 PyThreadState* __tstate = wxPyBeginAllowThreads();
28189 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28190 wxPyEndAllowThreads(__tstate);
28191 if (PyErr_Occurred()) SWIG_fail;
28192 }
28193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28194 return resultobj;
28195 fail:
28196 return NULL;
28197 }
28198
28199
28200 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28201 PyObject *resultobj = 0;
28202 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
28203 void *argp1 = 0 ;
28204 int res1 = 0 ;
28205 PyObject *swig_obj[1] ;
28206
28207 if (!args) SWIG_fail;
28208 swig_obj[0] = args;
28209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28210 if (!SWIG_IsOK(res1)) {
28211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28212 }
28213 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28214 {
28215 PyThreadState* __tstate = wxPyBeginAllowThreads();
28216 delete arg1;
28217
28218 wxPyEndAllowThreads(__tstate);
28219 if (PyErr_Occurred()) SWIG_fail;
28220 }
28221 resultobj = SWIG_Py_Void();
28222 return resultobj;
28223 fail:
28224 return NULL;
28225 }
28226
28227
28228 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28229 PyObject *obj;
28230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28231 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28232 return SWIG_Py_Void();
28233 }
28234
28235 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28236 return SWIG_Python_InitShadowInstance(args);
28237 }
28238
28239 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28240 PyObject *resultobj = 0;
28241 wxPenList *arg1 = (wxPenList *) 0 ;
28242 wxColour *arg2 = 0 ;
28243 int arg3 ;
28244 int arg4 ;
28245 wxPen *result = 0 ;
28246 void *argp1 = 0 ;
28247 int res1 = 0 ;
28248 wxColour temp2 ;
28249 int val3 ;
28250 int ecode3 = 0 ;
28251 int val4 ;
28252 int ecode4 = 0 ;
28253 PyObject * obj0 = 0 ;
28254 PyObject * obj1 = 0 ;
28255 PyObject * obj2 = 0 ;
28256 PyObject * obj3 = 0 ;
28257 char * kwnames[] = {
28258 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28259 };
28260
28261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28263 if (!SWIG_IsOK(res1)) {
28264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28265 }
28266 arg1 = reinterpret_cast< wxPenList * >(argp1);
28267 {
28268 arg2 = &temp2;
28269 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28270 }
28271 ecode3 = SWIG_AsVal_int(obj2, &val3);
28272 if (!SWIG_IsOK(ecode3)) {
28273 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28274 }
28275 arg3 = static_cast< int >(val3);
28276 ecode4 = SWIG_AsVal_int(obj3, &val4);
28277 if (!SWIG_IsOK(ecode4)) {
28278 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28279 }
28280 arg4 = static_cast< int >(val4);
28281 {
28282 PyThreadState* __tstate = wxPyBeginAllowThreads();
28283 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28284 wxPyEndAllowThreads(__tstate);
28285 if (PyErr_Occurred()) SWIG_fail;
28286 }
28287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28288 return resultobj;
28289 fail:
28290 return NULL;
28291 }
28292
28293
28294 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28295 PyObject *resultobj = 0;
28296 wxPenList *arg1 = (wxPenList *) 0 ;
28297 wxPen *arg2 = (wxPen *) 0 ;
28298 void *argp1 = 0 ;
28299 int res1 = 0 ;
28300 void *argp2 = 0 ;
28301 int res2 = 0 ;
28302 PyObject * obj0 = 0 ;
28303 PyObject * obj1 = 0 ;
28304 char * kwnames[] = {
28305 (char *) "self",(char *) "pen", NULL
28306 };
28307
28308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
28309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28310 if (!SWIG_IsOK(res1)) {
28311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
28312 }
28313 arg1 = reinterpret_cast< wxPenList * >(argp1);
28314 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28315 if (!SWIG_IsOK(res2)) {
28316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
28317 }
28318 arg2 = reinterpret_cast< wxPen * >(argp2);
28319 {
28320 PyThreadState* __tstate = wxPyBeginAllowThreads();
28321 (arg1)->AddPen(arg2);
28322 wxPyEndAllowThreads(__tstate);
28323 if (PyErr_Occurred()) SWIG_fail;
28324 }
28325 resultobj = SWIG_Py_Void();
28326 return resultobj;
28327 fail:
28328 return NULL;
28329 }
28330
28331
28332 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28333 PyObject *resultobj = 0;
28334 wxPenList *arg1 = (wxPenList *) 0 ;
28335 wxPen *arg2 = (wxPen *) 0 ;
28336 void *argp1 = 0 ;
28337 int res1 = 0 ;
28338 void *argp2 = 0 ;
28339 int res2 = 0 ;
28340 PyObject * obj0 = 0 ;
28341 PyObject * obj1 = 0 ;
28342 char * kwnames[] = {
28343 (char *) "self",(char *) "pen", NULL
28344 };
28345
28346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28347 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28348 if (!SWIG_IsOK(res1)) {
28349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28350 }
28351 arg1 = reinterpret_cast< wxPenList * >(argp1);
28352 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28353 if (!SWIG_IsOK(res2)) {
28354 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28355 }
28356 arg2 = reinterpret_cast< wxPen * >(argp2);
28357 {
28358 PyThreadState* __tstate = wxPyBeginAllowThreads();
28359 (arg1)->RemovePen(arg2);
28360 wxPyEndAllowThreads(__tstate);
28361 if (PyErr_Occurred()) SWIG_fail;
28362 }
28363 resultobj = SWIG_Py_Void();
28364 return resultobj;
28365 fail:
28366 return NULL;
28367 }
28368
28369
28370 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28371 PyObject *obj;
28372 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28373 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28374 return SWIG_Py_Void();
28375 }
28376
28377 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28378 PyObject *resultobj = 0;
28379 wxBrushList *arg1 = (wxBrushList *) 0 ;
28380 wxColour *arg2 = 0 ;
28381 int arg3 = (int) wxSOLID ;
28382 wxBrush *result = 0 ;
28383 void *argp1 = 0 ;
28384 int res1 = 0 ;
28385 wxColour temp2 ;
28386 int val3 ;
28387 int ecode3 = 0 ;
28388 PyObject * obj0 = 0 ;
28389 PyObject * obj1 = 0 ;
28390 PyObject * obj2 = 0 ;
28391 char * kwnames[] = {
28392 (char *) "self",(char *) "colour",(char *) "style", NULL
28393 };
28394
28395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28397 if (!SWIG_IsOK(res1)) {
28398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28399 }
28400 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28401 {
28402 arg2 = &temp2;
28403 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28404 }
28405 if (obj2) {
28406 ecode3 = SWIG_AsVal_int(obj2, &val3);
28407 if (!SWIG_IsOK(ecode3)) {
28408 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28409 }
28410 arg3 = static_cast< int >(val3);
28411 }
28412 {
28413 PyThreadState* __tstate = wxPyBeginAllowThreads();
28414 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28415 wxPyEndAllowThreads(__tstate);
28416 if (PyErr_Occurred()) SWIG_fail;
28417 }
28418 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28419 return resultobj;
28420 fail:
28421 return NULL;
28422 }
28423
28424
28425 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28426 PyObject *resultobj = 0;
28427 wxBrushList *arg1 = (wxBrushList *) 0 ;
28428 wxBrush *arg2 = (wxBrush *) 0 ;
28429 void *argp1 = 0 ;
28430 int res1 = 0 ;
28431 void *argp2 = 0 ;
28432 int res2 = 0 ;
28433 PyObject * obj0 = 0 ;
28434 PyObject * obj1 = 0 ;
28435 char * kwnames[] = {
28436 (char *) "self",(char *) "brush", NULL
28437 };
28438
28439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28441 if (!SWIG_IsOK(res1)) {
28442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28443 }
28444 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28445 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28446 if (!SWIG_IsOK(res2)) {
28447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28448 }
28449 arg2 = reinterpret_cast< wxBrush * >(argp2);
28450 {
28451 PyThreadState* __tstate = wxPyBeginAllowThreads();
28452 (arg1)->AddBrush(arg2);
28453 wxPyEndAllowThreads(__tstate);
28454 if (PyErr_Occurred()) SWIG_fail;
28455 }
28456 resultobj = SWIG_Py_Void();
28457 return resultobj;
28458 fail:
28459 return NULL;
28460 }
28461
28462
28463 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28464 PyObject *resultobj = 0;
28465 wxBrushList *arg1 = (wxBrushList *) 0 ;
28466 wxBrush *arg2 = (wxBrush *) 0 ;
28467 void *argp1 = 0 ;
28468 int res1 = 0 ;
28469 void *argp2 = 0 ;
28470 int res2 = 0 ;
28471 PyObject * obj0 = 0 ;
28472 PyObject * obj1 = 0 ;
28473 char * kwnames[] = {
28474 (char *) "self",(char *) "brush", NULL
28475 };
28476
28477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28479 if (!SWIG_IsOK(res1)) {
28480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28481 }
28482 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28483 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28484 if (!SWIG_IsOK(res2)) {
28485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28486 }
28487 arg2 = reinterpret_cast< wxBrush * >(argp2);
28488 {
28489 PyThreadState* __tstate = wxPyBeginAllowThreads();
28490 (arg1)->RemoveBrush(arg2);
28491 wxPyEndAllowThreads(__tstate);
28492 if (PyErr_Occurred()) SWIG_fail;
28493 }
28494 resultobj = SWIG_Py_Void();
28495 return resultobj;
28496 fail:
28497 return NULL;
28498 }
28499
28500
28501 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28502 PyObject *obj;
28503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28504 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
28505 return SWIG_Py_Void();
28506 }
28507
28508 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28509 PyObject *resultobj = 0;
28510 wxFontList *arg1 = (wxFontList *) 0 ;
28511 int arg2 ;
28512 int arg3 ;
28513 int arg4 ;
28514 int arg5 ;
28515 bool arg6 = (bool) false ;
28516 wxString const &arg7_defvalue = wxPyEmptyString ;
28517 wxString *arg7 = (wxString *) &arg7_defvalue ;
28518 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
28519 wxFont *result = 0 ;
28520 void *argp1 = 0 ;
28521 int res1 = 0 ;
28522 int val2 ;
28523 int ecode2 = 0 ;
28524 int val3 ;
28525 int ecode3 = 0 ;
28526 int val4 ;
28527 int ecode4 = 0 ;
28528 int val5 ;
28529 int ecode5 = 0 ;
28530 bool val6 ;
28531 int ecode6 = 0 ;
28532 bool temp7 = false ;
28533 int val8 ;
28534 int ecode8 = 0 ;
28535 PyObject * obj0 = 0 ;
28536 PyObject * obj1 = 0 ;
28537 PyObject * obj2 = 0 ;
28538 PyObject * obj3 = 0 ;
28539 PyObject * obj4 = 0 ;
28540 PyObject * obj5 = 0 ;
28541 PyObject * obj6 = 0 ;
28542 PyObject * obj7 = 0 ;
28543 char * kwnames[] = {
28544 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
28545 };
28546
28547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
28548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28549 if (!SWIG_IsOK(res1)) {
28550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28551 }
28552 arg1 = reinterpret_cast< wxFontList * >(argp1);
28553 ecode2 = SWIG_AsVal_int(obj1, &val2);
28554 if (!SWIG_IsOK(ecode2)) {
28555 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
28556 }
28557 arg2 = static_cast< int >(val2);
28558 ecode3 = SWIG_AsVal_int(obj2, &val3);
28559 if (!SWIG_IsOK(ecode3)) {
28560 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
28561 }
28562 arg3 = static_cast< int >(val3);
28563 ecode4 = SWIG_AsVal_int(obj3, &val4);
28564 if (!SWIG_IsOK(ecode4)) {
28565 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
28566 }
28567 arg4 = static_cast< int >(val4);
28568 ecode5 = SWIG_AsVal_int(obj4, &val5);
28569 if (!SWIG_IsOK(ecode5)) {
28570 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
28571 }
28572 arg5 = static_cast< int >(val5);
28573 if (obj5) {
28574 ecode6 = SWIG_AsVal_bool(obj5, &val6);
28575 if (!SWIG_IsOK(ecode6)) {
28576 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
28577 }
28578 arg6 = static_cast< bool >(val6);
28579 }
28580 if (obj6) {
28581 {
28582 arg7 = wxString_in_helper(obj6);
28583 if (arg7 == NULL) SWIG_fail;
28584 temp7 = true;
28585 }
28586 }
28587 if (obj7) {
28588 ecode8 = SWIG_AsVal_int(obj7, &val8);
28589 if (!SWIG_IsOK(ecode8)) {
28590 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
28591 }
28592 arg8 = static_cast< wxFontEncoding >(val8);
28593 }
28594 {
28595 PyThreadState* __tstate = wxPyBeginAllowThreads();
28596 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
28597 wxPyEndAllowThreads(__tstate);
28598 if (PyErr_Occurred()) SWIG_fail;
28599 }
28600 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28601 {
28602 if (temp7)
28603 delete arg7;
28604 }
28605 return resultobj;
28606 fail:
28607 {
28608 if (temp7)
28609 delete arg7;
28610 }
28611 return NULL;
28612 }
28613
28614
28615 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28616 PyObject *resultobj = 0;
28617 wxFontList *arg1 = (wxFontList *) 0 ;
28618 wxFont *arg2 = (wxFont *) 0 ;
28619 void *argp1 = 0 ;
28620 int res1 = 0 ;
28621 void *argp2 = 0 ;
28622 int res2 = 0 ;
28623 PyObject * obj0 = 0 ;
28624 PyObject * obj1 = 0 ;
28625 char * kwnames[] = {
28626 (char *) "self",(char *) "font", NULL
28627 };
28628
28629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
28630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28631 if (!SWIG_IsOK(res1)) {
28632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28633 }
28634 arg1 = reinterpret_cast< wxFontList * >(argp1);
28635 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28636 if (!SWIG_IsOK(res2)) {
28637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
28638 }
28639 arg2 = reinterpret_cast< wxFont * >(argp2);
28640 {
28641 PyThreadState* __tstate = wxPyBeginAllowThreads();
28642 (arg1)->AddFont(arg2);
28643 wxPyEndAllowThreads(__tstate);
28644 if (PyErr_Occurred()) SWIG_fail;
28645 }
28646 resultobj = SWIG_Py_Void();
28647 return resultobj;
28648 fail:
28649 return NULL;
28650 }
28651
28652
28653 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28654 PyObject *resultobj = 0;
28655 wxFontList *arg1 = (wxFontList *) 0 ;
28656 wxFont *arg2 = (wxFont *) 0 ;
28657 void *argp1 = 0 ;
28658 int res1 = 0 ;
28659 void *argp2 = 0 ;
28660 int res2 = 0 ;
28661 PyObject * obj0 = 0 ;
28662 PyObject * obj1 = 0 ;
28663 char * kwnames[] = {
28664 (char *) "self",(char *) "font", NULL
28665 };
28666
28667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
28668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
28669 if (!SWIG_IsOK(res1)) {
28670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
28671 }
28672 arg1 = reinterpret_cast< wxFontList * >(argp1);
28673 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
28674 if (!SWIG_IsOK(res2)) {
28675 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
28676 }
28677 arg2 = reinterpret_cast< wxFont * >(argp2);
28678 {
28679 PyThreadState* __tstate = wxPyBeginAllowThreads();
28680 (arg1)->RemoveFont(arg2);
28681 wxPyEndAllowThreads(__tstate);
28682 if (PyErr_Occurred()) SWIG_fail;
28683 }
28684 resultobj = SWIG_Py_Void();
28685 return resultobj;
28686 fail:
28687 return NULL;
28688 }
28689
28690
28691 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28692 PyObject *obj;
28693 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28694 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
28695 return SWIG_Py_Void();
28696 }
28697
28698 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28699 PyObject *resultobj = 0;
28700 wxColourDatabase *result = 0 ;
28701
28702 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
28703 {
28704 if (!wxPyCheckForApp()) SWIG_fail;
28705 PyThreadState* __tstate = wxPyBeginAllowThreads();
28706 result = (wxColourDatabase *)new wxColourDatabase();
28707 wxPyEndAllowThreads(__tstate);
28708 if (PyErr_Occurred()) SWIG_fail;
28709 }
28710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
28711 return resultobj;
28712 fail:
28713 return NULL;
28714 }
28715
28716
28717 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28718 PyObject *resultobj = 0;
28719 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28720 void *argp1 = 0 ;
28721 int res1 = 0 ;
28722 PyObject *swig_obj[1] ;
28723
28724 if (!args) SWIG_fail;
28725 swig_obj[0] = args;
28726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
28727 if (!SWIG_IsOK(res1)) {
28728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28729 }
28730 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28731 {
28732 PyThreadState* __tstate = wxPyBeginAllowThreads();
28733 delete arg1;
28734
28735 wxPyEndAllowThreads(__tstate);
28736 if (PyErr_Occurred()) SWIG_fail;
28737 }
28738 resultobj = SWIG_Py_Void();
28739 return resultobj;
28740 fail:
28741 return NULL;
28742 }
28743
28744
28745 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28746 PyObject *resultobj = 0;
28747 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28748 wxString *arg2 = 0 ;
28749 wxColour result;
28750 void *argp1 = 0 ;
28751 int res1 = 0 ;
28752 bool temp2 = false ;
28753 PyObject * obj0 = 0 ;
28754 PyObject * obj1 = 0 ;
28755 char * kwnames[] = {
28756 (char *) "self",(char *) "name", NULL
28757 };
28758
28759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
28760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28761 if (!SWIG_IsOK(res1)) {
28762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28763 }
28764 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28765 {
28766 arg2 = wxString_in_helper(obj1);
28767 if (arg2 == NULL) SWIG_fail;
28768 temp2 = true;
28769 }
28770 {
28771 PyThreadState* __tstate = wxPyBeginAllowThreads();
28772 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
28773 wxPyEndAllowThreads(__tstate);
28774 if (PyErr_Occurred()) SWIG_fail;
28775 }
28776 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
28777 {
28778 if (temp2)
28779 delete arg2;
28780 }
28781 return resultobj;
28782 fail:
28783 {
28784 if (temp2)
28785 delete arg2;
28786 }
28787 return NULL;
28788 }
28789
28790
28791 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28792 PyObject *resultobj = 0;
28793 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28794 wxColour *arg2 = 0 ;
28795 wxString result;
28796 void *argp1 = 0 ;
28797 int res1 = 0 ;
28798 wxColour temp2 ;
28799 PyObject * obj0 = 0 ;
28800 PyObject * obj1 = 0 ;
28801 char * kwnames[] = {
28802 (char *) "self",(char *) "colour", NULL
28803 };
28804
28805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
28806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28807 if (!SWIG_IsOK(res1)) {
28808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
28809 }
28810 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28811 {
28812 arg2 = &temp2;
28813 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28814 }
28815 {
28816 PyThreadState* __tstate = wxPyBeginAllowThreads();
28817 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
28818 wxPyEndAllowThreads(__tstate);
28819 if (PyErr_Occurred()) SWIG_fail;
28820 }
28821 {
28822 #if wxUSE_UNICODE
28823 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
28824 #else
28825 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
28826 #endif
28827 }
28828 return resultobj;
28829 fail:
28830 return NULL;
28831 }
28832
28833
28834 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28835 PyObject *resultobj = 0;
28836 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28837 wxString *arg2 = 0 ;
28838 wxColour *arg3 = 0 ;
28839 void *argp1 = 0 ;
28840 int res1 = 0 ;
28841 bool temp2 = false ;
28842 wxColour temp3 ;
28843 PyObject * obj0 = 0 ;
28844 PyObject * obj1 = 0 ;
28845 PyObject * obj2 = 0 ;
28846 char * kwnames[] = {
28847 (char *) "self",(char *) "name",(char *) "colour", NULL
28848 };
28849
28850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28852 if (!SWIG_IsOK(res1)) {
28853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28854 }
28855 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28856 {
28857 arg2 = wxString_in_helper(obj1);
28858 if (arg2 == NULL) SWIG_fail;
28859 temp2 = true;
28860 }
28861 {
28862 arg3 = &temp3;
28863 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28864 }
28865 {
28866 PyThreadState* __tstate = wxPyBeginAllowThreads();
28867 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
28868 wxPyEndAllowThreads(__tstate);
28869 if (PyErr_Occurred()) SWIG_fail;
28870 }
28871 resultobj = SWIG_Py_Void();
28872 {
28873 if (temp2)
28874 delete arg2;
28875 }
28876 return resultobj;
28877 fail:
28878 {
28879 if (temp2)
28880 delete arg2;
28881 }
28882 return NULL;
28883 }
28884
28885
28886 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28887 PyObject *resultobj = 0;
28888 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
28889 wxString *arg2 = 0 ;
28890 int arg3 ;
28891 int arg4 ;
28892 int arg5 ;
28893 void *argp1 = 0 ;
28894 int res1 = 0 ;
28895 bool temp2 = false ;
28896 int val3 ;
28897 int ecode3 = 0 ;
28898 int val4 ;
28899 int ecode4 = 0 ;
28900 int val5 ;
28901 int ecode5 = 0 ;
28902 PyObject * obj0 = 0 ;
28903 PyObject * obj1 = 0 ;
28904 PyObject * obj2 = 0 ;
28905 PyObject * obj3 = 0 ;
28906 PyObject * obj4 = 0 ;
28907 char * kwnames[] = {
28908 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
28909 };
28910
28911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
28913 if (!SWIG_IsOK(res1)) {
28914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
28915 }
28916 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
28917 {
28918 arg2 = wxString_in_helper(obj1);
28919 if (arg2 == NULL) SWIG_fail;
28920 temp2 = true;
28921 }
28922 ecode3 = SWIG_AsVal_int(obj2, &val3);
28923 if (!SWIG_IsOK(ecode3)) {
28924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
28925 }
28926 arg3 = static_cast< int >(val3);
28927 ecode4 = SWIG_AsVal_int(obj3, &val4);
28928 if (!SWIG_IsOK(ecode4)) {
28929 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
28930 }
28931 arg4 = static_cast< int >(val4);
28932 ecode5 = SWIG_AsVal_int(obj4, &val5);
28933 if (!SWIG_IsOK(ecode5)) {
28934 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
28935 }
28936 arg5 = static_cast< int >(val5);
28937 {
28938 PyThreadState* __tstate = wxPyBeginAllowThreads();
28939 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
28940 wxPyEndAllowThreads(__tstate);
28941 if (PyErr_Occurred()) SWIG_fail;
28942 }
28943 resultobj = SWIG_Py_Void();
28944 {
28945 if (temp2)
28946 delete arg2;
28947 }
28948 return resultobj;
28949 fail:
28950 {
28951 if (temp2)
28952 delete arg2;
28953 }
28954 return NULL;
28955 }
28956
28957
28958 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28959 PyObject *obj;
28960 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28961 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
28962 return SWIG_Py_Void();
28963 }
28964
28965 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28966 return SWIG_Python_InitShadowInstance(args);
28967 }
28968
28969 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28970 PyObject *resultobj = 0;
28971 wxFontList *result = 0 ;
28972
28973 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
28974 {
28975 PyThreadState* __tstate = wxPyBeginAllowThreads();
28976 result = (wxFontList *)_wxPyInitTheFontList();
28977 wxPyEndAllowThreads(__tstate);
28978 if (PyErr_Occurred()) SWIG_fail;
28979 }
28980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
28981 return resultobj;
28982 fail:
28983 return NULL;
28984 }
28985
28986
28987 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28988 PyObject *resultobj = 0;
28989 wxPenList *result = 0 ;
28990
28991 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
28992 {
28993 PyThreadState* __tstate = wxPyBeginAllowThreads();
28994 result = (wxPenList *)_wxPyInitThePenList();
28995 wxPyEndAllowThreads(__tstate);
28996 if (PyErr_Occurred()) SWIG_fail;
28997 }
28998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
28999 return resultobj;
29000 fail:
29001 return NULL;
29002 }
29003
29004
29005 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29006 PyObject *resultobj = 0;
29007 wxBrushList *result = 0 ;
29008
29009 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29010 {
29011 PyThreadState* __tstate = wxPyBeginAllowThreads();
29012 result = (wxBrushList *)_wxPyInitTheBrushList();
29013 wxPyEndAllowThreads(__tstate);
29014 if (PyErr_Occurred()) SWIG_fail;
29015 }
29016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29017 return resultobj;
29018 fail:
29019 return NULL;
29020 }
29021
29022
29023 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29024 PyObject *resultobj = 0;
29025 wxColourDatabase *result = 0 ;
29026
29027 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29028 {
29029 PyThreadState* __tstate = wxPyBeginAllowThreads();
29030 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29031 wxPyEndAllowThreads(__tstate);
29032 if (PyErr_Occurred()) SWIG_fail;
29033 }
29034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29035 return resultobj;
29036 fail:
29037 return NULL;
29038 }
29039
29040
29041 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29042 PyObject *resultobj = 0;
29043 wxEffects *result = 0 ;
29044
29045 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29046 {
29047 PyThreadState* __tstate = wxPyBeginAllowThreads();
29048 result = (wxEffects *)new wxEffects();
29049 wxPyEndAllowThreads(__tstate);
29050 if (PyErr_Occurred()) SWIG_fail;
29051 }
29052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29053 return resultobj;
29054 fail:
29055 return NULL;
29056 }
29057
29058
29059 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29060 PyObject *resultobj = 0;
29061 wxEffects *arg1 = (wxEffects *) 0 ;
29062 wxColour result;
29063 void *argp1 = 0 ;
29064 int res1 = 0 ;
29065 PyObject *swig_obj[1] ;
29066
29067 if (!args) SWIG_fail;
29068 swig_obj[0] = args;
29069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29070 if (!SWIG_IsOK(res1)) {
29071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29072 }
29073 arg1 = reinterpret_cast< wxEffects * >(argp1);
29074 {
29075 PyThreadState* __tstate = wxPyBeginAllowThreads();
29076 result = ((wxEffects const *)arg1)->GetHighlightColour();
29077 wxPyEndAllowThreads(__tstate);
29078 if (PyErr_Occurred()) SWIG_fail;
29079 }
29080 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29081 return resultobj;
29082 fail:
29083 return NULL;
29084 }
29085
29086
29087 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29088 PyObject *resultobj = 0;
29089 wxEffects *arg1 = (wxEffects *) 0 ;
29090 wxColour result;
29091 void *argp1 = 0 ;
29092 int res1 = 0 ;
29093 PyObject *swig_obj[1] ;
29094
29095 if (!args) SWIG_fail;
29096 swig_obj[0] = args;
29097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29098 if (!SWIG_IsOK(res1)) {
29099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29100 }
29101 arg1 = reinterpret_cast< wxEffects * >(argp1);
29102 {
29103 PyThreadState* __tstate = wxPyBeginAllowThreads();
29104 result = ((wxEffects const *)arg1)->GetLightShadow();
29105 wxPyEndAllowThreads(__tstate);
29106 if (PyErr_Occurred()) SWIG_fail;
29107 }
29108 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29109 return resultobj;
29110 fail:
29111 return NULL;
29112 }
29113
29114
29115 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29116 PyObject *resultobj = 0;
29117 wxEffects *arg1 = (wxEffects *) 0 ;
29118 wxColour result;
29119 void *argp1 = 0 ;
29120 int res1 = 0 ;
29121 PyObject *swig_obj[1] ;
29122
29123 if (!args) SWIG_fail;
29124 swig_obj[0] = args;
29125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29126 if (!SWIG_IsOK(res1)) {
29127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29128 }
29129 arg1 = reinterpret_cast< wxEffects * >(argp1);
29130 {
29131 PyThreadState* __tstate = wxPyBeginAllowThreads();
29132 result = ((wxEffects const *)arg1)->GetFaceColour();
29133 wxPyEndAllowThreads(__tstate);
29134 if (PyErr_Occurred()) SWIG_fail;
29135 }
29136 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29137 return resultobj;
29138 fail:
29139 return NULL;
29140 }
29141
29142
29143 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29144 PyObject *resultobj = 0;
29145 wxEffects *arg1 = (wxEffects *) 0 ;
29146 wxColour result;
29147 void *argp1 = 0 ;
29148 int res1 = 0 ;
29149 PyObject *swig_obj[1] ;
29150
29151 if (!args) SWIG_fail;
29152 swig_obj[0] = args;
29153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29154 if (!SWIG_IsOK(res1)) {
29155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29156 }
29157 arg1 = reinterpret_cast< wxEffects * >(argp1);
29158 {
29159 PyThreadState* __tstate = wxPyBeginAllowThreads();
29160 result = ((wxEffects const *)arg1)->GetMediumShadow();
29161 wxPyEndAllowThreads(__tstate);
29162 if (PyErr_Occurred()) SWIG_fail;
29163 }
29164 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29165 return resultobj;
29166 fail:
29167 return NULL;
29168 }
29169
29170
29171 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29172 PyObject *resultobj = 0;
29173 wxEffects *arg1 = (wxEffects *) 0 ;
29174 wxColour result;
29175 void *argp1 = 0 ;
29176 int res1 = 0 ;
29177 PyObject *swig_obj[1] ;
29178
29179 if (!args) SWIG_fail;
29180 swig_obj[0] = args;
29181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29182 if (!SWIG_IsOK(res1)) {
29183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29184 }
29185 arg1 = reinterpret_cast< wxEffects * >(argp1);
29186 {
29187 PyThreadState* __tstate = wxPyBeginAllowThreads();
29188 result = ((wxEffects const *)arg1)->GetDarkShadow();
29189 wxPyEndAllowThreads(__tstate);
29190 if (PyErr_Occurred()) SWIG_fail;
29191 }
29192 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29193 return resultobj;
29194 fail:
29195 return NULL;
29196 }
29197
29198
29199 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29200 PyObject *resultobj = 0;
29201 wxEffects *arg1 = (wxEffects *) 0 ;
29202 wxColour *arg2 = 0 ;
29203 void *argp1 = 0 ;
29204 int res1 = 0 ;
29205 wxColour temp2 ;
29206 PyObject * obj0 = 0 ;
29207 PyObject * obj1 = 0 ;
29208 char * kwnames[] = {
29209 (char *) "self",(char *) "c", NULL
29210 };
29211
29212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29214 if (!SWIG_IsOK(res1)) {
29215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29216 }
29217 arg1 = reinterpret_cast< wxEffects * >(argp1);
29218 {
29219 arg2 = &temp2;
29220 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29221 }
29222 {
29223 PyThreadState* __tstate = wxPyBeginAllowThreads();
29224 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29225 wxPyEndAllowThreads(__tstate);
29226 if (PyErr_Occurred()) SWIG_fail;
29227 }
29228 resultobj = SWIG_Py_Void();
29229 return resultobj;
29230 fail:
29231 return NULL;
29232 }
29233
29234
29235 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29236 PyObject *resultobj = 0;
29237 wxEffects *arg1 = (wxEffects *) 0 ;
29238 wxColour *arg2 = 0 ;
29239 void *argp1 = 0 ;
29240 int res1 = 0 ;
29241 wxColour temp2 ;
29242 PyObject * obj0 = 0 ;
29243 PyObject * obj1 = 0 ;
29244 char * kwnames[] = {
29245 (char *) "self",(char *) "c", NULL
29246 };
29247
29248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29250 if (!SWIG_IsOK(res1)) {
29251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29252 }
29253 arg1 = reinterpret_cast< wxEffects * >(argp1);
29254 {
29255 arg2 = &temp2;
29256 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29257 }
29258 {
29259 PyThreadState* __tstate = wxPyBeginAllowThreads();
29260 (arg1)->SetLightShadow((wxColour const &)*arg2);
29261 wxPyEndAllowThreads(__tstate);
29262 if (PyErr_Occurred()) SWIG_fail;
29263 }
29264 resultobj = SWIG_Py_Void();
29265 return resultobj;
29266 fail:
29267 return NULL;
29268 }
29269
29270
29271 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29272 PyObject *resultobj = 0;
29273 wxEffects *arg1 = (wxEffects *) 0 ;
29274 wxColour *arg2 = 0 ;
29275 void *argp1 = 0 ;
29276 int res1 = 0 ;
29277 wxColour temp2 ;
29278 PyObject * obj0 = 0 ;
29279 PyObject * obj1 = 0 ;
29280 char * kwnames[] = {
29281 (char *) "self",(char *) "c", NULL
29282 };
29283
29284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29286 if (!SWIG_IsOK(res1)) {
29287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29288 }
29289 arg1 = reinterpret_cast< wxEffects * >(argp1);
29290 {
29291 arg2 = &temp2;
29292 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29293 }
29294 {
29295 PyThreadState* __tstate = wxPyBeginAllowThreads();
29296 (arg1)->SetFaceColour((wxColour const &)*arg2);
29297 wxPyEndAllowThreads(__tstate);
29298 if (PyErr_Occurred()) SWIG_fail;
29299 }
29300 resultobj = SWIG_Py_Void();
29301 return resultobj;
29302 fail:
29303 return NULL;
29304 }
29305
29306
29307 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29308 PyObject *resultobj = 0;
29309 wxEffects *arg1 = (wxEffects *) 0 ;
29310 wxColour *arg2 = 0 ;
29311 void *argp1 = 0 ;
29312 int res1 = 0 ;
29313 wxColour temp2 ;
29314 PyObject * obj0 = 0 ;
29315 PyObject * obj1 = 0 ;
29316 char * kwnames[] = {
29317 (char *) "self",(char *) "c", NULL
29318 };
29319
29320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29322 if (!SWIG_IsOK(res1)) {
29323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29324 }
29325 arg1 = reinterpret_cast< wxEffects * >(argp1);
29326 {
29327 arg2 = &temp2;
29328 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29329 }
29330 {
29331 PyThreadState* __tstate = wxPyBeginAllowThreads();
29332 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29333 wxPyEndAllowThreads(__tstate);
29334 if (PyErr_Occurred()) SWIG_fail;
29335 }
29336 resultobj = SWIG_Py_Void();
29337 return resultobj;
29338 fail:
29339 return NULL;
29340 }
29341
29342
29343 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29344 PyObject *resultobj = 0;
29345 wxEffects *arg1 = (wxEffects *) 0 ;
29346 wxColour *arg2 = 0 ;
29347 void *argp1 = 0 ;
29348 int res1 = 0 ;
29349 wxColour temp2 ;
29350 PyObject * obj0 = 0 ;
29351 PyObject * obj1 = 0 ;
29352 char * kwnames[] = {
29353 (char *) "self",(char *) "c", NULL
29354 };
29355
29356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29358 if (!SWIG_IsOK(res1)) {
29359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29360 }
29361 arg1 = reinterpret_cast< wxEffects * >(argp1);
29362 {
29363 arg2 = &temp2;
29364 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29365 }
29366 {
29367 PyThreadState* __tstate = wxPyBeginAllowThreads();
29368 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29369 wxPyEndAllowThreads(__tstate);
29370 if (PyErr_Occurred()) SWIG_fail;
29371 }
29372 resultobj = SWIG_Py_Void();
29373 return resultobj;
29374 fail:
29375 return NULL;
29376 }
29377
29378
29379 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29380 PyObject *resultobj = 0;
29381 wxEffects *arg1 = (wxEffects *) 0 ;
29382 wxColour *arg2 = 0 ;
29383 wxColour *arg3 = 0 ;
29384 wxColour *arg4 = 0 ;
29385 wxColour *arg5 = 0 ;
29386 wxColour *arg6 = 0 ;
29387 void *argp1 = 0 ;
29388 int res1 = 0 ;
29389 wxColour temp2 ;
29390 wxColour temp3 ;
29391 wxColour temp4 ;
29392 wxColour temp5 ;
29393 wxColour temp6 ;
29394 PyObject * obj0 = 0 ;
29395 PyObject * obj1 = 0 ;
29396 PyObject * obj2 = 0 ;
29397 PyObject * obj3 = 0 ;
29398 PyObject * obj4 = 0 ;
29399 PyObject * obj5 = 0 ;
29400 char * kwnames[] = {
29401 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29402 };
29403
29404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29406 if (!SWIG_IsOK(res1)) {
29407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29408 }
29409 arg1 = reinterpret_cast< wxEffects * >(argp1);
29410 {
29411 arg2 = &temp2;
29412 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29413 }
29414 {
29415 arg3 = &temp3;
29416 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29417 }
29418 {
29419 arg4 = &temp4;
29420 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29421 }
29422 {
29423 arg5 = &temp5;
29424 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29425 }
29426 {
29427 arg6 = &temp6;
29428 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29429 }
29430 {
29431 PyThreadState* __tstate = wxPyBeginAllowThreads();
29432 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29433 wxPyEndAllowThreads(__tstate);
29434 if (PyErr_Occurred()) SWIG_fail;
29435 }
29436 resultobj = SWIG_Py_Void();
29437 return resultobj;
29438 fail:
29439 return NULL;
29440 }
29441
29442
29443 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29444 PyObject *resultobj = 0;
29445 wxEffects *arg1 = (wxEffects *) 0 ;
29446 wxDC *arg2 = 0 ;
29447 wxRect *arg3 = 0 ;
29448 int arg4 = (int) 1 ;
29449 void *argp1 = 0 ;
29450 int res1 = 0 ;
29451 void *argp2 = 0 ;
29452 int res2 = 0 ;
29453 wxRect temp3 ;
29454 int val4 ;
29455 int ecode4 = 0 ;
29456 PyObject * obj0 = 0 ;
29457 PyObject * obj1 = 0 ;
29458 PyObject * obj2 = 0 ;
29459 PyObject * obj3 = 0 ;
29460 char * kwnames[] = {
29461 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29462 };
29463
29464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29466 if (!SWIG_IsOK(res1)) {
29467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29468 }
29469 arg1 = reinterpret_cast< wxEffects * >(argp1);
29470 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29471 if (!SWIG_IsOK(res2)) {
29472 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29473 }
29474 if (!argp2) {
29475 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29476 }
29477 arg2 = reinterpret_cast< wxDC * >(argp2);
29478 {
29479 arg3 = &temp3;
29480 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29481 }
29482 if (obj3) {
29483 ecode4 = SWIG_AsVal_int(obj3, &val4);
29484 if (!SWIG_IsOK(ecode4)) {
29485 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
29486 }
29487 arg4 = static_cast< int >(val4);
29488 }
29489 {
29490 PyThreadState* __tstate = wxPyBeginAllowThreads();
29491 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
29492 wxPyEndAllowThreads(__tstate);
29493 if (PyErr_Occurred()) SWIG_fail;
29494 }
29495 resultobj = SWIG_Py_Void();
29496 return resultobj;
29497 fail:
29498 return NULL;
29499 }
29500
29501
29502 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29503 PyObject *resultobj = 0;
29504 wxEffects *arg1 = (wxEffects *) 0 ;
29505 wxRect *arg2 = 0 ;
29506 wxDC *arg3 = 0 ;
29507 wxBitmap *arg4 = 0 ;
29508 bool result;
29509 void *argp1 = 0 ;
29510 int res1 = 0 ;
29511 wxRect temp2 ;
29512 void *argp3 = 0 ;
29513 int res3 = 0 ;
29514 void *argp4 = 0 ;
29515 int res4 = 0 ;
29516 PyObject * obj0 = 0 ;
29517 PyObject * obj1 = 0 ;
29518 PyObject * obj2 = 0 ;
29519 PyObject * obj3 = 0 ;
29520 char * kwnames[] = {
29521 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
29522 };
29523
29524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29526 if (!SWIG_IsOK(res1)) {
29527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
29528 }
29529 arg1 = reinterpret_cast< wxEffects * >(argp1);
29530 {
29531 arg2 = &temp2;
29532 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29533 }
29534 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
29535 if (!SWIG_IsOK(res3)) {
29536 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29537 }
29538 if (!argp3) {
29539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
29540 }
29541 arg3 = reinterpret_cast< wxDC * >(argp3);
29542 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
29543 if (!SWIG_IsOK(res4)) {
29544 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29545 }
29546 if (!argp4) {
29547 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
29548 }
29549 arg4 = reinterpret_cast< wxBitmap * >(argp4);
29550 {
29551 PyThreadState* __tstate = wxPyBeginAllowThreads();
29552 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
29553 wxPyEndAllowThreads(__tstate);
29554 if (PyErr_Occurred()) SWIG_fail;
29555 }
29556 {
29557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
29558 }
29559 return resultobj;
29560 fail:
29561 return NULL;
29562 }
29563
29564
29565 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29566 PyObject *obj;
29567 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29568 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
29569 return SWIG_Py_Void();
29570 }
29571
29572 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29573 return SWIG_Python_InitShadowInstance(args);
29574 }
29575
29576 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29577 PyObject *resultobj = 0;
29578 int arg1 ;
29579 int arg2 ;
29580 bool arg3 ;
29581 wxSplitterRenderParams *result = 0 ;
29582 int val1 ;
29583 int ecode1 = 0 ;
29584 int val2 ;
29585 int ecode2 = 0 ;
29586 bool val3 ;
29587 int ecode3 = 0 ;
29588 PyObject * obj0 = 0 ;
29589 PyObject * obj1 = 0 ;
29590 PyObject * obj2 = 0 ;
29591 char * kwnames[] = {
29592 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
29593 };
29594
29595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29596 ecode1 = SWIG_AsVal_int(obj0, &val1);
29597 if (!SWIG_IsOK(ecode1)) {
29598 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
29599 }
29600 arg1 = static_cast< int >(val1);
29601 ecode2 = SWIG_AsVal_int(obj1, &val2);
29602 if (!SWIG_IsOK(ecode2)) {
29603 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
29604 }
29605 arg2 = static_cast< int >(val2);
29606 ecode3 = SWIG_AsVal_bool(obj2, &val3);
29607 if (!SWIG_IsOK(ecode3)) {
29608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
29609 }
29610 arg3 = static_cast< bool >(val3);
29611 {
29612 PyThreadState* __tstate = wxPyBeginAllowThreads();
29613 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
29614 wxPyEndAllowThreads(__tstate);
29615 if (PyErr_Occurred()) SWIG_fail;
29616 }
29617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
29618 return resultobj;
29619 fail:
29620 return NULL;
29621 }
29622
29623
29624 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29625 PyObject *resultobj = 0;
29626 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29627 void *argp1 = 0 ;
29628 int res1 = 0 ;
29629 PyObject *swig_obj[1] ;
29630
29631 if (!args) SWIG_fail;
29632 swig_obj[0] = args;
29633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
29634 if (!SWIG_IsOK(res1)) {
29635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29636 }
29637 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29638 {
29639 PyThreadState* __tstate = wxPyBeginAllowThreads();
29640 delete arg1;
29641
29642 wxPyEndAllowThreads(__tstate);
29643 if (PyErr_Occurred()) SWIG_fail;
29644 }
29645 resultobj = SWIG_Py_Void();
29646 return resultobj;
29647 fail:
29648 return NULL;
29649 }
29650
29651
29652 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29653 PyObject *resultobj = 0;
29654 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29655 int result;
29656 void *argp1 = 0 ;
29657 int res1 = 0 ;
29658 PyObject *swig_obj[1] ;
29659
29660 if (!args) SWIG_fail;
29661 swig_obj[0] = args;
29662 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29663 if (!SWIG_IsOK(res1)) {
29664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29665 }
29666 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29667 result = (int)(int) ((arg1)->widthSash);
29668 resultobj = SWIG_From_int(static_cast< int >(result));
29669 return resultobj;
29670 fail:
29671 return NULL;
29672 }
29673
29674
29675 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29676 PyObject *resultobj = 0;
29677 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29678 int result;
29679 void *argp1 = 0 ;
29680 int res1 = 0 ;
29681 PyObject *swig_obj[1] ;
29682
29683 if (!args) SWIG_fail;
29684 swig_obj[0] = args;
29685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29686 if (!SWIG_IsOK(res1)) {
29687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29688 }
29689 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29690 result = (int)(int) ((arg1)->border);
29691 resultobj = SWIG_From_int(static_cast< int >(result));
29692 return resultobj;
29693 fail:
29694 return NULL;
29695 }
29696
29697
29698 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29699 PyObject *resultobj = 0;
29700 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
29701 bool result;
29702 void *argp1 = 0 ;
29703 int res1 = 0 ;
29704 PyObject *swig_obj[1] ;
29705
29706 if (!args) SWIG_fail;
29707 swig_obj[0] = args;
29708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
29709 if (!SWIG_IsOK(res1)) {
29710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
29711 }
29712 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
29713 result = (bool)(bool) ((arg1)->isHotSensitive);
29714 resultobj = SWIG_From_bool(static_cast< bool >(result));
29715 return resultobj;
29716 fail:
29717 return NULL;
29718 }
29719
29720
29721 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29722 PyObject *obj;
29723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29724 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
29725 return SWIG_Py_Void();
29726 }
29727
29728 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29729 return SWIG_Python_InitShadowInstance(args);
29730 }
29731
29732 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29733 PyObject *resultobj = 0;
29734 wxHeaderButtonParams *result = 0 ;
29735
29736 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
29737 {
29738 PyThreadState* __tstate = wxPyBeginAllowThreads();
29739 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
29740 wxPyEndAllowThreads(__tstate);
29741 if (PyErr_Occurred()) SWIG_fail;
29742 }
29743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
29744 return resultobj;
29745 fail:
29746 return NULL;
29747 }
29748
29749
29750 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29751 PyObject *resultobj = 0;
29752 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29753 void *argp1 = 0 ;
29754 int res1 = 0 ;
29755 PyObject *swig_obj[1] ;
29756
29757 if (!args) SWIG_fail;
29758 swig_obj[0] = args;
29759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
29760 if (!SWIG_IsOK(res1)) {
29761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29762 }
29763 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29764 {
29765 PyThreadState* __tstate = wxPyBeginAllowThreads();
29766 delete arg1;
29767
29768 wxPyEndAllowThreads(__tstate);
29769 if (PyErr_Occurred()) SWIG_fail;
29770 }
29771 resultobj = SWIG_Py_Void();
29772 return resultobj;
29773 fail:
29774 return NULL;
29775 }
29776
29777
29778 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29779 PyObject *resultobj = 0;
29780 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29781 wxColour *arg2 = (wxColour *) 0 ;
29782 void *argp1 = 0 ;
29783 int res1 = 0 ;
29784 wxColour temp2 ;
29785 PyObject *swig_obj[2] ;
29786
29787 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
29788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29789 if (!SWIG_IsOK(res1)) {
29790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29791 }
29792 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29793 {
29794 arg2 = &temp2;
29795 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29796 }
29797 if (arg1) (arg1)->m_arrowColour = *arg2;
29798
29799 resultobj = SWIG_Py_Void();
29800 return resultobj;
29801 fail:
29802 return NULL;
29803 }
29804
29805
29806 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29807 PyObject *resultobj = 0;
29808 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29809 wxColour *result = 0 ;
29810 void *argp1 = 0 ;
29811 int res1 = 0 ;
29812 PyObject *swig_obj[1] ;
29813
29814 if (!args) SWIG_fail;
29815 swig_obj[0] = args;
29816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29817 if (!SWIG_IsOK(res1)) {
29818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29819 }
29820 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29821 result = (wxColour *)& ((arg1)->m_arrowColour);
29822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29823 return resultobj;
29824 fail:
29825 return NULL;
29826 }
29827
29828
29829 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29830 PyObject *resultobj = 0;
29831 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29832 wxColour *arg2 = (wxColour *) 0 ;
29833 void *argp1 = 0 ;
29834 int res1 = 0 ;
29835 wxColour temp2 ;
29836 PyObject *swig_obj[2] ;
29837
29838 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
29839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29840 if (!SWIG_IsOK(res1)) {
29841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29842 }
29843 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29844 {
29845 arg2 = &temp2;
29846 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
29847 }
29848 if (arg1) (arg1)->m_selectionColour = *arg2;
29849
29850 resultobj = SWIG_Py_Void();
29851 return resultobj;
29852 fail:
29853 return NULL;
29854 }
29855
29856
29857 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29858 PyObject *resultobj = 0;
29859 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29860 wxColour *result = 0 ;
29861 void *argp1 = 0 ;
29862 int res1 = 0 ;
29863 PyObject *swig_obj[1] ;
29864
29865 if (!args) SWIG_fail;
29866 swig_obj[0] = args;
29867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29868 if (!SWIG_IsOK(res1)) {
29869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29870 }
29871 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29872 result = (wxColour *)& ((arg1)->m_selectionColour);
29873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
29874 return resultobj;
29875 fail:
29876 return NULL;
29877 }
29878
29879
29880 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29881 PyObject *resultobj = 0;
29882 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29883 wxString *arg2 = (wxString *) 0 ;
29884 void *argp1 = 0 ;
29885 int res1 = 0 ;
29886 bool temp2 = false ;
29887 PyObject *swig_obj[2] ;
29888
29889 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
29890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29891 if (!SWIG_IsOK(res1)) {
29892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29893 }
29894 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29895 {
29896 arg2 = wxString_in_helper(swig_obj[1]);
29897 if (arg2 == NULL) SWIG_fail;
29898 temp2 = true;
29899 }
29900 if (arg1) (arg1)->m_labelText = *arg2;
29901
29902 resultobj = SWIG_Py_Void();
29903 {
29904 if (temp2)
29905 delete arg2;
29906 }
29907 return resultobj;
29908 fail:
29909 {
29910 if (temp2)
29911 delete arg2;
29912 }
29913 return NULL;
29914 }
29915
29916
29917 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29918 PyObject *resultobj = 0;
29919 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29920 wxString *result = 0 ;
29921 void *argp1 = 0 ;
29922 int res1 = 0 ;
29923 PyObject *swig_obj[1] ;
29924
29925 if (!args) SWIG_fail;
29926 swig_obj[0] = args;
29927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29928 if (!SWIG_IsOK(res1)) {
29929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29930 }
29931 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29932 result = (wxString *)& ((arg1)->m_labelText);
29933 {
29934 #if wxUSE_UNICODE
29935 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
29936 #else
29937 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
29938 #endif
29939 }
29940 return resultobj;
29941 fail:
29942 return NULL;
29943 }
29944
29945
29946 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29947 PyObject *resultobj = 0;
29948 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29949 wxFont *arg2 = (wxFont *) 0 ;
29950 void *argp1 = 0 ;
29951 int res1 = 0 ;
29952 void *argp2 = 0 ;
29953 int res2 = 0 ;
29954 PyObject *swig_obj[2] ;
29955
29956 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
29957 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29958 if (!SWIG_IsOK(res1)) {
29959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29960 }
29961 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29962 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29963 if (!SWIG_IsOK(res2)) {
29964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
29965 }
29966 arg2 = reinterpret_cast< wxFont * >(argp2);
29967 if (arg1) (arg1)->m_labelFont = *arg2;
29968
29969 resultobj = SWIG_Py_Void();
29970 return resultobj;
29971 fail:
29972 return NULL;
29973 }
29974
29975
29976 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29977 PyObject *resultobj = 0;
29978 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
29979 wxFont *result = 0 ;
29980 void *argp1 = 0 ;
29981 int res1 = 0 ;
29982 PyObject *swig_obj[1] ;
29983
29984 if (!args) SWIG_fail;
29985 swig_obj[0] = args;
29986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
29987 if (!SWIG_IsOK(res1)) {
29988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
29989 }
29990 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
29991 result = (wxFont *)& ((arg1)->m_labelFont);
29992 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29993 return resultobj;
29994 fail:
29995 return NULL;
29996 }
29997
29998
29999 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30000 PyObject *resultobj = 0;
30001 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30002 wxColour *arg2 = (wxColour *) 0 ;
30003 void *argp1 = 0 ;
30004 int res1 = 0 ;
30005 wxColour temp2 ;
30006 PyObject *swig_obj[2] ;
30007
30008 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30010 if (!SWIG_IsOK(res1)) {
30011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30012 }
30013 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30014 {
30015 arg2 = &temp2;
30016 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30017 }
30018 if (arg1) (arg1)->m_labelColour = *arg2;
30019
30020 resultobj = SWIG_Py_Void();
30021 return resultobj;
30022 fail:
30023 return NULL;
30024 }
30025
30026
30027 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30028 PyObject *resultobj = 0;
30029 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30030 wxColour *result = 0 ;
30031 void *argp1 = 0 ;
30032 int res1 = 0 ;
30033 PyObject *swig_obj[1] ;
30034
30035 if (!args) SWIG_fail;
30036 swig_obj[0] = args;
30037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30038 if (!SWIG_IsOK(res1)) {
30039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30040 }
30041 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30042 result = (wxColour *)& ((arg1)->m_labelColour);
30043 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30044 return resultobj;
30045 fail:
30046 return NULL;
30047 }
30048
30049
30050 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30051 PyObject *resultobj = 0;
30052 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30053 wxBitmap *arg2 = (wxBitmap *) 0 ;
30054 void *argp1 = 0 ;
30055 int res1 = 0 ;
30056 void *argp2 = 0 ;
30057 int res2 = 0 ;
30058 PyObject *swig_obj[2] ;
30059
30060 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30062 if (!SWIG_IsOK(res1)) {
30063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30064 }
30065 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30066 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30067 if (!SWIG_IsOK(res2)) {
30068 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30069 }
30070 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30071 if (arg1) (arg1)->m_labelBitmap = *arg2;
30072
30073 resultobj = SWIG_Py_Void();
30074 return resultobj;
30075 fail:
30076 return NULL;
30077 }
30078
30079
30080 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30081 PyObject *resultobj = 0;
30082 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30083 wxBitmap *result = 0 ;
30084 void *argp1 = 0 ;
30085 int res1 = 0 ;
30086 PyObject *swig_obj[1] ;
30087
30088 if (!args) SWIG_fail;
30089 swig_obj[0] = args;
30090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30091 if (!SWIG_IsOK(res1)) {
30092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30093 }
30094 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30095 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30096 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30097 return resultobj;
30098 fail:
30099 return NULL;
30100 }
30101
30102
30103 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30104 PyObject *resultobj = 0;
30105 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30106 int arg2 ;
30107 void *argp1 = 0 ;
30108 int res1 = 0 ;
30109 int val2 ;
30110 int ecode2 = 0 ;
30111 PyObject *swig_obj[2] ;
30112
30113 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30115 if (!SWIG_IsOK(res1)) {
30116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30117 }
30118 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30119 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30120 if (!SWIG_IsOK(ecode2)) {
30121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30122 }
30123 arg2 = static_cast< int >(val2);
30124 if (arg1) (arg1)->m_labelAlignment = arg2;
30125
30126 resultobj = SWIG_Py_Void();
30127 return resultobj;
30128 fail:
30129 return NULL;
30130 }
30131
30132
30133 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30134 PyObject *resultobj = 0;
30135 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30136 int result;
30137 void *argp1 = 0 ;
30138 int res1 = 0 ;
30139 PyObject *swig_obj[1] ;
30140
30141 if (!args) SWIG_fail;
30142 swig_obj[0] = args;
30143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30144 if (!SWIG_IsOK(res1)) {
30145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30146 }
30147 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30148 result = (int) ((arg1)->m_labelAlignment);
30149 resultobj = SWIG_From_int(static_cast< int >(result));
30150 return resultobj;
30151 fail:
30152 return NULL;
30153 }
30154
30155
30156 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30157 PyObject *obj;
30158 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30159 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30160 return SWIG_Py_Void();
30161 }
30162
30163 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30164 return SWIG_Python_InitShadowInstance(args);
30165 }
30166
30167 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30168 PyObject *resultobj = 0;
30169 int arg1 ;
30170 int arg2 ;
30171 wxRendererVersion *result = 0 ;
30172 int val1 ;
30173 int ecode1 = 0 ;
30174 int val2 ;
30175 int ecode2 = 0 ;
30176 PyObject * obj0 = 0 ;
30177 PyObject * obj1 = 0 ;
30178 char * kwnames[] = {
30179 (char *) "version_",(char *) "age_", NULL
30180 };
30181
30182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30183 ecode1 = SWIG_AsVal_int(obj0, &val1);
30184 if (!SWIG_IsOK(ecode1)) {
30185 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30186 }
30187 arg1 = static_cast< int >(val1);
30188 ecode2 = SWIG_AsVal_int(obj1, &val2);
30189 if (!SWIG_IsOK(ecode2)) {
30190 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30191 }
30192 arg2 = static_cast< int >(val2);
30193 {
30194 PyThreadState* __tstate = wxPyBeginAllowThreads();
30195 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30196 wxPyEndAllowThreads(__tstate);
30197 if (PyErr_Occurred()) SWIG_fail;
30198 }
30199 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30200 return resultobj;
30201 fail:
30202 return NULL;
30203 }
30204
30205
30206 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30207 PyObject *resultobj = 0;
30208 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30209 void *argp1 = 0 ;
30210 int res1 = 0 ;
30211 PyObject *swig_obj[1] ;
30212
30213 if (!args) SWIG_fail;
30214 swig_obj[0] = args;
30215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30216 if (!SWIG_IsOK(res1)) {
30217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30218 }
30219 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30220 {
30221 PyThreadState* __tstate = wxPyBeginAllowThreads();
30222 delete arg1;
30223
30224 wxPyEndAllowThreads(__tstate);
30225 if (PyErr_Occurred()) SWIG_fail;
30226 }
30227 resultobj = SWIG_Py_Void();
30228 return resultobj;
30229 fail:
30230 return NULL;
30231 }
30232
30233
30234 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30235 PyObject *resultobj = 0;
30236 wxRendererVersion *arg1 = 0 ;
30237 bool result;
30238 void *argp1 = 0 ;
30239 int res1 = 0 ;
30240 PyObject * obj0 = 0 ;
30241 char * kwnames[] = {
30242 (char *) "ver", NULL
30243 };
30244
30245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30246 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30247 if (!SWIG_IsOK(res1)) {
30248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30249 }
30250 if (!argp1) {
30251 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30252 }
30253 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30254 {
30255 PyThreadState* __tstate = wxPyBeginAllowThreads();
30256 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30257 wxPyEndAllowThreads(__tstate);
30258 if (PyErr_Occurred()) SWIG_fail;
30259 }
30260 {
30261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30262 }
30263 return resultobj;
30264 fail:
30265 return NULL;
30266 }
30267
30268
30269 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30270 PyObject *resultobj = 0;
30271 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30272 int result;
30273 void *argp1 = 0 ;
30274 int res1 = 0 ;
30275 PyObject *swig_obj[1] ;
30276
30277 if (!args) SWIG_fail;
30278 swig_obj[0] = args;
30279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30280 if (!SWIG_IsOK(res1)) {
30281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30282 }
30283 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30284 result = (int)(int) ((arg1)->version);
30285 resultobj = SWIG_From_int(static_cast< int >(result));
30286 return resultobj;
30287 fail:
30288 return NULL;
30289 }
30290
30291
30292 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30293 PyObject *resultobj = 0;
30294 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30295 int result;
30296 void *argp1 = 0 ;
30297 int res1 = 0 ;
30298 PyObject *swig_obj[1] ;
30299
30300 if (!args) SWIG_fail;
30301 swig_obj[0] = args;
30302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30303 if (!SWIG_IsOK(res1)) {
30304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30305 }
30306 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30307 result = (int)(int) ((arg1)->age);
30308 resultobj = SWIG_From_int(static_cast< int >(result));
30309 return resultobj;
30310 fail:
30311 return NULL;
30312 }
30313
30314
30315 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30316 PyObject *obj;
30317 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30318 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30319 return SWIG_Py_Void();
30320 }
30321
30322 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30323 return SWIG_Python_InitShadowInstance(args);
30324 }
30325
30326 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30327 PyObject *resultobj = 0;
30328 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30329 wxWindow *arg2 = (wxWindow *) 0 ;
30330 wxDC *arg3 = 0 ;
30331 wxRect *arg4 = 0 ;
30332 int arg5 = (int) 0 ;
30333 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30334 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30335 void *argp1 = 0 ;
30336 int res1 = 0 ;
30337 void *argp2 = 0 ;
30338 int res2 = 0 ;
30339 void *argp3 = 0 ;
30340 int res3 = 0 ;
30341 wxRect temp4 ;
30342 int val5 ;
30343 int ecode5 = 0 ;
30344 int val6 ;
30345 int ecode6 = 0 ;
30346 void *argp7 = 0 ;
30347 int res7 = 0 ;
30348 PyObject * obj0 = 0 ;
30349 PyObject * obj1 = 0 ;
30350 PyObject * obj2 = 0 ;
30351 PyObject * obj3 = 0 ;
30352 PyObject * obj4 = 0 ;
30353 PyObject * obj5 = 0 ;
30354 PyObject * obj6 = 0 ;
30355 char * kwnames[] = {
30356 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30357 };
30358
30359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30361 if (!SWIG_IsOK(res1)) {
30362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30363 }
30364 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30365 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30366 if (!SWIG_IsOK(res2)) {
30367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30368 }
30369 arg2 = reinterpret_cast< wxWindow * >(argp2);
30370 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30371 if (!SWIG_IsOK(res3)) {
30372 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30373 }
30374 if (!argp3) {
30375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30376 }
30377 arg3 = reinterpret_cast< wxDC * >(argp3);
30378 {
30379 arg4 = &temp4;
30380 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30381 }
30382 if (obj4) {
30383 ecode5 = SWIG_AsVal_int(obj4, &val5);
30384 if (!SWIG_IsOK(ecode5)) {
30385 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30386 }
30387 arg5 = static_cast< int >(val5);
30388 }
30389 if (obj5) {
30390 ecode6 = SWIG_AsVal_int(obj5, &val6);
30391 if (!SWIG_IsOK(ecode6)) {
30392 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30393 }
30394 arg6 = static_cast< wxHeaderSortIconType >(val6);
30395 }
30396 if (obj6) {
30397 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30398 if (!SWIG_IsOK(res7)) {
30399 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30400 }
30401 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30402 }
30403 {
30404 PyThreadState* __tstate = wxPyBeginAllowThreads();
30405 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30406 wxPyEndAllowThreads(__tstate);
30407 if (PyErr_Occurred()) SWIG_fail;
30408 }
30409 resultobj = SWIG_Py_Void();
30410 return resultobj;
30411 fail:
30412 return NULL;
30413 }
30414
30415
30416 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30417 PyObject *resultobj = 0;
30418 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30419 wxWindow *arg2 = (wxWindow *) 0 ;
30420 wxDC *arg3 = 0 ;
30421 wxRect *arg4 = 0 ;
30422 int arg5 = (int) 0 ;
30423 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30424 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30425 void *argp1 = 0 ;
30426 int res1 = 0 ;
30427 void *argp2 = 0 ;
30428 int res2 = 0 ;
30429 void *argp3 = 0 ;
30430 int res3 = 0 ;
30431 wxRect temp4 ;
30432 int val5 ;
30433 int ecode5 = 0 ;
30434 int val6 ;
30435 int ecode6 = 0 ;
30436 void *argp7 = 0 ;
30437 int res7 = 0 ;
30438 PyObject * obj0 = 0 ;
30439 PyObject * obj1 = 0 ;
30440 PyObject * obj2 = 0 ;
30441 PyObject * obj3 = 0 ;
30442 PyObject * obj4 = 0 ;
30443 PyObject * obj5 = 0 ;
30444 PyObject * obj6 = 0 ;
30445 char * kwnames[] = {
30446 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30447 };
30448
30449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30451 if (!SWIG_IsOK(res1)) {
30452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30453 }
30454 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30455 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30456 if (!SWIG_IsOK(res2)) {
30457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30458 }
30459 arg2 = reinterpret_cast< wxWindow * >(argp2);
30460 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30461 if (!SWIG_IsOK(res3)) {
30462 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30463 }
30464 if (!argp3) {
30465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30466 }
30467 arg3 = reinterpret_cast< wxDC * >(argp3);
30468 {
30469 arg4 = &temp4;
30470 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30471 }
30472 if (obj4) {
30473 ecode5 = SWIG_AsVal_int(obj4, &val5);
30474 if (!SWIG_IsOK(ecode5)) {
30475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30476 }
30477 arg5 = static_cast< int >(val5);
30478 }
30479 if (obj5) {
30480 ecode6 = SWIG_AsVal_int(obj5, &val6);
30481 if (!SWIG_IsOK(ecode6)) {
30482 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30483 }
30484 arg6 = static_cast< wxHeaderSortIconType >(val6);
30485 }
30486 if (obj6) {
30487 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30488 if (!SWIG_IsOK(res7)) {
30489 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30490 }
30491 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30492 }
30493 {
30494 PyThreadState* __tstate = wxPyBeginAllowThreads();
30495 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30496 wxPyEndAllowThreads(__tstate);
30497 if (PyErr_Occurred()) SWIG_fail;
30498 }
30499 resultobj = SWIG_Py_Void();
30500 return resultobj;
30501 fail:
30502 return NULL;
30503 }
30504
30505
30506 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30507 PyObject *resultobj = 0;
30508 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30509 wxWindow *arg2 = (wxWindow *) 0 ;
30510 int result;
30511 void *argp1 = 0 ;
30512 int res1 = 0 ;
30513 void *argp2 = 0 ;
30514 int res2 = 0 ;
30515 PyObject * obj0 = 0 ;
30516 PyObject * obj1 = 0 ;
30517 char * kwnames[] = {
30518 (char *) "self",(char *) "win", NULL
30519 };
30520
30521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
30522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30523 if (!SWIG_IsOK(res1)) {
30524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30525 }
30526 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30527 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30528 if (!SWIG_IsOK(res2)) {
30529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
30530 }
30531 arg2 = reinterpret_cast< wxWindow * >(argp2);
30532 {
30533 PyThreadState* __tstate = wxPyBeginAllowThreads();
30534 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
30535 wxPyEndAllowThreads(__tstate);
30536 if (PyErr_Occurred()) SWIG_fail;
30537 }
30538 resultobj = SWIG_From_int(static_cast< int >(result));
30539 return resultobj;
30540 fail:
30541 return NULL;
30542 }
30543
30544
30545 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30546 PyObject *resultobj = 0;
30547 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30548 wxWindow *arg2 = (wxWindow *) 0 ;
30549 wxDC *arg3 = 0 ;
30550 wxRect *arg4 = 0 ;
30551 int arg5 = (int) 0 ;
30552 void *argp1 = 0 ;
30553 int res1 = 0 ;
30554 void *argp2 = 0 ;
30555 int res2 = 0 ;
30556 void *argp3 = 0 ;
30557 int res3 = 0 ;
30558 wxRect temp4 ;
30559 int val5 ;
30560 int ecode5 = 0 ;
30561 PyObject * obj0 = 0 ;
30562 PyObject * obj1 = 0 ;
30563 PyObject * obj2 = 0 ;
30564 PyObject * obj3 = 0 ;
30565 PyObject * obj4 = 0 ;
30566 char * kwnames[] = {
30567 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30568 };
30569
30570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30572 if (!SWIG_IsOK(res1)) {
30573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30574 }
30575 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30576 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30577 if (!SWIG_IsOK(res2)) {
30578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30579 }
30580 arg2 = reinterpret_cast< wxWindow * >(argp2);
30581 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30582 if (!SWIG_IsOK(res3)) {
30583 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30584 }
30585 if (!argp3) {
30586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
30587 }
30588 arg3 = reinterpret_cast< wxDC * >(argp3);
30589 {
30590 arg4 = &temp4;
30591 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30592 }
30593 if (obj4) {
30594 ecode5 = SWIG_AsVal_int(obj4, &val5);
30595 if (!SWIG_IsOK(ecode5)) {
30596 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
30597 }
30598 arg5 = static_cast< int >(val5);
30599 }
30600 {
30601 PyThreadState* __tstate = wxPyBeginAllowThreads();
30602 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30603 wxPyEndAllowThreads(__tstate);
30604 if (PyErr_Occurred()) SWIG_fail;
30605 }
30606 resultobj = SWIG_Py_Void();
30607 return resultobj;
30608 fail:
30609 return NULL;
30610 }
30611
30612
30613 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30614 PyObject *resultobj = 0;
30615 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30616 wxWindow *arg2 = (wxWindow *) 0 ;
30617 wxDC *arg3 = 0 ;
30618 wxRect *arg4 = 0 ;
30619 int arg5 = (int) 0 ;
30620 void *argp1 = 0 ;
30621 int res1 = 0 ;
30622 void *argp2 = 0 ;
30623 int res2 = 0 ;
30624 void *argp3 = 0 ;
30625 int res3 = 0 ;
30626 wxRect temp4 ;
30627 int val5 ;
30628 int ecode5 = 0 ;
30629 PyObject * obj0 = 0 ;
30630 PyObject * obj1 = 0 ;
30631 PyObject * obj2 = 0 ;
30632 PyObject * obj3 = 0 ;
30633 PyObject * obj4 = 0 ;
30634 char * kwnames[] = {
30635 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30636 };
30637
30638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30640 if (!SWIG_IsOK(res1)) {
30641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30642 }
30643 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30644 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30645 if (!SWIG_IsOK(res2)) {
30646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
30647 }
30648 arg2 = reinterpret_cast< wxWindow * >(argp2);
30649 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30650 if (!SWIG_IsOK(res3)) {
30651 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30652 }
30653 if (!argp3) {
30654 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
30655 }
30656 arg3 = reinterpret_cast< wxDC * >(argp3);
30657 {
30658 arg4 = &temp4;
30659 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30660 }
30661 if (obj4) {
30662 ecode5 = SWIG_AsVal_int(obj4, &val5);
30663 if (!SWIG_IsOK(ecode5)) {
30664 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
30665 }
30666 arg5 = static_cast< int >(val5);
30667 }
30668 {
30669 PyThreadState* __tstate = wxPyBeginAllowThreads();
30670 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
30671 wxPyEndAllowThreads(__tstate);
30672 if (PyErr_Occurred()) SWIG_fail;
30673 }
30674 resultobj = SWIG_Py_Void();
30675 return resultobj;
30676 fail:
30677 return NULL;
30678 }
30679
30680
30681 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30682 PyObject *resultobj = 0;
30683 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30684 wxWindow *arg2 = (wxWindow *) 0 ;
30685 wxDC *arg3 = 0 ;
30686 wxSize *arg4 = 0 ;
30687 int arg5 ;
30688 wxOrientation arg6 ;
30689 int arg7 = (int) 0 ;
30690 void *argp1 = 0 ;
30691 int res1 = 0 ;
30692 void *argp2 = 0 ;
30693 int res2 = 0 ;
30694 void *argp3 = 0 ;
30695 int res3 = 0 ;
30696 wxSize temp4 ;
30697 int val5 ;
30698 int ecode5 = 0 ;
30699 int val6 ;
30700 int ecode6 = 0 ;
30701 int val7 ;
30702 int ecode7 = 0 ;
30703 PyObject * obj0 = 0 ;
30704 PyObject * obj1 = 0 ;
30705 PyObject * obj2 = 0 ;
30706 PyObject * obj3 = 0 ;
30707 PyObject * obj4 = 0 ;
30708 PyObject * obj5 = 0 ;
30709 PyObject * obj6 = 0 ;
30710 char * kwnames[] = {
30711 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
30712 };
30713
30714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30716 if (!SWIG_IsOK(res1)) {
30717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30718 }
30719 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30720 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30721 if (!SWIG_IsOK(res2)) {
30722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
30723 }
30724 arg2 = reinterpret_cast< wxWindow * >(argp2);
30725 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30726 if (!SWIG_IsOK(res3)) {
30727 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30728 }
30729 if (!argp3) {
30730 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
30731 }
30732 arg3 = reinterpret_cast< wxDC * >(argp3);
30733 {
30734 arg4 = &temp4;
30735 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
30736 }
30737 ecode5 = SWIG_AsVal_int(obj4, &val5);
30738 if (!SWIG_IsOK(ecode5)) {
30739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
30740 }
30741 arg5 = static_cast< int >(val5);
30742 ecode6 = SWIG_AsVal_int(obj5, &val6);
30743 if (!SWIG_IsOK(ecode6)) {
30744 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
30745 }
30746 arg6 = static_cast< wxOrientation >(val6);
30747 if (obj6) {
30748 ecode7 = SWIG_AsVal_int(obj6, &val7);
30749 if (!SWIG_IsOK(ecode7)) {
30750 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
30751 }
30752 arg7 = static_cast< int >(val7);
30753 }
30754 {
30755 PyThreadState* __tstate = wxPyBeginAllowThreads();
30756 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
30757 wxPyEndAllowThreads(__tstate);
30758 if (PyErr_Occurred()) SWIG_fail;
30759 }
30760 resultobj = SWIG_Py_Void();
30761 return resultobj;
30762 fail:
30763 return NULL;
30764 }
30765
30766
30767 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30768 PyObject *resultobj = 0;
30769 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30770 wxWindow *arg2 = (wxWindow *) 0 ;
30771 wxDC *arg3 = 0 ;
30772 wxRect *arg4 = 0 ;
30773 int arg5 = (int) 0 ;
30774 void *argp1 = 0 ;
30775 int res1 = 0 ;
30776 void *argp2 = 0 ;
30777 int res2 = 0 ;
30778 void *argp3 = 0 ;
30779 int res3 = 0 ;
30780 wxRect temp4 ;
30781 int val5 ;
30782 int ecode5 = 0 ;
30783 PyObject * obj0 = 0 ;
30784 PyObject * obj1 = 0 ;
30785 PyObject * obj2 = 0 ;
30786 PyObject * obj3 = 0 ;
30787 PyObject * obj4 = 0 ;
30788 char * kwnames[] = {
30789 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30790 };
30791
30792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30794 if (!SWIG_IsOK(res1)) {
30795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30796 }
30797 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30798 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30799 if (!SWIG_IsOK(res2)) {
30800 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30801 }
30802 arg2 = reinterpret_cast< wxWindow * >(argp2);
30803 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30804 if (!SWIG_IsOK(res3)) {
30805 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30806 }
30807 if (!argp3) {
30808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
30809 }
30810 arg3 = reinterpret_cast< wxDC * >(argp3);
30811 {
30812 arg4 = &temp4;
30813 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30814 }
30815 if (obj4) {
30816 ecode5 = SWIG_AsVal_int(obj4, &val5);
30817 if (!SWIG_IsOK(ecode5)) {
30818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
30819 }
30820 arg5 = static_cast< int >(val5);
30821 }
30822 {
30823 PyThreadState* __tstate = wxPyBeginAllowThreads();
30824 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
30825 wxPyEndAllowThreads(__tstate);
30826 if (PyErr_Occurred()) SWIG_fail;
30827 }
30828 resultobj = SWIG_Py_Void();
30829 return resultobj;
30830 fail:
30831 return NULL;
30832 }
30833
30834
30835 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30836 PyObject *resultobj = 0;
30837 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30838 wxWindow *arg2 = (wxWindow *) 0 ;
30839 wxDC *arg3 = 0 ;
30840 wxRect *arg4 = 0 ;
30841 int arg5 = (int) 0 ;
30842 void *argp1 = 0 ;
30843 int res1 = 0 ;
30844 void *argp2 = 0 ;
30845 int res2 = 0 ;
30846 void *argp3 = 0 ;
30847 int res3 = 0 ;
30848 wxRect temp4 ;
30849 int val5 ;
30850 int ecode5 = 0 ;
30851 PyObject * obj0 = 0 ;
30852 PyObject * obj1 = 0 ;
30853 PyObject * obj2 = 0 ;
30854 PyObject * obj3 = 0 ;
30855 PyObject * obj4 = 0 ;
30856 char * kwnames[] = {
30857 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30858 };
30859
30860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30862 if (!SWIG_IsOK(res1)) {
30863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30864 }
30865 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30866 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30867 if (!SWIG_IsOK(res2)) {
30868 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
30869 }
30870 arg2 = reinterpret_cast< wxWindow * >(argp2);
30871 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30872 if (!SWIG_IsOK(res3)) {
30873 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30874 }
30875 if (!argp3) {
30876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
30877 }
30878 arg3 = reinterpret_cast< wxDC * >(argp3);
30879 {
30880 arg4 = &temp4;
30881 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30882 }
30883 if (obj4) {
30884 ecode5 = SWIG_AsVal_int(obj4, &val5);
30885 if (!SWIG_IsOK(ecode5)) {
30886 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
30887 }
30888 arg5 = static_cast< int >(val5);
30889 }
30890 {
30891 PyThreadState* __tstate = wxPyBeginAllowThreads();
30892 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
30893 wxPyEndAllowThreads(__tstate);
30894 if (PyErr_Occurred()) SWIG_fail;
30895 }
30896 resultobj = SWIG_Py_Void();
30897 return resultobj;
30898 fail:
30899 return NULL;
30900 }
30901
30902
30903 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30904 PyObject *resultobj = 0;
30905 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30906 wxWindow *arg2 = (wxWindow *) 0 ;
30907 wxDC *arg3 = 0 ;
30908 wxRect *arg4 = 0 ;
30909 int arg5 = (int) 0 ;
30910 void *argp1 = 0 ;
30911 int res1 = 0 ;
30912 void *argp2 = 0 ;
30913 int res2 = 0 ;
30914 void *argp3 = 0 ;
30915 int res3 = 0 ;
30916 wxRect temp4 ;
30917 int val5 ;
30918 int ecode5 = 0 ;
30919 PyObject * obj0 = 0 ;
30920 PyObject * obj1 = 0 ;
30921 PyObject * obj2 = 0 ;
30922 PyObject * obj3 = 0 ;
30923 PyObject * obj4 = 0 ;
30924 char * kwnames[] = {
30925 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30926 };
30927
30928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30929 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30930 if (!SWIG_IsOK(res1)) {
30931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30932 }
30933 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30934 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30935 if (!SWIG_IsOK(res2)) {
30936 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
30937 }
30938 arg2 = reinterpret_cast< wxWindow * >(argp2);
30939 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30940 if (!SWIG_IsOK(res3)) {
30941 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30942 }
30943 if (!argp3) {
30944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
30945 }
30946 arg3 = reinterpret_cast< wxDC * >(argp3);
30947 {
30948 arg4 = &temp4;
30949 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30950 }
30951 if (obj4) {
30952 ecode5 = SWIG_AsVal_int(obj4, &val5);
30953 if (!SWIG_IsOK(ecode5)) {
30954 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
30955 }
30956 arg5 = static_cast< int >(val5);
30957 }
30958 {
30959 PyThreadState* __tstate = wxPyBeginAllowThreads();
30960 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
30961 wxPyEndAllowThreads(__tstate);
30962 if (PyErr_Occurred()) SWIG_fail;
30963 }
30964 resultobj = SWIG_Py_Void();
30965 return resultobj;
30966 fail:
30967 return NULL;
30968 }
30969
30970
30971 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30972 PyObject *resultobj = 0;
30973 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30974 wxWindow *arg2 = (wxWindow *) 0 ;
30975 wxDC *arg3 = 0 ;
30976 wxRect *arg4 = 0 ;
30977 int arg5 = (int) 0 ;
30978 void *argp1 = 0 ;
30979 int res1 = 0 ;
30980 void *argp2 = 0 ;
30981 int res2 = 0 ;
30982 void *argp3 = 0 ;
30983 int res3 = 0 ;
30984 wxRect temp4 ;
30985 int val5 ;
30986 int ecode5 = 0 ;
30987 PyObject * obj0 = 0 ;
30988 PyObject * obj1 = 0 ;
30989 PyObject * obj2 = 0 ;
30990 PyObject * obj3 = 0 ;
30991 PyObject * obj4 = 0 ;
30992 char * kwnames[] = {
30993 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
30994 };
30995
30996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
30997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30998 if (!SWIG_IsOK(res1)) {
30999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31000 }
31001 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31002 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31003 if (!SWIG_IsOK(res2)) {
31004 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31005 }
31006 arg2 = reinterpret_cast< wxWindow * >(argp2);
31007 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31008 if (!SWIG_IsOK(res3)) {
31009 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31010 }
31011 if (!argp3) {
31012 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31013 }
31014 arg3 = reinterpret_cast< wxDC * >(argp3);
31015 {
31016 arg4 = &temp4;
31017 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31018 }
31019 if (obj4) {
31020 ecode5 = SWIG_AsVal_int(obj4, &val5);
31021 if (!SWIG_IsOK(ecode5)) {
31022 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31023 }
31024 arg5 = static_cast< int >(val5);
31025 }
31026 {
31027 PyThreadState* __tstate = wxPyBeginAllowThreads();
31028 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31029 wxPyEndAllowThreads(__tstate);
31030 if (PyErr_Occurred()) SWIG_fail;
31031 }
31032 resultobj = SWIG_Py_Void();
31033 return resultobj;
31034 fail:
31035 return NULL;
31036 }
31037
31038
31039 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31040 PyObject *resultobj = 0;
31041 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31042 wxWindow *arg2 = (wxWindow *) 0 ;
31043 wxDC *arg3 = 0 ;
31044 wxRect *arg4 = 0 ;
31045 int arg5 = (int) 0 ;
31046 void *argp1 = 0 ;
31047 int res1 = 0 ;
31048 void *argp2 = 0 ;
31049 int res2 = 0 ;
31050 void *argp3 = 0 ;
31051 int res3 = 0 ;
31052 wxRect temp4 ;
31053 int val5 ;
31054 int ecode5 = 0 ;
31055 PyObject * obj0 = 0 ;
31056 PyObject * obj1 = 0 ;
31057 PyObject * obj2 = 0 ;
31058 PyObject * obj3 = 0 ;
31059 PyObject * obj4 = 0 ;
31060 char * kwnames[] = {
31061 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31062 };
31063
31064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31066 if (!SWIG_IsOK(res1)) {
31067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31068 }
31069 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31070 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31071 if (!SWIG_IsOK(res2)) {
31072 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
31073 }
31074 arg2 = reinterpret_cast< wxWindow * >(argp2);
31075 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31076 if (!SWIG_IsOK(res3)) {
31077 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31078 }
31079 if (!argp3) {
31080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31081 }
31082 arg3 = reinterpret_cast< wxDC * >(argp3);
31083 {
31084 arg4 = &temp4;
31085 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31086 }
31087 if (obj4) {
31088 ecode5 = SWIG_AsVal_int(obj4, &val5);
31089 if (!SWIG_IsOK(ecode5)) {
31090 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
31091 }
31092 arg5 = static_cast< int >(val5);
31093 }
31094 {
31095 PyThreadState* __tstate = wxPyBeginAllowThreads();
31096 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
31097 wxPyEndAllowThreads(__tstate);
31098 if (PyErr_Occurred()) SWIG_fail;
31099 }
31100 resultobj = SWIG_Py_Void();
31101 return resultobj;
31102 fail:
31103 return NULL;
31104 }
31105
31106
31107 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31108 PyObject *resultobj = 0;
31109 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31110 wxWindow *arg2 = (wxWindow *) 0 ;
31111 SwigValueWrapper<wxSplitterRenderParams > result;
31112 void *argp1 = 0 ;
31113 int res1 = 0 ;
31114 void *argp2 = 0 ;
31115 int res2 = 0 ;
31116 PyObject * obj0 = 0 ;
31117 PyObject * obj1 = 0 ;
31118 char * kwnames[] = {
31119 (char *) "self",(char *) "win", NULL
31120 };
31121
31122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31124 if (!SWIG_IsOK(res1)) {
31125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31126 }
31127 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31128 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31129 if (!SWIG_IsOK(res2)) {
31130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31131 }
31132 arg2 = reinterpret_cast< wxWindow * >(argp2);
31133 {
31134 PyThreadState* __tstate = wxPyBeginAllowThreads();
31135 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31136 wxPyEndAllowThreads(__tstate);
31137 if (PyErr_Occurred()) SWIG_fail;
31138 }
31139 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31140 return resultobj;
31141 fail:
31142 return NULL;
31143 }
31144
31145
31146 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31147 PyObject *resultobj = 0;
31148 wxRendererNative *result = 0 ;
31149
31150 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31151 {
31152 if (!wxPyCheckForApp()) SWIG_fail;
31153 PyThreadState* __tstate = wxPyBeginAllowThreads();
31154 {
31155 wxRendererNative &_result_ref = wxRendererNative::Get();
31156 result = (wxRendererNative *) &_result_ref;
31157 }
31158 wxPyEndAllowThreads(__tstate);
31159 if (PyErr_Occurred()) SWIG_fail;
31160 }
31161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31162 return resultobj;
31163 fail:
31164 return NULL;
31165 }
31166
31167
31168 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31169 PyObject *resultobj = 0;
31170 wxRendererNative *result = 0 ;
31171
31172 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31173 {
31174 if (!wxPyCheckForApp()) SWIG_fail;
31175 PyThreadState* __tstate = wxPyBeginAllowThreads();
31176 {
31177 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31178 result = (wxRendererNative *) &_result_ref;
31179 }
31180 wxPyEndAllowThreads(__tstate);
31181 if (PyErr_Occurred()) SWIG_fail;
31182 }
31183 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31184 return resultobj;
31185 fail:
31186 return NULL;
31187 }
31188
31189
31190 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31191 PyObject *resultobj = 0;
31192 wxRendererNative *result = 0 ;
31193
31194 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31195 {
31196 if (!wxPyCheckForApp()) SWIG_fail;
31197 PyThreadState* __tstate = wxPyBeginAllowThreads();
31198 {
31199 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31200 result = (wxRendererNative *) &_result_ref;
31201 }
31202 wxPyEndAllowThreads(__tstate);
31203 if (PyErr_Occurred()) SWIG_fail;
31204 }
31205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31206 return resultobj;
31207 fail:
31208 return NULL;
31209 }
31210
31211
31212 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31213 PyObject *resultobj = 0;
31214 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31215 wxRendererNative *result = 0 ;
31216 void *argp1 = 0 ;
31217 int res1 = 0 ;
31218 PyObject * obj0 = 0 ;
31219 char * kwnames[] = {
31220 (char *) "renderer", NULL
31221 };
31222
31223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31225 if (!SWIG_IsOK(res1)) {
31226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31227 }
31228 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31229 {
31230 if (!wxPyCheckForApp()) SWIG_fail;
31231 PyThreadState* __tstate = wxPyBeginAllowThreads();
31232 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31233 wxPyEndAllowThreads(__tstate);
31234 if (PyErr_Occurred()) SWIG_fail;
31235 }
31236 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31237 return resultobj;
31238 fail:
31239 return NULL;
31240 }
31241
31242
31243 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31244 PyObject *resultobj = 0;
31245 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31246 SwigValueWrapper<wxRendererVersion > result;
31247 void *argp1 = 0 ;
31248 int res1 = 0 ;
31249 PyObject *swig_obj[1] ;
31250
31251 if (!args) SWIG_fail;
31252 swig_obj[0] = args;
31253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31254 if (!SWIG_IsOK(res1)) {
31255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31256 }
31257 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31258 {
31259 PyThreadState* __tstate = wxPyBeginAllowThreads();
31260 result = ((wxRendererNative const *)arg1)->GetVersion();
31261 wxPyEndAllowThreads(__tstate);
31262 if (PyErr_Occurred()) SWIG_fail;
31263 }
31264 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31265 return resultobj;
31266 fail:
31267 return NULL;
31268 }
31269
31270
31271 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31272 PyObject *obj;
31273 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31274 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31275 return SWIG_Py_Void();
31276 }
31277
31278 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31279 PyObject *resultobj = 0;
31280 wxPseudoDC *result = 0 ;
31281
31282 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31283 {
31284 PyThreadState* __tstate = wxPyBeginAllowThreads();
31285 result = (wxPseudoDC *)new wxPseudoDC();
31286 wxPyEndAllowThreads(__tstate);
31287 if (PyErr_Occurred()) SWIG_fail;
31288 }
31289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31290 return resultobj;
31291 fail:
31292 return NULL;
31293 }
31294
31295
31296 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31297 PyObject *resultobj = 0;
31298 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31299 void *argp1 = 0 ;
31300 int res1 = 0 ;
31301 PyObject *swig_obj[1] ;
31302
31303 if (!args) SWIG_fail;
31304 swig_obj[0] = args;
31305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31306 if (!SWIG_IsOK(res1)) {
31307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31308 }
31309 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31310 {
31311 PyThreadState* __tstate = wxPyBeginAllowThreads();
31312 (arg1)->BeginDrawing();
31313 wxPyEndAllowThreads(__tstate);
31314 if (PyErr_Occurred()) SWIG_fail;
31315 }
31316 resultobj = SWIG_Py_Void();
31317 return resultobj;
31318 fail:
31319 return NULL;
31320 }
31321
31322
31323 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31324 PyObject *resultobj = 0;
31325 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31326 void *argp1 = 0 ;
31327 int res1 = 0 ;
31328 PyObject *swig_obj[1] ;
31329
31330 if (!args) SWIG_fail;
31331 swig_obj[0] = args;
31332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31333 if (!SWIG_IsOK(res1)) {
31334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31335 }
31336 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31337 {
31338 PyThreadState* __tstate = wxPyBeginAllowThreads();
31339 (arg1)->EndDrawing();
31340 wxPyEndAllowThreads(__tstate);
31341 if (PyErr_Occurred()) SWIG_fail;
31342 }
31343 resultobj = SWIG_Py_Void();
31344 return resultobj;
31345 fail:
31346 return NULL;
31347 }
31348
31349
31350 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31351 PyObject *resultobj = 0;
31352 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31353 void *argp1 = 0 ;
31354 int res1 = 0 ;
31355 PyObject *swig_obj[1] ;
31356
31357 if (!args) SWIG_fail;
31358 swig_obj[0] = args;
31359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31360 if (!SWIG_IsOK(res1)) {
31361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31362 }
31363 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31364 {
31365 PyThreadState* __tstate = wxPyBeginAllowThreads();
31366 delete arg1;
31367
31368 wxPyEndAllowThreads(__tstate);
31369 if (PyErr_Occurred()) SWIG_fail;
31370 }
31371 resultobj = SWIG_Py_Void();
31372 return resultobj;
31373 fail:
31374 return NULL;
31375 }
31376
31377
31378 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31379 PyObject *resultobj = 0;
31380 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31381 void *argp1 = 0 ;
31382 int res1 = 0 ;
31383 PyObject *swig_obj[1] ;
31384
31385 if (!args) SWIG_fail;
31386 swig_obj[0] = args;
31387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31388 if (!SWIG_IsOK(res1)) {
31389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31390 }
31391 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31392 {
31393 PyThreadState* __tstate = wxPyBeginAllowThreads();
31394 (arg1)->RemoveAll();
31395 wxPyEndAllowThreads(__tstate);
31396 if (PyErr_Occurred()) SWIG_fail;
31397 }
31398 resultobj = SWIG_Py_Void();
31399 return resultobj;
31400 fail:
31401 return NULL;
31402 }
31403
31404
31405 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31406 PyObject *resultobj = 0;
31407 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31408 int result;
31409 void *argp1 = 0 ;
31410 int res1 = 0 ;
31411 PyObject *swig_obj[1] ;
31412
31413 if (!args) SWIG_fail;
31414 swig_obj[0] = args;
31415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31416 if (!SWIG_IsOK(res1)) {
31417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31418 }
31419 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31420 {
31421 PyThreadState* __tstate = wxPyBeginAllowThreads();
31422 result = (int)(arg1)->GetLen();
31423 wxPyEndAllowThreads(__tstate);
31424 if (PyErr_Occurred()) SWIG_fail;
31425 }
31426 resultobj = SWIG_From_int(static_cast< int >(result));
31427 return resultobj;
31428 fail:
31429 return NULL;
31430 }
31431
31432
31433 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31434 PyObject *resultobj = 0;
31435 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31436 int arg2 ;
31437 void *argp1 = 0 ;
31438 int res1 = 0 ;
31439 int val2 ;
31440 int ecode2 = 0 ;
31441 PyObject * obj0 = 0 ;
31442 PyObject * obj1 = 0 ;
31443 char * kwnames[] = {
31444 (char *) "self",(char *) "id", NULL
31445 };
31446
31447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31449 if (!SWIG_IsOK(res1)) {
31450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31451 }
31452 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31453 ecode2 = SWIG_AsVal_int(obj1, &val2);
31454 if (!SWIG_IsOK(ecode2)) {
31455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31456 }
31457 arg2 = static_cast< int >(val2);
31458 {
31459 PyThreadState* __tstate = wxPyBeginAllowThreads();
31460 (arg1)->SetId(arg2);
31461 wxPyEndAllowThreads(__tstate);
31462 if (PyErr_Occurred()) SWIG_fail;
31463 }
31464 resultobj = SWIG_Py_Void();
31465 return resultobj;
31466 fail:
31467 return NULL;
31468 }
31469
31470
31471 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31472 PyObject *resultobj = 0;
31473 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31474 int arg2 ;
31475 void *argp1 = 0 ;
31476 int res1 = 0 ;
31477 int val2 ;
31478 int ecode2 = 0 ;
31479 PyObject * obj0 = 0 ;
31480 PyObject * obj1 = 0 ;
31481 char * kwnames[] = {
31482 (char *) "self",(char *) "id", NULL
31483 };
31484
31485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
31486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31487 if (!SWIG_IsOK(res1)) {
31488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31489 }
31490 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31491 ecode2 = SWIG_AsVal_int(obj1, &val2);
31492 if (!SWIG_IsOK(ecode2)) {
31493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
31494 }
31495 arg2 = static_cast< int >(val2);
31496 {
31497 PyThreadState* __tstate = wxPyBeginAllowThreads();
31498 (arg1)->ClearId(arg2);
31499 wxPyEndAllowThreads(__tstate);
31500 if (PyErr_Occurred()) SWIG_fail;
31501 }
31502 resultobj = SWIG_Py_Void();
31503 return resultobj;
31504 fail:
31505 return NULL;
31506 }
31507
31508
31509 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31510 PyObject *resultobj = 0;
31511 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31512 int arg2 ;
31513 void *argp1 = 0 ;
31514 int res1 = 0 ;
31515 int val2 ;
31516 int ecode2 = 0 ;
31517 PyObject * obj0 = 0 ;
31518 PyObject * obj1 = 0 ;
31519 char * kwnames[] = {
31520 (char *) "self",(char *) "id", NULL
31521 };
31522
31523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
31524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31525 if (!SWIG_IsOK(res1)) {
31526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31527 }
31528 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31529 ecode2 = SWIG_AsVal_int(obj1, &val2);
31530 if (!SWIG_IsOK(ecode2)) {
31531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
31532 }
31533 arg2 = static_cast< int >(val2);
31534 {
31535 PyThreadState* __tstate = wxPyBeginAllowThreads();
31536 (arg1)->RemoveId(arg2);
31537 wxPyEndAllowThreads(__tstate);
31538 if (PyErr_Occurred()) SWIG_fail;
31539 }
31540 resultobj = SWIG_Py_Void();
31541 return resultobj;
31542 fail:
31543 return NULL;
31544 }
31545
31546
31547 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31548 PyObject *resultobj = 0;
31549 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31550 int arg2 ;
31551 int arg3 ;
31552 int arg4 ;
31553 void *argp1 = 0 ;
31554 int res1 = 0 ;
31555 int val2 ;
31556 int ecode2 = 0 ;
31557 int val3 ;
31558 int ecode3 = 0 ;
31559 int val4 ;
31560 int ecode4 = 0 ;
31561 PyObject * obj0 = 0 ;
31562 PyObject * obj1 = 0 ;
31563 PyObject * obj2 = 0 ;
31564 PyObject * obj3 = 0 ;
31565 char * kwnames[] = {
31566 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
31567 };
31568
31569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
31570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31571 if (!SWIG_IsOK(res1)) {
31572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31573 }
31574 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31575 ecode2 = SWIG_AsVal_int(obj1, &val2);
31576 if (!SWIG_IsOK(ecode2)) {
31577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
31578 }
31579 arg2 = static_cast< int >(val2);
31580 ecode3 = SWIG_AsVal_int(obj2, &val3);
31581 if (!SWIG_IsOK(ecode3)) {
31582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
31583 }
31584 arg3 = static_cast< int >(val3);
31585 ecode4 = SWIG_AsVal_int(obj3, &val4);
31586 if (!SWIG_IsOK(ecode4)) {
31587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
31588 }
31589 arg4 = static_cast< int >(val4);
31590 {
31591 PyThreadState* __tstate = wxPyBeginAllowThreads();
31592 (arg1)->TranslateId(arg2,arg3,arg4);
31593 wxPyEndAllowThreads(__tstate);
31594 if (PyErr_Occurred()) SWIG_fail;
31595 }
31596 resultobj = SWIG_Py_Void();
31597 return resultobj;
31598 fail:
31599 return NULL;
31600 }
31601
31602
31603 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31604 PyObject *resultobj = 0;
31605 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31606 int arg2 ;
31607 bool arg3 = (bool) true ;
31608 void *argp1 = 0 ;
31609 int res1 = 0 ;
31610 int val2 ;
31611 int ecode2 = 0 ;
31612 bool val3 ;
31613 int ecode3 = 0 ;
31614 PyObject * obj0 = 0 ;
31615 PyObject * obj1 = 0 ;
31616 PyObject * obj2 = 0 ;
31617 char * kwnames[] = {
31618 (char *) "self",(char *) "id",(char *) "greyout", NULL
31619 };
31620
31621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31623 if (!SWIG_IsOK(res1)) {
31624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31625 }
31626 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31627 ecode2 = SWIG_AsVal_int(obj1, &val2);
31628 if (!SWIG_IsOK(ecode2)) {
31629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31630 }
31631 arg2 = static_cast< int >(val2);
31632 if (obj2) {
31633 ecode3 = SWIG_AsVal_bool(obj2, &val3);
31634 if (!SWIG_IsOK(ecode3)) {
31635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
31636 }
31637 arg3 = static_cast< bool >(val3);
31638 }
31639 {
31640 PyThreadState* __tstate = wxPyBeginAllowThreads();
31641 (arg1)->SetIdGreyedOut(arg2,arg3);
31642 wxPyEndAllowThreads(__tstate);
31643 if (PyErr_Occurred()) SWIG_fail;
31644 }
31645 resultobj = SWIG_Py_Void();
31646 return resultobj;
31647 fail:
31648 return NULL;
31649 }
31650
31651
31652 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31653 PyObject *resultobj = 0;
31654 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31655 int arg2 ;
31656 bool result;
31657 void *argp1 = 0 ;
31658 int res1 = 0 ;
31659 int val2 ;
31660 int ecode2 = 0 ;
31661 PyObject * obj0 = 0 ;
31662 PyObject * obj1 = 0 ;
31663 char * kwnames[] = {
31664 (char *) "self",(char *) "id", NULL
31665 };
31666
31667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
31668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31669 if (!SWIG_IsOK(res1)) {
31670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31671 }
31672 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31673 ecode2 = SWIG_AsVal_int(obj1, &val2);
31674 if (!SWIG_IsOK(ecode2)) {
31675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
31676 }
31677 arg2 = static_cast< int >(val2);
31678 {
31679 PyThreadState* __tstate = wxPyBeginAllowThreads();
31680 result = (bool)(arg1)->GetIdGreyedOut(arg2);
31681 wxPyEndAllowThreads(__tstate);
31682 if (PyErr_Occurred()) SWIG_fail;
31683 }
31684 {
31685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31686 }
31687 return resultobj;
31688 fail:
31689 return NULL;
31690 }
31691
31692
31693 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31694 PyObject *resultobj = 0;
31695 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31696 int arg2 ;
31697 int arg3 ;
31698 int arg4 = (int) 1 ;
31699 wxColor const &arg5_defvalue = *wxWHITE ;
31700 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
31701 PyObject *result = 0 ;
31702 void *argp1 = 0 ;
31703 int res1 = 0 ;
31704 int val2 ;
31705 int ecode2 = 0 ;
31706 int val3 ;
31707 int ecode3 = 0 ;
31708 int val4 ;
31709 int ecode4 = 0 ;
31710 void *argp5 = 0 ;
31711 int res5 = 0 ;
31712 PyObject * obj0 = 0 ;
31713 PyObject * obj1 = 0 ;
31714 PyObject * obj2 = 0 ;
31715 PyObject * obj3 = 0 ;
31716 PyObject * obj4 = 0 ;
31717 char * kwnames[] = {
31718 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
31719 };
31720
31721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31723 if (!SWIG_IsOK(res1)) {
31724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31725 }
31726 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31727 ecode2 = SWIG_AsVal_int(obj1, &val2);
31728 if (!SWIG_IsOK(ecode2)) {
31729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
31730 }
31731 arg2 = static_cast< int >(val2);
31732 ecode3 = SWIG_AsVal_int(obj2, &val3);
31733 if (!SWIG_IsOK(ecode3)) {
31734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
31735 }
31736 arg3 = static_cast< int >(val3);
31737 if (obj3) {
31738 ecode4 = SWIG_AsVal_int(obj3, &val4);
31739 if (!SWIG_IsOK(ecode4)) {
31740 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
31741 }
31742 arg4 = static_cast< int >(val4);
31743 }
31744 if (obj4) {
31745 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
31746 if (!SWIG_IsOK(res5)) {
31747 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31748 }
31749 if (!argp5) {
31750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
31751 }
31752 arg5 = reinterpret_cast< wxColor * >(argp5);
31753 }
31754 {
31755 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
31756 if (PyErr_Occurred()) SWIG_fail;
31757 }
31758 resultobj = result;
31759 return resultobj;
31760 fail:
31761 return NULL;
31762 }
31763
31764
31765 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31766 PyObject *resultobj = 0;
31767 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31768 int arg2 ;
31769 int arg3 ;
31770 PyObject *result = 0 ;
31771 void *argp1 = 0 ;
31772 int res1 = 0 ;
31773 int val2 ;
31774 int ecode2 = 0 ;
31775 int val3 ;
31776 int ecode3 = 0 ;
31777 PyObject * obj0 = 0 ;
31778 PyObject * obj1 = 0 ;
31779 PyObject * obj2 = 0 ;
31780 char * kwnames[] = {
31781 (char *) "self",(char *) "x",(char *) "y", NULL
31782 };
31783
31784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31786 if (!SWIG_IsOK(res1)) {
31787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31788 }
31789 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31790 ecode2 = SWIG_AsVal_int(obj1, &val2);
31791 if (!SWIG_IsOK(ecode2)) {
31792 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
31793 }
31794 arg2 = static_cast< int >(val2);
31795 ecode3 = SWIG_AsVal_int(obj2, &val3);
31796 if (!SWIG_IsOK(ecode3)) {
31797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
31798 }
31799 arg3 = static_cast< int >(val3);
31800 {
31801 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
31802 if (PyErr_Occurred()) SWIG_fail;
31803 }
31804 resultobj = result;
31805 return resultobj;
31806 fail:
31807 return NULL;
31808 }
31809
31810
31811 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31812 PyObject *resultobj = 0;
31813 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31814 int arg2 ;
31815 wxDC *arg3 = (wxDC *) 0 ;
31816 void *argp1 = 0 ;
31817 int res1 = 0 ;
31818 int val2 ;
31819 int ecode2 = 0 ;
31820 void *argp3 = 0 ;
31821 int res3 = 0 ;
31822 PyObject * obj0 = 0 ;
31823 PyObject * obj1 = 0 ;
31824 PyObject * obj2 = 0 ;
31825 char * kwnames[] = {
31826 (char *) "self",(char *) "id",(char *) "dc", NULL
31827 };
31828
31829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31831 if (!SWIG_IsOK(res1)) {
31832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31833 }
31834 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31835 ecode2 = SWIG_AsVal_int(obj1, &val2);
31836 if (!SWIG_IsOK(ecode2)) {
31837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
31838 }
31839 arg2 = static_cast< int >(val2);
31840 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
31841 if (!SWIG_IsOK(res3)) {
31842 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
31843 }
31844 arg3 = reinterpret_cast< wxDC * >(argp3);
31845 {
31846 PyThreadState* __tstate = wxPyBeginAllowThreads();
31847 (arg1)->DrawIdToDC(arg2,arg3);
31848 wxPyEndAllowThreads(__tstate);
31849 if (PyErr_Occurred()) SWIG_fail;
31850 }
31851 resultobj = SWIG_Py_Void();
31852 return resultobj;
31853 fail:
31854 return NULL;
31855 }
31856
31857
31858 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31859 PyObject *resultobj = 0;
31860 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31861 int arg2 ;
31862 wxRect *arg3 = 0 ;
31863 void *argp1 = 0 ;
31864 int res1 = 0 ;
31865 int val2 ;
31866 int ecode2 = 0 ;
31867 wxRect temp3 ;
31868 PyObject * obj0 = 0 ;
31869 PyObject * obj1 = 0 ;
31870 PyObject * obj2 = 0 ;
31871 char * kwnames[] = {
31872 (char *) "self",(char *) "id",(char *) "rect", NULL
31873 };
31874
31875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31877 if (!SWIG_IsOK(res1)) {
31878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31879 }
31880 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31881 ecode2 = SWIG_AsVal_int(obj1, &val2);
31882 if (!SWIG_IsOK(ecode2)) {
31883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
31884 }
31885 arg2 = static_cast< int >(val2);
31886 {
31887 arg3 = &temp3;
31888 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31889 }
31890 {
31891 PyThreadState* __tstate = wxPyBeginAllowThreads();
31892 (arg1)->SetIdBounds(arg2,*arg3);
31893 wxPyEndAllowThreads(__tstate);
31894 if (PyErr_Occurred()) SWIG_fail;
31895 }
31896 resultobj = SWIG_Py_Void();
31897 return resultobj;
31898 fail:
31899 return NULL;
31900 }
31901
31902
31903 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31904 PyObject *resultobj = 0;
31905 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31906 int arg2 ;
31907 wxRect result;
31908 void *argp1 = 0 ;
31909 int res1 = 0 ;
31910 int val2 ;
31911 int ecode2 = 0 ;
31912 PyObject * obj0 = 0 ;
31913 PyObject * obj1 = 0 ;
31914 char * kwnames[] = {
31915 (char *) "self",(char *) "id", NULL
31916 };
31917
31918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
31919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31920 if (!SWIG_IsOK(res1)) {
31921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31922 }
31923 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31924 ecode2 = SWIG_AsVal_int(obj1, &val2);
31925 if (!SWIG_IsOK(ecode2)) {
31926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
31927 }
31928 arg2 = static_cast< int >(val2);
31929 {
31930 PyThreadState* __tstate = wxPyBeginAllowThreads();
31931 result = wxPseudoDC_GetIdBounds(arg1,arg2);
31932 wxPyEndAllowThreads(__tstate);
31933 if (PyErr_Occurred()) SWIG_fail;
31934 }
31935 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
31936 return resultobj;
31937 fail:
31938 return NULL;
31939 }
31940
31941
31942 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31943 PyObject *resultobj = 0;
31944 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31945 wxDC *arg2 = (wxDC *) 0 ;
31946 wxRect *arg3 = 0 ;
31947 void *argp1 = 0 ;
31948 int res1 = 0 ;
31949 void *argp2 = 0 ;
31950 int res2 = 0 ;
31951 wxRect temp3 ;
31952 PyObject * obj0 = 0 ;
31953 PyObject * obj1 = 0 ;
31954 PyObject * obj2 = 0 ;
31955 char * kwnames[] = {
31956 (char *) "self",(char *) "dc",(char *) "rect", NULL
31957 };
31958
31959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
31960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31961 if (!SWIG_IsOK(res1)) {
31962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31963 }
31964 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31965 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
31966 if (!SWIG_IsOK(res2)) {
31967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
31968 }
31969 arg2 = reinterpret_cast< wxDC * >(argp2);
31970 {
31971 arg3 = &temp3;
31972 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
31973 }
31974 {
31975 PyThreadState* __tstate = wxPyBeginAllowThreads();
31976 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
31977 wxPyEndAllowThreads(__tstate);
31978 if (PyErr_Occurred()) SWIG_fail;
31979 }
31980 resultobj = SWIG_Py_Void();
31981 return resultobj;
31982 fail:
31983 return NULL;
31984 }
31985
31986
31987 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31988 PyObject *resultobj = 0;
31989 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31990 wxDC *arg2 = (wxDC *) 0 ;
31991 wxRegion *arg3 = 0 ;
31992 void *argp1 = 0 ;
31993 int res1 = 0 ;
31994 void *argp2 = 0 ;
31995 int res2 = 0 ;
31996 void *argp3 = 0 ;
31997 int res3 = 0 ;
31998 PyObject * obj0 = 0 ;
31999 PyObject * obj1 = 0 ;
32000 PyObject * obj2 = 0 ;
32001 char * kwnames[] = {
32002 (char *) "self",(char *) "dc",(char *) "region", NULL
32003 };
32004
32005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32007 if (!SWIG_IsOK(res1)) {
32008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32009 }
32010 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32011 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32012 if (!SWIG_IsOK(res2)) {
32013 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32014 }
32015 arg2 = reinterpret_cast< wxDC * >(argp2);
32016 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32017 if (!SWIG_IsOK(res3)) {
32018 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32019 }
32020 if (!argp3) {
32021 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32022 }
32023 arg3 = reinterpret_cast< wxRegion * >(argp3);
32024 {
32025 PyThreadState* __tstate = wxPyBeginAllowThreads();
32026 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32027 wxPyEndAllowThreads(__tstate);
32028 if (PyErr_Occurred()) SWIG_fail;
32029 }
32030 resultobj = SWIG_Py_Void();
32031 return resultobj;
32032 fail:
32033 return NULL;
32034 }
32035
32036
32037 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32038 PyObject *resultobj = 0;
32039 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32040 wxDC *arg2 = (wxDC *) 0 ;
32041 void *argp1 = 0 ;
32042 int res1 = 0 ;
32043 void *argp2 = 0 ;
32044 int res2 = 0 ;
32045 PyObject * obj0 = 0 ;
32046 PyObject * obj1 = 0 ;
32047 char * kwnames[] = {
32048 (char *) "self",(char *) "dc", NULL
32049 };
32050
32051 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
32052 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32053 if (!SWIG_IsOK(res1)) {
32054 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32055 }
32056 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32057 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32058 if (!SWIG_IsOK(res2)) {
32059 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32060 }
32061 arg2 = reinterpret_cast< wxDC * >(argp2);
32062 {
32063 PyThreadState* __tstate = wxPyBeginAllowThreads();
32064 (arg1)->DrawToDC(arg2);
32065 wxPyEndAllowThreads(__tstate);
32066 if (PyErr_Occurred()) SWIG_fail;
32067 }
32068 resultobj = SWIG_Py_Void();
32069 return resultobj;
32070 fail:
32071 return NULL;
32072 }
32073
32074
32075 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32076 PyObject *resultobj = 0;
32077 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32078 int arg2 ;
32079 int arg3 ;
32080 wxColour *arg4 = 0 ;
32081 int arg5 = (int) wxFLOOD_SURFACE ;
32082 void *argp1 = 0 ;
32083 int res1 = 0 ;
32084 int val2 ;
32085 int ecode2 = 0 ;
32086 int val3 ;
32087 int ecode3 = 0 ;
32088 wxColour temp4 ;
32089 int val5 ;
32090 int ecode5 = 0 ;
32091 PyObject * obj0 = 0 ;
32092 PyObject * obj1 = 0 ;
32093 PyObject * obj2 = 0 ;
32094 PyObject * obj3 = 0 ;
32095 PyObject * obj4 = 0 ;
32096 char * kwnames[] = {
32097 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32098 };
32099
32100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32102 if (!SWIG_IsOK(res1)) {
32103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32104 }
32105 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32106 ecode2 = SWIG_AsVal_int(obj1, &val2);
32107 if (!SWIG_IsOK(ecode2)) {
32108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32109 }
32110 arg2 = static_cast< int >(val2);
32111 ecode3 = SWIG_AsVal_int(obj2, &val3);
32112 if (!SWIG_IsOK(ecode3)) {
32113 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32114 }
32115 arg3 = static_cast< int >(val3);
32116 {
32117 arg4 = &temp4;
32118 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32119 }
32120 if (obj4) {
32121 ecode5 = SWIG_AsVal_int(obj4, &val5);
32122 if (!SWIG_IsOK(ecode5)) {
32123 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32124 }
32125 arg5 = static_cast< int >(val5);
32126 }
32127 {
32128 PyThreadState* __tstate = wxPyBeginAllowThreads();
32129 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32130 wxPyEndAllowThreads(__tstate);
32131 if (PyErr_Occurred()) SWIG_fail;
32132 }
32133 resultobj = SWIG_Py_Void();
32134 return resultobj;
32135 fail:
32136 return NULL;
32137 }
32138
32139
32140 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32141 PyObject *resultobj = 0;
32142 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32143 wxPoint *arg2 = 0 ;
32144 wxColour *arg3 = 0 ;
32145 int arg4 = (int) wxFLOOD_SURFACE ;
32146 void *argp1 = 0 ;
32147 int res1 = 0 ;
32148 wxPoint temp2 ;
32149 wxColour temp3 ;
32150 int val4 ;
32151 int ecode4 = 0 ;
32152 PyObject * obj0 = 0 ;
32153 PyObject * obj1 = 0 ;
32154 PyObject * obj2 = 0 ;
32155 PyObject * obj3 = 0 ;
32156 char * kwnames[] = {
32157 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32158 };
32159
32160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32162 if (!SWIG_IsOK(res1)) {
32163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32164 }
32165 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32166 {
32167 arg2 = &temp2;
32168 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32169 }
32170 {
32171 arg3 = &temp3;
32172 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32173 }
32174 if (obj3) {
32175 ecode4 = SWIG_AsVal_int(obj3, &val4);
32176 if (!SWIG_IsOK(ecode4)) {
32177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32178 }
32179 arg4 = static_cast< int >(val4);
32180 }
32181 {
32182 PyThreadState* __tstate = wxPyBeginAllowThreads();
32183 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32184 wxPyEndAllowThreads(__tstate);
32185 if (PyErr_Occurred()) SWIG_fail;
32186 }
32187 resultobj = SWIG_Py_Void();
32188 return resultobj;
32189 fail:
32190 return NULL;
32191 }
32192
32193
32194 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32195 PyObject *resultobj = 0;
32196 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32197 int arg2 ;
32198 int arg3 ;
32199 int arg4 ;
32200 int arg5 ;
32201 void *argp1 = 0 ;
32202 int res1 = 0 ;
32203 int val2 ;
32204 int ecode2 = 0 ;
32205 int val3 ;
32206 int ecode3 = 0 ;
32207 int val4 ;
32208 int ecode4 = 0 ;
32209 int val5 ;
32210 int ecode5 = 0 ;
32211 PyObject * obj0 = 0 ;
32212 PyObject * obj1 = 0 ;
32213 PyObject * obj2 = 0 ;
32214 PyObject * obj3 = 0 ;
32215 PyObject * obj4 = 0 ;
32216 char * kwnames[] = {
32217 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32218 };
32219
32220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32222 if (!SWIG_IsOK(res1)) {
32223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32224 }
32225 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32226 ecode2 = SWIG_AsVal_int(obj1, &val2);
32227 if (!SWIG_IsOK(ecode2)) {
32228 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32229 }
32230 arg2 = static_cast< int >(val2);
32231 ecode3 = SWIG_AsVal_int(obj2, &val3);
32232 if (!SWIG_IsOK(ecode3)) {
32233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32234 }
32235 arg3 = static_cast< int >(val3);
32236 ecode4 = SWIG_AsVal_int(obj3, &val4);
32237 if (!SWIG_IsOK(ecode4)) {
32238 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32239 }
32240 arg4 = static_cast< int >(val4);
32241 ecode5 = SWIG_AsVal_int(obj4, &val5);
32242 if (!SWIG_IsOK(ecode5)) {
32243 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32244 }
32245 arg5 = static_cast< int >(val5);
32246 {
32247 PyThreadState* __tstate = wxPyBeginAllowThreads();
32248 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32249 wxPyEndAllowThreads(__tstate);
32250 if (PyErr_Occurred()) SWIG_fail;
32251 }
32252 resultobj = SWIG_Py_Void();
32253 return resultobj;
32254 fail:
32255 return NULL;
32256 }
32257
32258
32259 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32260 PyObject *resultobj = 0;
32261 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32262 wxPoint *arg2 = 0 ;
32263 wxPoint *arg3 = 0 ;
32264 void *argp1 = 0 ;
32265 int res1 = 0 ;
32266 wxPoint temp2 ;
32267 wxPoint temp3 ;
32268 PyObject * obj0 = 0 ;
32269 PyObject * obj1 = 0 ;
32270 PyObject * obj2 = 0 ;
32271 char * kwnames[] = {
32272 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32273 };
32274
32275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32277 if (!SWIG_IsOK(res1)) {
32278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32279 }
32280 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32281 {
32282 arg2 = &temp2;
32283 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32284 }
32285 {
32286 arg3 = &temp3;
32287 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32288 }
32289 {
32290 PyThreadState* __tstate = wxPyBeginAllowThreads();
32291 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32292 wxPyEndAllowThreads(__tstate);
32293 if (PyErr_Occurred()) SWIG_fail;
32294 }
32295 resultobj = SWIG_Py_Void();
32296 return resultobj;
32297 fail:
32298 return NULL;
32299 }
32300
32301
32302 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32303 PyObject *resultobj = 0;
32304 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32305 int arg2 ;
32306 int arg3 ;
32307 void *argp1 = 0 ;
32308 int res1 = 0 ;
32309 int val2 ;
32310 int ecode2 = 0 ;
32311 int val3 ;
32312 int ecode3 = 0 ;
32313 PyObject * obj0 = 0 ;
32314 PyObject * obj1 = 0 ;
32315 PyObject * obj2 = 0 ;
32316 char * kwnames[] = {
32317 (char *) "self",(char *) "x",(char *) "y", NULL
32318 };
32319
32320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32322 if (!SWIG_IsOK(res1)) {
32323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32324 }
32325 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32326 ecode2 = SWIG_AsVal_int(obj1, &val2);
32327 if (!SWIG_IsOK(ecode2)) {
32328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32329 }
32330 arg2 = static_cast< int >(val2);
32331 ecode3 = SWIG_AsVal_int(obj2, &val3);
32332 if (!SWIG_IsOK(ecode3)) {
32333 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32334 }
32335 arg3 = static_cast< int >(val3);
32336 {
32337 PyThreadState* __tstate = wxPyBeginAllowThreads();
32338 (arg1)->CrossHair(arg2,arg3);
32339 wxPyEndAllowThreads(__tstate);
32340 if (PyErr_Occurred()) SWIG_fail;
32341 }
32342 resultobj = SWIG_Py_Void();
32343 return resultobj;
32344 fail:
32345 return NULL;
32346 }
32347
32348
32349 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32350 PyObject *resultobj = 0;
32351 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32352 wxPoint *arg2 = 0 ;
32353 void *argp1 = 0 ;
32354 int res1 = 0 ;
32355 wxPoint temp2 ;
32356 PyObject * obj0 = 0 ;
32357 PyObject * obj1 = 0 ;
32358 char * kwnames[] = {
32359 (char *) "self",(char *) "pt", NULL
32360 };
32361
32362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32364 if (!SWIG_IsOK(res1)) {
32365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32366 }
32367 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32368 {
32369 arg2 = &temp2;
32370 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32371 }
32372 {
32373 PyThreadState* __tstate = wxPyBeginAllowThreads();
32374 (arg1)->CrossHair((wxPoint const &)*arg2);
32375 wxPyEndAllowThreads(__tstate);
32376 if (PyErr_Occurred()) SWIG_fail;
32377 }
32378 resultobj = SWIG_Py_Void();
32379 return resultobj;
32380 fail:
32381 return NULL;
32382 }
32383
32384
32385 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32386 PyObject *resultobj = 0;
32387 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32388 int arg2 ;
32389 int arg3 ;
32390 int arg4 ;
32391 int arg5 ;
32392 int arg6 ;
32393 int arg7 ;
32394 void *argp1 = 0 ;
32395 int res1 = 0 ;
32396 int val2 ;
32397 int ecode2 = 0 ;
32398 int val3 ;
32399 int ecode3 = 0 ;
32400 int val4 ;
32401 int ecode4 = 0 ;
32402 int val5 ;
32403 int ecode5 = 0 ;
32404 int val6 ;
32405 int ecode6 = 0 ;
32406 int val7 ;
32407 int ecode7 = 0 ;
32408 PyObject * obj0 = 0 ;
32409 PyObject * obj1 = 0 ;
32410 PyObject * obj2 = 0 ;
32411 PyObject * obj3 = 0 ;
32412 PyObject * obj4 = 0 ;
32413 PyObject * obj5 = 0 ;
32414 PyObject * obj6 = 0 ;
32415 char * kwnames[] = {
32416 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32417 };
32418
32419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32421 if (!SWIG_IsOK(res1)) {
32422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32423 }
32424 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32425 ecode2 = SWIG_AsVal_int(obj1, &val2);
32426 if (!SWIG_IsOK(ecode2)) {
32427 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32428 }
32429 arg2 = static_cast< int >(val2);
32430 ecode3 = SWIG_AsVal_int(obj2, &val3);
32431 if (!SWIG_IsOK(ecode3)) {
32432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32433 }
32434 arg3 = static_cast< int >(val3);
32435 ecode4 = SWIG_AsVal_int(obj3, &val4);
32436 if (!SWIG_IsOK(ecode4)) {
32437 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32438 }
32439 arg4 = static_cast< int >(val4);
32440 ecode5 = SWIG_AsVal_int(obj4, &val5);
32441 if (!SWIG_IsOK(ecode5)) {
32442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32443 }
32444 arg5 = static_cast< int >(val5);
32445 ecode6 = SWIG_AsVal_int(obj5, &val6);
32446 if (!SWIG_IsOK(ecode6)) {
32447 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32448 }
32449 arg6 = static_cast< int >(val6);
32450 ecode7 = SWIG_AsVal_int(obj6, &val7);
32451 if (!SWIG_IsOK(ecode7)) {
32452 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32453 }
32454 arg7 = static_cast< int >(val7);
32455 {
32456 PyThreadState* __tstate = wxPyBeginAllowThreads();
32457 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32458 wxPyEndAllowThreads(__tstate);
32459 if (PyErr_Occurred()) SWIG_fail;
32460 }
32461 resultobj = SWIG_Py_Void();
32462 return resultobj;
32463 fail:
32464 return NULL;
32465 }
32466
32467
32468 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32469 PyObject *resultobj = 0;
32470 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32471 wxPoint *arg2 = 0 ;
32472 wxPoint *arg3 = 0 ;
32473 wxPoint *arg4 = 0 ;
32474 void *argp1 = 0 ;
32475 int res1 = 0 ;
32476 wxPoint temp2 ;
32477 wxPoint temp3 ;
32478 wxPoint temp4 ;
32479 PyObject * obj0 = 0 ;
32480 PyObject * obj1 = 0 ;
32481 PyObject * obj2 = 0 ;
32482 PyObject * obj3 = 0 ;
32483 char * kwnames[] = {
32484 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
32485 };
32486
32487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32489 if (!SWIG_IsOK(res1)) {
32490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32491 }
32492 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32493 {
32494 arg2 = &temp2;
32495 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32496 }
32497 {
32498 arg3 = &temp3;
32499 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32500 }
32501 {
32502 arg4 = &temp4;
32503 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
32504 }
32505 {
32506 PyThreadState* __tstate = wxPyBeginAllowThreads();
32507 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
32508 wxPyEndAllowThreads(__tstate);
32509 if (PyErr_Occurred()) SWIG_fail;
32510 }
32511 resultobj = SWIG_Py_Void();
32512 return resultobj;
32513 fail:
32514 return NULL;
32515 }
32516
32517
32518 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32519 PyObject *resultobj = 0;
32520 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32521 int arg2 ;
32522 int arg3 ;
32523 int arg4 ;
32524 int arg5 ;
32525 void *argp1 = 0 ;
32526 int res1 = 0 ;
32527 int val2 ;
32528 int ecode2 = 0 ;
32529 int val3 ;
32530 int ecode3 = 0 ;
32531 int val4 ;
32532 int ecode4 = 0 ;
32533 int val5 ;
32534 int ecode5 = 0 ;
32535 PyObject * obj0 = 0 ;
32536 PyObject * obj1 = 0 ;
32537 PyObject * obj2 = 0 ;
32538 PyObject * obj3 = 0 ;
32539 PyObject * obj4 = 0 ;
32540 char * kwnames[] = {
32541 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32542 };
32543
32544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32546 if (!SWIG_IsOK(res1)) {
32547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32548 }
32549 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32550 ecode2 = SWIG_AsVal_int(obj1, &val2);
32551 if (!SWIG_IsOK(ecode2)) {
32552 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
32553 }
32554 arg2 = static_cast< int >(val2);
32555 ecode3 = SWIG_AsVal_int(obj2, &val3);
32556 if (!SWIG_IsOK(ecode3)) {
32557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
32558 }
32559 arg3 = static_cast< int >(val3);
32560 ecode4 = SWIG_AsVal_int(obj3, &val4);
32561 if (!SWIG_IsOK(ecode4)) {
32562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
32563 }
32564 arg4 = static_cast< int >(val4);
32565 ecode5 = SWIG_AsVal_int(obj4, &val5);
32566 if (!SWIG_IsOK(ecode5)) {
32567 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
32568 }
32569 arg5 = static_cast< int >(val5);
32570 {
32571 PyThreadState* __tstate = wxPyBeginAllowThreads();
32572 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
32573 wxPyEndAllowThreads(__tstate);
32574 if (PyErr_Occurred()) SWIG_fail;
32575 }
32576 resultobj = SWIG_Py_Void();
32577 return resultobj;
32578 fail:
32579 return NULL;
32580 }
32581
32582
32583 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32584 PyObject *resultobj = 0;
32585 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32586 wxRect *arg2 = 0 ;
32587 void *argp1 = 0 ;
32588 int res1 = 0 ;
32589 wxRect temp2 ;
32590 PyObject * obj0 = 0 ;
32591 PyObject * obj1 = 0 ;
32592 char * kwnames[] = {
32593 (char *) "self",(char *) "rect", NULL
32594 };
32595
32596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
32597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32598 if (!SWIG_IsOK(res1)) {
32599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32600 }
32601 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32602 {
32603 arg2 = &temp2;
32604 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32605 }
32606 {
32607 PyThreadState* __tstate = wxPyBeginAllowThreads();
32608 (arg1)->DrawCheckMark((wxRect const &)*arg2);
32609 wxPyEndAllowThreads(__tstate);
32610 if (PyErr_Occurred()) SWIG_fail;
32611 }
32612 resultobj = SWIG_Py_Void();
32613 return resultobj;
32614 fail:
32615 return NULL;
32616 }
32617
32618
32619 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32620 PyObject *resultobj = 0;
32621 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32622 int arg2 ;
32623 int arg3 ;
32624 int arg4 ;
32625 int arg5 ;
32626 double arg6 ;
32627 double arg7 ;
32628 void *argp1 = 0 ;
32629 int res1 = 0 ;
32630 int val2 ;
32631 int ecode2 = 0 ;
32632 int val3 ;
32633 int ecode3 = 0 ;
32634 int val4 ;
32635 int ecode4 = 0 ;
32636 int val5 ;
32637 int ecode5 = 0 ;
32638 double val6 ;
32639 int ecode6 = 0 ;
32640 double val7 ;
32641 int ecode7 = 0 ;
32642 PyObject * obj0 = 0 ;
32643 PyObject * obj1 = 0 ;
32644 PyObject * obj2 = 0 ;
32645 PyObject * obj3 = 0 ;
32646 PyObject * obj4 = 0 ;
32647 PyObject * obj5 = 0 ;
32648 PyObject * obj6 = 0 ;
32649 char * kwnames[] = {
32650 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
32651 };
32652
32653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32655 if (!SWIG_IsOK(res1)) {
32656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32657 }
32658 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32659 ecode2 = SWIG_AsVal_int(obj1, &val2);
32660 if (!SWIG_IsOK(ecode2)) {
32661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
32662 }
32663 arg2 = static_cast< int >(val2);
32664 ecode3 = SWIG_AsVal_int(obj2, &val3);
32665 if (!SWIG_IsOK(ecode3)) {
32666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
32667 }
32668 arg3 = static_cast< int >(val3);
32669 ecode4 = SWIG_AsVal_int(obj3, &val4);
32670 if (!SWIG_IsOK(ecode4)) {
32671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
32672 }
32673 arg4 = static_cast< int >(val4);
32674 ecode5 = SWIG_AsVal_int(obj4, &val5);
32675 if (!SWIG_IsOK(ecode5)) {
32676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
32677 }
32678 arg5 = static_cast< int >(val5);
32679 ecode6 = SWIG_AsVal_double(obj5, &val6);
32680 if (!SWIG_IsOK(ecode6)) {
32681 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
32682 }
32683 arg6 = static_cast< double >(val6);
32684 ecode7 = SWIG_AsVal_double(obj6, &val7);
32685 if (!SWIG_IsOK(ecode7)) {
32686 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
32687 }
32688 arg7 = static_cast< double >(val7);
32689 {
32690 PyThreadState* __tstate = wxPyBeginAllowThreads();
32691 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
32692 wxPyEndAllowThreads(__tstate);
32693 if (PyErr_Occurred()) SWIG_fail;
32694 }
32695 resultobj = SWIG_Py_Void();
32696 return resultobj;
32697 fail:
32698 return NULL;
32699 }
32700
32701
32702 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32703 PyObject *resultobj = 0;
32704 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32705 wxPoint *arg2 = 0 ;
32706 wxSize *arg3 = 0 ;
32707 double arg4 ;
32708 double arg5 ;
32709 void *argp1 = 0 ;
32710 int res1 = 0 ;
32711 wxPoint temp2 ;
32712 wxSize temp3 ;
32713 double val4 ;
32714 int ecode4 = 0 ;
32715 double val5 ;
32716 int ecode5 = 0 ;
32717 PyObject * obj0 = 0 ;
32718 PyObject * obj1 = 0 ;
32719 PyObject * obj2 = 0 ;
32720 PyObject * obj3 = 0 ;
32721 PyObject * obj4 = 0 ;
32722 char * kwnames[] = {
32723 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
32724 };
32725
32726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32728 if (!SWIG_IsOK(res1)) {
32729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32730 }
32731 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32732 {
32733 arg2 = &temp2;
32734 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32735 }
32736 {
32737 arg3 = &temp3;
32738 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32739 }
32740 ecode4 = SWIG_AsVal_double(obj3, &val4);
32741 if (!SWIG_IsOK(ecode4)) {
32742 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
32743 }
32744 arg4 = static_cast< double >(val4);
32745 ecode5 = SWIG_AsVal_double(obj4, &val5);
32746 if (!SWIG_IsOK(ecode5)) {
32747 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
32748 }
32749 arg5 = static_cast< double >(val5);
32750 {
32751 PyThreadState* __tstate = wxPyBeginAllowThreads();
32752 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
32753 wxPyEndAllowThreads(__tstate);
32754 if (PyErr_Occurred()) SWIG_fail;
32755 }
32756 resultobj = SWIG_Py_Void();
32757 return resultobj;
32758 fail:
32759 return NULL;
32760 }
32761
32762
32763 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32764 PyObject *resultobj = 0;
32765 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32766 int arg2 ;
32767 int arg3 ;
32768 void *argp1 = 0 ;
32769 int res1 = 0 ;
32770 int val2 ;
32771 int ecode2 = 0 ;
32772 int val3 ;
32773 int ecode3 = 0 ;
32774 PyObject * obj0 = 0 ;
32775 PyObject * obj1 = 0 ;
32776 PyObject * obj2 = 0 ;
32777 char * kwnames[] = {
32778 (char *) "self",(char *) "x",(char *) "y", NULL
32779 };
32780
32781 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32782 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32783 if (!SWIG_IsOK(res1)) {
32784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32785 }
32786 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32787 ecode2 = SWIG_AsVal_int(obj1, &val2);
32788 if (!SWIG_IsOK(ecode2)) {
32789 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
32790 }
32791 arg2 = static_cast< int >(val2);
32792 ecode3 = SWIG_AsVal_int(obj2, &val3);
32793 if (!SWIG_IsOK(ecode3)) {
32794 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
32795 }
32796 arg3 = static_cast< int >(val3);
32797 {
32798 PyThreadState* __tstate = wxPyBeginAllowThreads();
32799 (arg1)->DrawPoint(arg2,arg3);
32800 wxPyEndAllowThreads(__tstate);
32801 if (PyErr_Occurred()) SWIG_fail;
32802 }
32803 resultobj = SWIG_Py_Void();
32804 return resultobj;
32805 fail:
32806 return NULL;
32807 }
32808
32809
32810 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32811 PyObject *resultobj = 0;
32812 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32813 wxPoint *arg2 = 0 ;
32814 void *argp1 = 0 ;
32815 int res1 = 0 ;
32816 wxPoint temp2 ;
32817 PyObject * obj0 = 0 ;
32818 PyObject * obj1 = 0 ;
32819 char * kwnames[] = {
32820 (char *) "self",(char *) "pt", NULL
32821 };
32822
32823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32825 if (!SWIG_IsOK(res1)) {
32826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32827 }
32828 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32829 {
32830 arg2 = &temp2;
32831 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32832 }
32833 {
32834 PyThreadState* __tstate = wxPyBeginAllowThreads();
32835 (arg1)->DrawPoint((wxPoint const &)*arg2);
32836 wxPyEndAllowThreads(__tstate);
32837 if (PyErr_Occurred()) SWIG_fail;
32838 }
32839 resultobj = SWIG_Py_Void();
32840 return resultobj;
32841 fail:
32842 return NULL;
32843 }
32844
32845
32846 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32847 PyObject *resultobj = 0;
32848 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32849 int arg2 ;
32850 int arg3 ;
32851 int arg4 ;
32852 int arg5 ;
32853 void *argp1 = 0 ;
32854 int res1 = 0 ;
32855 int val2 ;
32856 int ecode2 = 0 ;
32857 int val3 ;
32858 int ecode3 = 0 ;
32859 int val4 ;
32860 int ecode4 = 0 ;
32861 int val5 ;
32862 int ecode5 = 0 ;
32863 PyObject * obj0 = 0 ;
32864 PyObject * obj1 = 0 ;
32865 PyObject * obj2 = 0 ;
32866 PyObject * obj3 = 0 ;
32867 PyObject * obj4 = 0 ;
32868 char * kwnames[] = {
32869 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
32870 };
32871
32872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32874 if (!SWIG_IsOK(res1)) {
32875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32876 }
32877 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32878 ecode2 = SWIG_AsVal_int(obj1, &val2);
32879 if (!SWIG_IsOK(ecode2)) {
32880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
32881 }
32882 arg2 = static_cast< int >(val2);
32883 ecode3 = SWIG_AsVal_int(obj2, &val3);
32884 if (!SWIG_IsOK(ecode3)) {
32885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
32886 }
32887 arg3 = static_cast< int >(val3);
32888 ecode4 = SWIG_AsVal_int(obj3, &val4);
32889 if (!SWIG_IsOK(ecode4)) {
32890 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
32891 }
32892 arg4 = static_cast< int >(val4);
32893 ecode5 = SWIG_AsVal_int(obj4, &val5);
32894 if (!SWIG_IsOK(ecode5)) {
32895 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
32896 }
32897 arg5 = static_cast< int >(val5);
32898 {
32899 PyThreadState* __tstate = wxPyBeginAllowThreads();
32900 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
32901 wxPyEndAllowThreads(__tstate);
32902 if (PyErr_Occurred()) SWIG_fail;
32903 }
32904 resultobj = SWIG_Py_Void();
32905 return resultobj;
32906 fail:
32907 return NULL;
32908 }
32909
32910
32911 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32912 PyObject *resultobj = 0;
32913 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32914 wxRect *arg2 = 0 ;
32915 void *argp1 = 0 ;
32916 int res1 = 0 ;
32917 wxRect temp2 ;
32918 PyObject * obj0 = 0 ;
32919 PyObject * obj1 = 0 ;
32920 char * kwnames[] = {
32921 (char *) "self",(char *) "rect", NULL
32922 };
32923
32924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
32925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32926 if (!SWIG_IsOK(res1)) {
32927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32928 }
32929 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32930 {
32931 arg2 = &temp2;
32932 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
32933 }
32934 {
32935 PyThreadState* __tstate = wxPyBeginAllowThreads();
32936 (arg1)->DrawRectangle((wxRect const &)*arg2);
32937 wxPyEndAllowThreads(__tstate);
32938 if (PyErr_Occurred()) SWIG_fail;
32939 }
32940 resultobj = SWIG_Py_Void();
32941 return resultobj;
32942 fail:
32943 return NULL;
32944 }
32945
32946
32947 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32948 PyObject *resultobj = 0;
32949 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32950 wxPoint *arg2 = 0 ;
32951 wxSize *arg3 = 0 ;
32952 void *argp1 = 0 ;
32953 int res1 = 0 ;
32954 wxPoint temp2 ;
32955 wxSize temp3 ;
32956 PyObject * obj0 = 0 ;
32957 PyObject * obj1 = 0 ;
32958 PyObject * obj2 = 0 ;
32959 char * kwnames[] = {
32960 (char *) "self",(char *) "pt",(char *) "sz", NULL
32961 };
32962
32963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32965 if (!SWIG_IsOK(res1)) {
32966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32967 }
32968 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32969 {
32970 arg2 = &temp2;
32971 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32972 }
32973 {
32974 arg3 = &temp3;
32975 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
32976 }
32977 {
32978 PyThreadState* __tstate = wxPyBeginAllowThreads();
32979 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
32980 wxPyEndAllowThreads(__tstate);
32981 if (PyErr_Occurred()) SWIG_fail;
32982 }
32983 resultobj = SWIG_Py_Void();
32984 return resultobj;
32985 fail:
32986 return NULL;
32987 }
32988
32989
32990 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32991 PyObject *resultobj = 0;
32992 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32993 int arg2 ;
32994 int arg3 ;
32995 int arg4 ;
32996 int arg5 ;
32997 double arg6 ;
32998 void *argp1 = 0 ;
32999 int res1 = 0 ;
33000 int val2 ;
33001 int ecode2 = 0 ;
33002 int val3 ;
33003 int ecode3 = 0 ;
33004 int val4 ;
33005 int ecode4 = 0 ;
33006 int val5 ;
33007 int ecode5 = 0 ;
33008 double val6 ;
33009 int ecode6 = 0 ;
33010 PyObject * obj0 = 0 ;
33011 PyObject * obj1 = 0 ;
33012 PyObject * obj2 = 0 ;
33013 PyObject * obj3 = 0 ;
33014 PyObject * obj4 = 0 ;
33015 PyObject * obj5 = 0 ;
33016 char * kwnames[] = {
33017 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33018 };
33019
33020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33022 if (!SWIG_IsOK(res1)) {
33023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33024 }
33025 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33026 ecode2 = SWIG_AsVal_int(obj1, &val2);
33027 if (!SWIG_IsOK(ecode2)) {
33028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33029 }
33030 arg2 = static_cast< int >(val2);
33031 ecode3 = SWIG_AsVal_int(obj2, &val3);
33032 if (!SWIG_IsOK(ecode3)) {
33033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33034 }
33035 arg3 = static_cast< int >(val3);
33036 ecode4 = SWIG_AsVal_int(obj3, &val4);
33037 if (!SWIG_IsOK(ecode4)) {
33038 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33039 }
33040 arg4 = static_cast< int >(val4);
33041 ecode5 = SWIG_AsVal_int(obj4, &val5);
33042 if (!SWIG_IsOK(ecode5)) {
33043 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33044 }
33045 arg5 = static_cast< int >(val5);
33046 ecode6 = SWIG_AsVal_double(obj5, &val6);
33047 if (!SWIG_IsOK(ecode6)) {
33048 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33049 }
33050 arg6 = static_cast< double >(val6);
33051 {
33052 PyThreadState* __tstate = wxPyBeginAllowThreads();
33053 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33054 wxPyEndAllowThreads(__tstate);
33055 if (PyErr_Occurred()) SWIG_fail;
33056 }
33057 resultobj = SWIG_Py_Void();
33058 return resultobj;
33059 fail:
33060 return NULL;
33061 }
33062
33063
33064 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33065 PyObject *resultobj = 0;
33066 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33067 wxRect *arg2 = 0 ;
33068 double arg3 ;
33069 void *argp1 = 0 ;
33070 int res1 = 0 ;
33071 wxRect temp2 ;
33072 double val3 ;
33073 int ecode3 = 0 ;
33074 PyObject * obj0 = 0 ;
33075 PyObject * obj1 = 0 ;
33076 PyObject * obj2 = 0 ;
33077 char * kwnames[] = {
33078 (char *) "self",(char *) "r",(char *) "radius", NULL
33079 };
33080
33081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33083 if (!SWIG_IsOK(res1)) {
33084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33085 }
33086 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33087 {
33088 arg2 = &temp2;
33089 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33090 }
33091 ecode3 = SWIG_AsVal_double(obj2, &val3);
33092 if (!SWIG_IsOK(ecode3)) {
33093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33094 }
33095 arg3 = static_cast< double >(val3);
33096 {
33097 PyThreadState* __tstate = wxPyBeginAllowThreads();
33098 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33099 wxPyEndAllowThreads(__tstate);
33100 if (PyErr_Occurred()) SWIG_fail;
33101 }
33102 resultobj = SWIG_Py_Void();
33103 return resultobj;
33104 fail:
33105 return NULL;
33106 }
33107
33108
33109 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33110 PyObject *resultobj = 0;
33111 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33112 wxPoint *arg2 = 0 ;
33113 wxSize *arg3 = 0 ;
33114 double arg4 ;
33115 void *argp1 = 0 ;
33116 int res1 = 0 ;
33117 wxPoint temp2 ;
33118 wxSize temp3 ;
33119 double val4 ;
33120 int ecode4 = 0 ;
33121 PyObject * obj0 = 0 ;
33122 PyObject * obj1 = 0 ;
33123 PyObject * obj2 = 0 ;
33124 PyObject * obj3 = 0 ;
33125 char * kwnames[] = {
33126 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33127 };
33128
33129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33131 if (!SWIG_IsOK(res1)) {
33132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33133 }
33134 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33135 {
33136 arg2 = &temp2;
33137 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33138 }
33139 {
33140 arg3 = &temp3;
33141 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33142 }
33143 ecode4 = SWIG_AsVal_double(obj3, &val4);
33144 if (!SWIG_IsOK(ecode4)) {
33145 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33146 }
33147 arg4 = static_cast< double >(val4);
33148 {
33149 PyThreadState* __tstate = wxPyBeginAllowThreads();
33150 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33151 wxPyEndAllowThreads(__tstate);
33152 if (PyErr_Occurred()) SWIG_fail;
33153 }
33154 resultobj = SWIG_Py_Void();
33155 return resultobj;
33156 fail:
33157 return NULL;
33158 }
33159
33160
33161 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33162 PyObject *resultobj = 0;
33163 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33164 int arg2 ;
33165 int arg3 ;
33166 int arg4 ;
33167 void *argp1 = 0 ;
33168 int res1 = 0 ;
33169 int val2 ;
33170 int ecode2 = 0 ;
33171 int val3 ;
33172 int ecode3 = 0 ;
33173 int val4 ;
33174 int ecode4 = 0 ;
33175 PyObject * obj0 = 0 ;
33176 PyObject * obj1 = 0 ;
33177 PyObject * obj2 = 0 ;
33178 PyObject * obj3 = 0 ;
33179 char * kwnames[] = {
33180 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33181 };
33182
33183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33185 if (!SWIG_IsOK(res1)) {
33186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33187 }
33188 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33189 ecode2 = SWIG_AsVal_int(obj1, &val2);
33190 if (!SWIG_IsOK(ecode2)) {
33191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33192 }
33193 arg2 = static_cast< int >(val2);
33194 ecode3 = SWIG_AsVal_int(obj2, &val3);
33195 if (!SWIG_IsOK(ecode3)) {
33196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33197 }
33198 arg3 = static_cast< int >(val3);
33199 ecode4 = SWIG_AsVal_int(obj3, &val4);
33200 if (!SWIG_IsOK(ecode4)) {
33201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33202 }
33203 arg4 = static_cast< int >(val4);
33204 {
33205 PyThreadState* __tstate = wxPyBeginAllowThreads();
33206 (arg1)->DrawCircle(arg2,arg3,arg4);
33207 wxPyEndAllowThreads(__tstate);
33208 if (PyErr_Occurred()) SWIG_fail;
33209 }
33210 resultobj = SWIG_Py_Void();
33211 return resultobj;
33212 fail:
33213 return NULL;
33214 }
33215
33216
33217 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33218 PyObject *resultobj = 0;
33219 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33220 wxPoint *arg2 = 0 ;
33221 int arg3 ;
33222 void *argp1 = 0 ;
33223 int res1 = 0 ;
33224 wxPoint temp2 ;
33225 int val3 ;
33226 int ecode3 = 0 ;
33227 PyObject * obj0 = 0 ;
33228 PyObject * obj1 = 0 ;
33229 PyObject * obj2 = 0 ;
33230 char * kwnames[] = {
33231 (char *) "self",(char *) "pt",(char *) "radius", NULL
33232 };
33233
33234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33236 if (!SWIG_IsOK(res1)) {
33237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33238 }
33239 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33240 {
33241 arg2 = &temp2;
33242 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33243 }
33244 ecode3 = SWIG_AsVal_int(obj2, &val3);
33245 if (!SWIG_IsOK(ecode3)) {
33246 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33247 }
33248 arg3 = static_cast< int >(val3);
33249 {
33250 PyThreadState* __tstate = wxPyBeginAllowThreads();
33251 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33252 wxPyEndAllowThreads(__tstate);
33253 if (PyErr_Occurred()) SWIG_fail;
33254 }
33255 resultobj = SWIG_Py_Void();
33256 return resultobj;
33257 fail:
33258 return NULL;
33259 }
33260
33261
33262 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33263 PyObject *resultobj = 0;
33264 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33265 int arg2 ;
33266 int arg3 ;
33267 int arg4 ;
33268 int arg5 ;
33269 void *argp1 = 0 ;
33270 int res1 = 0 ;
33271 int val2 ;
33272 int ecode2 = 0 ;
33273 int val3 ;
33274 int ecode3 = 0 ;
33275 int val4 ;
33276 int ecode4 = 0 ;
33277 int val5 ;
33278 int ecode5 = 0 ;
33279 PyObject * obj0 = 0 ;
33280 PyObject * obj1 = 0 ;
33281 PyObject * obj2 = 0 ;
33282 PyObject * obj3 = 0 ;
33283 PyObject * obj4 = 0 ;
33284 char * kwnames[] = {
33285 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33286 };
33287
33288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33290 if (!SWIG_IsOK(res1)) {
33291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33292 }
33293 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33294 ecode2 = SWIG_AsVal_int(obj1, &val2);
33295 if (!SWIG_IsOK(ecode2)) {
33296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33297 }
33298 arg2 = static_cast< int >(val2);
33299 ecode3 = SWIG_AsVal_int(obj2, &val3);
33300 if (!SWIG_IsOK(ecode3)) {
33301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33302 }
33303 arg3 = static_cast< int >(val3);
33304 ecode4 = SWIG_AsVal_int(obj3, &val4);
33305 if (!SWIG_IsOK(ecode4)) {
33306 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33307 }
33308 arg4 = static_cast< int >(val4);
33309 ecode5 = SWIG_AsVal_int(obj4, &val5);
33310 if (!SWIG_IsOK(ecode5)) {
33311 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33312 }
33313 arg5 = static_cast< int >(val5);
33314 {
33315 PyThreadState* __tstate = wxPyBeginAllowThreads();
33316 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33317 wxPyEndAllowThreads(__tstate);
33318 if (PyErr_Occurred()) SWIG_fail;
33319 }
33320 resultobj = SWIG_Py_Void();
33321 return resultobj;
33322 fail:
33323 return NULL;
33324 }
33325
33326
33327 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33328 PyObject *resultobj = 0;
33329 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33330 wxRect *arg2 = 0 ;
33331 void *argp1 = 0 ;
33332 int res1 = 0 ;
33333 wxRect temp2 ;
33334 PyObject * obj0 = 0 ;
33335 PyObject * obj1 = 0 ;
33336 char * kwnames[] = {
33337 (char *) "self",(char *) "rect", NULL
33338 };
33339
33340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33342 if (!SWIG_IsOK(res1)) {
33343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33344 }
33345 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33346 {
33347 arg2 = &temp2;
33348 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33349 }
33350 {
33351 PyThreadState* __tstate = wxPyBeginAllowThreads();
33352 (arg1)->DrawEllipse((wxRect const &)*arg2);
33353 wxPyEndAllowThreads(__tstate);
33354 if (PyErr_Occurred()) SWIG_fail;
33355 }
33356 resultobj = SWIG_Py_Void();
33357 return resultobj;
33358 fail:
33359 return NULL;
33360 }
33361
33362
33363 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33364 PyObject *resultobj = 0;
33365 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33366 wxPoint *arg2 = 0 ;
33367 wxSize *arg3 = 0 ;
33368 void *argp1 = 0 ;
33369 int res1 = 0 ;
33370 wxPoint temp2 ;
33371 wxSize temp3 ;
33372 PyObject * obj0 = 0 ;
33373 PyObject * obj1 = 0 ;
33374 PyObject * obj2 = 0 ;
33375 char * kwnames[] = {
33376 (char *) "self",(char *) "pt",(char *) "sz", NULL
33377 };
33378
33379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33381 if (!SWIG_IsOK(res1)) {
33382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33383 }
33384 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33385 {
33386 arg2 = &temp2;
33387 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33388 }
33389 {
33390 arg3 = &temp3;
33391 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33392 }
33393 {
33394 PyThreadState* __tstate = wxPyBeginAllowThreads();
33395 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33396 wxPyEndAllowThreads(__tstate);
33397 if (PyErr_Occurred()) SWIG_fail;
33398 }
33399 resultobj = SWIG_Py_Void();
33400 return resultobj;
33401 fail:
33402 return NULL;
33403 }
33404
33405
33406 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33407 PyObject *resultobj = 0;
33408 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33409 wxIcon *arg2 = 0 ;
33410 int arg3 ;
33411 int arg4 ;
33412 void *argp1 = 0 ;
33413 int res1 = 0 ;
33414 void *argp2 = 0 ;
33415 int res2 = 0 ;
33416 int val3 ;
33417 int ecode3 = 0 ;
33418 int val4 ;
33419 int ecode4 = 0 ;
33420 PyObject * obj0 = 0 ;
33421 PyObject * obj1 = 0 ;
33422 PyObject * obj2 = 0 ;
33423 PyObject * obj3 = 0 ;
33424 char * kwnames[] = {
33425 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33426 };
33427
33428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33430 if (!SWIG_IsOK(res1)) {
33431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33432 }
33433 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33434 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33435 if (!SWIG_IsOK(res2)) {
33436 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33437 }
33438 if (!argp2) {
33439 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33440 }
33441 arg2 = reinterpret_cast< wxIcon * >(argp2);
33442 ecode3 = SWIG_AsVal_int(obj2, &val3);
33443 if (!SWIG_IsOK(ecode3)) {
33444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33445 }
33446 arg3 = static_cast< int >(val3);
33447 ecode4 = SWIG_AsVal_int(obj3, &val4);
33448 if (!SWIG_IsOK(ecode4)) {
33449 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33450 }
33451 arg4 = static_cast< int >(val4);
33452 {
33453 PyThreadState* __tstate = wxPyBeginAllowThreads();
33454 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33455 wxPyEndAllowThreads(__tstate);
33456 if (PyErr_Occurred()) SWIG_fail;
33457 }
33458 resultobj = SWIG_Py_Void();
33459 return resultobj;
33460 fail:
33461 return NULL;
33462 }
33463
33464
33465 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33466 PyObject *resultobj = 0;
33467 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33468 wxIcon *arg2 = 0 ;
33469 wxPoint *arg3 = 0 ;
33470 void *argp1 = 0 ;
33471 int res1 = 0 ;
33472 void *argp2 = 0 ;
33473 int res2 = 0 ;
33474 wxPoint temp3 ;
33475 PyObject * obj0 = 0 ;
33476 PyObject * obj1 = 0 ;
33477 PyObject * obj2 = 0 ;
33478 char * kwnames[] = {
33479 (char *) "self",(char *) "icon",(char *) "pt", NULL
33480 };
33481
33482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33484 if (!SWIG_IsOK(res1)) {
33485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33486 }
33487 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33488 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33489 if (!SWIG_IsOK(res2)) {
33490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33491 }
33492 if (!argp2) {
33493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
33494 }
33495 arg2 = reinterpret_cast< wxIcon * >(argp2);
33496 {
33497 arg3 = &temp3;
33498 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33499 }
33500 {
33501 PyThreadState* __tstate = wxPyBeginAllowThreads();
33502 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
33503 wxPyEndAllowThreads(__tstate);
33504 if (PyErr_Occurred()) SWIG_fail;
33505 }
33506 resultobj = SWIG_Py_Void();
33507 return resultobj;
33508 fail:
33509 return NULL;
33510 }
33511
33512
33513 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33514 PyObject *resultobj = 0;
33515 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33516 wxBitmap *arg2 = 0 ;
33517 int arg3 ;
33518 int arg4 ;
33519 bool arg5 = (bool) false ;
33520 void *argp1 = 0 ;
33521 int res1 = 0 ;
33522 void *argp2 = 0 ;
33523 int res2 = 0 ;
33524 int val3 ;
33525 int ecode3 = 0 ;
33526 int val4 ;
33527 int ecode4 = 0 ;
33528 bool val5 ;
33529 int ecode5 = 0 ;
33530 PyObject * obj0 = 0 ;
33531 PyObject * obj1 = 0 ;
33532 PyObject * obj2 = 0 ;
33533 PyObject * obj3 = 0 ;
33534 PyObject * obj4 = 0 ;
33535 char * kwnames[] = {
33536 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
33537 };
33538
33539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33541 if (!SWIG_IsOK(res1)) {
33542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33543 }
33544 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33545 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33546 if (!SWIG_IsOK(res2)) {
33547 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33548 }
33549 if (!argp2) {
33550 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33551 }
33552 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33553 ecode3 = SWIG_AsVal_int(obj2, &val3);
33554 if (!SWIG_IsOK(ecode3)) {
33555 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
33556 }
33557 arg3 = static_cast< int >(val3);
33558 ecode4 = SWIG_AsVal_int(obj3, &val4);
33559 if (!SWIG_IsOK(ecode4)) {
33560 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
33561 }
33562 arg4 = static_cast< int >(val4);
33563 if (obj4) {
33564 ecode5 = SWIG_AsVal_bool(obj4, &val5);
33565 if (!SWIG_IsOK(ecode5)) {
33566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
33567 }
33568 arg5 = static_cast< bool >(val5);
33569 }
33570 {
33571 PyThreadState* __tstate = wxPyBeginAllowThreads();
33572 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
33573 wxPyEndAllowThreads(__tstate);
33574 if (PyErr_Occurred()) SWIG_fail;
33575 }
33576 resultobj = SWIG_Py_Void();
33577 return resultobj;
33578 fail:
33579 return NULL;
33580 }
33581
33582
33583 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33584 PyObject *resultobj = 0;
33585 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33586 wxBitmap *arg2 = 0 ;
33587 wxPoint *arg3 = 0 ;
33588 bool arg4 = (bool) false ;
33589 void *argp1 = 0 ;
33590 int res1 = 0 ;
33591 void *argp2 = 0 ;
33592 int res2 = 0 ;
33593 wxPoint temp3 ;
33594 bool val4 ;
33595 int ecode4 = 0 ;
33596 PyObject * obj0 = 0 ;
33597 PyObject * obj1 = 0 ;
33598 PyObject * obj2 = 0 ;
33599 PyObject * obj3 = 0 ;
33600 char * kwnames[] = {
33601 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
33602 };
33603
33604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33606 if (!SWIG_IsOK(res1)) {
33607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33608 }
33609 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33610 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
33611 if (!SWIG_IsOK(res2)) {
33612 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33613 }
33614 if (!argp2) {
33615 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
33616 }
33617 arg2 = reinterpret_cast< wxBitmap * >(argp2);
33618 {
33619 arg3 = &temp3;
33620 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33621 }
33622 if (obj3) {
33623 ecode4 = SWIG_AsVal_bool(obj3, &val4);
33624 if (!SWIG_IsOK(ecode4)) {
33625 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
33626 }
33627 arg4 = static_cast< bool >(val4);
33628 }
33629 {
33630 PyThreadState* __tstate = wxPyBeginAllowThreads();
33631 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
33632 wxPyEndAllowThreads(__tstate);
33633 if (PyErr_Occurred()) SWIG_fail;
33634 }
33635 resultobj = SWIG_Py_Void();
33636 return resultobj;
33637 fail:
33638 return NULL;
33639 }
33640
33641
33642 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33643 PyObject *resultobj = 0;
33644 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33645 wxString *arg2 = 0 ;
33646 int arg3 ;
33647 int arg4 ;
33648 void *argp1 = 0 ;
33649 int res1 = 0 ;
33650 bool temp2 = false ;
33651 int val3 ;
33652 int ecode3 = 0 ;
33653 int val4 ;
33654 int ecode4 = 0 ;
33655 PyObject * obj0 = 0 ;
33656 PyObject * obj1 = 0 ;
33657 PyObject * obj2 = 0 ;
33658 PyObject * obj3 = 0 ;
33659 char * kwnames[] = {
33660 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
33661 };
33662
33663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33665 if (!SWIG_IsOK(res1)) {
33666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33667 }
33668 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33669 {
33670 arg2 = wxString_in_helper(obj1);
33671 if (arg2 == NULL) SWIG_fail;
33672 temp2 = true;
33673 }
33674 ecode3 = SWIG_AsVal_int(obj2, &val3);
33675 if (!SWIG_IsOK(ecode3)) {
33676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
33677 }
33678 arg3 = static_cast< int >(val3);
33679 ecode4 = SWIG_AsVal_int(obj3, &val4);
33680 if (!SWIG_IsOK(ecode4)) {
33681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
33682 }
33683 arg4 = static_cast< int >(val4);
33684 {
33685 PyThreadState* __tstate = wxPyBeginAllowThreads();
33686 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
33687 wxPyEndAllowThreads(__tstate);
33688 if (PyErr_Occurred()) SWIG_fail;
33689 }
33690 resultobj = SWIG_Py_Void();
33691 {
33692 if (temp2)
33693 delete arg2;
33694 }
33695 return resultobj;
33696 fail:
33697 {
33698 if (temp2)
33699 delete arg2;
33700 }
33701 return NULL;
33702 }
33703
33704
33705 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33706 PyObject *resultobj = 0;
33707 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33708 wxString *arg2 = 0 ;
33709 wxPoint *arg3 = 0 ;
33710 void *argp1 = 0 ;
33711 int res1 = 0 ;
33712 bool temp2 = false ;
33713 wxPoint temp3 ;
33714 PyObject * obj0 = 0 ;
33715 PyObject * obj1 = 0 ;
33716 PyObject * obj2 = 0 ;
33717 char * kwnames[] = {
33718 (char *) "self",(char *) "text",(char *) "pt", NULL
33719 };
33720
33721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33723 if (!SWIG_IsOK(res1)) {
33724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33725 }
33726 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33727 {
33728 arg2 = wxString_in_helper(obj1);
33729 if (arg2 == NULL) SWIG_fail;
33730 temp2 = true;
33731 }
33732 {
33733 arg3 = &temp3;
33734 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33735 }
33736 {
33737 PyThreadState* __tstate = wxPyBeginAllowThreads();
33738 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
33739 wxPyEndAllowThreads(__tstate);
33740 if (PyErr_Occurred()) SWIG_fail;
33741 }
33742 resultobj = SWIG_Py_Void();
33743 {
33744 if (temp2)
33745 delete arg2;
33746 }
33747 return resultobj;
33748 fail:
33749 {
33750 if (temp2)
33751 delete arg2;
33752 }
33753 return NULL;
33754 }
33755
33756
33757 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33758 PyObject *resultobj = 0;
33759 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33760 wxString *arg2 = 0 ;
33761 int arg3 ;
33762 int arg4 ;
33763 double arg5 ;
33764 void *argp1 = 0 ;
33765 int res1 = 0 ;
33766 bool temp2 = false ;
33767 int val3 ;
33768 int ecode3 = 0 ;
33769 int val4 ;
33770 int ecode4 = 0 ;
33771 double val5 ;
33772 int ecode5 = 0 ;
33773 PyObject * obj0 = 0 ;
33774 PyObject * obj1 = 0 ;
33775 PyObject * obj2 = 0 ;
33776 PyObject * obj3 = 0 ;
33777 PyObject * obj4 = 0 ;
33778 char * kwnames[] = {
33779 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
33780 };
33781
33782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33784 if (!SWIG_IsOK(res1)) {
33785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33786 }
33787 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33788 {
33789 arg2 = wxString_in_helper(obj1);
33790 if (arg2 == NULL) SWIG_fail;
33791 temp2 = true;
33792 }
33793 ecode3 = SWIG_AsVal_int(obj2, &val3);
33794 if (!SWIG_IsOK(ecode3)) {
33795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
33796 }
33797 arg3 = static_cast< int >(val3);
33798 ecode4 = SWIG_AsVal_int(obj3, &val4);
33799 if (!SWIG_IsOK(ecode4)) {
33800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
33801 }
33802 arg4 = static_cast< int >(val4);
33803 ecode5 = SWIG_AsVal_double(obj4, &val5);
33804 if (!SWIG_IsOK(ecode5)) {
33805 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
33806 }
33807 arg5 = static_cast< double >(val5);
33808 {
33809 PyThreadState* __tstate = wxPyBeginAllowThreads();
33810 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
33811 wxPyEndAllowThreads(__tstate);
33812 if (PyErr_Occurred()) SWIG_fail;
33813 }
33814 resultobj = SWIG_Py_Void();
33815 {
33816 if (temp2)
33817 delete arg2;
33818 }
33819 return resultobj;
33820 fail:
33821 {
33822 if (temp2)
33823 delete arg2;
33824 }
33825 return NULL;
33826 }
33827
33828
33829 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33830 PyObject *resultobj = 0;
33831 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33832 wxString *arg2 = 0 ;
33833 wxPoint *arg3 = 0 ;
33834 double arg4 ;
33835 void *argp1 = 0 ;
33836 int res1 = 0 ;
33837 bool temp2 = false ;
33838 wxPoint temp3 ;
33839 double val4 ;
33840 int ecode4 = 0 ;
33841 PyObject * obj0 = 0 ;
33842 PyObject * obj1 = 0 ;
33843 PyObject * obj2 = 0 ;
33844 PyObject * obj3 = 0 ;
33845 char * kwnames[] = {
33846 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
33847 };
33848
33849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33851 if (!SWIG_IsOK(res1)) {
33852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33853 }
33854 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33855 {
33856 arg2 = wxString_in_helper(obj1);
33857 if (arg2 == NULL) SWIG_fail;
33858 temp2 = true;
33859 }
33860 {
33861 arg3 = &temp3;
33862 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33863 }
33864 ecode4 = SWIG_AsVal_double(obj3, &val4);
33865 if (!SWIG_IsOK(ecode4)) {
33866 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
33867 }
33868 arg4 = static_cast< double >(val4);
33869 {
33870 PyThreadState* __tstate = wxPyBeginAllowThreads();
33871 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
33872 wxPyEndAllowThreads(__tstate);
33873 if (PyErr_Occurred()) SWIG_fail;
33874 }
33875 resultobj = SWIG_Py_Void();
33876 {
33877 if (temp2)
33878 delete arg2;
33879 }
33880 return resultobj;
33881 fail:
33882 {
33883 if (temp2)
33884 delete arg2;
33885 }
33886 return NULL;
33887 }
33888
33889
33890 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33891 PyObject *resultobj = 0;
33892 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33893 int arg2 ;
33894 wxPoint *arg3 = (wxPoint *) 0 ;
33895 int arg4 = (int) 0 ;
33896 int arg5 = (int) 0 ;
33897 void *argp1 = 0 ;
33898 int res1 = 0 ;
33899 int val4 ;
33900 int ecode4 = 0 ;
33901 int val5 ;
33902 int ecode5 = 0 ;
33903 PyObject * obj0 = 0 ;
33904 PyObject * obj1 = 0 ;
33905 PyObject * obj2 = 0 ;
33906 PyObject * obj3 = 0 ;
33907 char * kwnames[] = {
33908 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
33909 };
33910
33911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33913 if (!SWIG_IsOK(res1)) {
33914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33915 }
33916 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33917 {
33918 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33919 if (arg3 == NULL) SWIG_fail;
33920 }
33921 if (obj2) {
33922 ecode4 = SWIG_AsVal_int(obj2, &val4);
33923 if (!SWIG_IsOK(ecode4)) {
33924 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
33925 }
33926 arg4 = static_cast< int >(val4);
33927 }
33928 if (obj3) {
33929 ecode5 = SWIG_AsVal_int(obj3, &val5);
33930 if (!SWIG_IsOK(ecode5)) {
33931 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
33932 }
33933 arg5 = static_cast< int >(val5);
33934 }
33935 {
33936 PyThreadState* __tstate = wxPyBeginAllowThreads();
33937 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
33938 wxPyEndAllowThreads(__tstate);
33939 if (PyErr_Occurred()) SWIG_fail;
33940 }
33941 resultobj = SWIG_Py_Void();
33942 {
33943 if (arg3) delete [] arg3;
33944 }
33945 return resultobj;
33946 fail:
33947 {
33948 if (arg3) delete [] arg3;
33949 }
33950 return NULL;
33951 }
33952
33953
33954 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33955 PyObject *resultobj = 0;
33956 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33957 int arg2 ;
33958 wxPoint *arg3 = (wxPoint *) 0 ;
33959 int arg4 = (int) 0 ;
33960 int arg5 = (int) 0 ;
33961 int arg6 = (int) wxODDEVEN_RULE ;
33962 void *argp1 = 0 ;
33963 int res1 = 0 ;
33964 int val4 ;
33965 int ecode4 = 0 ;
33966 int val5 ;
33967 int ecode5 = 0 ;
33968 int val6 ;
33969 int ecode6 = 0 ;
33970 PyObject * obj0 = 0 ;
33971 PyObject * obj1 = 0 ;
33972 PyObject * obj2 = 0 ;
33973 PyObject * obj3 = 0 ;
33974 PyObject * obj4 = 0 ;
33975 char * kwnames[] = {
33976 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
33977 };
33978
33979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33981 if (!SWIG_IsOK(res1)) {
33982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33983 }
33984 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33985 {
33986 arg3 = wxPoint_LIST_helper(obj1, &arg2);
33987 if (arg3 == NULL) SWIG_fail;
33988 }
33989 if (obj2) {
33990 ecode4 = SWIG_AsVal_int(obj2, &val4);
33991 if (!SWIG_IsOK(ecode4)) {
33992 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
33993 }
33994 arg4 = static_cast< int >(val4);
33995 }
33996 if (obj3) {
33997 ecode5 = SWIG_AsVal_int(obj3, &val5);
33998 if (!SWIG_IsOK(ecode5)) {
33999 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34000 }
34001 arg5 = static_cast< int >(val5);
34002 }
34003 if (obj4) {
34004 ecode6 = SWIG_AsVal_int(obj4, &val6);
34005 if (!SWIG_IsOK(ecode6)) {
34006 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34007 }
34008 arg6 = static_cast< int >(val6);
34009 }
34010 {
34011 PyThreadState* __tstate = wxPyBeginAllowThreads();
34012 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34013 wxPyEndAllowThreads(__tstate);
34014 if (PyErr_Occurred()) SWIG_fail;
34015 }
34016 resultobj = SWIG_Py_Void();
34017 {
34018 if (arg3) delete [] arg3;
34019 }
34020 return resultobj;
34021 fail:
34022 {
34023 if (arg3) delete [] arg3;
34024 }
34025 return NULL;
34026 }
34027
34028
34029 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34030 PyObject *resultobj = 0;
34031 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34032 wxString *arg2 = 0 ;
34033 wxRect *arg3 = 0 ;
34034 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34035 int arg5 = (int) -1 ;
34036 void *argp1 = 0 ;
34037 int res1 = 0 ;
34038 bool temp2 = false ;
34039 wxRect temp3 ;
34040 int val4 ;
34041 int ecode4 = 0 ;
34042 int val5 ;
34043 int ecode5 = 0 ;
34044 PyObject * obj0 = 0 ;
34045 PyObject * obj1 = 0 ;
34046 PyObject * obj2 = 0 ;
34047 PyObject * obj3 = 0 ;
34048 PyObject * obj4 = 0 ;
34049 char * kwnames[] = {
34050 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34051 };
34052
34053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34055 if (!SWIG_IsOK(res1)) {
34056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34057 }
34058 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34059 {
34060 arg2 = wxString_in_helper(obj1);
34061 if (arg2 == NULL) SWIG_fail;
34062 temp2 = true;
34063 }
34064 {
34065 arg3 = &temp3;
34066 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34067 }
34068 if (obj3) {
34069 ecode4 = SWIG_AsVal_int(obj3, &val4);
34070 if (!SWIG_IsOK(ecode4)) {
34071 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34072 }
34073 arg4 = static_cast< int >(val4);
34074 }
34075 if (obj4) {
34076 ecode5 = SWIG_AsVal_int(obj4, &val5);
34077 if (!SWIG_IsOK(ecode5)) {
34078 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34079 }
34080 arg5 = static_cast< int >(val5);
34081 }
34082 {
34083 PyThreadState* __tstate = wxPyBeginAllowThreads();
34084 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34085 wxPyEndAllowThreads(__tstate);
34086 if (PyErr_Occurred()) SWIG_fail;
34087 }
34088 resultobj = SWIG_Py_Void();
34089 {
34090 if (temp2)
34091 delete arg2;
34092 }
34093 return resultobj;
34094 fail:
34095 {
34096 if (temp2)
34097 delete arg2;
34098 }
34099 return NULL;
34100 }
34101
34102
34103 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34104 PyObject *resultobj = 0;
34105 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34106 wxString *arg2 = 0 ;
34107 wxBitmap *arg3 = 0 ;
34108 wxRect *arg4 = 0 ;
34109 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34110 int arg6 = (int) -1 ;
34111 void *argp1 = 0 ;
34112 int res1 = 0 ;
34113 bool temp2 = false ;
34114 void *argp3 = 0 ;
34115 int res3 = 0 ;
34116 wxRect temp4 ;
34117 int val5 ;
34118 int ecode5 = 0 ;
34119 int val6 ;
34120 int ecode6 = 0 ;
34121 PyObject * obj0 = 0 ;
34122 PyObject * obj1 = 0 ;
34123 PyObject * obj2 = 0 ;
34124 PyObject * obj3 = 0 ;
34125 PyObject * obj4 = 0 ;
34126 PyObject * obj5 = 0 ;
34127 char * kwnames[] = {
34128 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34129 };
34130
34131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34133 if (!SWIG_IsOK(res1)) {
34134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34135 }
34136 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34137 {
34138 arg2 = wxString_in_helper(obj1);
34139 if (arg2 == NULL) SWIG_fail;
34140 temp2 = true;
34141 }
34142 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34143 if (!SWIG_IsOK(res3)) {
34144 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34145 }
34146 if (!argp3) {
34147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34148 }
34149 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34150 {
34151 arg4 = &temp4;
34152 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34153 }
34154 if (obj4) {
34155 ecode5 = SWIG_AsVal_int(obj4, &val5);
34156 if (!SWIG_IsOK(ecode5)) {
34157 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34158 }
34159 arg5 = static_cast< int >(val5);
34160 }
34161 if (obj5) {
34162 ecode6 = SWIG_AsVal_int(obj5, &val6);
34163 if (!SWIG_IsOK(ecode6)) {
34164 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34165 }
34166 arg6 = static_cast< int >(val6);
34167 }
34168 {
34169 PyThreadState* __tstate = wxPyBeginAllowThreads();
34170 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34171 wxPyEndAllowThreads(__tstate);
34172 if (PyErr_Occurred()) SWIG_fail;
34173 }
34174 resultobj = SWIG_Py_Void();
34175 {
34176 if (temp2)
34177 delete arg2;
34178 }
34179 return resultobj;
34180 fail:
34181 {
34182 if (temp2)
34183 delete arg2;
34184 }
34185 return NULL;
34186 }
34187
34188
34189 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34190 PyObject *resultobj = 0;
34191 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34192 int arg2 ;
34193 wxPoint *arg3 = (wxPoint *) 0 ;
34194 void *argp1 = 0 ;
34195 int res1 = 0 ;
34196 PyObject * obj0 = 0 ;
34197 PyObject * obj1 = 0 ;
34198 char * kwnames[] = {
34199 (char *) "self",(char *) "points", NULL
34200 };
34201
34202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34204 if (!SWIG_IsOK(res1)) {
34205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34206 }
34207 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34208 {
34209 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34210 if (arg3 == NULL) SWIG_fail;
34211 }
34212 {
34213 PyThreadState* __tstate = wxPyBeginAllowThreads();
34214 (arg1)->DrawSpline(arg2,arg3);
34215 wxPyEndAllowThreads(__tstate);
34216 if (PyErr_Occurred()) SWIG_fail;
34217 }
34218 resultobj = SWIG_Py_Void();
34219 {
34220 if (arg3) delete [] arg3;
34221 }
34222 return resultobj;
34223 fail:
34224 {
34225 if (arg3) delete [] arg3;
34226 }
34227 return NULL;
34228 }
34229
34230
34231 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34232 PyObject *resultobj = 0;
34233 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34234 void *argp1 = 0 ;
34235 int res1 = 0 ;
34236 PyObject *swig_obj[1] ;
34237
34238 if (!args) SWIG_fail;
34239 swig_obj[0] = args;
34240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34241 if (!SWIG_IsOK(res1)) {
34242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34243 }
34244 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34245 {
34246 PyThreadState* __tstate = wxPyBeginAllowThreads();
34247 (arg1)->Clear();
34248 wxPyEndAllowThreads(__tstate);
34249 if (PyErr_Occurred()) SWIG_fail;
34250 }
34251 resultobj = SWIG_Py_Void();
34252 return resultobj;
34253 fail:
34254 return NULL;
34255 }
34256
34257
34258 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34259 PyObject *resultobj = 0;
34260 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34261 wxFont *arg2 = 0 ;
34262 void *argp1 = 0 ;
34263 int res1 = 0 ;
34264 void *argp2 = 0 ;
34265 int res2 = 0 ;
34266 PyObject * obj0 = 0 ;
34267 PyObject * obj1 = 0 ;
34268 char * kwnames[] = {
34269 (char *) "self",(char *) "font", NULL
34270 };
34271
34272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34273 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34274 if (!SWIG_IsOK(res1)) {
34275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34276 }
34277 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34278 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34279 if (!SWIG_IsOK(res2)) {
34280 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34281 }
34282 if (!argp2) {
34283 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34284 }
34285 arg2 = reinterpret_cast< wxFont * >(argp2);
34286 {
34287 PyThreadState* __tstate = wxPyBeginAllowThreads();
34288 (arg1)->SetFont((wxFont const &)*arg2);
34289 wxPyEndAllowThreads(__tstate);
34290 if (PyErr_Occurred()) SWIG_fail;
34291 }
34292 resultobj = SWIG_Py_Void();
34293 return resultobj;
34294 fail:
34295 return NULL;
34296 }
34297
34298
34299 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34300 PyObject *resultobj = 0;
34301 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34302 wxPen *arg2 = 0 ;
34303 void *argp1 = 0 ;
34304 int res1 = 0 ;
34305 void *argp2 = 0 ;
34306 int res2 = 0 ;
34307 PyObject * obj0 = 0 ;
34308 PyObject * obj1 = 0 ;
34309 char * kwnames[] = {
34310 (char *) "self",(char *) "pen", NULL
34311 };
34312
34313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34315 if (!SWIG_IsOK(res1)) {
34316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34317 }
34318 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34319 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34320 if (!SWIG_IsOK(res2)) {
34321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34322 }
34323 if (!argp2) {
34324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34325 }
34326 arg2 = reinterpret_cast< wxPen * >(argp2);
34327 {
34328 PyThreadState* __tstate = wxPyBeginAllowThreads();
34329 (arg1)->SetPen((wxPen const &)*arg2);
34330 wxPyEndAllowThreads(__tstate);
34331 if (PyErr_Occurred()) SWIG_fail;
34332 }
34333 resultobj = SWIG_Py_Void();
34334 return resultobj;
34335 fail:
34336 return NULL;
34337 }
34338
34339
34340 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34341 PyObject *resultobj = 0;
34342 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34343 wxBrush *arg2 = 0 ;
34344 void *argp1 = 0 ;
34345 int res1 = 0 ;
34346 void *argp2 = 0 ;
34347 int res2 = 0 ;
34348 PyObject * obj0 = 0 ;
34349 PyObject * obj1 = 0 ;
34350 char * kwnames[] = {
34351 (char *) "self",(char *) "brush", NULL
34352 };
34353
34354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34356 if (!SWIG_IsOK(res1)) {
34357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34358 }
34359 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34360 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34361 if (!SWIG_IsOK(res2)) {
34362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34363 }
34364 if (!argp2) {
34365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34366 }
34367 arg2 = reinterpret_cast< wxBrush * >(argp2);
34368 {
34369 PyThreadState* __tstate = wxPyBeginAllowThreads();
34370 (arg1)->SetBrush((wxBrush const &)*arg2);
34371 wxPyEndAllowThreads(__tstate);
34372 if (PyErr_Occurred()) SWIG_fail;
34373 }
34374 resultobj = SWIG_Py_Void();
34375 return resultobj;
34376 fail:
34377 return NULL;
34378 }
34379
34380
34381 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34382 PyObject *resultobj = 0;
34383 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34384 wxBrush *arg2 = 0 ;
34385 void *argp1 = 0 ;
34386 int res1 = 0 ;
34387 void *argp2 = 0 ;
34388 int res2 = 0 ;
34389 PyObject * obj0 = 0 ;
34390 PyObject * obj1 = 0 ;
34391 char * kwnames[] = {
34392 (char *) "self",(char *) "brush", NULL
34393 };
34394
34395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34397 if (!SWIG_IsOK(res1)) {
34398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34399 }
34400 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34402 if (!SWIG_IsOK(res2)) {
34403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34404 }
34405 if (!argp2) {
34406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34407 }
34408 arg2 = reinterpret_cast< wxBrush * >(argp2);
34409 {
34410 PyThreadState* __tstate = wxPyBeginAllowThreads();
34411 (arg1)->SetBackground((wxBrush const &)*arg2);
34412 wxPyEndAllowThreads(__tstate);
34413 if (PyErr_Occurred()) SWIG_fail;
34414 }
34415 resultobj = SWIG_Py_Void();
34416 return resultobj;
34417 fail:
34418 return NULL;
34419 }
34420
34421
34422 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34423 PyObject *resultobj = 0;
34424 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34425 int arg2 ;
34426 void *argp1 = 0 ;
34427 int res1 = 0 ;
34428 int val2 ;
34429 int ecode2 = 0 ;
34430 PyObject * obj0 = 0 ;
34431 PyObject * obj1 = 0 ;
34432 char * kwnames[] = {
34433 (char *) "self",(char *) "mode", NULL
34434 };
34435
34436 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34437 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34438 if (!SWIG_IsOK(res1)) {
34439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34440 }
34441 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34442 ecode2 = SWIG_AsVal_int(obj1, &val2);
34443 if (!SWIG_IsOK(ecode2)) {
34444 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34445 }
34446 arg2 = static_cast< int >(val2);
34447 {
34448 PyThreadState* __tstate = wxPyBeginAllowThreads();
34449 (arg1)->SetBackgroundMode(arg2);
34450 wxPyEndAllowThreads(__tstate);
34451 if (PyErr_Occurred()) SWIG_fail;
34452 }
34453 resultobj = SWIG_Py_Void();
34454 return resultobj;
34455 fail:
34456 return NULL;
34457 }
34458
34459
34460 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34461 PyObject *resultobj = 0;
34462 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34463 wxPalette *arg2 = 0 ;
34464 void *argp1 = 0 ;
34465 int res1 = 0 ;
34466 void *argp2 = 0 ;
34467 int res2 = 0 ;
34468 PyObject * obj0 = 0 ;
34469 PyObject * obj1 = 0 ;
34470 char * kwnames[] = {
34471 (char *) "self",(char *) "palette", NULL
34472 };
34473
34474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34476 if (!SWIG_IsOK(res1)) {
34477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34478 }
34479 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34480 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34481 if (!SWIG_IsOK(res2)) {
34482 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34483 }
34484 if (!argp2) {
34485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34486 }
34487 arg2 = reinterpret_cast< wxPalette * >(argp2);
34488 {
34489 PyThreadState* __tstate = wxPyBeginAllowThreads();
34490 (arg1)->SetPalette((wxPalette const &)*arg2);
34491 wxPyEndAllowThreads(__tstate);
34492 if (PyErr_Occurred()) SWIG_fail;
34493 }
34494 resultobj = SWIG_Py_Void();
34495 return resultobj;
34496 fail:
34497 return NULL;
34498 }
34499
34500
34501 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34502 PyObject *resultobj = 0;
34503 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34504 wxColour *arg2 = 0 ;
34505 void *argp1 = 0 ;
34506 int res1 = 0 ;
34507 wxColour temp2 ;
34508 PyObject * obj0 = 0 ;
34509 PyObject * obj1 = 0 ;
34510 char * kwnames[] = {
34511 (char *) "self",(char *) "colour", NULL
34512 };
34513
34514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
34515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34516 if (!SWIG_IsOK(res1)) {
34517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34518 }
34519 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34520 {
34521 arg2 = &temp2;
34522 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34523 }
34524 {
34525 PyThreadState* __tstate = wxPyBeginAllowThreads();
34526 (arg1)->SetTextForeground((wxColour const &)*arg2);
34527 wxPyEndAllowThreads(__tstate);
34528 if (PyErr_Occurred()) SWIG_fail;
34529 }
34530 resultobj = SWIG_Py_Void();
34531 return resultobj;
34532 fail:
34533 return NULL;
34534 }
34535
34536
34537 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34538 PyObject *resultobj = 0;
34539 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34540 wxColour *arg2 = 0 ;
34541 void *argp1 = 0 ;
34542 int res1 = 0 ;
34543 wxColour temp2 ;
34544 PyObject * obj0 = 0 ;
34545 PyObject * obj1 = 0 ;
34546 char * kwnames[] = {
34547 (char *) "self",(char *) "colour", NULL
34548 };
34549
34550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34552 if (!SWIG_IsOK(res1)) {
34553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34554 }
34555 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34556 {
34557 arg2 = &temp2;
34558 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
34559 }
34560 {
34561 PyThreadState* __tstate = wxPyBeginAllowThreads();
34562 (arg1)->SetTextBackground((wxColour const &)*arg2);
34563 wxPyEndAllowThreads(__tstate);
34564 if (PyErr_Occurred()) SWIG_fail;
34565 }
34566 resultobj = SWIG_Py_Void();
34567 return resultobj;
34568 fail:
34569 return NULL;
34570 }
34571
34572
34573 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34574 PyObject *resultobj = 0;
34575 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34576 int arg2 ;
34577 void *argp1 = 0 ;
34578 int res1 = 0 ;
34579 int val2 ;
34580 int ecode2 = 0 ;
34581 PyObject * obj0 = 0 ;
34582 PyObject * obj1 = 0 ;
34583 char * kwnames[] = {
34584 (char *) "self",(char *) "function", NULL
34585 };
34586
34587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
34588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34589 if (!SWIG_IsOK(res1)) {
34590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34591 }
34592 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34593 ecode2 = SWIG_AsVal_int(obj1, &val2);
34594 if (!SWIG_IsOK(ecode2)) {
34595 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
34596 }
34597 arg2 = static_cast< int >(val2);
34598 {
34599 PyThreadState* __tstate = wxPyBeginAllowThreads();
34600 (arg1)->SetLogicalFunction(arg2);
34601 wxPyEndAllowThreads(__tstate);
34602 if (PyErr_Occurred()) SWIG_fail;
34603 }
34604 resultobj = SWIG_Py_Void();
34605 return resultobj;
34606 fail:
34607 return NULL;
34608 }
34609
34610
34611 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34612 PyObject *obj;
34613 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
34614 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
34615 return SWIG_Py_Void();
34616 }
34617
34618 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34619 return SWIG_Python_InitShadowInstance(args);
34620 }
34621
34622 static PyMethodDef SwigMethods[] = {
34623 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
34624 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
34625 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
34626 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
34627 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
34628 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
34629 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
34630 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34631 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
34632 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
34633 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
34634 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
34635 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
34636 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
34637 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34638 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34639 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34640 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
34641 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
34642 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34643 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34644 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
34645 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
34646 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
34647 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
34648 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
34649 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
34650 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
34651 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
34652 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
34653 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
34654 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
34655 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
34656 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
34657 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
34658 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
34659 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
34660 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
34661 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
34662 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
34663 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
34664 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
34665 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34666 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
34667 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34668 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34669 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34670 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
34671 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
34672 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34673 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34674 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
34675 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
34676 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
34677 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34678 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
34679 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
34680 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34681 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
34682 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
34683 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
34684 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
34685 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
34686 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
34687 { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL},
34688 { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL},
34689 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
34690 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
34691 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34692 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
34693 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34694 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34695 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34696 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34697 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
34698 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
34699 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
34700 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
34701 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
34702 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
34703 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
34704 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
34705 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
34706 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
34707 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34708 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
34709 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
34710 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
34711 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34712 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34713 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34714 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34715 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
34716 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34717 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34718 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
34719 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
34720 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
34721 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
34722 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
34723 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
34724 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
34725 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
34726 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
34727 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
34728 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
34729 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
34730 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
34731 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
34732 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
34733 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
34734 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
34735 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
34736 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
34737 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
34738 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34739 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
34740 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
34741 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34742 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34743 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34744 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34745 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34746 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
34747 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
34748 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
34749 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
34750 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
34751 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
34752 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
34753 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
34754 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
34755 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
34756 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
34757 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
34758 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
34759 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
34760 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
34761 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34762 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
34763 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
34764 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
34765 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34766 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
34767 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
34768 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
34769 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
34770 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
34771 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
34772 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
34773 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
34774 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
34775 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
34776 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34777 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34778 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
34779 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
34780 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
34781 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
34782 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
34783 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
34784 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
34785 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
34786 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34787 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
34788 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
34789 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
34790 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
34791 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
34792 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
34793 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
34794 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
34795 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
34796 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
34797 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
34798 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
34799 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34800 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34801 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
34802 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34803 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
34804 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
34805 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
34806 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
34807 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
34808 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
34809 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
34810 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
34811 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
34812 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
34813 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
34814 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
34815 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34816 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34817 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
34818 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
34819 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
34820 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
34821 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
34822 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
34823 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
34824 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
34825 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
34826 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
34827 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
34828 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34829 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
34830 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
34831 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
34832 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
34833 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34834 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
34835 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
34836 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34837 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
34838 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
34839 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
34840 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
34841 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
34842 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
34843 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
34844 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
34845 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
34846 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
34847 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
34848 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
34849 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
34850 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
34851 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
34852 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
34853 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
34854 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
34855 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
34856 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
34857 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
34858 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
34859 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
34860 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
34861 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
34862 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
34863 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
34864 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
34865 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
34866 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
34867 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
34868 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
34869 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
34870 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
34871 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34872 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34873 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34874 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34875 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34876 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34877 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34878 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34879 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
34880 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
34881 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
34882 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
34883 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
34884 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
34885 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
34886 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
34887 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
34888 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
34889 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
34890 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
34891 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
34892 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
34893 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
34894 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
34895 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34896 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34897 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
34898 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
34899 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
34900 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
34901 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34902 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
34903 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34904 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
34905 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
34906 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
34907 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
34908 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
34909 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34910 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34911 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
34912 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
34913 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
34914 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
34915 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
34916 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
34917 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34918 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
34919 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
34920 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34921 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34922 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
34923 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
34924 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
34925 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
34926 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
34927 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
34928 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
34929 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
34930 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
34931 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
34932 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
34933 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
34934 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
34935 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
34936 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
34937 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
34938 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
34939 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
34940 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
34941 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
34942 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
34943 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
34944 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
34945 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34946 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34947 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
34948 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
34949 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
34950 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
34951 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
34952 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
34953 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
34954 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
34955 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
34956 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
34957 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
34958 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
34959 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
34960 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34961 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
34962 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
34963 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
34964 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
34965 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
34966 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
34967 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
34968 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
34969 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
34970 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
34971 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
34972 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
34973 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
34974 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
34975 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
34976 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
34977 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
34978 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
34979 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
34980 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
34981 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
34982 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
34983 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
34984 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
34985 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
34986 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
34987 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
34988 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
34989 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
34990 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
34991 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34992 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
34993 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
34994 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
34995 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
34996 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
34997 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
34998 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
34999 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35000 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35001 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35002 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35003 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35004 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35005 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
35006 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35007 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35008 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35009 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35010 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35011 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35012 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35013 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35014 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35015 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35016 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35017 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35018 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35019 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35020 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35021 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35022 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35023 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35024 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35025 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35026 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35027 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35028 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35029 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35030 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35031 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35032 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35033 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35034 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35035 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35036 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35037 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35038 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35039 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35040 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35041 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35042 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35043 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35044 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35045 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35046 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35047 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35048 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35049 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35050 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35051 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35052 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35053 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35054 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35055 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35056 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35057 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35058 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35059 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35060 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35061 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35062 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35063 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35064 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35065 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35066 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35067 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35068 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35069 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35070 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35071 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35072 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35073 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35074 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35075 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35076 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35077 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35078 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35079 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35080 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35081 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35082 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35083 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35084 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35085 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35086 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35087 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35088 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35089 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35090 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35091 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35092 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35093 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35094 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35095 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35096 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35097 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35098 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35099 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35100 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35101 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
35102 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
35103 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35104 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35105 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35106 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35107 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35108 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35109 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35110 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35111 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35112 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35113 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35114 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35115 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35116 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35117 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35118 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35119 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35120 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35121 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35122 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35123 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35124 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35125 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35126 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35127 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35128 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35129 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35130 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35131 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35132 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35133 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35134 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35135 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35136 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35137 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
35138 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
35139 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
35140 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35141 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35142 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35143 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35144 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35145 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35146 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
35147 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
35148 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35149 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35150 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35151 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
35152 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35153 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35154 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35155 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35156 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35157 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
35158 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35159 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35160 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
35161 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35162 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35163 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35164 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35165 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35166 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
35167 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35168 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35169 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35170 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35171 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35172 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35173 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35174 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35175 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35176 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
35177 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
35178 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
35179 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35180 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35181 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35182 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35183 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35184 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35185 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35186 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35187 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35188 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35189 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35190 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
35191 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
35192 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35193 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35194 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35195 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35196 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35197 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35198 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35199 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35200 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35201 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35202 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35203 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35204 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
35205 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35206 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35207 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35208 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35209 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35210 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35211 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35212 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35213 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35214 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35215 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35216 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35217 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35218 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
35219 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
35220 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35221 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35222 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
35223 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35224 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
35225 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
35226 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
35227 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35228 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35229 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35230 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35231 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35232 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35233 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35234 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35235 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35236 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35237 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35238 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
35239 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35240 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35241 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35242 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35243 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35244 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35245 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
35246 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
35247 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
35248 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35249 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35250 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35251 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35252 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35253 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35254 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
35255 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
35256 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
35257 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35258 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
35259 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35260 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35261 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35262 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35263 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35264 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35265 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35266 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35267 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35268 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
35269 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35270 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35271 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35272 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35273 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35274 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35275 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35276 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35277 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35278 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35279 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35280 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35281 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35282 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35283 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
35284 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35285 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35286 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35287 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35288 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35289 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35290 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35291 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35292 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35293 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35294 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35295 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35296 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35297 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35298 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
35299 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
35300 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
35301 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
35302 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
35303 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35304 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35305 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35306 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
35307 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35308 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35309 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35310 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
35311 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35312 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35313 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35314 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35315 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35316 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35317 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35318 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
35319 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35320 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35321 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35322 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
35323 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35324 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35325 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35326 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35327 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35328 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35329 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35330 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35331 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35332 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35333 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35334 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35335 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35336 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35337 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35338 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35339 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35340 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35341 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35342 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35343 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35344 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35345 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
35346 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35347 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35348 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35349 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35350 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35351 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35352 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35353 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35354 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35355 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35356 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35357 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35358 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35359 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35360 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35361 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35362 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35363 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
35364 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35365 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35366 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35367 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35368 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35369 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35370 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35371 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
35372 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35373 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35374 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35375 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35376 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35377 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35378 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
35379 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35380 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35381 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35382 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35383 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35384 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35385 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35386 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35387 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35388 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
35389 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35390 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35391 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35392 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35393 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35394 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35395 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35396 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35397 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35398 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
35399 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35400 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35401 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35402 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
35403 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35404 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35405 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35406 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35407 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35408 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35409 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35410 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35411 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35412 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35413 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35414 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35415 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35416 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35417 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35418 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35419 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35420 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35421 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35422 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35423 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35424 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35425 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35426 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35427 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35428 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35429 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35430 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35431 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35432 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35433 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35434 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35435 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35436 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35437 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35438 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35439 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35440 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35441 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35442 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35443 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35444 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35445 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35446 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35447 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35448 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35449 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35450 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35451 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35452 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35453 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35454 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35455 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35456 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35457 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35458 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35459 { NULL, NULL, 0, NULL }
35460 };
35461
35462
35463 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35464
35465 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35466 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35467 }
35468 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
35469 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
35470 }
35471 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
35472 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
35473 }
35474 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35475 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35476 }
35477 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
35478 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
35479 }
35480 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
35481 return (void *)((wxLocale *) ((wxPyLocale *) x));
35482 }
35483 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
35484 return (void *)((wxGDIObject *) ((wxIcon *) x));
35485 }
35486 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
35487 return (void *)((wxGDIObject *) ((wxPalette *) x));
35488 }
35489 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
35490 return (void *)((wxGDIObject *) ((wxPen *) x));
35491 }
35492 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
35493 return (void *)((wxGDIObject *) ((wxFont *) x));
35494 }
35495 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
35496 return (void *)((wxGDIObject *) ((wxCursor *) x));
35497 }
35498 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
35499 return (void *)((wxGDIObject *) ((wxBitmap *) x));
35500 }
35501 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
35502 return (void *)((wxGDIObject *) ((wxRegion *) x));
35503 }
35504 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
35505 return (void *)((wxGDIObject *) ((wxBrush *) x));
35506 }
35507 static void *_p_wxGCDCTo_p_wxDC(void *x) {
35508 return (void *)((wxDC *) ((wxGCDC *) x));
35509 }
35510 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
35511 return (void *)((wxDC *) ((wxScreenDC *) x));
35512 }
35513 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
35514 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
35515 }
35516 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
35517 return (void *)((wxDC *) ((wxMirrorDC *) x));
35518 }
35519 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
35520 return (void *)((wxDC *) ((wxMemoryDC *) x));
35521 }
35522 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
35523 return (void *)((wxDC *) ((wxWindowDC *) x));
35524 }
35525 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
35526 return (void *)((wxDC *) ((wxMetaFileDC *) x));
35527 }
35528 static void *_p_wxClientDCTo_p_wxDC(void *x) {
35529 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
35530 }
35531 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
35532 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35533 }
35534 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
35535 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35536 }
35537 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
35538 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
35539 }
35540 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
35541 return (void *)((wxDC *) ((wxPostScriptDC *) x));
35542 }
35543 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
35544 return (void *)((wxDC *) ((wxPrinterDC *) x));
35545 }
35546 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
35547 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
35548 }
35549 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
35550 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
35551 }
35552 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
35553 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
35554 }
35555 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
35556 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
35557 }
35558 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
35559 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
35560 }
35561 static void *_p_wxPenTo_p_wxObject(void *x) {
35562 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
35563 }
35564 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
35565 return (void *)((wxObject *) ((wxRegionIterator *) x));
35566 }
35567 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
35568 return (void *)((wxObject *) ((wxSizerItem *) x));
35569 }
35570 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
35571 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
35572 }
35573 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
35574 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
35575 }
35576 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
35577 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
35578 }
35579 static void *_p_wxIconTo_p_wxObject(void *x) {
35580 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
35581 }
35582 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
35583 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
35584 }
35585 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
35586 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
35587 }
35588 static void *_p_wxSizerTo_p_wxObject(void *x) {
35589 return (void *)((wxObject *) ((wxSizer *) x));
35590 }
35591 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
35592 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
35593 }
35594 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
35595 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
35596 }
35597 static void *_p_wxEventTo_p_wxObject(void *x) {
35598 return (void *)((wxObject *) ((wxEvent *) x));
35599 }
35600 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
35601 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
35602 }
35603 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
35604 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
35605 }
35606 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
35607 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
35608 }
35609 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
35610 return (void *)((wxObject *) ((wxPseudoDC *) x));
35611 }
35612 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
35613 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
35614 }
35615 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
35616 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
35617 }
35618 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
35619 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
35620 }
35621 static void *_p_wxDCTo_p_wxObject(void *x) {
35622 return (void *)((wxObject *) ((wxDC *) x));
35623 }
35624 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
35625 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
35626 }
35627 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
35628 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
35629 }
35630 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
35631 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
35632 }
35633 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
35634 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
35635 }
35636 static void *_p_wxControlTo_p_wxObject(void *x) {
35637 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
35638 }
35639 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
35640 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
35641 }
35642 static void *_p_wxClientDCTo_p_wxObject(void *x) {
35643 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
35644 }
35645 static void *_p_wxFSFileTo_p_wxObject(void *x) {
35646 return (void *)((wxObject *) ((wxFSFile *) x));
35647 }
35648 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
35649 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
35650 }
35651 static void *_p_wxRegionTo_p_wxObject(void *x) {
35652 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
35653 }
35654 static void *_p_wxPySizerTo_p_wxObject(void *x) {
35655 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
35656 }
35657 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
35658 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
35659 }
35660 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
35661 return (void *)((wxObject *) ((wxGDIObject *) x));
35662 }
35663 static void *_p_wxEffectsTo_p_wxObject(void *x) {
35664 return (void *)((wxObject *) ((wxEffects *) x));
35665 }
35666 static void *_p_wxPyEventTo_p_wxObject(void *x) {
35667 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
35668 }
35669 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
35670 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
35671 }
35672 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
35673 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
35674 }
35675 static void *_p_wxShowEventTo_p_wxObject(void *x) {
35676 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
35677 }
35678 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
35679 return (void *)((wxObject *) ((wxMenuItem *) x));
35680 }
35681 static void *_p_wxDateEventTo_p_wxObject(void *x) {
35682 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
35683 }
35684 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
35685 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
35686 }
35687 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
35688 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
35689 }
35690 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
35691 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
35692 }
35693 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
35694 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
35695 }
35696 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
35697 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
35698 }
35699 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
35700 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
35701 }
35702 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
35703 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
35704 }
35705 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
35706 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
35707 }
35708 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
35709 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
35710 }
35711 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
35712 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
35713 }
35714 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
35715 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
35716 }
35717 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
35718 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
35719 }
35720 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
35721 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
35722 }
35723 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
35724 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
35725 }
35726 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
35727 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
35728 }
35729 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
35730 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
35731 }
35732 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
35733 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
35734 }
35735 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
35736 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
35737 }
35738 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
35739 return (void *)((wxObject *) ((wxImageHandler *) x));
35740 }
35741 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
35742 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
35743 }
35744 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
35745 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
35746 }
35747 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
35748 return (void *)((wxObject *) ((wxEvtHandler *) x));
35749 }
35750 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
35751 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
35752 }
35753 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
35754 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
35755 }
35756 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
35757 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
35758 }
35759 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
35760 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
35761 }
35762 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
35763 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
35764 }
35765 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
35766 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
35767 }
35768 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
35769 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
35770 }
35771 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
35772 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
35773 }
35774 static void *_p_wxImageTo_p_wxObject(void *x) {
35775 return (void *)((wxObject *) ((wxImage *) x));
35776 }
35777 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
35778 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
35779 }
35780 static void *_p_wxPaletteTo_p_wxObject(void *x) {
35781 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
35782 }
35783 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
35784 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
35785 }
35786 static void *_p_wxImageListTo_p_wxObject(void *x) {
35787 return (void *)((wxObject *) ((wxImageList *) x));
35788 }
35789 static void *_p_wxGCDCTo_p_wxObject(void *x) {
35790 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
35791 }
35792 static void *_p_wxCursorTo_p_wxObject(void *x) {
35793 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
35794 }
35795 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
35796 return (void *)((wxObject *) ((wxEncodingConverter *) x));
35797 }
35798 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
35799 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
35800 }
35801 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
35802 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
35803 }
35804 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
35805 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
35806 }
35807 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
35808 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
35809 }
35810 static void *_p_wxWindowTo_p_wxObject(void *x) {
35811 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
35812 }
35813 static void *_p_wxMenuTo_p_wxObject(void *x) {
35814 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
35815 }
35816 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
35817 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
35818 }
35819 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
35820 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
35821 }
35822 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
35823 return (void *)((wxObject *) ((wxFileSystem *) x));
35824 }
35825 static void *_p_wxBitmapTo_p_wxObject(void *x) {
35826 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
35827 }
35828 static void *_p_wxMaskTo_p_wxObject(void *x) {
35829 return (void *)((wxObject *) ((wxMask *) x));
35830 }
35831 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
35832 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
35833 }
35834 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
35835 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
35836 }
35837 static void *_p_wxPyAppTo_p_wxObject(void *x) {
35838 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
35839 }
35840 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
35841 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
35842 }
35843 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
35844 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
35845 }
35846 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
35847 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
35848 }
35849 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
35850 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
35851 }
35852 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
35853 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
35854 }
35855 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
35856 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
35857 }
35858 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
35859 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
35860 }
35861 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
35862 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
35863 }
35864 static void *_p_wxFontTo_p_wxObject(void *x) {
35865 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
35866 }
35867 static void *_p_wxBrushTo_p_wxObject(void *x) {
35868 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
35869 }
35870 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
35871 return (void *)((wxObject *) ((wxMetaFile *) x));
35872 }
35873 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
35874 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
35875 }
35876 static void *_p_wxColourTo_p_wxObject(void *x) {
35877 return (void *)((wxObject *) ((wxColour *) x));
35878 }
35879 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
35880 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
35881 }
35882 static void *_p_wxValidatorTo_p_wxObject(void *x) {
35883 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
35884 }
35885 static void *_p_wxControlTo_p_wxWindow(void *x) {
35886 return (void *)((wxWindow *) ((wxControl *) x));
35887 }
35888 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
35889 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
35890 }
35891 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
35892 return (void *)((wxWindow *) ((wxMenuBar *) x));
35893 }
35894 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
35895 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
35896 }
35897 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
35898 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
35899 }
35900 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
35901 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
35902 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
35903 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};
35904 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
35905 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
35906 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
35907 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
35908 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
35909 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
35910 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
35911 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
35912 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
35913 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
35914 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
35915 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
35916 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
35917 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
35918 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
35919 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
35920 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
35921 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
35922 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
35923 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
35924 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
35925 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
35926 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
35927 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
35928 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
35929 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
35930 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
35931 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
35932 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
35933 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
35934 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
35935 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
35936 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
35937 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
35938 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
35939 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
35940 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
35941 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
35942 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
35943 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
35944 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
35945 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
35946 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
35947 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
35948 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
35949 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
35950 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
35951 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
35952 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
35953 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
35954 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
35955 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
35956 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
35957 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
35958 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
35959 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
35960 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
35961 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
35962 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
35963 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
35964 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
35965 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
35966 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
35967 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
35968 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
35969 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
35970 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
35971 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
35972 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
35973 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
35974 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
35975 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
35976 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
35977 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
35978 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
35979 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
35980 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
35981 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
35982 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
35983 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
35984 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
35985 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
35986 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
35987 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
35988 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
35989 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
35990 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
35991 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
35992 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
35993 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
35994 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
35995 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
35996 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
35997 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
35998 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
35999 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36000 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
36001 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
36002 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
36003 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
36004 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
36005 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36006 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36007 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
36008 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
36009 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36010 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36011 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36012 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36013 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36014 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36015 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36016 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36017 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36018 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36019 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36020 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36021 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36022 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36023 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36024 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36025 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36026 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36027 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36028 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36029 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36030 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
36031 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
36032 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36033 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36034 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36035 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36036 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
36037 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
36038 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
36039 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
36040 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36041 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36042 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
36043 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
36044 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
36045 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
36046 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36047 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36048 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36049 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36050 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36051 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36052 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36053 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
36054 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
36055 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36056 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36057 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36058
36059 static swig_type_info *swig_type_initial[] = {
36060 &_swigt__p_buffer,
36061 &_swigt__p_char,
36062 &_swigt__p_double,
36063 &_swigt__p_form_ops_t,
36064 &_swigt__p_int,
36065 &_swigt__p_unsigned_char,
36066 &_swigt__p_unsigned_int,
36067 &_swigt__p_unsigned_long,
36068 &_swigt__p_void,
36069 &_swigt__p_wxANIHandler,
36070 &_swigt__p_wxAcceleratorTable,
36071 &_swigt__p_wxActivateEvent,
36072 &_swigt__p_wxAlphaPixelData,
36073 &_swigt__p_wxAlphaPixelData_Accessor,
36074 &_swigt__p_wxAutoBufferedPaintDC,
36075 &_swigt__p_wxBMPHandler,
36076 &_swigt__p_wxBitmap,
36077 &_swigt__p_wxBoxSizer,
36078 &_swigt__p_wxBrush,
36079 &_swigt__p_wxBrushList,
36080 &_swigt__p_wxBufferedDC,
36081 &_swigt__p_wxBufferedPaintDC,
36082 &_swigt__p_wxCURHandler,
36083 &_swigt__p_wxChar,
36084 &_swigt__p_wxChildFocusEvent,
36085 &_swigt__p_wxClientDC,
36086 &_swigt__p_wxClipboardTextEvent,
36087 &_swigt__p_wxCloseEvent,
36088 &_swigt__p_wxColor,
36089 &_swigt__p_wxColour,
36090 &_swigt__p_wxColourDatabase,
36091 &_swigt__p_wxCommandEvent,
36092 &_swigt__p_wxContextMenuEvent,
36093 &_swigt__p_wxControl,
36094 &_swigt__p_wxControlWithItems,
36095 &_swigt__p_wxCursor,
36096 &_swigt__p_wxDC,
36097 &_swigt__p_wxDCOverlay,
36098 &_swigt__p_wxDash,
36099 &_swigt__p_wxDateEvent,
36100 &_swigt__p_wxDisplayChangedEvent,
36101 &_swigt__p_wxDropFilesEvent,
36102 &_swigt__p_wxDuplexMode,
36103 &_swigt__p_wxEffects,
36104 &_swigt__p_wxEncodingConverter,
36105 &_swigt__p_wxEraseEvent,
36106 &_swigt__p_wxEvent,
36107 &_swigt__p_wxEvtHandler,
36108 &_swigt__p_wxFSFile,
36109 &_swigt__p_wxFileSystem,
36110 &_swigt__p_wxFlexGridSizer,
36111 &_swigt__p_wxFocusEvent,
36112 &_swigt__p_wxFont,
36113 &_swigt__p_wxFontList,
36114 &_swigt__p_wxFontMapper,
36115 &_swigt__p_wxGBSizerItem,
36116 &_swigt__p_wxGCDC,
36117 &_swigt__p_wxGDIObjListBase,
36118 &_swigt__p_wxGDIObject,
36119 &_swigt__p_wxGIFHandler,
36120 &_swigt__p_wxGraphicsContext,
36121 &_swigt__p_wxGraphicsPath,
36122 &_swigt__p_wxGridBagSizer,
36123 &_swigt__p_wxGridSizer,
36124 &_swigt__p_wxHeaderButtonParams,
36125 &_swigt__p_wxICOHandler,
36126 &_swigt__p_wxIcon,
36127 &_swigt__p_wxIconBundle,
36128 &_swigt__p_wxIconLocation,
36129 &_swigt__p_wxIconizeEvent,
36130 &_swigt__p_wxIdleEvent,
36131 &_swigt__p_wxImage,
36132 &_swigt__p_wxImageHandler,
36133 &_swigt__p_wxImageList,
36134 &_swigt__p_wxIndividualLayoutConstraint,
36135 &_swigt__p_wxInitDialogEvent,
36136 &_swigt__p_wxJPEGHandler,
36137 &_swigt__p_wxKeyEvent,
36138 &_swigt__p_wxLanguageInfo,
36139 &_swigt__p_wxLayoutConstraints,
36140 &_swigt__p_wxLocale,
36141 &_swigt__p_wxMask,
36142 &_swigt__p_wxMaximizeEvent,
36143 &_swigt__p_wxMemoryDC,
36144 &_swigt__p_wxMenu,
36145 &_swigt__p_wxMenuBar,
36146 &_swigt__p_wxMenuEvent,
36147 &_swigt__p_wxMenuItem,
36148 &_swigt__p_wxMetaFile,
36149 &_swigt__p_wxMetaFileDC,
36150 &_swigt__p_wxMirrorDC,
36151 &_swigt__p_wxMouseCaptureChangedEvent,
36152 &_swigt__p_wxMouseCaptureLostEvent,
36153 &_swigt__p_wxMouseEvent,
36154 &_swigt__p_wxMoveEvent,
36155 &_swigt__p_wxNativeEncodingInfo,
36156 &_swigt__p_wxNativeFontInfo,
36157 &_swigt__p_wxNativePixelData,
36158 &_swigt__p_wxNativePixelData_Accessor,
36159 &_swigt__p_wxNavigationKeyEvent,
36160 &_swigt__p_wxNcPaintEvent,
36161 &_swigt__p_wxNotifyEvent,
36162 &_swigt__p_wxObject,
36163 &_swigt__p_wxOverlay,
36164 &_swigt__p_wxPCXHandler,
36165 &_swigt__p_wxPNGHandler,
36166 &_swigt__p_wxPNMHandler,
36167 &_swigt__p_wxPaintDC,
36168 &_swigt__p_wxPaintEvent,
36169 &_swigt__p_wxPalette,
36170 &_swigt__p_wxPaletteChangedEvent,
36171 &_swigt__p_wxPaperSize,
36172 &_swigt__p_wxPen,
36173 &_swigt__p_wxPenList,
36174 &_swigt__p_wxPixelDataBase,
36175 &_swigt__p_wxPoint,
36176 &_swigt__p_wxPoint2D,
36177 &_swigt__p_wxPostScriptDC,
36178 &_swigt__p_wxPrintData,
36179 &_swigt__p_wxPrinterDC,
36180 &_swigt__p_wxPseudoDC,
36181 &_swigt__p_wxPyApp,
36182 &_swigt__p_wxPyCommandEvent,
36183 &_swigt__p_wxPyEvent,
36184 &_swigt__p_wxPyFontEnumerator,
36185 &_swigt__p_wxPyImageHandler,
36186 &_swigt__p_wxPyLocale,
36187 &_swigt__p_wxPySizer,
36188 &_swigt__p_wxPyValidator,
36189 &_swigt__p_wxQueryNewPaletteEvent,
36190 &_swigt__p_wxRect,
36191 &_swigt__p_wxRegion,
36192 &_swigt__p_wxRegionIterator,
36193 &_swigt__p_wxRendererNative,
36194 &_swigt__p_wxRendererVersion,
36195 &_swigt__p_wxScreenDC,
36196 &_swigt__p_wxScrollEvent,
36197 &_swigt__p_wxScrollWinEvent,
36198 &_swigt__p_wxSetCursorEvent,
36199 &_swigt__p_wxShowEvent,
36200 &_swigt__p_wxSize,
36201 &_swigt__p_wxSizeEvent,
36202 &_swigt__p_wxSizer,
36203 &_swigt__p_wxSizerItem,
36204 &_swigt__p_wxSplitterRenderParams,
36205 &_swigt__p_wxStaticBoxSizer,
36206 &_swigt__p_wxStdDialogButtonSizer,
36207 &_swigt__p_wxStockGDI,
36208 &_swigt__p_wxString,
36209 &_swigt__p_wxSysColourChangedEvent,
36210 &_swigt__p_wxTIFFHandler,
36211 &_swigt__p_wxUpdateUIEvent,
36212 &_swigt__p_wxValidator,
36213 &_swigt__p_wxWindow,
36214 &_swigt__p_wxWindowCreateEvent,
36215 &_swigt__p_wxWindowDC,
36216 &_swigt__p_wxWindowDestroyEvent,
36217 &_swigt__p_wxXPMHandler,
36218 };
36219
36220 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36221 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36222 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36223 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36224 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36225 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36226 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36227 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
36228 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
36229 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36230 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36231 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36232 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36233 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36234 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36235 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}};
36236 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36237 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
36238 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}};
36239 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
36240 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36241 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36242 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
36243 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}};
36244 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
36245 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36246 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36247 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36248 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36249 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36250 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36251 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
36252 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
36253 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}};
36254 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}};
36255 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36256 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
36257 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
36258 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36259 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36260 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36261 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36262 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36263 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
36264 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}};
36265 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
36266 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}};
36267 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36268 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36269 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36270 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36271 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
36272 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36273 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36274 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
36275 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36276 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36277 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36278 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36279 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36280 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36281 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36282 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36283 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36284 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36285 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36286 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36287 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36288 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
36289 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
36290 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36291 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36292 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36293 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36294 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36295 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36296 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36297 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36298 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36299 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36300 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36301 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36302 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36303 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36304 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36305 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36306 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36307 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36308 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36309 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36310 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36311 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36312 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
36313 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36314 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36315 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36316 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36317 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36318 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36319 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
36320 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36321 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
36322 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
36323 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
36324 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36325 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36326 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
36327 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
36328 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36329 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36330 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36331 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36332 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36333 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36334 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36335 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36336 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36337 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36338 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36339 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36340 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36341 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36342 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36343 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36344 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36345 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36346 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36347 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36348 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36349 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
36350 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_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_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_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_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_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_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_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_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}};
36351 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
36352 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36353 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36354 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36355 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36356 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
36357 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}};
36358 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
36359 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
36360 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36361 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36362 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
36363 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
36364 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
36365 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
36366 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36367 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36368 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36369 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36370 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36371 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36372 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36373 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
36374 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
36375 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36376 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}};
36377 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}};
36378
36379 static swig_cast_info *swig_cast_initial[] = {
36380 _swigc__p_buffer,
36381 _swigc__p_char,
36382 _swigc__p_double,
36383 _swigc__p_form_ops_t,
36384 _swigc__p_int,
36385 _swigc__p_unsigned_char,
36386 _swigc__p_unsigned_int,
36387 _swigc__p_unsigned_long,
36388 _swigc__p_void,
36389 _swigc__p_wxANIHandler,
36390 _swigc__p_wxAcceleratorTable,
36391 _swigc__p_wxActivateEvent,
36392 _swigc__p_wxAlphaPixelData,
36393 _swigc__p_wxAlphaPixelData_Accessor,
36394 _swigc__p_wxAutoBufferedPaintDC,
36395 _swigc__p_wxBMPHandler,
36396 _swigc__p_wxBitmap,
36397 _swigc__p_wxBoxSizer,
36398 _swigc__p_wxBrush,
36399 _swigc__p_wxBrushList,
36400 _swigc__p_wxBufferedDC,
36401 _swigc__p_wxBufferedPaintDC,
36402 _swigc__p_wxCURHandler,
36403 _swigc__p_wxChar,
36404 _swigc__p_wxChildFocusEvent,
36405 _swigc__p_wxClientDC,
36406 _swigc__p_wxClipboardTextEvent,
36407 _swigc__p_wxCloseEvent,
36408 _swigc__p_wxColor,
36409 _swigc__p_wxColour,
36410 _swigc__p_wxColourDatabase,
36411 _swigc__p_wxCommandEvent,
36412 _swigc__p_wxContextMenuEvent,
36413 _swigc__p_wxControl,
36414 _swigc__p_wxControlWithItems,
36415 _swigc__p_wxCursor,
36416 _swigc__p_wxDC,
36417 _swigc__p_wxDCOverlay,
36418 _swigc__p_wxDash,
36419 _swigc__p_wxDateEvent,
36420 _swigc__p_wxDisplayChangedEvent,
36421 _swigc__p_wxDropFilesEvent,
36422 _swigc__p_wxDuplexMode,
36423 _swigc__p_wxEffects,
36424 _swigc__p_wxEncodingConverter,
36425 _swigc__p_wxEraseEvent,
36426 _swigc__p_wxEvent,
36427 _swigc__p_wxEvtHandler,
36428 _swigc__p_wxFSFile,
36429 _swigc__p_wxFileSystem,
36430 _swigc__p_wxFlexGridSizer,
36431 _swigc__p_wxFocusEvent,
36432 _swigc__p_wxFont,
36433 _swigc__p_wxFontList,
36434 _swigc__p_wxFontMapper,
36435 _swigc__p_wxGBSizerItem,
36436 _swigc__p_wxGCDC,
36437 _swigc__p_wxGDIObjListBase,
36438 _swigc__p_wxGDIObject,
36439 _swigc__p_wxGIFHandler,
36440 _swigc__p_wxGraphicsContext,
36441 _swigc__p_wxGraphicsPath,
36442 _swigc__p_wxGridBagSizer,
36443 _swigc__p_wxGridSizer,
36444 _swigc__p_wxHeaderButtonParams,
36445 _swigc__p_wxICOHandler,
36446 _swigc__p_wxIcon,
36447 _swigc__p_wxIconBundle,
36448 _swigc__p_wxIconLocation,
36449 _swigc__p_wxIconizeEvent,
36450 _swigc__p_wxIdleEvent,
36451 _swigc__p_wxImage,
36452 _swigc__p_wxImageHandler,
36453 _swigc__p_wxImageList,
36454 _swigc__p_wxIndividualLayoutConstraint,
36455 _swigc__p_wxInitDialogEvent,
36456 _swigc__p_wxJPEGHandler,
36457 _swigc__p_wxKeyEvent,
36458 _swigc__p_wxLanguageInfo,
36459 _swigc__p_wxLayoutConstraints,
36460 _swigc__p_wxLocale,
36461 _swigc__p_wxMask,
36462 _swigc__p_wxMaximizeEvent,
36463 _swigc__p_wxMemoryDC,
36464 _swigc__p_wxMenu,
36465 _swigc__p_wxMenuBar,
36466 _swigc__p_wxMenuEvent,
36467 _swigc__p_wxMenuItem,
36468 _swigc__p_wxMetaFile,
36469 _swigc__p_wxMetaFileDC,
36470 _swigc__p_wxMirrorDC,
36471 _swigc__p_wxMouseCaptureChangedEvent,
36472 _swigc__p_wxMouseCaptureLostEvent,
36473 _swigc__p_wxMouseEvent,
36474 _swigc__p_wxMoveEvent,
36475 _swigc__p_wxNativeEncodingInfo,
36476 _swigc__p_wxNativeFontInfo,
36477 _swigc__p_wxNativePixelData,
36478 _swigc__p_wxNativePixelData_Accessor,
36479 _swigc__p_wxNavigationKeyEvent,
36480 _swigc__p_wxNcPaintEvent,
36481 _swigc__p_wxNotifyEvent,
36482 _swigc__p_wxObject,
36483 _swigc__p_wxOverlay,
36484 _swigc__p_wxPCXHandler,
36485 _swigc__p_wxPNGHandler,
36486 _swigc__p_wxPNMHandler,
36487 _swigc__p_wxPaintDC,
36488 _swigc__p_wxPaintEvent,
36489 _swigc__p_wxPalette,
36490 _swigc__p_wxPaletteChangedEvent,
36491 _swigc__p_wxPaperSize,
36492 _swigc__p_wxPen,
36493 _swigc__p_wxPenList,
36494 _swigc__p_wxPixelDataBase,
36495 _swigc__p_wxPoint,
36496 _swigc__p_wxPoint2D,
36497 _swigc__p_wxPostScriptDC,
36498 _swigc__p_wxPrintData,
36499 _swigc__p_wxPrinterDC,
36500 _swigc__p_wxPseudoDC,
36501 _swigc__p_wxPyApp,
36502 _swigc__p_wxPyCommandEvent,
36503 _swigc__p_wxPyEvent,
36504 _swigc__p_wxPyFontEnumerator,
36505 _swigc__p_wxPyImageHandler,
36506 _swigc__p_wxPyLocale,
36507 _swigc__p_wxPySizer,
36508 _swigc__p_wxPyValidator,
36509 _swigc__p_wxQueryNewPaletteEvent,
36510 _swigc__p_wxRect,
36511 _swigc__p_wxRegion,
36512 _swigc__p_wxRegionIterator,
36513 _swigc__p_wxRendererNative,
36514 _swigc__p_wxRendererVersion,
36515 _swigc__p_wxScreenDC,
36516 _swigc__p_wxScrollEvent,
36517 _swigc__p_wxScrollWinEvent,
36518 _swigc__p_wxSetCursorEvent,
36519 _swigc__p_wxShowEvent,
36520 _swigc__p_wxSize,
36521 _swigc__p_wxSizeEvent,
36522 _swigc__p_wxSizer,
36523 _swigc__p_wxSizerItem,
36524 _swigc__p_wxSplitterRenderParams,
36525 _swigc__p_wxStaticBoxSizer,
36526 _swigc__p_wxStdDialogButtonSizer,
36527 _swigc__p_wxStockGDI,
36528 _swigc__p_wxString,
36529 _swigc__p_wxSysColourChangedEvent,
36530 _swigc__p_wxTIFFHandler,
36531 _swigc__p_wxUpdateUIEvent,
36532 _swigc__p_wxValidator,
36533 _swigc__p_wxWindow,
36534 _swigc__p_wxWindowCreateEvent,
36535 _swigc__p_wxWindowDC,
36536 _swigc__p_wxWindowDestroyEvent,
36537 _swigc__p_wxXPMHandler,
36538 };
36539
36540
36541 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
36542
36543 static swig_const_info swig_const_table[] = {
36544 {0, 0, 0, 0.0, 0, 0}};
36545
36546 #ifdef __cplusplus
36547 }
36548 #endif
36549 /* -----------------------------------------------------------------------------
36550 * Type initialization:
36551 * This problem is tough by the requirement that no dynamic
36552 * memory is used. Also, since swig_type_info structures store pointers to
36553 * swig_cast_info structures and swig_cast_info structures store pointers back
36554 * to swig_type_info structures, we need some lookup code at initialization.
36555 * The idea is that swig generates all the structures that are needed.
36556 * The runtime then collects these partially filled structures.
36557 * The SWIG_InitializeModule function takes these initial arrays out of
36558 * swig_module, and does all the lookup, filling in the swig_module.types
36559 * array with the correct data and linking the correct swig_cast_info
36560 * structures together.
36561 *
36562 * The generated swig_type_info structures are assigned staticly to an initial
36563 * array. We just loop though that array, and handle each type individually.
36564 * First we lookup if this type has been already loaded, and if so, use the
36565 * loaded structure instead of the generated one. Then we have to fill in the
36566 * cast linked list. The cast data is initially stored in something like a
36567 * two-dimensional array. Each row corresponds to a type (there are the same
36568 * number of rows as there are in the swig_type_initial array). Each entry in
36569 * a column is one of the swig_cast_info structures for that type.
36570 * The cast_initial array is actually an array of arrays, because each row has
36571 * a variable number of columns. So to actually build the cast linked list,
36572 * we find the array of casts associated with the type, and loop through it
36573 * adding the casts to the list. The one last trick we need to do is making
36574 * sure the type pointer in the swig_cast_info struct is correct.
36575 *
36576 * First off, we lookup the cast->type name to see if it is already loaded.
36577 * There are three cases to handle:
36578 * 1) If the cast->type has already been loaded AND the type we are adding
36579 * casting info to has not been loaded (it is in this module), THEN we
36580 * replace the cast->type pointer with the type pointer that has already
36581 * been loaded.
36582 * 2) If BOTH types (the one we are adding casting info to, and the
36583 * cast->type) are loaded, THEN the cast info has already been loaded by
36584 * the previous module so we just ignore it.
36585 * 3) Finally, if cast->type has not already been loaded, then we add that
36586 * swig_cast_info to the linked list (because the cast->type) pointer will
36587 * be correct.
36588 * ----------------------------------------------------------------------------- */
36589
36590 #ifdef __cplusplus
36591 extern "C" {
36592 #if 0
36593 } /* c-mode */
36594 #endif
36595 #endif
36596
36597 #if 0
36598 #define SWIGRUNTIME_DEBUG
36599 #endif
36600
36601 SWIGRUNTIME void
36602 SWIG_InitializeModule(void *clientdata) {
36603 size_t i;
36604 swig_module_info *module_head;
36605 static int init_run = 0;
36606
36607 clientdata = clientdata;
36608
36609 if (init_run) return;
36610 init_run = 1;
36611
36612 /* Initialize the swig_module */
36613 swig_module.type_initial = swig_type_initial;
36614 swig_module.cast_initial = swig_cast_initial;
36615
36616 /* Try and load any already created modules */
36617 module_head = SWIG_GetModule(clientdata);
36618 if (module_head) {
36619 swig_module.next = module_head->next;
36620 module_head->next = &swig_module;
36621 } else {
36622 /* This is the first module loaded */
36623 swig_module.next = &swig_module;
36624 SWIG_SetModule(clientdata, &swig_module);
36625 }
36626
36627 /* Now work on filling in swig_module.types */
36628 #ifdef SWIGRUNTIME_DEBUG
36629 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
36630 #endif
36631 for (i = 0; i < swig_module.size; ++i) {
36632 swig_type_info *type = 0;
36633 swig_type_info *ret;
36634 swig_cast_info *cast;
36635
36636 #ifdef SWIGRUNTIME_DEBUG
36637 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36638 #endif
36639
36640 /* if there is another module already loaded */
36641 if (swig_module.next != &swig_module) {
36642 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
36643 }
36644 if (type) {
36645 /* Overwrite clientdata field */
36646 #ifdef SWIGRUNTIME_DEBUG
36647 printf("SWIG_InitializeModule: found type %s\n", type->name);
36648 #endif
36649 if (swig_module.type_initial[i]->clientdata) {
36650 type->clientdata = swig_module.type_initial[i]->clientdata;
36651 #ifdef SWIGRUNTIME_DEBUG
36652 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
36653 #endif
36654 }
36655 } else {
36656 type = swig_module.type_initial[i];
36657 }
36658
36659 /* Insert casting types */
36660 cast = swig_module.cast_initial[i];
36661 while (cast->type) {
36662 /* Don't need to add information already in the list */
36663 ret = 0;
36664 #ifdef SWIGRUNTIME_DEBUG
36665 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
36666 #endif
36667 if (swig_module.next != &swig_module) {
36668 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
36669 #ifdef SWIGRUNTIME_DEBUG
36670 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
36671 #endif
36672 }
36673 if (ret) {
36674 if (type == swig_module.type_initial[i]) {
36675 #ifdef SWIGRUNTIME_DEBUG
36676 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
36677 #endif
36678 cast->type = ret;
36679 ret = 0;
36680 } else {
36681 /* Check for casting already in the list */
36682 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
36683 #ifdef SWIGRUNTIME_DEBUG
36684 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
36685 #endif
36686 if (!ocast) ret = 0;
36687 }
36688 }
36689
36690 if (!ret) {
36691 #ifdef SWIGRUNTIME_DEBUG
36692 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
36693 #endif
36694 if (type->cast) {
36695 type->cast->prev = cast;
36696 cast->next = type->cast;
36697 }
36698 type->cast = cast;
36699 }
36700 cast++;
36701 }
36702 /* Set entry in modules->types array equal to the type */
36703 swig_module.types[i] = type;
36704 }
36705 swig_module.types[i] = 0;
36706
36707 #ifdef SWIGRUNTIME_DEBUG
36708 printf("**** SWIG_InitializeModule: Cast List ******\n");
36709 for (i = 0; i < swig_module.size; ++i) {
36710 int j = 0;
36711 swig_cast_info *cast = swig_module.cast_initial[i];
36712 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
36713 while (cast->type) {
36714 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
36715 cast++;
36716 ++j;
36717 }
36718 printf("---- Total casts: %d\n",j);
36719 }
36720 printf("**** SWIG_InitializeModule: Cast List ******\n");
36721 #endif
36722 }
36723
36724 /* This function will propagate the clientdata field of type to
36725 * any new swig_type_info structures that have been added into the list
36726 * of equivalent types. It is like calling
36727 * SWIG_TypeClientData(type, clientdata) a second time.
36728 */
36729 SWIGRUNTIME void
36730 SWIG_PropagateClientData(void) {
36731 size_t i;
36732 swig_cast_info *equiv;
36733 static int init_run = 0;
36734
36735 if (init_run) return;
36736 init_run = 1;
36737
36738 for (i = 0; i < swig_module.size; i++) {
36739 if (swig_module.types[i]->clientdata) {
36740 equiv = swig_module.types[i]->cast;
36741 while (equiv) {
36742 if (!equiv->converter) {
36743 if (equiv->type && !equiv->type->clientdata)
36744 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
36745 }
36746 equiv = equiv->next;
36747 }
36748 }
36749 }
36750 }
36751
36752 #ifdef __cplusplus
36753 #if 0
36754 {
36755 /* c-mode */
36756 #endif
36757 }
36758 #endif
36759
36760
36761
36762 #ifdef __cplusplus
36763 extern "C" {
36764 #endif
36765
36766 /* Python-specific SWIG API */
36767 #define SWIG_newvarlink() SWIG_Python_newvarlink()
36768 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
36769 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
36770
36771 /* -----------------------------------------------------------------------------
36772 * global variable support code.
36773 * ----------------------------------------------------------------------------- */
36774
36775 typedef struct swig_globalvar {
36776 char *name; /* Name of global variable */
36777 PyObject *(*get_attr)(void); /* Return the current value */
36778 int (*set_attr)(PyObject *); /* Set the value */
36779 struct swig_globalvar *next;
36780 } swig_globalvar;
36781
36782 typedef struct swig_varlinkobject {
36783 PyObject_HEAD
36784 swig_globalvar *vars;
36785 } swig_varlinkobject;
36786
36787 SWIGINTERN PyObject *
36788 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
36789 return PyString_FromString("<Swig global variables>");
36790 }
36791
36792 SWIGINTERN PyObject *
36793 swig_varlink_str(swig_varlinkobject *v) {
36794 PyObject *str = PyString_FromString("(");
36795 swig_globalvar *var;
36796 for (var = v->vars; var; var=var->next) {
36797 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
36798 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
36799 }
36800 PyString_ConcatAndDel(&str,PyString_FromString(")"));
36801 return str;
36802 }
36803
36804 SWIGINTERN int
36805 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
36806 PyObject *str = swig_varlink_str(v);
36807 fprintf(fp,"Swig global variables ");
36808 fprintf(fp,"%s\n", PyString_AsString(str));
36809 Py_DECREF(str);
36810 return 0;
36811 }
36812
36813 SWIGINTERN void
36814 swig_varlink_dealloc(swig_varlinkobject *v) {
36815 swig_globalvar *var = v->vars;
36816 while (var) {
36817 swig_globalvar *n = var->next;
36818 free(var->name);
36819 free(var);
36820 var = n;
36821 }
36822 }
36823
36824 SWIGINTERN PyObject *
36825 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
36826 PyObject *res = NULL;
36827 swig_globalvar *var = v->vars;
36828 while (var) {
36829 if (strcmp(var->name,n) == 0) {
36830 res = (*var->get_attr)();
36831 break;
36832 }
36833 var = var->next;
36834 }
36835 if (res == NULL && !PyErr_Occurred()) {
36836 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36837 }
36838 return res;
36839 }
36840
36841 SWIGINTERN int
36842 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
36843 int res = 1;
36844 swig_globalvar *var = v->vars;
36845 while (var) {
36846 if (strcmp(var->name,n) == 0) {
36847 res = (*var->set_attr)(p);
36848 break;
36849 }
36850 var = var->next;
36851 }
36852 if (res == 1 && !PyErr_Occurred()) {
36853 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
36854 }
36855 return res;
36856 }
36857
36858 SWIGINTERN PyTypeObject*
36859 swig_varlink_type(void) {
36860 static char varlink__doc__[] = "Swig var link object";
36861 static PyTypeObject varlink_type;
36862 static int type_init = 0;
36863 if (!type_init) {
36864 const PyTypeObject tmp
36865 = {
36866 PyObject_HEAD_INIT(NULL)
36867 0, /* Number of items in variable part (ob_size) */
36868 (char *)"swigvarlink", /* Type name (tp_name) */
36869 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
36870 0, /* Itemsize (tp_itemsize) */
36871 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
36872 (printfunc) swig_varlink_print, /* Print (tp_print) */
36873 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
36874 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
36875 0, /* tp_compare */
36876 (reprfunc) swig_varlink_repr, /* tp_repr */
36877 0, /* tp_as_number */
36878 0, /* tp_as_sequence */
36879 0, /* tp_as_mapping */
36880 0, /* tp_hash */
36881 0, /* tp_call */
36882 (reprfunc)swig_varlink_str, /* tp_str */
36883 0, /* tp_getattro */
36884 0, /* tp_setattro */
36885 0, /* tp_as_buffer */
36886 0, /* tp_flags */
36887 varlink__doc__, /* tp_doc */
36888 0, /* tp_traverse */
36889 0, /* tp_clear */
36890 0, /* tp_richcompare */
36891 0, /* tp_weaklistoffset */
36892 #if PY_VERSION_HEX >= 0x02020000
36893 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
36894 #endif
36895 #if PY_VERSION_HEX >= 0x02030000
36896 0, /* tp_del */
36897 #endif
36898 #ifdef COUNT_ALLOCS
36899 0,0,0,0 /* tp_alloc -> tp_next */
36900 #endif
36901 };
36902 varlink_type = tmp;
36903 varlink_type.ob_type = &PyType_Type;
36904 type_init = 1;
36905 }
36906 return &varlink_type;
36907 }
36908
36909 /* Create a variable linking object for use later */
36910 SWIGINTERN PyObject *
36911 SWIG_Python_newvarlink(void) {
36912 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
36913 if (result) {
36914 result->vars = 0;
36915 }
36916 return ((PyObject*) result);
36917 }
36918
36919 SWIGINTERN void
36920 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
36921 swig_varlinkobject *v = (swig_varlinkobject *) p;
36922 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
36923 if (gv) {
36924 size_t size = strlen(name)+1;
36925 gv->name = (char *)malloc(size);
36926 if (gv->name) {
36927 strncpy(gv->name,name,size);
36928 gv->get_attr = get_attr;
36929 gv->set_attr = set_attr;
36930 gv->next = v->vars;
36931 }
36932 }
36933 v->vars = gv;
36934 }
36935
36936 SWIGINTERN PyObject *
36937 SWIG_globals() {
36938 static PyObject *_SWIG_globals = 0;
36939 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
36940 return _SWIG_globals;
36941 }
36942
36943 /* -----------------------------------------------------------------------------
36944 * constants/methods manipulation
36945 * ----------------------------------------------------------------------------- */
36946
36947 /* Install Constants */
36948 SWIGINTERN void
36949 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
36950 PyObject *obj = 0;
36951 size_t i;
36952 for (i = 0; constants[i].type; ++i) {
36953 switch(constants[i].type) {
36954 case SWIG_PY_POINTER:
36955 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
36956 break;
36957 case SWIG_PY_BINARY:
36958 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
36959 break;
36960 default:
36961 obj = 0;
36962 break;
36963 }
36964 if (obj) {
36965 PyDict_SetItemString(d, constants[i].name, obj);
36966 Py_DECREF(obj);
36967 }
36968 }
36969 }
36970
36971 /* -----------------------------------------------------------------------------*/
36972 /* Fix SwigMethods to carry the callback ptrs when needed */
36973 /* -----------------------------------------------------------------------------*/
36974
36975 SWIGINTERN void
36976 SWIG_Python_FixMethods(PyMethodDef *methods,
36977 swig_const_info *const_table,
36978 swig_type_info **types,
36979 swig_type_info **types_initial) {
36980 size_t i;
36981 for (i = 0; methods[i].ml_name; ++i) {
36982 const char *c = methods[i].ml_doc;
36983 if (c && (c = strstr(c, "swig_ptr: "))) {
36984 int j;
36985 swig_const_info *ci = 0;
36986 const char *name = c + 10;
36987 for (j = 0; const_table[j].type; ++j) {
36988 if (strncmp(const_table[j].name, name,
36989 strlen(const_table[j].name)) == 0) {
36990 ci = &(const_table[j]);
36991 break;
36992 }
36993 }
36994 if (ci) {
36995 size_t shift = (ci->ptype) - types;
36996 swig_type_info *ty = types_initial[shift];
36997 size_t ldoc = (c - methods[i].ml_doc);
36998 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
36999 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37000 if (ndoc) {
37001 char *buff = ndoc;
37002 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37003 if (ptr) {
37004 strncpy(buff, methods[i].ml_doc, ldoc);
37005 buff += ldoc;
37006 strncpy(buff, "swig_ptr: ", 10);
37007 buff += 10;
37008 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37009 methods[i].ml_doc = ndoc;
37010 }
37011 }
37012 }
37013 }
37014 }
37015 }
37016
37017 #ifdef __cplusplus
37018 }
37019 #endif
37020
37021 /* -----------------------------------------------------------------------------*
37022 * Partial Init method
37023 * -----------------------------------------------------------------------------*/
37024
37025 #ifdef __cplusplus
37026 extern "C"
37027 #endif
37028 SWIGEXPORT void SWIG_init(void) {
37029 PyObject *m, *d;
37030
37031 /* Fix SwigMethods to carry the callback ptrs when needed */
37032 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37033
37034 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37035 d = PyModule_GetDict(m);
37036
37037 SWIG_InitializeModule(0);
37038 SWIG_InstallConstants(d,swig_const_table);
37039
37040
37041 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37042 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37043 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
37044 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37045 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
37046 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37047 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37048 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37049 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37050 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37051 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37052 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37053 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37054 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37055 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37056 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37057 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37058 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37059 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37060 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37061 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37062 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37063 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37064 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37065 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37066 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37067 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37068 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37069 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37070 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37071 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37072 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37073 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37074 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37075 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37076 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37077 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37078 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37079 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37080 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37081 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37082 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37083 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37084 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37085 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37086 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37087 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37088 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37089 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37090 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37091 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37092 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37093 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37094 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37095 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37096 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37097 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37098 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37099 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37100 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37101 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37102 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37103 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37104 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37105 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37106 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37107 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37108 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37109 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37110 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37111 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37112 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37113 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37114 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37115 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37116 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37117 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37118 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37119 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37120 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37121 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37122 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37123 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37124 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37125 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37126 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37127 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37128 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37129 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37130 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37131 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37132 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37133 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37134 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37135 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37136 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37137 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37138 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37139 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37140 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37141 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37142 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37143 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37144 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37145 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37146 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37147 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37148 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37149 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37150 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37151 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37152 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37153 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37154 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37155 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37156 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37157 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37158 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37159 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37160 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37161 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37162 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37163 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37164 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37165 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37166 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37167 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37168 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37169 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37170 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37171 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37172 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37173
37174 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37175
37176 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37177 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37178 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37179 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37180 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37181 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37182 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37183 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37184 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37185 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37186 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37187 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37188 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37189 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37190 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37191 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37192 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37193 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37194 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37195 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37196 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37197 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37198 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37199 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37200 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37201 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37202 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37203 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37204 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37205 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37206 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37207 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37208 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37209 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37210 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37211 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37212 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37213 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37214 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37215 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37216 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37217 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37218 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37219 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37220 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37221 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37222 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37223 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37224 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37225 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37226 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37227 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37228 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37229 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37230 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37231 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37232 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37233 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37234 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37235 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37236 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37237 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37238 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37239 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37240 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37241 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37242 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37243 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37244 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37245 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37246 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37247 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37248 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37249 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37250 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37251 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37252 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37253 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37254 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37255 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37256 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37257 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37258 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37259 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37260 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37261 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37262 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37263 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37264 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37265 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37266 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37267 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37268 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37269 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37270 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37271 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37272 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37273 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37274 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37275 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37276 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37277 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37278 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37279 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37280 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37281 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37282 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37283 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37284 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37285 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37286 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37287 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37288 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37289 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37290 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37291 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37292 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37293 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37294 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37295 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37296 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37297 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37298 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37299 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37300 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37301 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37302 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37303 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37304 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37305 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37306 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37307 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37308 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37309 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37310 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37311 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37312 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37313 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37314 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37315 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37316 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37317 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37318 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37319 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37320 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37321 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37322 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37323 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37324 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37325 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37326 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37327 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37328 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37329 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37330 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37331 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37332 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37333 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37334 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37335 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37336 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37337 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37338 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37339 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37340 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37341 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37342 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37343 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37344 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37345 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37346 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37347 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37348 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37349 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37350 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37351 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37352 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37353 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37354 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37355 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37356 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37357 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37358 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37359 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37360 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37361 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37362 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37363 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37364 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37365 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37366 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37367 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37368 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37369 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37370 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37371 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37372 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37373 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37374 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37375 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37376 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37377 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37378 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37379 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37380 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37381 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37382 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37383 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37384 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37385 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37386 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37387 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37388 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37389 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37390 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37391 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37392 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37393 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37394 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37395 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37396 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37397 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37398 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37399 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37400 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37401 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37402 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37403 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37404 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37405 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37406 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37407 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37408 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37409 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37410 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37411 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37412 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37413 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37414 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37415 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37416 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37417 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37418 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37419 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37420 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37421 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37422 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37423 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37424 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37425 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37426 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37427 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37428 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37429 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37430 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
37431 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37432 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37433 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37434 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37435 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37436 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37437 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37438 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37439 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37440 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37441 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37442 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37443 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37444 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37445 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37446 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37447 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37448 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37449 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37450 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37451 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37452 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37453 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37454 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37455 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37456 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37457 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37458 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37459 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37460 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37461 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37462 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37463 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37464 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37465 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
37466 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
37467 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37468 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37469 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37470 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37471 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37472 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37473 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37474 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
37475 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37476 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37477 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
37478 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
37479 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37480 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37481 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
37482 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
37483 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37484 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37485 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37486 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37487 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37488 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37489 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
37490 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
37491 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
37492 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
37493 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
37494 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
37495
37496 // Work around a chicken/egg problem in drawlist.cpp
37497 wxPyDrawList_SetAPIPtr();
37498
37499 }
37500