]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_wxANIHandler swig_types[8]
2475 #define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476 #define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477 #define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479 #define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480 #define SWIGTYPE_p_wxBitmap swig_types[14]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482 #define SWIGTYPE_p_wxBrush swig_types[16]
2483 #define SWIGTYPE_p_wxBrushList swig_types[17]
2484 #define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486 #define SWIGTYPE_p_wxCURHandler swig_types[20]
2487 #define SWIGTYPE_p_wxChar swig_types[21]
2488 #define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489 #define SWIGTYPE_p_wxClientDC swig_types[23]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492 #define SWIGTYPE_p_wxColour swig_types[26]
2493 #define SWIGTYPE_p_wxColourDatabase swig_types[27]
2494 #define SWIGTYPE_p_wxCommandEvent swig_types[28]
2495 #define SWIGTYPE_p_wxContextMenuEvent swig_types[29]
2496 #define SWIGTYPE_p_wxControl swig_types[30]
2497 #define SWIGTYPE_p_wxControlWithItems swig_types[31]
2498 #define SWIGTYPE_p_wxCursor swig_types[32]
2499 #define SWIGTYPE_p_wxDC swig_types[33]
2500 #define SWIGTYPE_p_wxDash swig_types[34]
2501 #define SWIGTYPE_p_wxDateEvent swig_types[35]
2502 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[36]
2503 #define SWIGTYPE_p_wxDropFilesEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDuplexMode swig_types[38]
2505 #define SWIGTYPE_p_wxEffects swig_types[39]
2506 #define SWIGTYPE_p_wxEncodingConverter swig_types[40]
2507 #define SWIGTYPE_p_wxEraseEvent swig_types[41]
2508 #define SWIGTYPE_p_wxEvent swig_types[42]
2509 #define SWIGTYPE_p_wxEvtHandler swig_types[43]
2510 #define SWIGTYPE_p_wxFSFile swig_types[44]
2511 #define SWIGTYPE_p_wxFileSystem swig_types[45]
2512 #define SWIGTYPE_p_wxFlexGridSizer swig_types[46]
2513 #define SWIGTYPE_p_wxFocusEvent swig_types[47]
2514 #define SWIGTYPE_p_wxFont swig_types[48]
2515 #define SWIGTYPE_p_wxFontList swig_types[49]
2516 #define SWIGTYPE_p_wxFontMapper swig_types[50]
2517 #define SWIGTYPE_p_wxGBSizerItem swig_types[51]
2518 #define SWIGTYPE_p_wxGDIObjListBase swig_types[52]
2519 #define SWIGTYPE_p_wxGDIObject swig_types[53]
2520 #define SWIGTYPE_p_wxGIFHandler swig_types[54]
2521 #define SWIGTYPE_p_wxGridBagSizer swig_types[55]
2522 #define SWIGTYPE_p_wxGridSizer swig_types[56]
2523 #define SWIGTYPE_p_wxICOHandler swig_types[57]
2524 #define SWIGTYPE_p_wxIcon swig_types[58]
2525 #define SWIGTYPE_p_wxIconBundle swig_types[59]
2526 #define SWIGTYPE_p_wxIconLocation swig_types[60]
2527 #define SWIGTYPE_p_wxIconizeEvent swig_types[61]
2528 #define SWIGTYPE_p_wxIdleEvent swig_types[62]
2529 #define SWIGTYPE_p_wxImage swig_types[63]
2530 #define SWIGTYPE_p_wxImageHandler swig_types[64]
2531 #define SWIGTYPE_p_wxImageList swig_types[65]
2532 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[66]
2533 #define SWIGTYPE_p_wxInitDialogEvent swig_types[67]
2534 #define SWIGTYPE_p_wxJPEGHandler swig_types[68]
2535 #define SWIGTYPE_p_wxKeyEvent swig_types[69]
2536 #define SWIGTYPE_p_wxLanguageInfo swig_types[70]
2537 #define SWIGTYPE_p_wxLayoutConstraints swig_types[71]
2538 #define SWIGTYPE_p_wxLocale swig_types[72]
2539 #define SWIGTYPE_p_wxMask swig_types[73]
2540 #define SWIGTYPE_p_wxMaximizeEvent swig_types[74]
2541 #define SWIGTYPE_p_wxMemoryDC swig_types[75]
2542 #define SWIGTYPE_p_wxMenu swig_types[76]
2543 #define SWIGTYPE_p_wxMenuBar swig_types[77]
2544 #define SWIGTYPE_p_wxMenuEvent swig_types[78]
2545 #define SWIGTYPE_p_wxMenuItem swig_types[79]
2546 #define SWIGTYPE_p_wxMetaFile swig_types[80]
2547 #define SWIGTYPE_p_wxMetaFileDC swig_types[81]
2548 #define SWIGTYPE_p_wxMirrorDC swig_types[82]
2549 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[83]
2550 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMouseEvent swig_types[85]
2552 #define SWIGTYPE_p_wxMoveEvent swig_types[86]
2553 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[87]
2554 #define SWIGTYPE_p_wxNativeFontInfo swig_types[88]
2555 #define SWIGTYPE_p_wxNativePixelData swig_types[89]
2556 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[90]
2557 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[91]
2558 #define SWIGTYPE_p_wxNcPaintEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNotifyEvent swig_types[93]
2560 #define SWIGTYPE_p_wxObject swig_types[94]
2561 #define SWIGTYPE_p_wxPCXHandler swig_types[95]
2562 #define SWIGTYPE_p_wxPNGHandler swig_types[96]
2563 #define SWIGTYPE_p_wxPNMHandler swig_types[97]
2564 #define SWIGTYPE_p_wxPaintDC swig_types[98]
2565 #define SWIGTYPE_p_wxPaintEvent swig_types[99]
2566 #define SWIGTYPE_p_wxPalette swig_types[100]
2567 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[101]
2568 #define SWIGTYPE_p_wxPaperSize swig_types[102]
2569 #define SWIGTYPE_p_wxPen swig_types[103]
2570 #define SWIGTYPE_p_wxPenList swig_types[104]
2571 #define SWIGTYPE_p_wxPixelDataBase swig_types[105]
2572 #define SWIGTYPE_p_wxPoint swig_types[106]
2573 #define SWIGTYPE_p_wxPostScriptDC swig_types[107]
2574 #define SWIGTYPE_p_wxPrintData swig_types[108]
2575 #define SWIGTYPE_p_wxPrinterDC swig_types[109]
2576 #define SWIGTYPE_p_wxPseudoDC swig_types[110]
2577 #define SWIGTYPE_p_wxPyApp swig_types[111]
2578 #define SWIGTYPE_p_wxPyCommandEvent swig_types[112]
2579 #define SWIGTYPE_p_wxPyEvent swig_types[113]
2580 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[114]
2581 #define SWIGTYPE_p_wxPyImageHandler swig_types[115]
2582 #define SWIGTYPE_p_wxPyLocale swig_types[116]
2583 #define SWIGTYPE_p_wxPySizer swig_types[117]
2584 #define SWIGTYPE_p_wxPyValidator swig_types[118]
2585 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[119]
2586 #define SWIGTYPE_p_wxRect swig_types[120]
2587 #define SWIGTYPE_p_wxRegion swig_types[121]
2588 #define SWIGTYPE_p_wxRegionIterator swig_types[122]
2589 #define SWIGTYPE_p_wxRendererNative swig_types[123]
2590 #define SWIGTYPE_p_wxRendererVersion swig_types[124]
2591 #define SWIGTYPE_p_wxScreenDC swig_types[125]
2592 #define SWIGTYPE_p_wxScrollEvent swig_types[126]
2593 #define SWIGTYPE_p_wxScrollWinEvent swig_types[127]
2594 #define SWIGTYPE_p_wxSetCursorEvent swig_types[128]
2595 #define SWIGTYPE_p_wxShowEvent swig_types[129]
2596 #define SWIGTYPE_p_wxSize swig_types[130]
2597 #define SWIGTYPE_p_wxSizeEvent swig_types[131]
2598 #define SWIGTYPE_p_wxSizer swig_types[132]
2599 #define SWIGTYPE_p_wxSizerItem swig_types[133]
2600 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[134]
2601 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[135]
2602 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[136]
2603 #define SWIGTYPE_p_wxStockGDI swig_types[137]
2604 #define SWIGTYPE_p_wxString swig_types[138]
2605 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[139]
2606 #define SWIGTYPE_p_wxTIFFHandler swig_types[140]
2607 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[141]
2608 #define SWIGTYPE_p_wxValidator swig_types[142]
2609 #define SWIGTYPE_p_wxWindow swig_types[143]
2610 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[144]
2611 #define SWIGTYPE_p_wxWindowDC swig_types[145]
2612 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[146]
2613 #define SWIGTYPE_p_wxXPMHandler swig_types[147]
2614 static swig_type_info *swig_types[149];
2615 static swig_module_info swig_module = {swig_types, 148, 0, 0, 0, 0};
2616 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2617 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2618
2619 /* -------- TYPES TABLE (END) -------- */
2620
2621 #if (PY_VERSION_HEX <= 0x02000000)
2622 # if !defined(SWIG_PYTHON_CLASSIC)
2623 # error "This python version requires to use swig with the '-classic' option"
2624 # endif
2625 #endif
2626 #if (PY_VERSION_HEX <= 0x02020000)
2627 # error "This python version requires to use swig with the '-nomodern' option"
2628 #endif
2629 #if (PY_VERSION_HEX <= 0x02020000)
2630 # error "This python version requires to use swig with the '-nomodernargs' option"
2631 #endif
2632 #ifndef METH_O
2633 # error "This python version requires to use swig with the '-nofastunpack' option"
2634 #endif
2635
2636 /*-----------------------------------------------
2637 @(target):= _gdi_.so
2638 ------------------------------------------------*/
2639 #define SWIG_init init_gdi_
2640
2641 #define SWIG_name "_gdi_"
2642
2643 #define SWIGVERSION 0x010329
2644
2645
2646 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2647 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2648
2649
2650 #include <stdexcept>
2651
2652
2653 namespace swig {
2654 class PyObject_ptr {
2655 protected:
2656 PyObject *_obj;
2657
2658 public:
2659 PyObject_ptr() :_obj(0)
2660 {
2661 }
2662
2663 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2664 {
2665 Py_XINCREF(_obj);
2666 }
2667
2668 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2669 {
2670 if (initial_ref) Py_XINCREF(_obj);
2671 }
2672
2673 PyObject_ptr & operator=(const PyObject_ptr& item)
2674 {
2675 Py_XINCREF(item._obj);
2676 Py_XDECREF(_obj);
2677 _obj = item._obj;
2678 return *this;
2679 }
2680
2681 ~PyObject_ptr()
2682 {
2683 Py_XDECREF(_obj);
2684 }
2685
2686 operator PyObject *() const
2687 {
2688 return _obj;
2689 }
2690
2691 PyObject *operator->() const
2692 {
2693 return _obj;
2694 }
2695 };
2696 }
2697
2698
2699 namespace swig {
2700 struct PyObject_var : PyObject_ptr {
2701 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2702
2703 PyObject_var & operator = (PyObject* obj)
2704 {
2705 Py_XDECREF(_obj);
2706 _obj = obj;
2707 return *this;
2708 }
2709 };
2710 }
2711
2712
2713 #include "wx/wxPython/wxPython.h"
2714 #include "wx/wxPython/pyclasses.h"
2715
2716
2717 static const wxString wxPyEmptyString(wxEmptyString);
2718
2719 #define SWIG_From_long PyInt_FromLong
2720
2721
2722 SWIGINTERNINLINE PyObject *
2723 SWIG_From_int (int value)
2724 {
2725 return SWIG_From_long (value);
2726 }
2727
2728
2729 #include <limits.h>
2730 #ifndef LLONG_MIN
2731 # define LLONG_MIN LONG_LONG_MIN
2732 #endif
2733 #ifndef LLONG_MAX
2734 # define LLONG_MAX LONG_LONG_MAX
2735 #endif
2736 #ifndef ULLONG_MAX
2737 # define ULLONG_MAX ULONG_LONG_MAX
2738 #endif
2739
2740
2741 SWIGINTERN int
2742 SWIG_AsVal_long (PyObject* obj, long* val)
2743 {
2744 if (PyNumber_Check(obj)) {
2745 if (val) *val = PyInt_AsLong(obj);
2746 return SWIG_OK;
2747 }
2748 return SWIG_TypeError;
2749 }
2750
2751
2752 SWIGINTERN int
2753 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2754 {
2755 long v = 0;
2756 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2757 return SWIG_TypeError;
2758 }
2759 else if (val)
2760 *val = (unsigned long)v;
2761 return SWIG_OK;
2762 }
2763
2764
2765 SWIGINTERN int
2766 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2767 {
2768 unsigned long v;
2769 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2770 if (SWIG_IsOK(res)) {
2771 if ((v > UCHAR_MAX)) {
2772 return SWIG_OverflowError;
2773 } else {
2774 if (val) *val = static_cast< unsigned char >(v);
2775 }
2776 }
2777 return res;
2778 }
2779
2780
2781 SWIGINTERNINLINE PyObject*
2782 SWIG_From_unsigned_SS_long (unsigned long value)
2783 {
2784 return (value > LONG_MAX) ?
2785 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2786 }
2787
2788
2789 SWIGINTERNINLINE PyObject *
2790 SWIG_From_unsigned_SS_char (unsigned char value)
2791 {
2792 return SWIG_From_unsigned_SS_long (value);
2793 }
2794
2795 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2796 wxColour temp, *obj = &temp;
2797 if ( other == Py_None ) return false;
2798 if ( ! wxColour_helper(other, &obj) ) {
2799 PyErr_Clear();
2800 return false;
2801 }
2802 return self->operator==(*obj);
2803 }
2804 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2805 wxColour temp, *obj = &temp;
2806 if ( other == Py_None ) return true;
2807 if ( ! wxColour_helper(other, &obj)) {
2808 PyErr_Clear();
2809 return true;
2810 }
2811 return self->operator!=(*obj);
2812 }
2813
2814 SWIGINTERN int
2815 SWIG_AsVal_bool (PyObject *obj, bool *val)
2816 {
2817 if (obj == Py_True) {
2818 if (val) *val = true;
2819 return SWIG_OK;
2820 } else if (obj == Py_False) {
2821 if (val) *val = false;
2822 return SWIG_OK;
2823 } else {
2824 long v = 0;
2825 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2826 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2827 return res;
2828 }
2829 }
2830
2831 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2832 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2833 int red = -1;
2834 int green = -1;
2835 int blue = -1;
2836 int alpha = wxALPHA_OPAQUE;
2837 if (self->Ok()) {
2838 red = self->Red();
2839 green = self->Green();
2840 blue = self->Blue();
2841 alpha = self->Alpha();
2842 }
2843 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2844 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2845 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2846 if (includeAlpha)
2847 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2848 return rv;
2849 }
2850 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2851 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2852 }
2853
2854 SWIGINTERN int
2855 SWIG_AsVal_int (PyObject * obj, int *val)
2856 {
2857 long v;
2858 int res = SWIG_AsVal_long (obj, &v);
2859 if (SWIG_IsOK(res)) {
2860 if ((v < INT_MIN || v > INT_MAX)) {
2861 return SWIG_OverflowError;
2862 } else {
2863 if (val) *val = static_cast< int >(v);
2864 }
2865 }
2866 return res;
2867 }
2868
2869 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2870 wxDash* dashes;
2871 int count = self->GetDashes(&dashes);
2872 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2873 PyObject* retval = PyList_New(0);
2874 for (int x=0; x<count; x++) {
2875 PyObject* pyint = PyInt_FromLong(dashes[x]);
2876 PyList_Append(retval, pyint);
2877 Py_DECREF(pyint);
2878 }
2879 wxPyEndBlockThreads(blocked);
2880 return retval;
2881 }
2882 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2883 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2884 int size = PyList_Size(pyDashes);
2885 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2886
2887 // black magic warning! The array of wxDashes needs to exist as
2888 // long as the pen does because wxPen does not copy the array. So
2889 // stick a copy in a Python string object and attach it to _self,
2890 // and then call SetDashes with a pointer to that array. Then
2891 // when the Python pen object is destroyed the array will be
2892 // cleaned up too.
2893 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2894 PyObject_SetAttrString(_self, "_dashes", strDashes);
2895
2896 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2897 delete [] dashes;
2898 Py_DECREF(strDashes);
2899 wxPyEndBlockThreads(blocked);
2900 }
2901 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2902 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2903
2904 #include <wx/rawbmp.h>
2905
2906
2907 #include <wx/image.h>
2908
2909 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2910 char** cArray = NULL;
2911 int count;
2912
2913 if (!PyList_Check(listOfStrings)) {
2914 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2915 return NULL;
2916 }
2917 count = PyList_Size(listOfStrings);
2918 cArray = new char*[count];
2919
2920 for(int x=0; x<count; x++) {
2921 // TODO: Need some validation and error checking here
2922 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2923 }
2924 return cArray;
2925 }
2926
2927
2928 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2929 char** cArray = NULL;
2930 wxBitmap* bmp;
2931
2932 cArray = ConvertListOfStrings(listOfStrings);
2933 if (! cArray)
2934 return NULL;
2935 bmp = new wxBitmap(cArray);
2936 delete [] cArray;
2937 return bmp;
2938 }
2939 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2940 char* buf;
2941 Py_ssize_t length;
2942 PyString_AsStringAndSize(bits, &buf, &length);
2943 return new wxBitmap(buf, width, height, depth);
2944 }
2945 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2946 wxSize size(self->GetWidth(), self->GetHeight());
2947 return size;
2948 }
2949 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2950 wxMask *mask = new wxMask(*self, colour);
2951 self->SetMask(mask);
2952 }
2953 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2954 self->SetWidth(size.x);
2955 self->SetHeight(size.y);
2956 }
2957 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2958 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2959
2960 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2961 // appears to me that the other platforms are already doing it, so I'll just
2962 // automatically do it for wxMSW here.
2963 #ifdef __WXMSW__
2964 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2965 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2966 #else
2967 #define wxPy_premultiply(p, a) (p)
2968 #define wxPy_unpremultiply(p, a) (p)
2969 #endif
2970
2971
2972 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2973 buffer data, int DATASIZE,
2974 buffer alpha, int ALPHASIZE)
2975 {
2976 if (DATASIZE != width*height*3) {
2977 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2978 return NULL;
2979 }
2980
2981 if (ALPHASIZE != width*height) {
2982 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2983 return NULL;
2984 }
2985
2986 wxBitmap* bmp = new wxBitmap(width, height, 32);
2987 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2988 if (! pixData) {
2989 // raise an exception...
2990 wxPyErr_SetString(PyExc_RuntimeError,
2991 "Failed to gain raw access to bitmap data.");
2992 return NULL;
2993 }
2994
2995 pixData.UseAlpha();
2996 wxAlphaPixelData::Iterator p(pixData);
2997 for (int y=0; y<height; y++) {
2998 wxAlphaPixelData::Iterator rowStart = p;
2999 for (int x=0; x<width; x++) {
3000 byte a = *(alpha++);
3001 p.Red() = wxPy_premultiply(*(data++), a);
3002 p.Green() = wxPy_premultiply(*(data++), a);
3003 p.Blue() = wxPy_premultiply(*(data++), a);
3004 p.Alpha() = a;
3005 ++p;
3006 }
3007 p = rowStart;
3008 p.OffsetY(pixData, 1);
3009 }
3010 return bmp;
3011 }
3012
3013 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3014 {
3015 if (DATASIZE != width*height*3) {
3016 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3017 return NULL;
3018 }
3019
3020 wxBitmap* bmp = new wxBitmap(width, height, 24);
3021 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3022 if (! pixData) {
3023 // raise an exception...
3024 wxPyErr_SetString(PyExc_RuntimeError,
3025 "Failed to gain raw access to bitmap data.");
3026 return NULL;
3027 }
3028
3029 wxNativePixelData::Iterator p(pixData);
3030 for (int y=0; y<height; y++) {
3031 wxNativePixelData::Iterator rowStart = p;
3032 for (int x=0; x<width; x++) {
3033 p.Red() = *(data++);
3034 p.Green() = *(data++);
3035 p.Blue() = *(data++);
3036 ++p;
3037 }
3038 p = rowStart;
3039 p.OffsetY(pixData, 1);
3040 }
3041 return bmp;
3042 }
3043
3044
3045 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3046 {
3047 if (DATASIZE != width*height*4) {
3048 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3049 return NULL;
3050 }
3051
3052 wxBitmap* bmp = new wxBitmap(width, height, 32);
3053 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3054 if (! pixData) {
3055 // raise an exception...
3056 wxPyErr_SetString(PyExc_RuntimeError,
3057 "Failed to gain raw access to bitmap data.");
3058 return NULL;
3059 }
3060
3061 pixData.UseAlpha();
3062 wxAlphaPixelData::Iterator p(pixData);
3063 for (int y=0; y<height; y++) {
3064 wxAlphaPixelData::Iterator rowStart = p;
3065 for (int x=0; x<width; x++) {
3066 byte a = data[3];
3067 p.Red() = wxPy_premultiply(*(data++), a);
3068 p.Green() = wxPy_premultiply(*(data++), a);
3069 p.Blue() = wxPy_premultiply(*(data++), a);
3070 p.Alpha() = a; data++;
3071 ++p;
3072 }
3073 p = rowStart;
3074 p.OffsetY(pixData, 1);
3075 }
3076 return bmp;
3077 }
3078
3079
3080 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3081
3082 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3083 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3084 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3085 self->Red() = red;
3086 self->Green() = green;
3087 self->Blue() = blue;
3088 }
3089 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3090 PyObject* rv = PyTuple_New(3);
3091 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3092 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3093 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3094 return rv;
3095 }
3096
3097 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3098
3099 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3100 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3101 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3102 self->Red() = wxPy_premultiply(red, alpha);
3103 self->Green() = wxPy_premultiply(green, alpha);
3104 self->Blue() = wxPy_premultiply(blue, alpha);
3105 self->Alpha() = alpha;
3106 }
3107 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3108 PyObject* rv = PyTuple_New(4);
3109 int red = self->Red();
3110 int green = self->Green();
3111 int blue = self->Blue();
3112 int alpha = self->Alpha();
3113
3114 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3115 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3116 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3117 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3118 return rv;
3119 }
3120 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3121 if ( !colour.Ok() )
3122 return new wxMask(bitmap, *wxBLACK);
3123 else
3124 return new wxMask(bitmap, colour);
3125 }
3126
3127 #include <wx/iconbndl.h>
3128
3129 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3130 wxIcon* icon = new wxIcon();
3131 icon->CopyFromBitmap(bmp);
3132 return icon;
3133 }
3134 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3135 char** cArray = NULL;
3136 wxIcon* icon;
3137
3138 cArray = ConvertListOfStrings(listOfStrings);
3139 if (! cArray)
3140 return NULL;
3141 icon = new wxIcon(cArray);
3142 delete [] cArray;
3143 return icon;
3144 }
3145 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3146
3147
3148
3149 return new wxIconLocation(*filename);
3150
3151 }
3152 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3153
3154
3155
3156 // do nothing
3157
3158 }
3159 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3160
3161
3162
3163 return -1;
3164
3165 }
3166 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3167 #ifdef __WXGTK__
3168 wxImage img(cursorName, type);
3169 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3170 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3171 return new wxCursor(img);
3172 #else
3173 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3174 #endif
3175 }
3176
3177
3178 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3179 (*self) ++;
3180 }
3181 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3182 return self->operator bool();
3183 }
3184
3185 #include <wx/fontutil.h>
3186 #include <wx/fontmap.h>
3187 #include <wx/fontenum.h>
3188
3189 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3190 return self->ToString();
3191 }
3192
3193 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3194 static wxNativeEncodingInfo info;
3195 if ( wxGetNativeFontEncoding(encoding, &info) )
3196 return &info;
3197 else
3198 return NULL;
3199 }
3200
3201
3202 SWIGINTERNINLINE PyObject *
3203 SWIG_From_size_t (size_t value)
3204 {
3205 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3206 }
3207
3208
3209 SWIGINTERNINLINE int
3210 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3211 {
3212 unsigned long v;
3213 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3214 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3215 return res;
3216 }
3217
3218 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3219 wxFontEncoding alt_enc;
3220 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3221 return PyInt_FromLong(alt_enc);
3222 else {
3223 Py_INCREF(Py_None);
3224 return Py_None;
3225 }
3226 }
3227 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3228 wxNativeFontInfo nfi;
3229 nfi.FromString(info);
3230 return new wxFont(nfi);
3231 }
3232 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3233 return wxFont::New(pointSize, family, flags, face, encoding);
3234 }
3235 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3236 return wxFontBase::New(pixelSize, family,
3237 style, weight, underlined,
3238 face, encoding);
3239 }
3240 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3241 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3242 }
3243 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3244 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3245
3246 class wxPyFontEnumerator : public wxFontEnumerator {
3247 public:
3248 wxPyFontEnumerator() {}
3249 ~wxPyFontEnumerator() {}
3250
3251 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3252 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3253
3254 PYPRIVATE;
3255 };
3256
3257 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3258 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3259
3260
3261 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3262 PyObject* ret;
3263 wxArrayString arr = wxFontEnumerator::GetEncodings();
3264 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3265 ret = wxArrayString2PyList_helper(arr);
3266 wxPyEndBlockThreads(blocked);
3267 return ret;
3268 }
3269 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3270 PyObject* ret;
3271 wxArrayString arr = wxFontEnumerator::GetFacenames();
3272 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3273 ret = wxArrayString2PyList_helper(arr);
3274 wxPyEndBlockThreads(blocked);
3275 return ret;
3276 }
3277
3278 #include <locale.h>
3279
3280 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3281 wxLocale* loc;
3282 if (language == -1)
3283 loc = new wxLocale();
3284 else
3285 loc = new wxLocale(language, flags);
3286 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3287 // for the floating point conversions and such to work right.
3288 #if PY_VERSION_HEX < 0x02040000
3289 setlocale(LC_NUMERIC, "C");
3290 #endif
3291 return loc;
3292 }
3293 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3294 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3295 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3296 // for the floating point conversions and such to work right.
3297 #if PY_VERSION_HEX < 0x02040000
3298 setlocale(LC_NUMERIC, "C");
3299 #endif
3300 return rc;
3301 }
3302 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3303 bool rc = self->Init(language, flags);
3304 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3305 // for the floating point conversions and such to work right.
3306 #if PY_VERSION_HEX < 0x02040000
3307 setlocale(LC_NUMERIC, "C");
3308 #endif
3309 return rc;
3310 }
3311
3312 class wxPyLocale : public wxLocale
3313 {
3314 public:
3315 wxPyLocale();
3316
3317 wxPyLocale(const wxChar *szName, // name (for messages)
3318 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3319 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3320 bool bLoadDefault = true, // preload wxstd.mo?
3321 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3322
3323 wxPyLocale(int language, // wxLanguage id or custom language
3324 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3325
3326 ~wxPyLocale();
3327
3328 virtual const wxChar *GetString(const wxChar *szOrigString,
3329 const wxChar *szDomain = NULL) const;
3330 virtual const wxChar *GetString(const wxChar *szOrigString,
3331 const wxChar *szOrigString2, size_t n,
3332 const wxChar *szDomain = NULL) const;
3333
3334 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3335 const wxChar *szDomain = NULL) const;
3336 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3337 const wxChar *szOrigString2, size_t n,
3338 const wxChar *szDomain = NULL) const;
3339
3340 PYPRIVATE;
3341 private:
3342 DECLARE_NO_COPY_CLASS(wxPyLocale)
3343 };
3344
3345 wxPyLocale::wxPyLocale() : wxLocale()
3346 {
3347 }
3348
3349 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3350 const wxChar *szShort, // dir prefix (for msg files)
3351 const wxChar *szLocale, // locale (for setlocale)
3352 bool bLoadDefault, // preload wxstd.mo?
3353 bool bConvertEncoding) // convert Win<->Unix if necessary?
3354 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3355 {
3356 }
3357
3358 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3359 int flags) : wxLocale(language, flags)
3360 {
3361 }
3362
3363 wxPyLocale::~wxPyLocale()
3364 {
3365 }
3366
3367 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3368 const wxChar *szDomain) const
3369 {
3370 wxChar *str = GetSingularString(szOrigString, szDomain);
3371 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3372 }
3373
3374 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3375 const wxChar *szOrigString2, size_t n,
3376 const wxChar *szDomain) const
3377 {
3378 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3379 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3380 }
3381
3382 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3383 const wxChar *szDomain) const
3384 {
3385 bool found;
3386 static wxString str;
3387 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.
3388 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3389 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3390 PyObject* param1 = wx2PyString(szOrigString);
3391 PyObject* param2 = wx2PyString(szDomain);
3392 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3393 Py_DECREF(param1);
3394 Py_DECREF(param2);
3395 if (ret) {
3396 str = Py2wxString(ret);
3397 Py_DECREF(ret);
3398 }
3399 }
3400 wxPyEndBlockThreads(blocked);
3401 return (found ? (wxChar*)str.c_str() : NULL);
3402 }
3403
3404 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3405 const wxChar *szOrigString2, size_t n,
3406 const wxChar *szDomain) const
3407 {
3408 bool found;
3409 static wxString str;
3410 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.
3411 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3412 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3413 PyObject* param1 = wx2PyString(szOrigString);
3414 PyObject* param2 = wx2PyString(szOrigString2);
3415 PyObject* param4 = wx2PyString(szDomain);
3416 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3417 Py_DECREF(param1);
3418 Py_DECREF(param2);
3419 Py_DECREF(param4);
3420 if( ret) {
3421 str = Py2wxString(ret);
3422 Py_DECREF(ret);
3423 }
3424 }
3425 wxPyEndBlockThreads(blocked);
3426 return (found ? (wxChar*)str.c_str() : NULL);
3427 }
3428
3429 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3430 wxPyLocale* loc;
3431 if (language == -1)
3432 loc = new wxPyLocale();
3433 else
3434 loc = new wxPyLocale(language, flags);
3435 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3436 // for the floating point conversions and such to work right.
3437 #if PY_VERSION_HEX < 0x02040000
3438 setlocale(LC_NUMERIC, "C");
3439 #endif
3440 return loc;
3441 }
3442
3443 #include "wx/wxPython/pydrawxxx.h"
3444
3445 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3446 wxColour col;
3447 self->GetPixel(x, y, &col);
3448 return col;
3449 }
3450 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3451 wxColour col;
3452 self->GetPixel(pt, &col);
3453 return col;
3454 }
3455
3456 SWIGINTERN int
3457 SWIG_AsVal_double (PyObject *obj, double* val)
3458 {
3459 if (PyNumber_Check(obj)) {
3460 if (val) *val = PyFloat_AsDouble(obj);
3461 return SWIG_OK;
3462 }
3463 return SWIG_TypeError;
3464 }
3465
3466 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3467 wxRect rv;
3468 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3469 return rv;
3470 }
3471 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3472 wxRect rect;
3473 self->GetClippingBox(rect);
3474 return rect;
3475 }
3476 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3477 wxArrayInt widths;
3478 self->GetPartialTextExtents(text, widths);
3479 return widths;
3480 }
3481
3482 #define SWIG_From_double PyFloat_FromDouble
3483
3484 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3485 self->SetLogicalOrigin(point.x, point.y);
3486 }
3487 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3488 self->SetDeviceOrigin(point.x, point.y);
3489 }
3490 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3491 self->CalcBoundingBox(point.x, point.y);
3492 }
3493 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3494 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3495 }
3496 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3497 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3498 }
3499 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3500 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3501 }
3502 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3503 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3504 }
3505 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3506 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3507 }
3508 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3509 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3510 }
3511
3512 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3513 *x1 = dc->MinX();
3514 *y1 = dc->MinY();
3515 *x2 = dc->MaxX();
3516 *y2 = dc->MaxY();
3517 }
3518
3519
3520 #include <wx/dcbuffer.h>
3521
3522
3523 #include <wx/dcps.h>
3524
3525
3526 class wxMetaFile : public wxObject {
3527 public:
3528 wxMetaFile(const wxString&)
3529 { wxPyRaiseNotImplemented(); }
3530 };
3531
3532 class wxMetaFileDC : public wxClientDC {
3533 public:
3534 wxMetaFileDC(const wxString&, int, int, const wxString&)
3535 { wxPyRaiseNotImplemented(); }
3536 };
3537
3538
3539
3540 class wxPrinterDC : public wxClientDC {
3541 public:
3542 wxPrinterDC(const wxPrintData&)
3543 { wxPyRaiseNotImplemented(); }
3544
3545 };
3546
3547
3548
3549 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3550 self->AddColour(name, wxColour(red, green, blue));
3551 }
3552
3553 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3554 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3555 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3556 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3557
3558
3559 #include <wx/effects.h>
3560
3561
3562 #include "wx/renderer.h"
3563
3564
3565 SWIGINTERNINLINE PyObject*
3566 SWIG_From_bool (bool value)
3567 {
3568 return PyBool_FromLong(value ? 1 : 0);
3569 }
3570
3571
3572 #include "wx/wxPython/pseudodc.h"
3573
3574 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3575 wxRect rect;
3576 self->GetIdBounds(id, rect);
3577 return rect;
3578 }
3579 #ifdef __cplusplus
3580 extern "C" {
3581 #endif
3582 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3583 PyObject *resultobj = 0;
3584 wxGDIObject *result = 0 ;
3585
3586 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3587 {
3588 if (!wxPyCheckForApp()) SWIG_fail;
3589 PyThreadState* __tstate = wxPyBeginAllowThreads();
3590 result = (wxGDIObject *)new wxGDIObject();
3591 wxPyEndAllowThreads(__tstate);
3592 if (PyErr_Occurred()) SWIG_fail;
3593 }
3594 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3595 return resultobj;
3596 fail:
3597 return NULL;
3598 }
3599
3600
3601 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3602 PyObject *resultobj = 0;
3603 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3604 void *argp1 = 0 ;
3605 int res1 = 0 ;
3606 PyObject *swig_obj[1] ;
3607
3608 if (!args) SWIG_fail;
3609 swig_obj[0] = args;
3610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3611 if (!SWIG_IsOK(res1)) {
3612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3613 }
3614 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3615 {
3616 PyThreadState* __tstate = wxPyBeginAllowThreads();
3617 delete arg1;
3618
3619 wxPyEndAllowThreads(__tstate);
3620 if (PyErr_Occurred()) SWIG_fail;
3621 }
3622 resultobj = SWIG_Py_Void();
3623 return resultobj;
3624 fail:
3625 return NULL;
3626 }
3627
3628
3629 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3630 PyObject *resultobj = 0;
3631 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3632 bool result;
3633 void *argp1 = 0 ;
3634 int res1 = 0 ;
3635 PyObject *swig_obj[1] ;
3636
3637 if (!args) SWIG_fail;
3638 swig_obj[0] = args;
3639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3640 if (!SWIG_IsOK(res1)) {
3641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3642 }
3643 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3644 {
3645 PyThreadState* __tstate = wxPyBeginAllowThreads();
3646 result = (bool)(arg1)->IsNull();
3647 wxPyEndAllowThreads(__tstate);
3648 if (PyErr_Occurred()) SWIG_fail;
3649 }
3650 {
3651 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3652 }
3653 return resultobj;
3654 fail:
3655 return NULL;
3656 }
3657
3658
3659 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3660 PyObject *obj;
3661 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3662 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3663 return SWIG_Py_Void();
3664 }
3665
3666 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3667 return SWIG_Python_InitShadowInstance(args);
3668 }
3669
3670 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3671 PyObject *resultobj = 0;
3672 byte arg1 = (byte) 0 ;
3673 byte arg2 = (byte) 0 ;
3674 byte arg3 = (byte) 0 ;
3675 byte arg4 = (byte) wxALPHA_OPAQUE ;
3676 wxColour *result = 0 ;
3677 unsigned char val1 ;
3678 int ecode1 = 0 ;
3679 unsigned char val2 ;
3680 int ecode2 = 0 ;
3681 unsigned char val3 ;
3682 int ecode3 = 0 ;
3683 unsigned char val4 ;
3684 int ecode4 = 0 ;
3685 PyObject * obj0 = 0 ;
3686 PyObject * obj1 = 0 ;
3687 PyObject * obj2 = 0 ;
3688 PyObject * obj3 = 0 ;
3689 char * kwnames[] = {
3690 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3691 };
3692
3693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3694 if (obj0) {
3695 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3696 if (!SWIG_IsOK(ecode1)) {
3697 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3698 }
3699 arg1 = static_cast< byte >(val1);
3700 }
3701 if (obj1) {
3702 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3703 if (!SWIG_IsOK(ecode2)) {
3704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3705 }
3706 arg2 = static_cast< byte >(val2);
3707 }
3708 if (obj2) {
3709 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3710 if (!SWIG_IsOK(ecode3)) {
3711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3712 }
3713 arg3 = static_cast< byte >(val3);
3714 }
3715 if (obj3) {
3716 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3717 if (!SWIG_IsOK(ecode4)) {
3718 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3719 }
3720 arg4 = static_cast< byte >(val4);
3721 }
3722 {
3723 PyThreadState* __tstate = wxPyBeginAllowThreads();
3724 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3725 wxPyEndAllowThreads(__tstate);
3726 if (PyErr_Occurred()) SWIG_fail;
3727 }
3728 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3729 return resultobj;
3730 fail:
3731 return NULL;
3732 }
3733
3734
3735 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3736 PyObject *resultobj = 0;
3737 wxString *arg1 = 0 ;
3738 wxColour *result = 0 ;
3739 bool temp1 = false ;
3740 PyObject * obj0 = 0 ;
3741 char * kwnames[] = {
3742 (char *) "colorName", NULL
3743 };
3744
3745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3746 {
3747 arg1 = wxString_in_helper(obj0);
3748 if (arg1 == NULL) SWIG_fail;
3749 temp1 = true;
3750 }
3751 {
3752 if (!wxPyCheckForApp()) SWIG_fail;
3753 PyThreadState* __tstate = wxPyBeginAllowThreads();
3754 result = (wxColour *)new wxColour((wxString const &)*arg1);
3755 wxPyEndAllowThreads(__tstate);
3756 if (PyErr_Occurred()) SWIG_fail;
3757 }
3758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3759 {
3760 if (temp1)
3761 delete arg1;
3762 }
3763 return resultobj;
3764 fail:
3765 {
3766 if (temp1)
3767 delete arg1;
3768 }
3769 return NULL;
3770 }
3771
3772
3773 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3774 PyObject *resultobj = 0;
3775 unsigned long arg1 ;
3776 wxColour *result = 0 ;
3777 unsigned long val1 ;
3778 int ecode1 = 0 ;
3779 PyObject * obj0 = 0 ;
3780 char * kwnames[] = {
3781 (char *) "colRGB", NULL
3782 };
3783
3784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3785 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3786 if (!SWIG_IsOK(ecode1)) {
3787 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3788 }
3789 arg1 = static_cast< unsigned long >(val1);
3790 {
3791 PyThreadState* __tstate = wxPyBeginAllowThreads();
3792 result = (wxColour *)new wxColour(arg1);
3793 wxPyEndAllowThreads(__tstate);
3794 if (PyErr_Occurred()) SWIG_fail;
3795 }
3796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3797 return resultobj;
3798 fail:
3799 return NULL;
3800 }
3801
3802
3803 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3804 PyObject *resultobj = 0;
3805 wxColour *arg1 = (wxColour *) 0 ;
3806 void *argp1 = 0 ;
3807 int res1 = 0 ;
3808 PyObject *swig_obj[1] ;
3809
3810 if (!args) SWIG_fail;
3811 swig_obj[0] = args;
3812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3813 if (!SWIG_IsOK(res1)) {
3814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3815 }
3816 arg1 = reinterpret_cast< wxColour * >(argp1);
3817 {
3818 PyThreadState* __tstate = wxPyBeginAllowThreads();
3819 delete arg1;
3820
3821 wxPyEndAllowThreads(__tstate);
3822 if (PyErr_Occurred()) SWIG_fail;
3823 }
3824 resultobj = SWIG_Py_Void();
3825 return resultobj;
3826 fail:
3827 return NULL;
3828 }
3829
3830
3831 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3832 PyObject *resultobj = 0;
3833 wxColour *arg1 = (wxColour *) 0 ;
3834 byte result;
3835 void *argp1 = 0 ;
3836 int res1 = 0 ;
3837 PyObject *swig_obj[1] ;
3838
3839 if (!args) SWIG_fail;
3840 swig_obj[0] = args;
3841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3842 if (!SWIG_IsOK(res1)) {
3843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3844 }
3845 arg1 = reinterpret_cast< wxColour * >(argp1);
3846 {
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 result = (byte)(arg1)->Red();
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3853 return resultobj;
3854 fail:
3855 return NULL;
3856 }
3857
3858
3859 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3860 PyObject *resultobj = 0;
3861 wxColour *arg1 = (wxColour *) 0 ;
3862 byte result;
3863 void *argp1 = 0 ;
3864 int res1 = 0 ;
3865 PyObject *swig_obj[1] ;
3866
3867 if (!args) SWIG_fail;
3868 swig_obj[0] = args;
3869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3870 if (!SWIG_IsOK(res1)) {
3871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3872 }
3873 arg1 = reinterpret_cast< wxColour * >(argp1);
3874 {
3875 PyThreadState* __tstate = wxPyBeginAllowThreads();
3876 result = (byte)(arg1)->Green();
3877 wxPyEndAllowThreads(__tstate);
3878 if (PyErr_Occurred()) SWIG_fail;
3879 }
3880 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3881 return resultobj;
3882 fail:
3883 return NULL;
3884 }
3885
3886
3887 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3888 PyObject *resultobj = 0;
3889 wxColour *arg1 = (wxColour *) 0 ;
3890 byte result;
3891 void *argp1 = 0 ;
3892 int res1 = 0 ;
3893 PyObject *swig_obj[1] ;
3894
3895 if (!args) SWIG_fail;
3896 swig_obj[0] = args;
3897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3898 if (!SWIG_IsOK(res1)) {
3899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3900 }
3901 arg1 = reinterpret_cast< wxColour * >(argp1);
3902 {
3903 PyThreadState* __tstate = wxPyBeginAllowThreads();
3904 result = (byte)(arg1)->Blue();
3905 wxPyEndAllowThreads(__tstate);
3906 if (PyErr_Occurred()) SWIG_fail;
3907 }
3908 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3909 return resultobj;
3910 fail:
3911 return NULL;
3912 }
3913
3914
3915 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3916 PyObject *resultobj = 0;
3917 wxColour *arg1 = (wxColour *) 0 ;
3918 byte result;
3919 void *argp1 = 0 ;
3920 int res1 = 0 ;
3921 PyObject *swig_obj[1] ;
3922
3923 if (!args) SWIG_fail;
3924 swig_obj[0] = args;
3925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3926 if (!SWIG_IsOK(res1)) {
3927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
3928 }
3929 arg1 = reinterpret_cast< wxColour * >(argp1);
3930 {
3931 PyThreadState* __tstate = wxPyBeginAllowThreads();
3932 result = (byte)(arg1)->Alpha();
3933 wxPyEndAllowThreads(__tstate);
3934 if (PyErr_Occurred()) SWIG_fail;
3935 }
3936 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3937 return resultobj;
3938 fail:
3939 return NULL;
3940 }
3941
3942
3943 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3944 PyObject *resultobj = 0;
3945 wxColour *arg1 = (wxColour *) 0 ;
3946 bool result;
3947 void *argp1 = 0 ;
3948 int res1 = 0 ;
3949 PyObject *swig_obj[1] ;
3950
3951 if (!args) SWIG_fail;
3952 swig_obj[0] = args;
3953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3954 if (!SWIG_IsOK(res1)) {
3955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3956 }
3957 arg1 = reinterpret_cast< wxColour * >(argp1);
3958 {
3959 PyThreadState* __tstate = wxPyBeginAllowThreads();
3960 result = (bool)(arg1)->Ok();
3961 wxPyEndAllowThreads(__tstate);
3962 if (PyErr_Occurred()) SWIG_fail;
3963 }
3964 {
3965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3966 }
3967 return resultobj;
3968 fail:
3969 return NULL;
3970 }
3971
3972
3973 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3974 PyObject *resultobj = 0;
3975 wxColour *arg1 = (wxColour *) 0 ;
3976 byte arg2 ;
3977 byte arg3 ;
3978 byte arg4 ;
3979 byte arg5 = (byte) wxALPHA_OPAQUE ;
3980 void *argp1 = 0 ;
3981 int res1 = 0 ;
3982 unsigned char val2 ;
3983 int ecode2 = 0 ;
3984 unsigned char val3 ;
3985 int ecode3 = 0 ;
3986 unsigned char val4 ;
3987 int ecode4 = 0 ;
3988 unsigned char val5 ;
3989 int ecode5 = 0 ;
3990 PyObject * obj0 = 0 ;
3991 PyObject * obj1 = 0 ;
3992 PyObject * obj2 = 0 ;
3993 PyObject * obj3 = 0 ;
3994 PyObject * obj4 = 0 ;
3995 char * kwnames[] = {
3996 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3997 };
3998
3999 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4000 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4001 if (!SWIG_IsOK(res1)) {
4002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4003 }
4004 arg1 = reinterpret_cast< wxColour * >(argp1);
4005 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4006 if (!SWIG_IsOK(ecode2)) {
4007 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4008 }
4009 arg2 = static_cast< byte >(val2);
4010 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4011 if (!SWIG_IsOK(ecode3)) {
4012 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4013 }
4014 arg3 = static_cast< byte >(val3);
4015 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4016 if (!SWIG_IsOK(ecode4)) {
4017 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4018 }
4019 arg4 = static_cast< byte >(val4);
4020 if (obj4) {
4021 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4022 if (!SWIG_IsOK(ecode5)) {
4023 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4024 }
4025 arg5 = static_cast< byte >(val5);
4026 }
4027 {
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 (arg1)->Set(arg2,arg3,arg4,arg5);
4030 wxPyEndAllowThreads(__tstate);
4031 if (PyErr_Occurred()) SWIG_fail;
4032 }
4033 resultobj = SWIG_Py_Void();
4034 return resultobj;
4035 fail:
4036 return NULL;
4037 }
4038
4039
4040 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4041 PyObject *resultobj = 0;
4042 wxColour *arg1 = (wxColour *) 0 ;
4043 unsigned long arg2 ;
4044 void *argp1 = 0 ;
4045 int res1 = 0 ;
4046 unsigned long val2 ;
4047 int ecode2 = 0 ;
4048 PyObject * obj0 = 0 ;
4049 PyObject * obj1 = 0 ;
4050 char * kwnames[] = {
4051 (char *) "self",(char *) "colRGB", NULL
4052 };
4053
4054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4056 if (!SWIG_IsOK(res1)) {
4057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4058 }
4059 arg1 = reinterpret_cast< wxColour * >(argp1);
4060 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4061 if (!SWIG_IsOK(ecode2)) {
4062 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4063 }
4064 arg2 = static_cast< unsigned long >(val2);
4065 {
4066 PyThreadState* __tstate = wxPyBeginAllowThreads();
4067 (arg1)->Set(arg2);
4068 wxPyEndAllowThreads(__tstate);
4069 if (PyErr_Occurred()) SWIG_fail;
4070 }
4071 resultobj = SWIG_Py_Void();
4072 return resultobj;
4073 fail:
4074 return NULL;
4075 }
4076
4077
4078 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4079 PyObject *resultobj = 0;
4080 wxColour *arg1 = (wxColour *) 0 ;
4081 wxString *arg2 = 0 ;
4082 void *argp1 = 0 ;
4083 int res1 = 0 ;
4084 bool temp2 = false ;
4085 PyObject * obj0 = 0 ;
4086 PyObject * obj1 = 0 ;
4087 char * kwnames[] = {
4088 (char *) "self",(char *) "colourName", NULL
4089 };
4090
4091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4093 if (!SWIG_IsOK(res1)) {
4094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4095 }
4096 arg1 = reinterpret_cast< wxColour * >(argp1);
4097 {
4098 arg2 = wxString_in_helper(obj1);
4099 if (arg2 == NULL) SWIG_fail;
4100 temp2 = true;
4101 }
4102 {
4103 PyThreadState* __tstate = wxPyBeginAllowThreads();
4104 (arg1)->InitFromName((wxString const &)*arg2);
4105 wxPyEndAllowThreads(__tstate);
4106 if (PyErr_Occurred()) SWIG_fail;
4107 }
4108 resultobj = SWIG_Py_Void();
4109 {
4110 if (temp2)
4111 delete arg2;
4112 }
4113 return resultobj;
4114 fail:
4115 {
4116 if (temp2)
4117 delete arg2;
4118 }
4119 return NULL;
4120 }
4121
4122
4123 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4124 PyObject *resultobj = 0;
4125 wxColour *arg1 = (wxColour *) 0 ;
4126 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4127 wxString result;
4128 void *argp1 = 0 ;
4129 int res1 = 0 ;
4130 long val2 ;
4131 int ecode2 = 0 ;
4132 PyObject * obj0 = 0 ;
4133 PyObject * obj1 = 0 ;
4134 char * kwnames[] = {
4135 (char *) "self",(char *) "flags", NULL
4136 };
4137
4138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4140 if (!SWIG_IsOK(res1)) {
4141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4142 }
4143 arg1 = reinterpret_cast< wxColour * >(argp1);
4144 if (obj1) {
4145 ecode2 = SWIG_AsVal_long(obj1, &val2);
4146 if (!SWIG_IsOK(ecode2)) {
4147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4148 }
4149 arg2 = static_cast< long >(val2);
4150 }
4151 {
4152 PyThreadState* __tstate = wxPyBeginAllowThreads();
4153 result = ((wxColour const *)arg1)->GetAsString(arg2);
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 {
4158 #if wxUSE_UNICODE
4159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4160 #else
4161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4162 #endif
4163 }
4164 return resultobj;
4165 fail:
4166 return NULL;
4167 }
4168
4169
4170 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4171 PyObject *resultobj = 0;
4172 wxColour *arg1 = (wxColour *) 0 ;
4173 long result;
4174 void *argp1 = 0 ;
4175 int res1 = 0 ;
4176 PyObject *swig_obj[1] ;
4177
4178 if (!args) SWIG_fail;
4179 swig_obj[0] = args;
4180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4181 if (!SWIG_IsOK(res1)) {
4182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4183 }
4184 arg1 = reinterpret_cast< wxColour * >(argp1);
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 result = (long)((wxColour const *)arg1)->GetPixel();
4188 wxPyEndAllowThreads(__tstate);
4189 if (PyErr_Occurred()) SWIG_fail;
4190 }
4191 resultobj = SWIG_From_long(static_cast< long >(result));
4192 return resultobj;
4193 fail:
4194 return NULL;
4195 }
4196
4197
4198 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4199 PyObject *resultobj = 0;
4200 wxColour *arg1 = (wxColour *) 0 ;
4201 PyObject *arg2 = (PyObject *) 0 ;
4202 bool result;
4203 void *argp1 = 0 ;
4204 int res1 = 0 ;
4205 PyObject * obj0 = 0 ;
4206 PyObject * obj1 = 0 ;
4207 char * kwnames[] = {
4208 (char *) "self",(char *) "other", NULL
4209 };
4210
4211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4213 if (!SWIG_IsOK(res1)) {
4214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4215 }
4216 arg1 = reinterpret_cast< wxColour * >(argp1);
4217 arg2 = obj1;
4218 {
4219 result = (bool)wxColour___eq__(arg1,arg2);
4220 if (PyErr_Occurred()) SWIG_fail;
4221 }
4222 {
4223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4224 }
4225 return resultobj;
4226 fail:
4227 return NULL;
4228 }
4229
4230
4231 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4232 PyObject *resultobj = 0;
4233 wxColour *arg1 = (wxColour *) 0 ;
4234 PyObject *arg2 = (PyObject *) 0 ;
4235 bool result;
4236 void *argp1 = 0 ;
4237 int res1 = 0 ;
4238 PyObject * obj0 = 0 ;
4239 PyObject * obj1 = 0 ;
4240 char * kwnames[] = {
4241 (char *) "self",(char *) "other", NULL
4242 };
4243
4244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4246 if (!SWIG_IsOK(res1)) {
4247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4248 }
4249 arg1 = reinterpret_cast< wxColour * >(argp1);
4250 arg2 = obj1;
4251 {
4252 result = (bool)wxColour___ne__(arg1,arg2);
4253 if (PyErr_Occurred()) SWIG_fail;
4254 }
4255 {
4256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4257 }
4258 return resultobj;
4259 fail:
4260 return NULL;
4261 }
4262
4263
4264 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4265 PyObject *resultobj = 0;
4266 wxColour *arg1 = (wxColour *) 0 ;
4267 bool arg2 = (bool) false ;
4268 PyObject *result = 0 ;
4269 void *argp1 = 0 ;
4270 int res1 = 0 ;
4271 bool val2 ;
4272 int ecode2 = 0 ;
4273 PyObject * obj0 = 0 ;
4274 PyObject * obj1 = 0 ;
4275 char * kwnames[] = {
4276 (char *) "self",(char *) "includeAlpha", NULL
4277 };
4278
4279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4281 if (!SWIG_IsOK(res1)) {
4282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4283 }
4284 arg1 = reinterpret_cast< wxColour * >(argp1);
4285 if (obj1) {
4286 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4287 if (!SWIG_IsOK(ecode2)) {
4288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4289 }
4290 arg2 = static_cast< bool >(val2);
4291 }
4292 {
4293 result = (PyObject *)wxColour_Get(arg1,arg2);
4294 if (PyErr_Occurred()) SWIG_fail;
4295 }
4296 resultobj = result;
4297 return resultobj;
4298 fail:
4299 return NULL;
4300 }
4301
4302
4303 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4304 PyObject *resultobj = 0;
4305 wxColour *arg1 = (wxColour *) 0 ;
4306 unsigned long result;
4307 void *argp1 = 0 ;
4308 int res1 = 0 ;
4309 PyObject *swig_obj[1] ;
4310
4311 if (!args) SWIG_fail;
4312 swig_obj[0] = args;
4313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4314 if (!SWIG_IsOK(res1)) {
4315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4316 }
4317 arg1 = reinterpret_cast< wxColour * >(argp1);
4318 {
4319 result = (unsigned long)wxColour_GetRGB(arg1);
4320 if (PyErr_Occurred()) SWIG_fail;
4321 }
4322 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4323 return resultobj;
4324 fail:
4325 return NULL;
4326 }
4327
4328
4329 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4330 PyObject *obj;
4331 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4332 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4333 return SWIG_Py_Void();
4334 }
4335
4336 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4337 return SWIG_Python_InitShadowInstance(args);
4338 }
4339
4340 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4341 PyObject *resultobj = 0;
4342 int arg1 ;
4343 unsigned char *arg2 = (unsigned char *) 0 ;
4344 unsigned char *arg3 = (unsigned char *) 0 ;
4345 unsigned char *arg4 = (unsigned char *) 0 ;
4346 wxPalette *result = 0 ;
4347 int val1 ;
4348 int ecode1 = 0 ;
4349 void *argp2 = 0 ;
4350 int res2 = 0 ;
4351 void *argp3 = 0 ;
4352 int res3 = 0 ;
4353 void *argp4 = 0 ;
4354 int res4 = 0 ;
4355 PyObject * obj0 = 0 ;
4356 PyObject * obj1 = 0 ;
4357 PyObject * obj2 = 0 ;
4358 PyObject * obj3 = 0 ;
4359 char * kwnames[] = {
4360 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4361 };
4362
4363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4364 ecode1 = SWIG_AsVal_int(obj0, &val1);
4365 if (!SWIG_IsOK(ecode1)) {
4366 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4367 }
4368 arg1 = static_cast< int >(val1);
4369 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4370 if (!SWIG_IsOK(res2)) {
4371 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4372 }
4373 arg2 = reinterpret_cast< unsigned char * >(argp2);
4374 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4375 if (!SWIG_IsOK(res3)) {
4376 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4377 }
4378 arg3 = reinterpret_cast< unsigned char * >(argp3);
4379 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4380 if (!SWIG_IsOK(res4)) {
4381 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4382 }
4383 arg4 = reinterpret_cast< unsigned char * >(argp4);
4384 {
4385 if (!wxPyCheckForApp()) SWIG_fail;
4386 PyThreadState* __tstate = wxPyBeginAllowThreads();
4387 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4388 wxPyEndAllowThreads(__tstate);
4389 if (PyErr_Occurred()) SWIG_fail;
4390 }
4391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4392 return resultobj;
4393 fail:
4394 return NULL;
4395 }
4396
4397
4398 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4399 PyObject *resultobj = 0;
4400 wxPalette *arg1 = (wxPalette *) 0 ;
4401 void *argp1 = 0 ;
4402 int res1 = 0 ;
4403 PyObject *swig_obj[1] ;
4404
4405 if (!args) SWIG_fail;
4406 swig_obj[0] = args;
4407 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4408 if (!SWIG_IsOK(res1)) {
4409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4410 }
4411 arg1 = reinterpret_cast< wxPalette * >(argp1);
4412 {
4413 PyThreadState* __tstate = wxPyBeginAllowThreads();
4414 delete arg1;
4415
4416 wxPyEndAllowThreads(__tstate);
4417 if (PyErr_Occurred()) SWIG_fail;
4418 }
4419 resultobj = SWIG_Py_Void();
4420 return resultobj;
4421 fail:
4422 return NULL;
4423 }
4424
4425
4426 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4427 PyObject *resultobj = 0;
4428 wxPalette *arg1 = (wxPalette *) 0 ;
4429 byte arg2 ;
4430 byte arg3 ;
4431 byte arg4 ;
4432 int result;
4433 void *argp1 = 0 ;
4434 int res1 = 0 ;
4435 unsigned char val2 ;
4436 int ecode2 = 0 ;
4437 unsigned char val3 ;
4438 int ecode3 = 0 ;
4439 unsigned char val4 ;
4440 int ecode4 = 0 ;
4441 PyObject * obj0 = 0 ;
4442 PyObject * obj1 = 0 ;
4443 PyObject * obj2 = 0 ;
4444 PyObject * obj3 = 0 ;
4445 char * kwnames[] = {
4446 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4447 };
4448
4449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4451 if (!SWIG_IsOK(res1)) {
4452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4453 }
4454 arg1 = reinterpret_cast< wxPalette * >(argp1);
4455 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4456 if (!SWIG_IsOK(ecode2)) {
4457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4458 }
4459 arg2 = static_cast< byte >(val2);
4460 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4461 if (!SWIG_IsOK(ecode3)) {
4462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4463 }
4464 arg3 = static_cast< byte >(val3);
4465 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4466 if (!SWIG_IsOK(ecode4)) {
4467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4468 }
4469 arg4 = static_cast< byte >(val4);
4470 {
4471 PyThreadState* __tstate = wxPyBeginAllowThreads();
4472 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4473 wxPyEndAllowThreads(__tstate);
4474 if (PyErr_Occurred()) SWIG_fail;
4475 }
4476 resultobj = SWIG_From_int(static_cast< int >(result));
4477 return resultobj;
4478 fail:
4479 return NULL;
4480 }
4481
4482
4483 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4484 PyObject *resultobj = 0;
4485 wxPalette *arg1 = (wxPalette *) 0 ;
4486 int arg2 ;
4487 byte *arg3 = (byte *) 0 ;
4488 byte *arg4 = (byte *) 0 ;
4489 byte *arg5 = (byte *) 0 ;
4490 bool result;
4491 void *argp1 = 0 ;
4492 int res1 = 0 ;
4493 int val2 ;
4494 int ecode2 = 0 ;
4495 byte temp3 ;
4496 int res3 = SWIG_TMPOBJ ;
4497 byte temp4 ;
4498 int res4 = SWIG_TMPOBJ ;
4499 byte temp5 ;
4500 int res5 = SWIG_TMPOBJ ;
4501 PyObject * obj0 = 0 ;
4502 PyObject * obj1 = 0 ;
4503 char * kwnames[] = {
4504 (char *) "self",(char *) "pixel", NULL
4505 };
4506
4507 arg3 = &temp3;
4508 arg4 = &temp4;
4509 arg5 = &temp5;
4510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4512 if (!SWIG_IsOK(res1)) {
4513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4514 }
4515 arg1 = reinterpret_cast< wxPalette * >(argp1);
4516 ecode2 = SWIG_AsVal_int(obj1, &val2);
4517 if (!SWIG_IsOK(ecode2)) {
4518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4519 }
4520 arg2 = static_cast< int >(val2);
4521 {
4522 PyThreadState* __tstate = wxPyBeginAllowThreads();
4523 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4524 wxPyEndAllowThreads(__tstate);
4525 if (PyErr_Occurred()) SWIG_fail;
4526 }
4527 {
4528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4529 }
4530 if (SWIG_IsTmpObj(res3)) {
4531 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4532 } else {
4533 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4534 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4535 }
4536 if (SWIG_IsTmpObj(res4)) {
4537 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4538 } else {
4539 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4540 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4541 }
4542 if (SWIG_IsTmpObj(res5)) {
4543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4544 } else {
4545 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4547 }
4548 return resultobj;
4549 fail:
4550 return NULL;
4551 }
4552
4553
4554 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4555 PyObject *resultobj = 0;
4556 wxPalette *arg1 = (wxPalette *) 0 ;
4557 int result;
4558 void *argp1 = 0 ;
4559 int res1 = 0 ;
4560 PyObject *swig_obj[1] ;
4561
4562 if (!args) SWIG_fail;
4563 swig_obj[0] = args;
4564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4565 if (!SWIG_IsOK(res1)) {
4566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4567 }
4568 arg1 = reinterpret_cast< wxPalette * >(argp1);
4569 {
4570 PyThreadState* __tstate = wxPyBeginAllowThreads();
4571 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4572 wxPyEndAllowThreads(__tstate);
4573 if (PyErr_Occurred()) SWIG_fail;
4574 }
4575 resultobj = SWIG_From_int(static_cast< int >(result));
4576 return resultobj;
4577 fail:
4578 return NULL;
4579 }
4580
4581
4582 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4583 PyObject *resultobj = 0;
4584 wxPalette *arg1 = (wxPalette *) 0 ;
4585 bool result;
4586 void *argp1 = 0 ;
4587 int res1 = 0 ;
4588 PyObject *swig_obj[1] ;
4589
4590 if (!args) SWIG_fail;
4591 swig_obj[0] = args;
4592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4593 if (!SWIG_IsOK(res1)) {
4594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4595 }
4596 arg1 = reinterpret_cast< wxPalette * >(argp1);
4597 {
4598 PyThreadState* __tstate = wxPyBeginAllowThreads();
4599 result = (bool)(arg1)->Ok();
4600 wxPyEndAllowThreads(__tstate);
4601 if (PyErr_Occurred()) SWIG_fail;
4602 }
4603 {
4604 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4605 }
4606 return resultobj;
4607 fail:
4608 return NULL;
4609 }
4610
4611
4612 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4613 PyObject *obj;
4614 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4615 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4616 return SWIG_Py_Void();
4617 }
4618
4619 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4620 return SWIG_Python_InitShadowInstance(args);
4621 }
4622
4623 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4624 PyObject *resultobj = 0;
4625 wxColour *arg1 = 0 ;
4626 int arg2 = (int) 1 ;
4627 int arg3 = (int) wxSOLID ;
4628 wxPen *result = 0 ;
4629 wxColour temp1 ;
4630 int val2 ;
4631 int ecode2 = 0 ;
4632 int val3 ;
4633 int ecode3 = 0 ;
4634 PyObject * obj0 = 0 ;
4635 PyObject * obj1 = 0 ;
4636 PyObject * obj2 = 0 ;
4637 char * kwnames[] = {
4638 (char *) "colour",(char *) "width",(char *) "style", NULL
4639 };
4640
4641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4642 {
4643 arg1 = &temp1;
4644 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4645 }
4646 if (obj1) {
4647 ecode2 = SWIG_AsVal_int(obj1, &val2);
4648 if (!SWIG_IsOK(ecode2)) {
4649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4650 }
4651 arg2 = static_cast< int >(val2);
4652 }
4653 if (obj2) {
4654 ecode3 = SWIG_AsVal_int(obj2, &val3);
4655 if (!SWIG_IsOK(ecode3)) {
4656 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4657 }
4658 arg3 = static_cast< int >(val3);
4659 }
4660 {
4661 if (!wxPyCheckForApp()) SWIG_fail;
4662 PyThreadState* __tstate = wxPyBeginAllowThreads();
4663 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4664 wxPyEndAllowThreads(__tstate);
4665 if (PyErr_Occurred()) SWIG_fail;
4666 }
4667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4668 return resultobj;
4669 fail:
4670 return NULL;
4671 }
4672
4673
4674 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4675 PyObject *resultobj = 0;
4676 wxPen *arg1 = (wxPen *) 0 ;
4677 void *argp1 = 0 ;
4678 int res1 = 0 ;
4679 PyObject *swig_obj[1] ;
4680
4681 if (!args) SWIG_fail;
4682 swig_obj[0] = args;
4683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4684 if (!SWIG_IsOK(res1)) {
4685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4686 }
4687 arg1 = reinterpret_cast< wxPen * >(argp1);
4688 {
4689 PyThreadState* __tstate = wxPyBeginAllowThreads();
4690 delete arg1;
4691
4692 wxPyEndAllowThreads(__tstate);
4693 if (PyErr_Occurred()) SWIG_fail;
4694 }
4695 resultobj = SWIG_Py_Void();
4696 return resultobj;
4697 fail:
4698 return NULL;
4699 }
4700
4701
4702 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4703 PyObject *resultobj = 0;
4704 wxPen *arg1 = (wxPen *) 0 ;
4705 int result;
4706 void *argp1 = 0 ;
4707 int res1 = 0 ;
4708 PyObject *swig_obj[1] ;
4709
4710 if (!args) SWIG_fail;
4711 swig_obj[0] = args;
4712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4713 if (!SWIG_IsOK(res1)) {
4714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4715 }
4716 arg1 = reinterpret_cast< wxPen * >(argp1);
4717 {
4718 PyThreadState* __tstate = wxPyBeginAllowThreads();
4719 result = (int)(arg1)->GetCap();
4720 wxPyEndAllowThreads(__tstate);
4721 if (PyErr_Occurred()) SWIG_fail;
4722 }
4723 resultobj = SWIG_From_int(static_cast< int >(result));
4724 return resultobj;
4725 fail:
4726 return NULL;
4727 }
4728
4729
4730 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4731 PyObject *resultobj = 0;
4732 wxPen *arg1 = (wxPen *) 0 ;
4733 wxColour result;
4734 void *argp1 = 0 ;
4735 int res1 = 0 ;
4736 PyObject *swig_obj[1] ;
4737
4738 if (!args) SWIG_fail;
4739 swig_obj[0] = args;
4740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4741 if (!SWIG_IsOK(res1)) {
4742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4743 }
4744 arg1 = reinterpret_cast< wxPen * >(argp1);
4745 {
4746 PyThreadState* __tstate = wxPyBeginAllowThreads();
4747 result = (arg1)->GetColour();
4748 wxPyEndAllowThreads(__tstate);
4749 if (PyErr_Occurred()) SWIG_fail;
4750 }
4751 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4752 return resultobj;
4753 fail:
4754 return NULL;
4755 }
4756
4757
4758 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4759 PyObject *resultobj = 0;
4760 wxPen *arg1 = (wxPen *) 0 ;
4761 int result;
4762 void *argp1 = 0 ;
4763 int res1 = 0 ;
4764 PyObject *swig_obj[1] ;
4765
4766 if (!args) SWIG_fail;
4767 swig_obj[0] = args;
4768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4769 if (!SWIG_IsOK(res1)) {
4770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4771 }
4772 arg1 = reinterpret_cast< wxPen * >(argp1);
4773 {
4774 PyThreadState* __tstate = wxPyBeginAllowThreads();
4775 result = (int)(arg1)->GetJoin();
4776 wxPyEndAllowThreads(__tstate);
4777 if (PyErr_Occurred()) SWIG_fail;
4778 }
4779 resultobj = SWIG_From_int(static_cast< int >(result));
4780 return resultobj;
4781 fail:
4782 return NULL;
4783 }
4784
4785
4786 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4787 PyObject *resultobj = 0;
4788 wxPen *arg1 = (wxPen *) 0 ;
4789 int result;
4790 void *argp1 = 0 ;
4791 int res1 = 0 ;
4792 PyObject *swig_obj[1] ;
4793
4794 if (!args) SWIG_fail;
4795 swig_obj[0] = args;
4796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4797 if (!SWIG_IsOK(res1)) {
4798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4799 }
4800 arg1 = reinterpret_cast< wxPen * >(argp1);
4801 {
4802 PyThreadState* __tstate = wxPyBeginAllowThreads();
4803 result = (int)(arg1)->GetStyle();
4804 wxPyEndAllowThreads(__tstate);
4805 if (PyErr_Occurred()) SWIG_fail;
4806 }
4807 resultobj = SWIG_From_int(static_cast< int >(result));
4808 return resultobj;
4809 fail:
4810 return NULL;
4811 }
4812
4813
4814 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4815 PyObject *resultobj = 0;
4816 wxPen *arg1 = (wxPen *) 0 ;
4817 int result;
4818 void *argp1 = 0 ;
4819 int res1 = 0 ;
4820 PyObject *swig_obj[1] ;
4821
4822 if (!args) SWIG_fail;
4823 swig_obj[0] = args;
4824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4825 if (!SWIG_IsOK(res1)) {
4826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4827 }
4828 arg1 = reinterpret_cast< wxPen * >(argp1);
4829 {
4830 PyThreadState* __tstate = wxPyBeginAllowThreads();
4831 result = (int)(arg1)->GetWidth();
4832 wxPyEndAllowThreads(__tstate);
4833 if (PyErr_Occurred()) SWIG_fail;
4834 }
4835 resultobj = SWIG_From_int(static_cast< int >(result));
4836 return resultobj;
4837 fail:
4838 return NULL;
4839 }
4840
4841
4842 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4843 PyObject *resultobj = 0;
4844 wxPen *arg1 = (wxPen *) 0 ;
4845 bool result;
4846 void *argp1 = 0 ;
4847 int res1 = 0 ;
4848 PyObject *swig_obj[1] ;
4849
4850 if (!args) SWIG_fail;
4851 swig_obj[0] = args;
4852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4853 if (!SWIG_IsOK(res1)) {
4854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4855 }
4856 arg1 = reinterpret_cast< wxPen * >(argp1);
4857 {
4858 PyThreadState* __tstate = wxPyBeginAllowThreads();
4859 result = (bool)(arg1)->Ok();
4860 wxPyEndAllowThreads(__tstate);
4861 if (PyErr_Occurred()) SWIG_fail;
4862 }
4863 {
4864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4865 }
4866 return resultobj;
4867 fail:
4868 return NULL;
4869 }
4870
4871
4872 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4873 PyObject *resultobj = 0;
4874 wxPen *arg1 = (wxPen *) 0 ;
4875 int arg2 ;
4876 void *argp1 = 0 ;
4877 int res1 = 0 ;
4878 int val2 ;
4879 int ecode2 = 0 ;
4880 PyObject * obj0 = 0 ;
4881 PyObject * obj1 = 0 ;
4882 char * kwnames[] = {
4883 (char *) "self",(char *) "cap_style", NULL
4884 };
4885
4886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4888 if (!SWIG_IsOK(res1)) {
4889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4890 }
4891 arg1 = reinterpret_cast< wxPen * >(argp1);
4892 ecode2 = SWIG_AsVal_int(obj1, &val2);
4893 if (!SWIG_IsOK(ecode2)) {
4894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4895 }
4896 arg2 = static_cast< int >(val2);
4897 {
4898 PyThreadState* __tstate = wxPyBeginAllowThreads();
4899 (arg1)->SetCap(arg2);
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 resultobj = SWIG_Py_Void();
4904 return resultobj;
4905 fail:
4906 return NULL;
4907 }
4908
4909
4910 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4911 PyObject *resultobj = 0;
4912 wxPen *arg1 = (wxPen *) 0 ;
4913 wxColour *arg2 = 0 ;
4914 void *argp1 = 0 ;
4915 int res1 = 0 ;
4916 wxColour temp2 ;
4917 PyObject * obj0 = 0 ;
4918 PyObject * obj1 = 0 ;
4919 char * kwnames[] = {
4920 (char *) "self",(char *) "colour", NULL
4921 };
4922
4923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4925 if (!SWIG_IsOK(res1)) {
4926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4927 }
4928 arg1 = reinterpret_cast< wxPen * >(argp1);
4929 {
4930 arg2 = &temp2;
4931 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4932 }
4933 {
4934 PyThreadState* __tstate = wxPyBeginAllowThreads();
4935 (arg1)->SetColour(*arg2);
4936 wxPyEndAllowThreads(__tstate);
4937 if (PyErr_Occurred()) SWIG_fail;
4938 }
4939 resultobj = SWIG_Py_Void();
4940 return resultobj;
4941 fail:
4942 return NULL;
4943 }
4944
4945
4946 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4947 PyObject *resultobj = 0;
4948 wxPen *arg1 = (wxPen *) 0 ;
4949 int arg2 ;
4950 void *argp1 = 0 ;
4951 int res1 = 0 ;
4952 int val2 ;
4953 int ecode2 = 0 ;
4954 PyObject * obj0 = 0 ;
4955 PyObject * obj1 = 0 ;
4956 char * kwnames[] = {
4957 (char *) "self",(char *) "join_style", NULL
4958 };
4959
4960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4962 if (!SWIG_IsOK(res1)) {
4963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4964 }
4965 arg1 = reinterpret_cast< wxPen * >(argp1);
4966 ecode2 = SWIG_AsVal_int(obj1, &val2);
4967 if (!SWIG_IsOK(ecode2)) {
4968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4969 }
4970 arg2 = static_cast< int >(val2);
4971 {
4972 PyThreadState* __tstate = wxPyBeginAllowThreads();
4973 (arg1)->SetJoin(arg2);
4974 wxPyEndAllowThreads(__tstate);
4975 if (PyErr_Occurred()) SWIG_fail;
4976 }
4977 resultobj = SWIG_Py_Void();
4978 return resultobj;
4979 fail:
4980 return NULL;
4981 }
4982
4983
4984 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4985 PyObject *resultobj = 0;
4986 wxPen *arg1 = (wxPen *) 0 ;
4987 int arg2 ;
4988 void *argp1 = 0 ;
4989 int res1 = 0 ;
4990 int val2 ;
4991 int ecode2 = 0 ;
4992 PyObject * obj0 = 0 ;
4993 PyObject * obj1 = 0 ;
4994 char * kwnames[] = {
4995 (char *) "self",(char *) "style", NULL
4996 };
4997
4998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5000 if (!SWIG_IsOK(res1)) {
5001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5002 }
5003 arg1 = reinterpret_cast< wxPen * >(argp1);
5004 ecode2 = SWIG_AsVal_int(obj1, &val2);
5005 if (!SWIG_IsOK(ecode2)) {
5006 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5007 }
5008 arg2 = static_cast< int >(val2);
5009 {
5010 PyThreadState* __tstate = wxPyBeginAllowThreads();
5011 (arg1)->SetStyle(arg2);
5012 wxPyEndAllowThreads(__tstate);
5013 if (PyErr_Occurred()) SWIG_fail;
5014 }
5015 resultobj = SWIG_Py_Void();
5016 return resultobj;
5017 fail:
5018 return NULL;
5019 }
5020
5021
5022 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5023 PyObject *resultobj = 0;
5024 wxPen *arg1 = (wxPen *) 0 ;
5025 int arg2 ;
5026 void *argp1 = 0 ;
5027 int res1 = 0 ;
5028 int val2 ;
5029 int ecode2 = 0 ;
5030 PyObject * obj0 = 0 ;
5031 PyObject * obj1 = 0 ;
5032 char * kwnames[] = {
5033 (char *) "self",(char *) "width", NULL
5034 };
5035
5036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5038 if (!SWIG_IsOK(res1)) {
5039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5040 }
5041 arg1 = reinterpret_cast< wxPen * >(argp1);
5042 ecode2 = SWIG_AsVal_int(obj1, &val2);
5043 if (!SWIG_IsOK(ecode2)) {
5044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5045 }
5046 arg2 = static_cast< int >(val2);
5047 {
5048 PyThreadState* __tstate = wxPyBeginAllowThreads();
5049 (arg1)->SetWidth(arg2);
5050 wxPyEndAllowThreads(__tstate);
5051 if (PyErr_Occurred()) SWIG_fail;
5052 }
5053 resultobj = SWIG_Py_Void();
5054 return resultobj;
5055 fail:
5056 return NULL;
5057 }
5058
5059
5060 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5061 PyObject *resultobj = 0;
5062 wxPen *arg1 = (wxPen *) 0 ;
5063 int arg2 ;
5064 wxDash *arg3 = (wxDash *) 0 ;
5065 void *argp1 = 0 ;
5066 int res1 = 0 ;
5067 PyObject * obj0 = 0 ;
5068 PyObject * obj1 = 0 ;
5069 char * kwnames[] = {
5070 (char *) "self",(char *) "dashes", NULL
5071 };
5072
5073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5075 if (!SWIG_IsOK(res1)) {
5076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5077 }
5078 arg1 = reinterpret_cast< wxPen * >(argp1);
5079 {
5080 arg2 = PyList_Size(obj1);
5081 arg3 = (wxDash*)byte_LIST_helper(obj1);
5082 if (arg3 == NULL) SWIG_fail;
5083 }
5084 {
5085 PyThreadState* __tstate = wxPyBeginAllowThreads();
5086 (arg1)->SetDashes(arg2,arg3);
5087 wxPyEndAllowThreads(__tstate);
5088 if (PyErr_Occurred()) SWIG_fail;
5089 }
5090 resultobj = SWIG_Py_Void();
5091 {
5092 if (arg3) delete [] arg3;
5093 }
5094 return resultobj;
5095 fail:
5096 {
5097 if (arg3) delete [] arg3;
5098 }
5099 return NULL;
5100 }
5101
5102
5103 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5104 PyObject *resultobj = 0;
5105 wxPen *arg1 = (wxPen *) 0 ;
5106 PyObject *result = 0 ;
5107 void *argp1 = 0 ;
5108 int res1 = 0 ;
5109 PyObject *swig_obj[1] ;
5110
5111 if (!args) SWIG_fail;
5112 swig_obj[0] = args;
5113 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5114 if (!SWIG_IsOK(res1)) {
5115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5116 }
5117 arg1 = reinterpret_cast< wxPen * >(argp1);
5118 {
5119 PyThreadState* __tstate = wxPyBeginAllowThreads();
5120 result = (PyObject *)wxPen_GetDashes(arg1);
5121 wxPyEndAllowThreads(__tstate);
5122 if (PyErr_Occurred()) SWIG_fail;
5123 }
5124 resultobj = result;
5125 return resultobj;
5126 fail:
5127 return NULL;
5128 }
5129
5130
5131 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5132 PyObject *resultobj = 0;
5133 wxPen *arg1 = (wxPen *) 0 ;
5134 PyObject *arg2 = (PyObject *) 0 ;
5135 PyObject *arg3 = (PyObject *) 0 ;
5136 void *argp1 = 0 ;
5137 int res1 = 0 ;
5138 PyObject * obj0 = 0 ;
5139 PyObject * obj1 = 0 ;
5140 PyObject * obj2 = 0 ;
5141 char * kwnames[] = {
5142 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5143 };
5144
5145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5147 if (!SWIG_IsOK(res1)) {
5148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5149 }
5150 arg1 = reinterpret_cast< wxPen * >(argp1);
5151 arg2 = obj1;
5152 arg3 = obj2;
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 wxPen__SetDashes(arg1,arg2,arg3);
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 resultobj = SWIG_Py_Void();
5160 return resultobj;
5161 fail:
5162 return NULL;
5163 }
5164
5165
5166 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5167 PyObject *resultobj = 0;
5168 wxPen *arg1 = (wxPen *) 0 ;
5169 int result;
5170 void *argp1 = 0 ;
5171 int res1 = 0 ;
5172 PyObject *swig_obj[1] ;
5173
5174 if (!args) SWIG_fail;
5175 swig_obj[0] = args;
5176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5177 if (!SWIG_IsOK(res1)) {
5178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5179 }
5180 arg1 = reinterpret_cast< wxPen * >(argp1);
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 result = (int)((wxPen const *)arg1)->GetDashCount();
5184 wxPyEndAllowThreads(__tstate);
5185 if (PyErr_Occurred()) SWIG_fail;
5186 }
5187 resultobj = SWIG_From_int(static_cast< int >(result));
5188 return resultobj;
5189 fail:
5190 return NULL;
5191 }
5192
5193
5194 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5195 PyObject *resultobj = 0;
5196 wxPen *arg1 = (wxPen *) 0 ;
5197 wxPen *arg2 = (wxPen *) 0 ;
5198 bool result;
5199 void *argp1 = 0 ;
5200 int res1 = 0 ;
5201 void *argp2 = 0 ;
5202 int res2 = 0 ;
5203 PyObject * obj0 = 0 ;
5204 PyObject * obj1 = 0 ;
5205 char * kwnames[] = {
5206 (char *) "self",(char *) "other", NULL
5207 };
5208
5209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5211 if (!SWIG_IsOK(res1)) {
5212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5213 }
5214 arg1 = reinterpret_cast< wxPen * >(argp1);
5215 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5216 if (!SWIG_IsOK(res2)) {
5217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5218 }
5219 arg2 = reinterpret_cast< wxPen * >(argp2);
5220 {
5221 PyThreadState* __tstate = wxPyBeginAllowThreads();
5222 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5223 wxPyEndAllowThreads(__tstate);
5224 if (PyErr_Occurred()) SWIG_fail;
5225 }
5226 {
5227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5228 }
5229 return resultobj;
5230 fail:
5231 return NULL;
5232 }
5233
5234
5235 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5236 PyObject *resultobj = 0;
5237 wxPen *arg1 = (wxPen *) 0 ;
5238 wxPen *arg2 = (wxPen *) 0 ;
5239 bool result;
5240 void *argp1 = 0 ;
5241 int res1 = 0 ;
5242 void *argp2 = 0 ;
5243 int res2 = 0 ;
5244 PyObject * obj0 = 0 ;
5245 PyObject * obj1 = 0 ;
5246 char * kwnames[] = {
5247 (char *) "self",(char *) "other", NULL
5248 };
5249
5250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5252 if (!SWIG_IsOK(res1)) {
5253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5254 }
5255 arg1 = reinterpret_cast< wxPen * >(argp1);
5256 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5257 if (!SWIG_IsOK(res2)) {
5258 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5259 }
5260 arg2 = reinterpret_cast< wxPen * >(argp2);
5261 {
5262 PyThreadState* __tstate = wxPyBeginAllowThreads();
5263 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5264 wxPyEndAllowThreads(__tstate);
5265 if (PyErr_Occurred()) SWIG_fail;
5266 }
5267 {
5268 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5269 }
5270 return resultobj;
5271 fail:
5272 return NULL;
5273 }
5274
5275
5276 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5277 PyObject *obj;
5278 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5279 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5280 return SWIG_Py_Void();
5281 }
5282
5283 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5284 return SWIG_Python_InitShadowInstance(args);
5285 }
5286
5287 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5288 PyObject *resultobj = 0;
5289 wxColour *arg1 = 0 ;
5290 int arg2 = (int) wxSOLID ;
5291 wxBrush *result = 0 ;
5292 wxColour temp1 ;
5293 int val2 ;
5294 int ecode2 = 0 ;
5295 PyObject * obj0 = 0 ;
5296 PyObject * obj1 = 0 ;
5297 char * kwnames[] = {
5298 (char *) "colour",(char *) "style", NULL
5299 };
5300
5301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5302 {
5303 arg1 = &temp1;
5304 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5305 }
5306 if (obj1) {
5307 ecode2 = SWIG_AsVal_int(obj1, &val2);
5308 if (!SWIG_IsOK(ecode2)) {
5309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5310 }
5311 arg2 = static_cast< int >(val2);
5312 }
5313 {
5314 if (!wxPyCheckForApp()) SWIG_fail;
5315 PyThreadState* __tstate = wxPyBeginAllowThreads();
5316 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5317 wxPyEndAllowThreads(__tstate);
5318 if (PyErr_Occurred()) SWIG_fail;
5319 }
5320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5321 return resultobj;
5322 fail:
5323 return NULL;
5324 }
5325
5326
5327 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5328 PyObject *resultobj = 0;
5329 wxBitmap *arg1 = 0 ;
5330 wxBrush *result = 0 ;
5331 void *argp1 = 0 ;
5332 int res1 = 0 ;
5333 PyObject * obj0 = 0 ;
5334 char * kwnames[] = {
5335 (char *) "stippleBitmap", NULL
5336 };
5337
5338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5339 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5340 if (!SWIG_IsOK(res1)) {
5341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5342 }
5343 if (!argp1) {
5344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5345 }
5346 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5347 {
5348 if (!wxPyCheckForApp()) SWIG_fail;
5349 PyThreadState* __tstate = wxPyBeginAllowThreads();
5350 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5351 wxPyEndAllowThreads(__tstate);
5352 if (PyErr_Occurred()) SWIG_fail;
5353 }
5354 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5355 return resultobj;
5356 fail:
5357 return NULL;
5358 }
5359
5360
5361 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5362 PyObject *resultobj = 0;
5363 wxBrush *arg1 = (wxBrush *) 0 ;
5364 void *argp1 = 0 ;
5365 int res1 = 0 ;
5366 PyObject *swig_obj[1] ;
5367
5368 if (!args) SWIG_fail;
5369 swig_obj[0] = args;
5370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5371 if (!SWIG_IsOK(res1)) {
5372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5373 }
5374 arg1 = reinterpret_cast< wxBrush * >(argp1);
5375 {
5376 PyThreadState* __tstate = wxPyBeginAllowThreads();
5377 delete arg1;
5378
5379 wxPyEndAllowThreads(__tstate);
5380 if (PyErr_Occurred()) SWIG_fail;
5381 }
5382 resultobj = SWIG_Py_Void();
5383 return resultobj;
5384 fail:
5385 return NULL;
5386 }
5387
5388
5389 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5390 PyObject *resultobj = 0;
5391 wxBrush *arg1 = (wxBrush *) 0 ;
5392 wxColour *arg2 = 0 ;
5393 void *argp1 = 0 ;
5394 int res1 = 0 ;
5395 wxColour temp2 ;
5396 PyObject * obj0 = 0 ;
5397 PyObject * obj1 = 0 ;
5398 char * kwnames[] = {
5399 (char *) "self",(char *) "col", NULL
5400 };
5401
5402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5404 if (!SWIG_IsOK(res1)) {
5405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5406 }
5407 arg1 = reinterpret_cast< wxBrush * >(argp1);
5408 {
5409 arg2 = &temp2;
5410 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5411 }
5412 {
5413 PyThreadState* __tstate = wxPyBeginAllowThreads();
5414 (arg1)->SetColour((wxColour const &)*arg2);
5415 wxPyEndAllowThreads(__tstate);
5416 if (PyErr_Occurred()) SWIG_fail;
5417 }
5418 resultobj = SWIG_Py_Void();
5419 return resultobj;
5420 fail:
5421 return NULL;
5422 }
5423
5424
5425 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5426 PyObject *resultobj = 0;
5427 wxBrush *arg1 = (wxBrush *) 0 ;
5428 int arg2 ;
5429 void *argp1 = 0 ;
5430 int res1 = 0 ;
5431 int val2 ;
5432 int ecode2 = 0 ;
5433 PyObject * obj0 = 0 ;
5434 PyObject * obj1 = 0 ;
5435 char * kwnames[] = {
5436 (char *) "self",(char *) "style", NULL
5437 };
5438
5439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5441 if (!SWIG_IsOK(res1)) {
5442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5443 }
5444 arg1 = reinterpret_cast< wxBrush * >(argp1);
5445 ecode2 = SWIG_AsVal_int(obj1, &val2);
5446 if (!SWIG_IsOK(ecode2)) {
5447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5448 }
5449 arg2 = static_cast< int >(val2);
5450 {
5451 PyThreadState* __tstate = wxPyBeginAllowThreads();
5452 (arg1)->SetStyle(arg2);
5453 wxPyEndAllowThreads(__tstate);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 }
5456 resultobj = SWIG_Py_Void();
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj = 0;
5465 wxBrush *arg1 = (wxBrush *) 0 ;
5466 wxBitmap *arg2 = 0 ;
5467 void *argp1 = 0 ;
5468 int res1 = 0 ;
5469 void *argp2 = 0 ;
5470 int res2 = 0 ;
5471 PyObject * obj0 = 0 ;
5472 PyObject * obj1 = 0 ;
5473 char * kwnames[] = {
5474 (char *) "self",(char *) "stipple", NULL
5475 };
5476
5477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5479 if (!SWIG_IsOK(res1)) {
5480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5481 }
5482 arg1 = reinterpret_cast< wxBrush * >(argp1);
5483 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5484 if (!SWIG_IsOK(res2)) {
5485 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5486 }
5487 if (!argp2) {
5488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5489 }
5490 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5491 {
5492 PyThreadState* __tstate = wxPyBeginAllowThreads();
5493 (arg1)->SetStipple((wxBitmap const &)*arg2);
5494 wxPyEndAllowThreads(__tstate);
5495 if (PyErr_Occurred()) SWIG_fail;
5496 }
5497 resultobj = SWIG_Py_Void();
5498 return resultobj;
5499 fail:
5500 return NULL;
5501 }
5502
5503
5504 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5505 PyObject *resultobj = 0;
5506 wxBrush *arg1 = (wxBrush *) 0 ;
5507 wxColour result;
5508 void *argp1 = 0 ;
5509 int res1 = 0 ;
5510 PyObject *swig_obj[1] ;
5511
5512 if (!args) SWIG_fail;
5513 swig_obj[0] = args;
5514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5515 if (!SWIG_IsOK(res1)) {
5516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5517 }
5518 arg1 = reinterpret_cast< wxBrush * >(argp1);
5519 {
5520 PyThreadState* __tstate = wxPyBeginAllowThreads();
5521 result = ((wxBrush const *)arg1)->GetColour();
5522 wxPyEndAllowThreads(__tstate);
5523 if (PyErr_Occurred()) SWIG_fail;
5524 }
5525 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5526 return resultobj;
5527 fail:
5528 return NULL;
5529 }
5530
5531
5532 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5533 PyObject *resultobj = 0;
5534 wxBrush *arg1 = (wxBrush *) 0 ;
5535 int result;
5536 void *argp1 = 0 ;
5537 int res1 = 0 ;
5538 PyObject *swig_obj[1] ;
5539
5540 if (!args) SWIG_fail;
5541 swig_obj[0] = args;
5542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5543 if (!SWIG_IsOK(res1)) {
5544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5545 }
5546 arg1 = reinterpret_cast< wxBrush * >(argp1);
5547 {
5548 PyThreadState* __tstate = wxPyBeginAllowThreads();
5549 result = (int)((wxBrush const *)arg1)->GetStyle();
5550 wxPyEndAllowThreads(__tstate);
5551 if (PyErr_Occurred()) SWIG_fail;
5552 }
5553 resultobj = SWIG_From_int(static_cast< int >(result));
5554 return resultobj;
5555 fail:
5556 return NULL;
5557 }
5558
5559
5560 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5561 PyObject *resultobj = 0;
5562 wxBrush *arg1 = (wxBrush *) 0 ;
5563 wxBitmap *result = 0 ;
5564 void *argp1 = 0 ;
5565 int res1 = 0 ;
5566 PyObject *swig_obj[1] ;
5567
5568 if (!args) SWIG_fail;
5569 swig_obj[0] = args;
5570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5571 if (!SWIG_IsOK(res1)) {
5572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5573 }
5574 arg1 = reinterpret_cast< wxBrush * >(argp1);
5575 {
5576 PyThreadState* __tstate = wxPyBeginAllowThreads();
5577 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5578 wxPyEndAllowThreads(__tstate);
5579 if (PyErr_Occurred()) SWIG_fail;
5580 }
5581 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5582 return resultobj;
5583 fail:
5584 return NULL;
5585 }
5586
5587
5588 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5589 PyObject *resultobj = 0;
5590 wxBrush *arg1 = (wxBrush *) 0 ;
5591 bool result;
5592 void *argp1 = 0 ;
5593 int res1 = 0 ;
5594 PyObject *swig_obj[1] ;
5595
5596 if (!args) SWIG_fail;
5597 swig_obj[0] = args;
5598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5599 if (!SWIG_IsOK(res1)) {
5600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5601 }
5602 arg1 = reinterpret_cast< wxBrush * >(argp1);
5603 {
5604 PyThreadState* __tstate = wxPyBeginAllowThreads();
5605 result = (bool)((wxBrush const *)arg1)->IsHatch();
5606 wxPyEndAllowThreads(__tstate);
5607 if (PyErr_Occurred()) SWIG_fail;
5608 }
5609 {
5610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5611 }
5612 return resultobj;
5613 fail:
5614 return NULL;
5615 }
5616
5617
5618 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5619 PyObject *resultobj = 0;
5620 wxBrush *arg1 = (wxBrush *) 0 ;
5621 bool result;
5622 void *argp1 = 0 ;
5623 int res1 = 0 ;
5624 PyObject *swig_obj[1] ;
5625
5626 if (!args) SWIG_fail;
5627 swig_obj[0] = args;
5628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5629 if (!SWIG_IsOK(res1)) {
5630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5631 }
5632 arg1 = reinterpret_cast< wxBrush * >(argp1);
5633 {
5634 PyThreadState* __tstate = wxPyBeginAllowThreads();
5635 result = (bool)(arg1)->Ok();
5636 wxPyEndAllowThreads(__tstate);
5637 if (PyErr_Occurred()) SWIG_fail;
5638 }
5639 {
5640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5641 }
5642 return resultobj;
5643 fail:
5644 return NULL;
5645 }
5646
5647
5648 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5649 PyObject *obj;
5650 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5651 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5652 return SWIG_Py_Void();
5653 }
5654
5655 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5656 return SWIG_Python_InitShadowInstance(args);
5657 }
5658
5659 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5660 PyObject *resultobj = 0;
5661 wxString *arg1 = 0 ;
5662 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5663 wxBitmap *result = 0 ;
5664 bool temp1 = false ;
5665 int val2 ;
5666 int ecode2 = 0 ;
5667 PyObject * obj0 = 0 ;
5668 PyObject * obj1 = 0 ;
5669 char * kwnames[] = {
5670 (char *) "name",(char *) "type", NULL
5671 };
5672
5673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5674 {
5675 arg1 = wxString_in_helper(obj0);
5676 if (arg1 == NULL) SWIG_fail;
5677 temp1 = true;
5678 }
5679 if (obj1) {
5680 ecode2 = SWIG_AsVal_int(obj1, &val2);
5681 if (!SWIG_IsOK(ecode2)) {
5682 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5683 }
5684 arg2 = static_cast< wxBitmapType >(val2);
5685 }
5686 {
5687 if (!wxPyCheckForApp()) SWIG_fail;
5688 PyThreadState* __tstate = wxPyBeginAllowThreads();
5689 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5690 wxPyEndAllowThreads(__tstate);
5691 if (PyErr_Occurred()) SWIG_fail;
5692 }
5693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5694 {
5695 if (temp1)
5696 delete arg1;
5697 }
5698 return resultobj;
5699 fail:
5700 {
5701 if (temp1)
5702 delete arg1;
5703 }
5704 return NULL;
5705 }
5706
5707
5708 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5709 PyObject *resultobj = 0;
5710 wxBitmap *arg1 = (wxBitmap *) 0 ;
5711 void *argp1 = 0 ;
5712 int res1 = 0 ;
5713 PyObject *swig_obj[1] ;
5714
5715 if (!args) SWIG_fail;
5716 swig_obj[0] = args;
5717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5718 if (!SWIG_IsOK(res1)) {
5719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5720 }
5721 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5722 {
5723 delete arg1;
5724
5725 if (PyErr_Occurred()) SWIG_fail;
5726 }
5727 resultobj = SWIG_Py_Void();
5728 return resultobj;
5729 fail:
5730 return NULL;
5731 }
5732
5733
5734 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5735 PyObject *resultobj = 0;
5736 int arg1 ;
5737 int arg2 ;
5738 int arg3 = (int) -1 ;
5739 wxBitmap *result = 0 ;
5740 int val1 ;
5741 int ecode1 = 0 ;
5742 int val2 ;
5743 int ecode2 = 0 ;
5744 int val3 ;
5745 int ecode3 = 0 ;
5746 PyObject * obj0 = 0 ;
5747 PyObject * obj1 = 0 ;
5748 PyObject * obj2 = 0 ;
5749 char * kwnames[] = {
5750 (char *) "width",(char *) "height",(char *) "depth", NULL
5751 };
5752
5753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5754 ecode1 = SWIG_AsVal_int(obj0, &val1);
5755 if (!SWIG_IsOK(ecode1)) {
5756 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5757 }
5758 arg1 = static_cast< int >(val1);
5759 ecode2 = SWIG_AsVal_int(obj1, &val2);
5760 if (!SWIG_IsOK(ecode2)) {
5761 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5762 }
5763 arg2 = static_cast< int >(val2);
5764 if (obj2) {
5765 ecode3 = SWIG_AsVal_int(obj2, &val3);
5766 if (!SWIG_IsOK(ecode3)) {
5767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5768 }
5769 arg3 = static_cast< int >(val3);
5770 }
5771 {
5772 if (!wxPyCheckForApp()) SWIG_fail;
5773 PyThreadState* __tstate = wxPyBeginAllowThreads();
5774 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5775 wxPyEndAllowThreads(__tstate);
5776 if (PyErr_Occurred()) SWIG_fail;
5777 }
5778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5779 return resultobj;
5780 fail:
5781 return NULL;
5782 }
5783
5784
5785 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5786 PyObject *resultobj = 0;
5787 wxIcon *arg1 = 0 ;
5788 wxBitmap *result = 0 ;
5789 void *argp1 = 0 ;
5790 int res1 = 0 ;
5791 PyObject * obj0 = 0 ;
5792 char * kwnames[] = {
5793 (char *) "icon", NULL
5794 };
5795
5796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5797 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5798 if (!SWIG_IsOK(res1)) {
5799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5800 }
5801 if (!argp1) {
5802 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5803 }
5804 arg1 = reinterpret_cast< wxIcon * >(argp1);
5805 {
5806 if (!wxPyCheckForApp()) SWIG_fail;
5807 PyThreadState* __tstate = wxPyBeginAllowThreads();
5808 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5809 wxPyEndAllowThreads(__tstate);
5810 if (PyErr_Occurred()) SWIG_fail;
5811 }
5812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5813 return resultobj;
5814 fail:
5815 return NULL;
5816 }
5817
5818
5819 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5820 PyObject *resultobj = 0;
5821 wxImage *arg1 = 0 ;
5822 int arg2 = (int) -1 ;
5823 wxBitmap *result = 0 ;
5824 void *argp1 = 0 ;
5825 int res1 = 0 ;
5826 int val2 ;
5827 int ecode2 = 0 ;
5828 PyObject * obj0 = 0 ;
5829 PyObject * obj1 = 0 ;
5830 char * kwnames[] = {
5831 (char *) "image",(char *) "depth", NULL
5832 };
5833
5834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5835 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5836 if (!SWIG_IsOK(res1)) {
5837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5838 }
5839 if (!argp1) {
5840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5841 }
5842 arg1 = reinterpret_cast< wxImage * >(argp1);
5843 if (obj1) {
5844 ecode2 = SWIG_AsVal_int(obj1, &val2);
5845 if (!SWIG_IsOK(ecode2)) {
5846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5847 }
5848 arg2 = static_cast< int >(val2);
5849 }
5850 {
5851 if (!wxPyCheckForApp()) SWIG_fail;
5852 PyThreadState* __tstate = wxPyBeginAllowThreads();
5853 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5854 wxPyEndAllowThreads(__tstate);
5855 if (PyErr_Occurred()) SWIG_fail;
5856 }
5857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5858 return resultobj;
5859 fail:
5860 return NULL;
5861 }
5862
5863
5864 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5865 PyObject *resultobj = 0;
5866 PyObject *arg1 = (PyObject *) 0 ;
5867 wxBitmap *result = 0 ;
5868 PyObject * obj0 = 0 ;
5869 char * kwnames[] = {
5870 (char *) "listOfStrings", NULL
5871 };
5872
5873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5874 arg1 = obj0;
5875 {
5876 if (!wxPyCheckForApp()) SWIG_fail;
5877 PyThreadState* __tstate = wxPyBeginAllowThreads();
5878 result = (wxBitmap *)new_wxBitmap(arg1);
5879 wxPyEndAllowThreads(__tstate);
5880 if (PyErr_Occurred()) SWIG_fail;
5881 }
5882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5883 return resultobj;
5884 fail:
5885 return NULL;
5886 }
5887
5888
5889 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5890 PyObject *resultobj = 0;
5891 PyObject *arg1 = (PyObject *) 0 ;
5892 int arg2 ;
5893 int arg3 ;
5894 int arg4 = (int) 1 ;
5895 wxBitmap *result = 0 ;
5896 int val2 ;
5897 int ecode2 = 0 ;
5898 int val3 ;
5899 int ecode3 = 0 ;
5900 int val4 ;
5901 int ecode4 = 0 ;
5902 PyObject * obj0 = 0 ;
5903 PyObject * obj1 = 0 ;
5904 PyObject * obj2 = 0 ;
5905 PyObject * obj3 = 0 ;
5906 char * kwnames[] = {
5907 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5908 };
5909
5910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5911 arg1 = obj0;
5912 ecode2 = SWIG_AsVal_int(obj1, &val2);
5913 if (!SWIG_IsOK(ecode2)) {
5914 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5915 }
5916 arg2 = static_cast< int >(val2);
5917 ecode3 = SWIG_AsVal_int(obj2, &val3);
5918 if (!SWIG_IsOK(ecode3)) {
5919 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5920 }
5921 arg3 = static_cast< int >(val3);
5922 if (obj3) {
5923 ecode4 = SWIG_AsVal_int(obj3, &val4);
5924 if (!SWIG_IsOK(ecode4)) {
5925 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5926 }
5927 arg4 = static_cast< int >(val4);
5928 }
5929 {
5930 if (!wxPyCheckForApp()) SWIG_fail;
5931 PyThreadState* __tstate = wxPyBeginAllowThreads();
5932 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5933 wxPyEndAllowThreads(__tstate);
5934 if (PyErr_Occurred()) SWIG_fail;
5935 }
5936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5937 return resultobj;
5938 fail:
5939 return NULL;
5940 }
5941
5942
5943 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5944 PyObject *resultobj = 0;
5945 wxBitmap *arg1 = (wxBitmap *) 0 ;
5946 bool result;
5947 void *argp1 = 0 ;
5948 int res1 = 0 ;
5949 PyObject *swig_obj[1] ;
5950
5951 if (!args) SWIG_fail;
5952 swig_obj[0] = args;
5953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5954 if (!SWIG_IsOK(res1)) {
5955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5956 }
5957 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5958 {
5959 result = (bool)(arg1)->Ok();
5960 if (PyErr_Occurred()) SWIG_fail;
5961 }
5962 {
5963 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5964 }
5965 return resultobj;
5966 fail:
5967 return NULL;
5968 }
5969
5970
5971 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5972 PyObject *resultobj = 0;
5973 wxBitmap *arg1 = (wxBitmap *) 0 ;
5974 int result;
5975 void *argp1 = 0 ;
5976 int res1 = 0 ;
5977 PyObject *swig_obj[1] ;
5978
5979 if (!args) SWIG_fail;
5980 swig_obj[0] = args;
5981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5982 if (!SWIG_IsOK(res1)) {
5983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5984 }
5985 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5986 {
5987 result = (int)(arg1)->GetWidth();
5988 if (PyErr_Occurred()) SWIG_fail;
5989 }
5990 resultobj = SWIG_From_int(static_cast< int >(result));
5991 return resultobj;
5992 fail:
5993 return NULL;
5994 }
5995
5996
5997 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5998 PyObject *resultobj = 0;
5999 wxBitmap *arg1 = (wxBitmap *) 0 ;
6000 int result;
6001 void *argp1 = 0 ;
6002 int res1 = 0 ;
6003 PyObject *swig_obj[1] ;
6004
6005 if (!args) SWIG_fail;
6006 swig_obj[0] = args;
6007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6008 if (!SWIG_IsOK(res1)) {
6009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6010 }
6011 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6012 {
6013 result = (int)(arg1)->GetHeight();
6014 if (PyErr_Occurred()) SWIG_fail;
6015 }
6016 resultobj = SWIG_From_int(static_cast< int >(result));
6017 return resultobj;
6018 fail:
6019 return NULL;
6020 }
6021
6022
6023 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6024 PyObject *resultobj = 0;
6025 wxBitmap *arg1 = (wxBitmap *) 0 ;
6026 int result;
6027 void *argp1 = 0 ;
6028 int res1 = 0 ;
6029 PyObject *swig_obj[1] ;
6030
6031 if (!args) SWIG_fail;
6032 swig_obj[0] = args;
6033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6034 if (!SWIG_IsOK(res1)) {
6035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6036 }
6037 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6038 {
6039 result = (int)(arg1)->GetDepth();
6040 if (PyErr_Occurred()) SWIG_fail;
6041 }
6042 resultobj = SWIG_From_int(static_cast< int >(result));
6043 return resultobj;
6044 fail:
6045 return NULL;
6046 }
6047
6048
6049 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6050 PyObject *resultobj = 0;
6051 wxBitmap *arg1 = (wxBitmap *) 0 ;
6052 wxSize result;
6053 void *argp1 = 0 ;
6054 int res1 = 0 ;
6055 PyObject *swig_obj[1] ;
6056
6057 if (!args) SWIG_fail;
6058 swig_obj[0] = args;
6059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6060 if (!SWIG_IsOK(res1)) {
6061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6062 }
6063 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6064 {
6065 result = wxBitmap_GetSize(arg1);
6066 if (PyErr_Occurred()) SWIG_fail;
6067 }
6068 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6069 return resultobj;
6070 fail:
6071 return NULL;
6072 }
6073
6074
6075 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6076 PyObject *resultobj = 0;
6077 wxBitmap *arg1 = (wxBitmap *) 0 ;
6078 SwigValueWrapper<wxImage > result;
6079 void *argp1 = 0 ;
6080 int res1 = 0 ;
6081 PyObject *swig_obj[1] ;
6082
6083 if (!args) SWIG_fail;
6084 swig_obj[0] = args;
6085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6086 if (!SWIG_IsOK(res1)) {
6087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6088 }
6089 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6090 {
6091 result = ((wxBitmap const *)arg1)->ConvertToImage();
6092 if (PyErr_Occurred()) SWIG_fail;
6093 }
6094 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6095 return resultobj;
6096 fail:
6097 return NULL;
6098 }
6099
6100
6101 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6102 PyObject *resultobj = 0;
6103 wxBitmap *arg1 = (wxBitmap *) 0 ;
6104 wxMask *result = 0 ;
6105 void *argp1 = 0 ;
6106 int res1 = 0 ;
6107 PyObject *swig_obj[1] ;
6108
6109 if (!args) SWIG_fail;
6110 swig_obj[0] = args;
6111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6112 if (!SWIG_IsOK(res1)) {
6113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6114 }
6115 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6116 {
6117 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6118 if (PyErr_Occurred()) SWIG_fail;
6119 }
6120 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6121 return resultobj;
6122 fail:
6123 return NULL;
6124 }
6125
6126
6127 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6128 PyObject *resultobj = 0;
6129 wxBitmap *arg1 = (wxBitmap *) 0 ;
6130 wxMask *arg2 = (wxMask *) 0 ;
6131 void *argp1 = 0 ;
6132 int res1 = 0 ;
6133 int res2 = 0 ;
6134 PyObject * obj0 = 0 ;
6135 PyObject * obj1 = 0 ;
6136 char * kwnames[] = {
6137 (char *) "self",(char *) "mask", NULL
6138 };
6139
6140 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6141 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6142 if (!SWIG_IsOK(res1)) {
6143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6144 }
6145 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6146 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6147 if (!SWIG_IsOK(res2)) {
6148 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6149 }
6150 {
6151 (arg1)->SetMask(arg2);
6152 if (PyErr_Occurred()) SWIG_fail;
6153 }
6154 resultobj = SWIG_Py_Void();
6155 return resultobj;
6156 fail:
6157 return NULL;
6158 }
6159
6160
6161 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6162 PyObject *resultobj = 0;
6163 wxBitmap *arg1 = (wxBitmap *) 0 ;
6164 wxColour *arg2 = 0 ;
6165 void *argp1 = 0 ;
6166 int res1 = 0 ;
6167 wxColour temp2 ;
6168 PyObject * obj0 = 0 ;
6169 PyObject * obj1 = 0 ;
6170 char * kwnames[] = {
6171 (char *) "self",(char *) "colour", NULL
6172 };
6173
6174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6176 if (!SWIG_IsOK(res1)) {
6177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6178 }
6179 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6180 {
6181 arg2 = &temp2;
6182 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6183 }
6184 {
6185 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6186 if (PyErr_Occurred()) SWIG_fail;
6187 }
6188 resultobj = SWIG_Py_Void();
6189 return resultobj;
6190 fail:
6191 return NULL;
6192 }
6193
6194
6195 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6196 PyObject *resultobj = 0;
6197 wxBitmap *arg1 = (wxBitmap *) 0 ;
6198 wxRect *arg2 = 0 ;
6199 SwigValueWrapper<wxBitmap > result;
6200 void *argp1 = 0 ;
6201 int res1 = 0 ;
6202 wxRect temp2 ;
6203 PyObject * obj0 = 0 ;
6204 PyObject * obj1 = 0 ;
6205 char * kwnames[] = {
6206 (char *) "self",(char *) "rect", NULL
6207 };
6208
6209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6211 if (!SWIG_IsOK(res1)) {
6212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6213 }
6214 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6215 {
6216 arg2 = &temp2;
6217 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6218 }
6219 {
6220 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6224 return resultobj;
6225 fail:
6226 return NULL;
6227 }
6228
6229
6230 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6231 PyObject *resultobj = 0;
6232 wxBitmap *arg1 = (wxBitmap *) 0 ;
6233 wxString *arg2 = 0 ;
6234 wxBitmapType arg3 ;
6235 wxPalette *arg4 = (wxPalette *) NULL ;
6236 bool result;
6237 void *argp1 = 0 ;
6238 int res1 = 0 ;
6239 bool temp2 = false ;
6240 int val3 ;
6241 int ecode3 = 0 ;
6242 void *argp4 = 0 ;
6243 int res4 = 0 ;
6244 PyObject * obj0 = 0 ;
6245 PyObject * obj1 = 0 ;
6246 PyObject * obj2 = 0 ;
6247 PyObject * obj3 = 0 ;
6248 char * kwnames[] = {
6249 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6250 };
6251
6252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6254 if (!SWIG_IsOK(res1)) {
6255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6256 }
6257 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6258 {
6259 arg2 = wxString_in_helper(obj1);
6260 if (arg2 == NULL) SWIG_fail;
6261 temp2 = true;
6262 }
6263 ecode3 = SWIG_AsVal_int(obj2, &val3);
6264 if (!SWIG_IsOK(ecode3)) {
6265 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6266 }
6267 arg3 = static_cast< wxBitmapType >(val3);
6268 if (obj3) {
6269 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6270 if (!SWIG_IsOK(res4)) {
6271 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6272 }
6273 arg4 = reinterpret_cast< wxPalette * >(argp4);
6274 }
6275 {
6276 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6277 if (PyErr_Occurred()) SWIG_fail;
6278 }
6279 {
6280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6281 }
6282 {
6283 if (temp2)
6284 delete arg2;
6285 }
6286 return resultobj;
6287 fail:
6288 {
6289 if (temp2)
6290 delete arg2;
6291 }
6292 return NULL;
6293 }
6294
6295
6296 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6297 PyObject *resultobj = 0;
6298 wxBitmap *arg1 = (wxBitmap *) 0 ;
6299 wxString *arg2 = 0 ;
6300 wxBitmapType arg3 ;
6301 bool result;
6302 void *argp1 = 0 ;
6303 int res1 = 0 ;
6304 bool temp2 = false ;
6305 int val3 ;
6306 int ecode3 = 0 ;
6307 PyObject * obj0 = 0 ;
6308 PyObject * obj1 = 0 ;
6309 PyObject * obj2 = 0 ;
6310 char * kwnames[] = {
6311 (char *) "self",(char *) "name",(char *) "type", NULL
6312 };
6313
6314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6316 if (!SWIG_IsOK(res1)) {
6317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6318 }
6319 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6320 {
6321 arg2 = wxString_in_helper(obj1);
6322 if (arg2 == NULL) SWIG_fail;
6323 temp2 = true;
6324 }
6325 ecode3 = SWIG_AsVal_int(obj2, &val3);
6326 if (!SWIG_IsOK(ecode3)) {
6327 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6328 }
6329 arg3 = static_cast< wxBitmapType >(val3);
6330 {
6331 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6332 if (PyErr_Occurred()) SWIG_fail;
6333 }
6334 {
6335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6336 }
6337 {
6338 if (temp2)
6339 delete arg2;
6340 }
6341 return resultobj;
6342 fail:
6343 {
6344 if (temp2)
6345 delete arg2;
6346 }
6347 return NULL;
6348 }
6349
6350
6351 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6352 PyObject *resultobj = 0;
6353 wxBitmap *arg1 = (wxBitmap *) 0 ;
6354 wxPalette *result = 0 ;
6355 void *argp1 = 0 ;
6356 int res1 = 0 ;
6357 PyObject *swig_obj[1] ;
6358
6359 if (!args) SWIG_fail;
6360 swig_obj[0] = args;
6361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6362 if (!SWIG_IsOK(res1)) {
6363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6364 }
6365 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6366 {
6367 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6368 if (PyErr_Occurred()) SWIG_fail;
6369 }
6370 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6371 return resultobj;
6372 fail:
6373 return NULL;
6374 }
6375
6376
6377 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6378 PyObject *resultobj = 0;
6379 wxBitmap *arg1 = (wxBitmap *) 0 ;
6380 wxIcon *arg2 = 0 ;
6381 bool result;
6382 void *argp1 = 0 ;
6383 int res1 = 0 ;
6384 void *argp2 = 0 ;
6385 int res2 = 0 ;
6386 PyObject * obj0 = 0 ;
6387 PyObject * obj1 = 0 ;
6388 char * kwnames[] = {
6389 (char *) "self",(char *) "icon", NULL
6390 };
6391
6392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6394 if (!SWIG_IsOK(res1)) {
6395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6396 }
6397 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6398 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6399 if (!SWIG_IsOK(res2)) {
6400 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6401 }
6402 if (!argp2) {
6403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6404 }
6405 arg2 = reinterpret_cast< wxIcon * >(argp2);
6406 {
6407 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6408 if (PyErr_Occurred()) SWIG_fail;
6409 }
6410 {
6411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6412 }
6413 return resultobj;
6414 fail:
6415 return NULL;
6416 }
6417
6418
6419 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6420 PyObject *resultobj = 0;
6421 wxBitmap *arg1 = (wxBitmap *) 0 ;
6422 int arg2 ;
6423 void *argp1 = 0 ;
6424 int res1 = 0 ;
6425 int val2 ;
6426 int ecode2 = 0 ;
6427 PyObject * obj0 = 0 ;
6428 PyObject * obj1 = 0 ;
6429 char * kwnames[] = {
6430 (char *) "self",(char *) "height", NULL
6431 };
6432
6433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6435 if (!SWIG_IsOK(res1)) {
6436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6437 }
6438 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6439 ecode2 = SWIG_AsVal_int(obj1, &val2);
6440 if (!SWIG_IsOK(ecode2)) {
6441 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6442 }
6443 arg2 = static_cast< int >(val2);
6444 {
6445 (arg1)->SetHeight(arg2);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 resultobj = SWIG_Py_Void();
6449 return resultobj;
6450 fail:
6451 return NULL;
6452 }
6453
6454
6455 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj = 0;
6457 wxBitmap *arg1 = (wxBitmap *) 0 ;
6458 int arg2 ;
6459 void *argp1 = 0 ;
6460 int res1 = 0 ;
6461 int val2 ;
6462 int ecode2 = 0 ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 char * kwnames[] = {
6466 (char *) "self",(char *) "width", NULL
6467 };
6468
6469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6471 if (!SWIG_IsOK(res1)) {
6472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6473 }
6474 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6475 ecode2 = SWIG_AsVal_int(obj1, &val2);
6476 if (!SWIG_IsOK(ecode2)) {
6477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6478 }
6479 arg2 = static_cast< int >(val2);
6480 {
6481 (arg1)->SetWidth(arg2);
6482 if (PyErr_Occurred()) SWIG_fail;
6483 }
6484 resultobj = SWIG_Py_Void();
6485 return resultobj;
6486 fail:
6487 return NULL;
6488 }
6489
6490
6491 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6492 PyObject *resultobj = 0;
6493 wxBitmap *arg1 = (wxBitmap *) 0 ;
6494 int arg2 ;
6495 void *argp1 = 0 ;
6496 int res1 = 0 ;
6497 int val2 ;
6498 int ecode2 = 0 ;
6499 PyObject * obj0 = 0 ;
6500 PyObject * obj1 = 0 ;
6501 char * kwnames[] = {
6502 (char *) "self",(char *) "depth", NULL
6503 };
6504
6505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6507 if (!SWIG_IsOK(res1)) {
6508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6509 }
6510 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6511 ecode2 = SWIG_AsVal_int(obj1, &val2);
6512 if (!SWIG_IsOK(ecode2)) {
6513 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6514 }
6515 arg2 = static_cast< int >(val2);
6516 {
6517 (arg1)->SetDepth(arg2);
6518 if (PyErr_Occurred()) SWIG_fail;
6519 }
6520 resultobj = SWIG_Py_Void();
6521 return resultobj;
6522 fail:
6523 return NULL;
6524 }
6525
6526
6527 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6528 PyObject *resultobj = 0;
6529 wxBitmap *arg1 = (wxBitmap *) 0 ;
6530 wxSize *arg2 = 0 ;
6531 void *argp1 = 0 ;
6532 int res1 = 0 ;
6533 wxSize temp2 ;
6534 PyObject * obj0 = 0 ;
6535 PyObject * obj1 = 0 ;
6536 char * kwnames[] = {
6537 (char *) "self",(char *) "size", NULL
6538 };
6539
6540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6542 if (!SWIG_IsOK(res1)) {
6543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6544 }
6545 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6546 {
6547 arg2 = &temp2;
6548 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6549 }
6550 {
6551 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 resultobj = SWIG_Py_Void();
6555 return resultobj;
6556 fail:
6557 return NULL;
6558 }
6559
6560
6561 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6562 PyObject *resultobj = 0;
6563 wxBitmap *arg1 = (wxBitmap *) 0 ;
6564 wxBitmap *arg2 = (wxBitmap *) 0 ;
6565 bool result;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 void *argp2 = 0 ;
6569 int res2 = 0 ;
6570 PyObject * obj0 = 0 ;
6571 PyObject * obj1 = 0 ;
6572 char * kwnames[] = {
6573 (char *) "self",(char *) "other", NULL
6574 };
6575
6576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6578 if (!SWIG_IsOK(res1)) {
6579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6580 }
6581 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6583 if (!SWIG_IsOK(res2)) {
6584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6585 }
6586 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6587 {
6588 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6589 if (PyErr_Occurred()) SWIG_fail;
6590 }
6591 {
6592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6593 }
6594 return resultobj;
6595 fail:
6596 return NULL;
6597 }
6598
6599
6600 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6601 PyObject *resultobj = 0;
6602 wxBitmap *arg1 = (wxBitmap *) 0 ;
6603 wxBitmap *arg2 = (wxBitmap *) 0 ;
6604 bool result;
6605 void *argp1 = 0 ;
6606 int res1 = 0 ;
6607 void *argp2 = 0 ;
6608 int res2 = 0 ;
6609 PyObject * obj0 = 0 ;
6610 PyObject * obj1 = 0 ;
6611 char * kwnames[] = {
6612 (char *) "self",(char *) "other", NULL
6613 };
6614
6615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6617 if (!SWIG_IsOK(res1)) {
6618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6619 }
6620 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6621 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6622 if (!SWIG_IsOK(res2)) {
6623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6624 }
6625 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6626 {
6627 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 {
6631 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6632 }
6633 return resultobj;
6634 fail:
6635 return NULL;
6636 }
6637
6638
6639 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6640 PyObject *obj;
6641 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6642 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6643 return SWIG_Py_Void();
6644 }
6645
6646 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6647 return SWIG_Python_InitShadowInstance(args);
6648 }
6649
6650 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6651 PyObject *resultobj = 0;
6652 int arg1 ;
6653 int arg2 ;
6654 buffer arg3 ;
6655 int arg4 ;
6656 buffer arg5 ;
6657 int arg6 ;
6658 wxBitmap *result = 0 ;
6659 int val1 ;
6660 int ecode1 = 0 ;
6661 int val2 ;
6662 int ecode2 = 0 ;
6663 PyObject * obj0 = 0 ;
6664 PyObject * obj1 = 0 ;
6665 PyObject * obj2 = 0 ;
6666 PyObject * obj3 = 0 ;
6667 char * kwnames[] = {
6668 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
6669 };
6670
6671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6672 ecode1 = SWIG_AsVal_int(obj0, &val1);
6673 if (!SWIG_IsOK(ecode1)) {
6674 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
6675 }
6676 arg1 = static_cast< int >(val1);
6677 ecode2 = SWIG_AsVal_int(obj1, &val2);
6678 if (!SWIG_IsOK(ecode2)) {
6679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
6680 }
6681 arg2 = static_cast< int >(val2);
6682 {
6683 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail;
6684 }
6685 {
6686 if (obj3 != Py_None) {
6687 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &arg6) == -1) SWIG_fail;
6688 }
6689 }
6690 {
6691 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
6692 if (PyErr_Occurred()) SWIG_fail;
6693 }
6694 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6695 return resultobj;
6696 fail:
6697 return NULL;
6698 }
6699
6700
6701 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6702 PyObject *resultobj = 0;
6703 int arg1 ;
6704 int arg2 ;
6705 buffer arg3 ;
6706 int arg4 ;
6707 wxBitmap *result = 0 ;
6708 int val1 ;
6709 int ecode1 = 0 ;
6710 int val2 ;
6711 int ecode2 = 0 ;
6712 PyObject * obj0 = 0 ;
6713 PyObject * obj1 = 0 ;
6714 PyObject * obj2 = 0 ;
6715 char * kwnames[] = {
6716 (char *) "width",(char *) "height",(char *) "data", NULL
6717 };
6718
6719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6720 ecode1 = SWIG_AsVal_int(obj0, &val1);
6721 if (!SWIG_IsOK(ecode1)) {
6722 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
6723 }
6724 arg1 = static_cast< int >(val1);
6725 ecode2 = SWIG_AsVal_int(obj1, &val2);
6726 if (!SWIG_IsOK(ecode2)) {
6727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
6728 }
6729 arg2 = static_cast< int >(val2);
6730 {
6731 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail;
6732 }
6733 {
6734 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
6735 if (PyErr_Occurred()) SWIG_fail;
6736 }
6737 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6738 return resultobj;
6739 fail:
6740 return NULL;
6741 }
6742
6743
6744 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6745 PyObject *resultobj = 0;
6746 int arg1 ;
6747 int arg2 ;
6748 buffer arg3 ;
6749 int arg4 ;
6750 wxBitmap *result = 0 ;
6751 int val1 ;
6752 int ecode1 = 0 ;
6753 int val2 ;
6754 int ecode2 = 0 ;
6755 PyObject * obj0 = 0 ;
6756 PyObject * obj1 = 0 ;
6757 PyObject * obj2 = 0 ;
6758 char * kwnames[] = {
6759 (char *) "width",(char *) "height",(char *) "data", NULL
6760 };
6761
6762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6763 ecode1 = SWIG_AsVal_int(obj0, &val1);
6764 if (!SWIG_IsOK(ecode1)) {
6765 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
6766 }
6767 arg1 = static_cast< int >(val1);
6768 ecode2 = SWIG_AsVal_int(obj1, &val2);
6769 if (!SWIG_IsOK(ecode2)) {
6770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
6771 }
6772 arg2 = static_cast< int >(val2);
6773 {
6774 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &arg4) == -1) SWIG_fail;
6775 }
6776 {
6777 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
6778 if (PyErr_Occurred()) SWIG_fail;
6779 }
6780 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6781 return resultobj;
6782 fail:
6783 return NULL;
6784 }
6785
6786
6787 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6788 PyObject *resultobj = 0;
6789 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6790 wxPoint result;
6791 void *argp1 = 0 ;
6792 int res1 = 0 ;
6793 PyObject *swig_obj[1] ;
6794
6795 if (!args) SWIG_fail;
6796 swig_obj[0] = args;
6797 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6798 if (!SWIG_IsOK(res1)) {
6799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6800 }
6801 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6802 {
6803 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
6804 if (PyErr_Occurred()) SWIG_fail;
6805 }
6806 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
6807 return resultobj;
6808 fail:
6809 return NULL;
6810 }
6811
6812
6813 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6814 PyObject *resultobj = 0;
6815 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6816 int result;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 PyObject *swig_obj[1] ;
6820
6821 if (!args) SWIG_fail;
6822 swig_obj[0] = args;
6823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6824 if (!SWIG_IsOK(res1)) {
6825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6826 }
6827 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6828 {
6829 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
6830 if (PyErr_Occurred()) SWIG_fail;
6831 }
6832 resultobj = SWIG_From_int(static_cast< int >(result));
6833 return resultobj;
6834 fail:
6835 return NULL;
6836 }
6837
6838
6839 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6840 PyObject *resultobj = 0;
6841 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6842 int result;
6843 void *argp1 = 0 ;
6844 int res1 = 0 ;
6845 PyObject *swig_obj[1] ;
6846
6847 if (!args) SWIG_fail;
6848 swig_obj[0] = args;
6849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6850 if (!SWIG_IsOK(res1)) {
6851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6852 }
6853 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6854 {
6855 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
6856 if (PyErr_Occurred()) SWIG_fail;
6857 }
6858 resultobj = SWIG_From_int(static_cast< int >(result));
6859 return resultobj;
6860 fail:
6861 return NULL;
6862 }
6863
6864
6865 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6866 PyObject *resultobj = 0;
6867 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6868 wxSize result;
6869 void *argp1 = 0 ;
6870 int res1 = 0 ;
6871 PyObject *swig_obj[1] ;
6872
6873 if (!args) SWIG_fail;
6874 swig_obj[0] = args;
6875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6876 if (!SWIG_IsOK(res1)) {
6877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6878 }
6879 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6880 {
6881 result = ((wxPixelDataBase const *)arg1)->GetSize();
6882 if (PyErr_Occurred()) SWIG_fail;
6883 }
6884 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6885 return resultobj;
6886 fail:
6887 return NULL;
6888 }
6889
6890
6891 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6892 PyObject *resultobj = 0;
6893 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
6894 int result;
6895 void *argp1 = 0 ;
6896 int res1 = 0 ;
6897 PyObject *swig_obj[1] ;
6898
6899 if (!args) SWIG_fail;
6900 swig_obj[0] = args;
6901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
6902 if (!SWIG_IsOK(res1)) {
6903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
6904 }
6905 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
6906 {
6907 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
6908 if (PyErr_Occurred()) SWIG_fail;
6909 }
6910 resultobj = SWIG_From_int(static_cast< int >(result));
6911 return resultobj;
6912 fail:
6913 return NULL;
6914 }
6915
6916
6917 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6918 PyObject *obj;
6919 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6920 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
6921 return SWIG_Py_Void();
6922 }
6923
6924 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6925 PyObject *resultobj = 0;
6926 wxBitmap *arg1 = 0 ;
6927 wxNativePixelData *result = 0 ;
6928 void *argp1 = 0 ;
6929 int res1 = 0 ;
6930
6931 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
6932 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6933 if (!SWIG_IsOK(res1)) {
6934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6935 }
6936 if (!argp1) {
6937 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6938 }
6939 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6940 {
6941 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
6942 if (PyErr_Occurred()) SWIG_fail;
6943 }
6944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
6945 return resultobj;
6946 fail:
6947 return NULL;
6948 }
6949
6950
6951 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6952 PyObject *resultobj = 0;
6953 wxBitmap *arg1 = 0 ;
6954 wxRect *arg2 = 0 ;
6955 wxNativePixelData *result = 0 ;
6956 void *argp1 = 0 ;
6957 int res1 = 0 ;
6958 wxRect temp2 ;
6959
6960 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
6961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6962 if (!SWIG_IsOK(res1)) {
6963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6964 }
6965 if (!argp1) {
6966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6967 }
6968 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6969 {
6970 arg2 = &temp2;
6971 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
6972 }
6973 {
6974 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
6975 if (PyErr_Occurred()) SWIG_fail;
6976 }
6977 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
6978 return resultobj;
6979 fail:
6980 return NULL;
6981 }
6982
6983
6984 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
6985 PyObject *resultobj = 0;
6986 wxBitmap *arg1 = 0 ;
6987 wxPoint *arg2 = 0 ;
6988 wxSize *arg3 = 0 ;
6989 wxNativePixelData *result = 0 ;
6990 void *argp1 = 0 ;
6991 int res1 = 0 ;
6992 wxPoint temp2 ;
6993 wxSize temp3 ;
6994
6995 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
6996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
6997 if (!SWIG_IsOK(res1)) {
6998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
6999 }
7000 if (!argp1) {
7001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7002 }
7003 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7004 {
7005 arg2 = &temp2;
7006 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7007 }
7008 {
7009 arg3 = &temp3;
7010 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7011 }
7012 {
7013 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7014 if (PyErr_Occurred()) SWIG_fail;
7015 }
7016 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7017 return resultobj;
7018 fail:
7019 return NULL;
7020 }
7021
7022
7023 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7024 int argc;
7025 PyObject *argv[4];
7026
7027 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7028 --argc;
7029 if (argc == 1) {
7030 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7031 }
7032 if (argc == 2) {
7033 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7034 }
7035 if (argc == 3) {
7036 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7037 }
7038
7039 fail:
7040 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7041 return NULL;
7042 }
7043
7044
7045 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7046 PyObject *resultobj = 0;
7047 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7048 void *argp1 = 0 ;
7049 int res1 = 0 ;
7050 PyObject *swig_obj[1] ;
7051
7052 if (!args) SWIG_fail;
7053 swig_obj[0] = args;
7054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7055 if (!SWIG_IsOK(res1)) {
7056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7057 }
7058 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7059 {
7060 delete arg1;
7061
7062 if (PyErr_Occurred()) SWIG_fail;
7063 }
7064 resultobj = SWIG_Py_Void();
7065 return resultobj;
7066 fail:
7067 return NULL;
7068 }
7069
7070
7071 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7072 PyObject *resultobj = 0;
7073 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7074 wxNativePixelData_Accessor result;
7075 void *argp1 = 0 ;
7076 int res1 = 0 ;
7077 PyObject *swig_obj[1] ;
7078
7079 if (!args) SWIG_fail;
7080 swig_obj[0] = args;
7081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7082 if (!SWIG_IsOK(res1)) {
7083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7084 }
7085 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7086 {
7087 result = ((wxNativePixelData const *)arg1)->GetPixels();
7088 if (PyErr_Occurred()) SWIG_fail;
7089 }
7090 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7091 return resultobj;
7092 fail:
7093 return NULL;
7094 }
7095
7096
7097 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7098 PyObject *resultobj = 0;
7099 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7100 void *argp1 = 0 ;
7101 int res1 = 0 ;
7102 PyObject *swig_obj[1] ;
7103
7104 if (!args) SWIG_fail;
7105 swig_obj[0] = args;
7106 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7107 if (!SWIG_IsOK(res1)) {
7108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7109 }
7110 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7111 {
7112 (arg1)->UseAlpha();
7113 if (PyErr_Occurred()) SWIG_fail;
7114 }
7115 resultobj = SWIG_Py_Void();
7116 return resultobj;
7117 fail:
7118 return NULL;
7119 }
7120
7121
7122 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7123 PyObject *resultobj = 0;
7124 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7125 bool result;
7126 void *argp1 = 0 ;
7127 int res1 = 0 ;
7128 PyObject *swig_obj[1] ;
7129
7130 if (!args) SWIG_fail;
7131 swig_obj[0] = args;
7132 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7133 if (!SWIG_IsOK(res1)) {
7134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7135 }
7136 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7137 {
7138 result = (bool)wxNativePixelData___nonzero__(arg1);
7139 if (PyErr_Occurred()) SWIG_fail;
7140 }
7141 {
7142 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7143 }
7144 return resultobj;
7145 fail:
7146 return NULL;
7147 }
7148
7149
7150 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7151 PyObject *obj;
7152 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7153 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7154 return SWIG_Py_Void();
7155 }
7156
7157 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7158 return SWIG_Python_InitShadowInstance(args);
7159 }
7160
7161 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7162 PyObject *resultobj = 0;
7163 wxNativePixelData *arg1 = 0 ;
7164 wxNativePixelData_Accessor *result = 0 ;
7165 void *argp1 = 0 ;
7166 int res1 = 0 ;
7167
7168 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7170 if (!SWIG_IsOK(res1)) {
7171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7172 }
7173 if (!argp1) {
7174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7175 }
7176 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7177 {
7178 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7182 return resultobj;
7183 fail:
7184 return NULL;
7185 }
7186
7187
7188 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7189 PyObject *resultobj = 0;
7190 wxBitmap *arg1 = 0 ;
7191 wxNativePixelData *arg2 = 0 ;
7192 wxNativePixelData_Accessor *result = 0 ;
7193 void *argp1 = 0 ;
7194 int res1 = 0 ;
7195 void *argp2 = 0 ;
7196 int res2 = 0 ;
7197
7198 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7200 if (!SWIG_IsOK(res1)) {
7201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7202 }
7203 if (!argp1) {
7204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7205 }
7206 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7207 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7208 if (!SWIG_IsOK(res2)) {
7209 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7210 }
7211 if (!argp2) {
7212 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7213 }
7214 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7215 {
7216 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7217 if (PyErr_Occurred()) SWIG_fail;
7218 }
7219 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7220 return resultobj;
7221 fail:
7222 return NULL;
7223 }
7224
7225
7226 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7227 PyObject *resultobj = 0;
7228 wxNativePixelData_Accessor *result = 0 ;
7229
7230 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7231 {
7232 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7233 if (PyErr_Occurred()) SWIG_fail;
7234 }
7235 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7236 return resultobj;
7237 fail:
7238 return NULL;
7239 }
7240
7241
7242 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7243 int argc;
7244 PyObject *argv[3];
7245
7246 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7247 --argc;
7248 if (argc == 0) {
7249 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7250 }
7251 if (argc == 1) {
7252 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7253 }
7254 if (argc == 2) {
7255 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7256 }
7257
7258 fail:
7259 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7260 return NULL;
7261 }
7262
7263
7264 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7265 PyObject *resultobj = 0;
7266 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7267 void *argp1 = 0 ;
7268 int res1 = 0 ;
7269 PyObject *swig_obj[1] ;
7270
7271 if (!args) SWIG_fail;
7272 swig_obj[0] = args;
7273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7274 if (!SWIG_IsOK(res1)) {
7275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7276 }
7277 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7278 {
7279 delete arg1;
7280
7281 if (PyErr_Occurred()) SWIG_fail;
7282 }
7283 resultobj = SWIG_Py_Void();
7284 return resultobj;
7285 fail:
7286 return NULL;
7287 }
7288
7289
7290 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7291 PyObject *resultobj = 0;
7292 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7293 wxNativePixelData *arg2 = 0 ;
7294 void *argp1 = 0 ;
7295 int res1 = 0 ;
7296 void *argp2 = 0 ;
7297 int res2 = 0 ;
7298 PyObject * obj0 = 0 ;
7299 PyObject * obj1 = 0 ;
7300 char * kwnames[] = {
7301 (char *) "self",(char *) "data", NULL
7302 };
7303
7304 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7305 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7306 if (!SWIG_IsOK(res1)) {
7307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7308 }
7309 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7310 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7311 if (!SWIG_IsOK(res2)) {
7312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7313 }
7314 if (!argp2) {
7315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7316 }
7317 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7318 {
7319 (arg1)->Reset((wxNativePixelData const &)*arg2);
7320 if (PyErr_Occurred()) SWIG_fail;
7321 }
7322 resultobj = SWIG_Py_Void();
7323 return resultobj;
7324 fail:
7325 return NULL;
7326 }
7327
7328
7329 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7330 PyObject *resultobj = 0;
7331 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7332 bool result;
7333 void *argp1 = 0 ;
7334 int res1 = 0 ;
7335 PyObject *swig_obj[1] ;
7336
7337 if (!args) SWIG_fail;
7338 swig_obj[0] = args;
7339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7340 if (!SWIG_IsOK(res1)) {
7341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7342 }
7343 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7344 {
7345 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7346 if (PyErr_Occurred()) SWIG_fail;
7347 }
7348 {
7349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7350 }
7351 return resultobj;
7352 fail:
7353 return NULL;
7354 }
7355
7356
7357 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7358 PyObject *resultobj = 0;
7359 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7360 void *argp1 = 0 ;
7361 int res1 = 0 ;
7362 PyObject *swig_obj[1] ;
7363
7364 if (!args) SWIG_fail;
7365 swig_obj[0] = args;
7366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7367 if (!SWIG_IsOK(res1)) {
7368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7369 }
7370 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7371 {
7372 wxNativePixelData_Accessor_nextPixel(arg1);
7373 if (PyErr_Occurred()) SWIG_fail;
7374 }
7375 resultobj = SWIG_Py_Void();
7376 return resultobj;
7377 fail:
7378 return NULL;
7379 }
7380
7381
7382 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7383 PyObject *resultobj = 0;
7384 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7385 wxNativePixelData *arg2 = 0 ;
7386 int arg3 ;
7387 int arg4 ;
7388 void *argp1 = 0 ;
7389 int res1 = 0 ;
7390 void *argp2 = 0 ;
7391 int res2 = 0 ;
7392 int val3 ;
7393 int ecode3 = 0 ;
7394 int val4 ;
7395 int ecode4 = 0 ;
7396 PyObject * obj0 = 0 ;
7397 PyObject * obj1 = 0 ;
7398 PyObject * obj2 = 0 ;
7399 PyObject * obj3 = 0 ;
7400 char * kwnames[] = {
7401 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7402 };
7403
7404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7406 if (!SWIG_IsOK(res1)) {
7407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7408 }
7409 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7410 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7411 if (!SWIG_IsOK(res2)) {
7412 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7413 }
7414 if (!argp2) {
7415 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7416 }
7417 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7418 ecode3 = SWIG_AsVal_int(obj2, &val3);
7419 if (!SWIG_IsOK(ecode3)) {
7420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7421 }
7422 arg3 = static_cast< int >(val3);
7423 ecode4 = SWIG_AsVal_int(obj3, &val4);
7424 if (!SWIG_IsOK(ecode4)) {
7425 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7426 }
7427 arg4 = static_cast< int >(val4);
7428 {
7429 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7430 if (PyErr_Occurred()) SWIG_fail;
7431 }
7432 resultobj = SWIG_Py_Void();
7433 return resultobj;
7434 fail:
7435 return NULL;
7436 }
7437
7438
7439 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7440 PyObject *resultobj = 0;
7441 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7442 wxNativePixelData *arg2 = 0 ;
7443 int arg3 ;
7444 void *argp1 = 0 ;
7445 int res1 = 0 ;
7446 void *argp2 = 0 ;
7447 int res2 = 0 ;
7448 int val3 ;
7449 int ecode3 = 0 ;
7450 PyObject * obj0 = 0 ;
7451 PyObject * obj1 = 0 ;
7452 PyObject * obj2 = 0 ;
7453 char * kwnames[] = {
7454 (char *) "self",(char *) "data",(char *) "x", NULL
7455 };
7456
7457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7458 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7459 if (!SWIG_IsOK(res1)) {
7460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7461 }
7462 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7463 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7464 if (!SWIG_IsOK(res2)) {
7465 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7466 }
7467 if (!argp2) {
7468 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7469 }
7470 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7471 ecode3 = SWIG_AsVal_int(obj2, &val3);
7472 if (!SWIG_IsOK(ecode3)) {
7473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7474 }
7475 arg3 = static_cast< int >(val3);
7476 {
7477 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
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_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7488 PyObject *resultobj = 0;
7489 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7490 wxNativePixelData *arg2 = 0 ;
7491 int arg3 ;
7492 void *argp1 = 0 ;
7493 int res1 = 0 ;
7494 void *argp2 = 0 ;
7495 int res2 = 0 ;
7496 int val3 ;
7497 int ecode3 = 0 ;
7498 PyObject * obj0 = 0 ;
7499 PyObject * obj1 = 0 ;
7500 PyObject * obj2 = 0 ;
7501 char * kwnames[] = {
7502 (char *) "self",(char *) "data",(char *) "y", NULL
7503 };
7504
7505 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7506 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7507 if (!SWIG_IsOK(res1)) {
7508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7509 }
7510 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7511 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7512 if (!SWIG_IsOK(res2)) {
7513 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7514 }
7515 if (!argp2) {
7516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7517 }
7518 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7519 ecode3 = SWIG_AsVal_int(obj2, &val3);
7520 if (!SWIG_IsOK(ecode3)) {
7521 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7522 }
7523 arg3 = static_cast< int >(val3);
7524 {
7525 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7526 if (PyErr_Occurred()) SWIG_fail;
7527 }
7528 resultobj = SWIG_Py_Void();
7529 return resultobj;
7530 fail:
7531 return NULL;
7532 }
7533
7534
7535 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7536 PyObject *resultobj = 0;
7537 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7538 wxNativePixelData *arg2 = 0 ;
7539 int arg3 ;
7540 int arg4 ;
7541 void *argp1 = 0 ;
7542 int res1 = 0 ;
7543 void *argp2 = 0 ;
7544 int res2 = 0 ;
7545 int val3 ;
7546 int ecode3 = 0 ;
7547 int val4 ;
7548 int ecode4 = 0 ;
7549 PyObject * obj0 = 0 ;
7550 PyObject * obj1 = 0 ;
7551 PyObject * obj2 = 0 ;
7552 PyObject * obj3 = 0 ;
7553 char * kwnames[] = {
7554 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7555 };
7556
7557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7559 if (!SWIG_IsOK(res1)) {
7560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7561 }
7562 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7564 if (!SWIG_IsOK(res2)) {
7565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7566 }
7567 if (!argp2) {
7568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7569 }
7570 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7571 ecode3 = SWIG_AsVal_int(obj2, &val3);
7572 if (!SWIG_IsOK(ecode3)) {
7573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7574 }
7575 arg3 = static_cast< int >(val3);
7576 ecode4 = SWIG_AsVal_int(obj3, &val4);
7577 if (!SWIG_IsOK(ecode4)) {
7578 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7579 }
7580 arg4 = static_cast< int >(val4);
7581 {
7582 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7583 if (PyErr_Occurred()) SWIG_fail;
7584 }
7585 resultobj = SWIG_Py_Void();
7586 return resultobj;
7587 fail:
7588 return NULL;
7589 }
7590
7591
7592 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7593 PyObject *resultobj = 0;
7594 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7595 byte arg2 ;
7596 byte arg3 ;
7597 byte arg4 ;
7598 void *argp1 = 0 ;
7599 int res1 = 0 ;
7600 unsigned char val2 ;
7601 int ecode2 = 0 ;
7602 unsigned char val3 ;
7603 int ecode3 = 0 ;
7604 unsigned char val4 ;
7605 int ecode4 = 0 ;
7606 PyObject * obj0 = 0 ;
7607 PyObject * obj1 = 0 ;
7608 PyObject * obj2 = 0 ;
7609 PyObject * obj3 = 0 ;
7610 char * kwnames[] = {
7611 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7612 };
7613
7614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7616 if (!SWIG_IsOK(res1)) {
7617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7618 }
7619 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7620 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7621 if (!SWIG_IsOK(ecode2)) {
7622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7623 }
7624 arg2 = static_cast< byte >(val2);
7625 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7626 if (!SWIG_IsOK(ecode3)) {
7627 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7628 }
7629 arg3 = static_cast< byte >(val3);
7630 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7631 if (!SWIG_IsOK(ecode4)) {
7632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7633 }
7634 arg4 = static_cast< byte >(val4);
7635 {
7636 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7637 if (PyErr_Occurred()) SWIG_fail;
7638 }
7639 resultobj = SWIG_Py_Void();
7640 return resultobj;
7641 fail:
7642 return NULL;
7643 }
7644
7645
7646 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7647 PyObject *resultobj = 0;
7648 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7649 PyObject *result = 0 ;
7650 void *argp1 = 0 ;
7651 int res1 = 0 ;
7652 PyObject *swig_obj[1] ;
7653
7654 if (!args) SWIG_fail;
7655 swig_obj[0] = args;
7656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7657 if (!SWIG_IsOK(res1)) {
7658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7659 }
7660 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7661 {
7662 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
7663 if (PyErr_Occurred()) SWIG_fail;
7664 }
7665 resultobj = result;
7666 return resultobj;
7667 fail:
7668 return NULL;
7669 }
7670
7671
7672 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7673 PyObject *obj;
7674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7675 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
7676 return SWIG_Py_Void();
7677 }
7678
7679 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7680 return SWIG_Python_InitShadowInstance(args);
7681 }
7682
7683 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7684 PyObject *resultobj = 0;
7685 wxBitmap *arg1 = 0 ;
7686 wxAlphaPixelData *result = 0 ;
7687 void *argp1 = 0 ;
7688 int res1 = 0 ;
7689
7690 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7692 if (!SWIG_IsOK(res1)) {
7693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7694 }
7695 if (!argp1) {
7696 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7697 }
7698 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7699 {
7700 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
7701 if (PyErr_Occurred()) SWIG_fail;
7702 }
7703 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7704 return resultobj;
7705 fail:
7706 return NULL;
7707 }
7708
7709
7710 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7711 PyObject *resultobj = 0;
7712 wxBitmap *arg1 = 0 ;
7713 wxRect *arg2 = 0 ;
7714 wxAlphaPixelData *result = 0 ;
7715 void *argp1 = 0 ;
7716 int res1 = 0 ;
7717 wxRect temp2 ;
7718
7719 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7721 if (!SWIG_IsOK(res1)) {
7722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7723 }
7724 if (!argp1) {
7725 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7726 }
7727 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7728 {
7729 arg2 = &temp2;
7730 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7731 }
7732 {
7733 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7737 return resultobj;
7738 fail:
7739 return NULL;
7740 }
7741
7742
7743 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7744 PyObject *resultobj = 0;
7745 wxBitmap *arg1 = 0 ;
7746 wxPoint *arg2 = 0 ;
7747 wxSize *arg3 = 0 ;
7748 wxAlphaPixelData *result = 0 ;
7749 void *argp1 = 0 ;
7750 int res1 = 0 ;
7751 wxPoint temp2 ;
7752 wxSize temp3 ;
7753
7754 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7756 if (!SWIG_IsOK(res1)) {
7757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7758 }
7759 if (!argp1) {
7760 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7761 }
7762 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7763 {
7764 arg2 = &temp2;
7765 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7766 }
7767 {
7768 arg3 = &temp3;
7769 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7770 }
7771 {
7772 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7773 if (PyErr_Occurred()) SWIG_fail;
7774 }
7775 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
7776 return resultobj;
7777 fail:
7778 return NULL;
7779 }
7780
7781
7782 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
7783 int argc;
7784 PyObject *argv[4];
7785
7786 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
7787 --argc;
7788 if (argc == 1) {
7789 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
7790 }
7791 if (argc == 2) {
7792 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
7793 }
7794 if (argc == 3) {
7795 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
7796 }
7797
7798 fail:
7799 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
7800 return NULL;
7801 }
7802
7803
7804 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7805 PyObject *resultobj = 0;
7806 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7807 void *argp1 = 0 ;
7808 int res1 = 0 ;
7809 PyObject *swig_obj[1] ;
7810
7811 if (!args) SWIG_fail;
7812 swig_obj[0] = args;
7813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
7814 if (!SWIG_IsOK(res1)) {
7815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7816 }
7817 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7818 {
7819 delete arg1;
7820
7821 if (PyErr_Occurred()) SWIG_fail;
7822 }
7823 resultobj = SWIG_Py_Void();
7824 return resultobj;
7825 fail:
7826 return NULL;
7827 }
7828
7829
7830 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7831 PyObject *resultobj = 0;
7832 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7833 wxAlphaPixelData_Accessor result;
7834 void *argp1 = 0 ;
7835 int res1 = 0 ;
7836 PyObject *swig_obj[1] ;
7837
7838 if (!args) SWIG_fail;
7839 swig_obj[0] = args;
7840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7841 if (!SWIG_IsOK(res1)) {
7842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
7843 }
7844 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7845 {
7846 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
7847 if (PyErr_Occurred()) SWIG_fail;
7848 }
7849 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
7850 return resultobj;
7851 fail:
7852 return NULL;
7853 }
7854
7855
7856 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7857 PyObject *resultobj = 0;
7858 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7859 void *argp1 = 0 ;
7860 int res1 = 0 ;
7861 PyObject *swig_obj[1] ;
7862
7863 if (!args) SWIG_fail;
7864 swig_obj[0] = args;
7865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7866 if (!SWIG_IsOK(res1)) {
7867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7868 }
7869 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7870 {
7871 (arg1)->UseAlpha();
7872 if (PyErr_Occurred()) SWIG_fail;
7873 }
7874 resultobj = SWIG_Py_Void();
7875 return resultobj;
7876 fail:
7877 return NULL;
7878 }
7879
7880
7881 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7882 PyObject *resultobj = 0;
7883 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
7884 bool result;
7885 void *argp1 = 0 ;
7886 int res1 = 0 ;
7887 PyObject *swig_obj[1] ;
7888
7889 if (!args) SWIG_fail;
7890 swig_obj[0] = args;
7891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
7892 if (!SWIG_IsOK(res1)) {
7893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
7894 }
7895 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7896 {
7897 result = (bool)wxAlphaPixelData___nonzero__(arg1);
7898 if (PyErr_Occurred()) SWIG_fail;
7899 }
7900 {
7901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7902 }
7903 return resultobj;
7904 fail:
7905 return NULL;
7906 }
7907
7908
7909 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7910 PyObject *obj;
7911 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7912 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
7913 return SWIG_Py_Void();
7914 }
7915
7916 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7917 return SWIG_Python_InitShadowInstance(args);
7918 }
7919
7920 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7921 PyObject *resultobj = 0;
7922 wxAlphaPixelData *arg1 = 0 ;
7923 wxAlphaPixelData_Accessor *result = 0 ;
7924 void *argp1 = 0 ;
7925 int res1 = 0 ;
7926
7927 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
7929 if (!SWIG_IsOK(res1)) {
7930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7931 }
7932 if (!argp1) {
7933 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
7934 }
7935 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
7936 {
7937 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
7938 if (PyErr_Occurred()) SWIG_fail;
7939 }
7940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7941 return resultobj;
7942 fail:
7943 return NULL;
7944 }
7945
7946
7947 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7948 PyObject *resultobj = 0;
7949 wxBitmap *arg1 = 0 ;
7950 wxAlphaPixelData *arg2 = 0 ;
7951 wxAlphaPixelData_Accessor *result = 0 ;
7952 void *argp1 = 0 ;
7953 int res1 = 0 ;
7954 void *argp2 = 0 ;
7955 int res2 = 0 ;
7956
7957 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7959 if (!SWIG_IsOK(res1)) {
7960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7961 }
7962 if (!argp1) {
7963 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7964 }
7965 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7966 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
7967 if (!SWIG_IsOK(res2)) {
7968 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
7969 }
7970 if (!argp2) {
7971 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
7972 }
7973 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
7974 {
7975 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
7976 if (PyErr_Occurred()) SWIG_fail;
7977 }
7978 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7979 return resultobj;
7980 fail:
7981 return NULL;
7982 }
7983
7984
7985 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7986 PyObject *resultobj = 0;
7987 wxAlphaPixelData_Accessor *result = 0 ;
7988
7989 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7990 {
7991 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
7992 if (PyErr_Occurred()) SWIG_fail;
7993 }
7994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
7995 return resultobj;
7996 fail:
7997 return NULL;
7998 }
7999
8000
8001 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8002 int argc;
8003 PyObject *argv[3];
8004
8005 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8006 --argc;
8007 if (argc == 0) {
8008 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8009 }
8010 if (argc == 1) {
8011 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8012 }
8013 if (argc == 2) {
8014 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8015 }
8016
8017 fail:
8018 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8019 return NULL;
8020 }
8021
8022
8023 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8024 PyObject *resultobj = 0;
8025 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8026 void *argp1 = 0 ;
8027 int res1 = 0 ;
8028 PyObject *swig_obj[1] ;
8029
8030 if (!args) SWIG_fail;
8031 swig_obj[0] = args;
8032 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8033 if (!SWIG_IsOK(res1)) {
8034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8035 }
8036 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8037 {
8038 delete arg1;
8039
8040 if (PyErr_Occurred()) SWIG_fail;
8041 }
8042 resultobj = SWIG_Py_Void();
8043 return resultobj;
8044 fail:
8045 return NULL;
8046 }
8047
8048
8049 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8050 PyObject *resultobj = 0;
8051 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8052 wxAlphaPixelData *arg2 = 0 ;
8053 void *argp1 = 0 ;
8054 int res1 = 0 ;
8055 void *argp2 = 0 ;
8056 int res2 = 0 ;
8057 PyObject * obj0 = 0 ;
8058 PyObject * obj1 = 0 ;
8059 char * kwnames[] = {
8060 (char *) "self",(char *) "data", NULL
8061 };
8062
8063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8065 if (!SWIG_IsOK(res1)) {
8066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8067 }
8068 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8069 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8070 if (!SWIG_IsOK(res2)) {
8071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8072 }
8073 if (!argp2) {
8074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8075 }
8076 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8077 {
8078 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8079 if (PyErr_Occurred()) SWIG_fail;
8080 }
8081 resultobj = SWIG_Py_Void();
8082 return resultobj;
8083 fail:
8084 return NULL;
8085 }
8086
8087
8088 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8089 PyObject *resultobj = 0;
8090 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8091 bool result;
8092 void *argp1 = 0 ;
8093 int res1 = 0 ;
8094 PyObject *swig_obj[1] ;
8095
8096 if (!args) SWIG_fail;
8097 swig_obj[0] = args;
8098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8099 if (!SWIG_IsOK(res1)) {
8100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8101 }
8102 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8103 {
8104 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 {
8108 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8109 }
8110 return resultobj;
8111 fail:
8112 return NULL;
8113 }
8114
8115
8116 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8117 PyObject *resultobj = 0;
8118 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8119 void *argp1 = 0 ;
8120 int res1 = 0 ;
8121 PyObject *swig_obj[1] ;
8122
8123 if (!args) SWIG_fail;
8124 swig_obj[0] = args;
8125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8126 if (!SWIG_IsOK(res1)) {
8127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8128 }
8129 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8130 {
8131 wxAlphaPixelData_Accessor_nextPixel(arg1);
8132 if (PyErr_Occurred()) SWIG_fail;
8133 }
8134 resultobj = SWIG_Py_Void();
8135 return resultobj;
8136 fail:
8137 return NULL;
8138 }
8139
8140
8141 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8142 PyObject *resultobj = 0;
8143 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8144 wxAlphaPixelData *arg2 = 0 ;
8145 int arg3 ;
8146 int arg4 ;
8147 void *argp1 = 0 ;
8148 int res1 = 0 ;
8149 void *argp2 = 0 ;
8150 int res2 = 0 ;
8151 int val3 ;
8152 int ecode3 = 0 ;
8153 int val4 ;
8154 int ecode4 = 0 ;
8155 PyObject * obj0 = 0 ;
8156 PyObject * obj1 = 0 ;
8157 PyObject * obj2 = 0 ;
8158 PyObject * obj3 = 0 ;
8159 char * kwnames[] = {
8160 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8161 };
8162
8163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8165 if (!SWIG_IsOK(res1)) {
8166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8167 }
8168 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8170 if (!SWIG_IsOK(res2)) {
8171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8172 }
8173 if (!argp2) {
8174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8175 }
8176 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8177 ecode3 = SWIG_AsVal_int(obj2, &val3);
8178 if (!SWIG_IsOK(ecode3)) {
8179 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8180 }
8181 arg3 = static_cast< int >(val3);
8182 ecode4 = SWIG_AsVal_int(obj3, &val4);
8183 if (!SWIG_IsOK(ecode4)) {
8184 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8185 }
8186 arg4 = static_cast< int >(val4);
8187 {
8188 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8189 if (PyErr_Occurred()) SWIG_fail;
8190 }
8191 resultobj = SWIG_Py_Void();
8192 return resultobj;
8193 fail:
8194 return NULL;
8195 }
8196
8197
8198 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8199 PyObject *resultobj = 0;
8200 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8201 wxAlphaPixelData *arg2 = 0 ;
8202 int arg3 ;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 void *argp2 = 0 ;
8206 int res2 = 0 ;
8207 int val3 ;
8208 int ecode3 = 0 ;
8209 PyObject * obj0 = 0 ;
8210 PyObject * obj1 = 0 ;
8211 PyObject * obj2 = 0 ;
8212 char * kwnames[] = {
8213 (char *) "self",(char *) "data",(char *) "x", NULL
8214 };
8215
8216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8218 if (!SWIG_IsOK(res1)) {
8219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8220 }
8221 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8222 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8223 if (!SWIG_IsOK(res2)) {
8224 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8225 }
8226 if (!argp2) {
8227 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8228 }
8229 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8230 ecode3 = SWIG_AsVal_int(obj2, &val3);
8231 if (!SWIG_IsOK(ecode3)) {
8232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8233 }
8234 arg3 = static_cast< int >(val3);
8235 {
8236 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 resultobj = SWIG_Py_Void();
8240 return resultobj;
8241 fail:
8242 return NULL;
8243 }
8244
8245
8246 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8247 PyObject *resultobj = 0;
8248 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8249 wxAlphaPixelData *arg2 = 0 ;
8250 int arg3 ;
8251 void *argp1 = 0 ;
8252 int res1 = 0 ;
8253 void *argp2 = 0 ;
8254 int res2 = 0 ;
8255 int val3 ;
8256 int ecode3 = 0 ;
8257 PyObject * obj0 = 0 ;
8258 PyObject * obj1 = 0 ;
8259 PyObject * obj2 = 0 ;
8260 char * kwnames[] = {
8261 (char *) "self",(char *) "data",(char *) "y", NULL
8262 };
8263
8264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8266 if (!SWIG_IsOK(res1)) {
8267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8268 }
8269 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8270 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8271 if (!SWIG_IsOK(res2)) {
8272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8273 }
8274 if (!argp2) {
8275 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8276 }
8277 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8278 ecode3 = SWIG_AsVal_int(obj2, &val3);
8279 if (!SWIG_IsOK(ecode3)) {
8280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8281 }
8282 arg3 = static_cast< int >(val3);
8283 {
8284 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8285 if (PyErr_Occurred()) SWIG_fail;
8286 }
8287 resultobj = SWIG_Py_Void();
8288 return resultobj;
8289 fail:
8290 return NULL;
8291 }
8292
8293
8294 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8295 PyObject *resultobj = 0;
8296 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8297 wxAlphaPixelData *arg2 = 0 ;
8298 int arg3 ;
8299 int arg4 ;
8300 void *argp1 = 0 ;
8301 int res1 = 0 ;
8302 void *argp2 = 0 ;
8303 int res2 = 0 ;
8304 int val3 ;
8305 int ecode3 = 0 ;
8306 int val4 ;
8307 int ecode4 = 0 ;
8308 PyObject * obj0 = 0 ;
8309 PyObject * obj1 = 0 ;
8310 PyObject * obj2 = 0 ;
8311 PyObject * obj3 = 0 ;
8312 char * kwnames[] = {
8313 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8314 };
8315
8316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8317 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8318 if (!SWIG_IsOK(res1)) {
8319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8320 }
8321 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8322 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8323 if (!SWIG_IsOK(res2)) {
8324 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8325 }
8326 if (!argp2) {
8327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8328 }
8329 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8330 ecode3 = SWIG_AsVal_int(obj2, &val3);
8331 if (!SWIG_IsOK(ecode3)) {
8332 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8333 }
8334 arg3 = static_cast< int >(val3);
8335 ecode4 = SWIG_AsVal_int(obj3, &val4);
8336 if (!SWIG_IsOK(ecode4)) {
8337 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8338 }
8339 arg4 = static_cast< int >(val4);
8340 {
8341 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8342 if (PyErr_Occurred()) SWIG_fail;
8343 }
8344 resultobj = SWIG_Py_Void();
8345 return resultobj;
8346 fail:
8347 return NULL;
8348 }
8349
8350
8351 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8352 PyObject *resultobj = 0;
8353 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8354 byte arg2 ;
8355 byte arg3 ;
8356 byte arg4 ;
8357 byte arg5 ;
8358 void *argp1 = 0 ;
8359 int res1 = 0 ;
8360 unsigned char val2 ;
8361 int ecode2 = 0 ;
8362 unsigned char val3 ;
8363 int ecode3 = 0 ;
8364 unsigned char val4 ;
8365 int ecode4 = 0 ;
8366 unsigned char val5 ;
8367 int ecode5 = 0 ;
8368 PyObject * obj0 = 0 ;
8369 PyObject * obj1 = 0 ;
8370 PyObject * obj2 = 0 ;
8371 PyObject * obj3 = 0 ;
8372 PyObject * obj4 = 0 ;
8373 char * kwnames[] = {
8374 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8375 };
8376
8377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8379 if (!SWIG_IsOK(res1)) {
8380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8381 }
8382 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8383 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8384 if (!SWIG_IsOK(ecode2)) {
8385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8386 }
8387 arg2 = static_cast< byte >(val2);
8388 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8389 if (!SWIG_IsOK(ecode3)) {
8390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8391 }
8392 arg3 = static_cast< byte >(val3);
8393 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8394 if (!SWIG_IsOK(ecode4)) {
8395 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8396 }
8397 arg4 = static_cast< byte >(val4);
8398 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8399 if (!SWIG_IsOK(ecode5)) {
8400 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8401 }
8402 arg5 = static_cast< byte >(val5);
8403 {
8404 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8405 if (PyErr_Occurred()) SWIG_fail;
8406 }
8407 resultobj = SWIG_Py_Void();
8408 return resultobj;
8409 fail:
8410 return NULL;
8411 }
8412
8413
8414 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8415 PyObject *resultobj = 0;
8416 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8417 PyObject *result = 0 ;
8418 void *argp1 = 0 ;
8419 int res1 = 0 ;
8420 PyObject *swig_obj[1] ;
8421
8422 if (!args) SWIG_fail;
8423 swig_obj[0] = args;
8424 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8425 if (!SWIG_IsOK(res1)) {
8426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8427 }
8428 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8429 {
8430 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8431 if (PyErr_Occurred()) SWIG_fail;
8432 }
8433 resultobj = result;
8434 return resultobj;
8435 fail:
8436 return NULL;
8437 }
8438
8439
8440 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8441 PyObject *obj;
8442 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8443 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8444 return SWIG_Py_Void();
8445 }
8446
8447 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8448 return SWIG_Python_InitShadowInstance(args);
8449 }
8450
8451 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8452 PyObject *resultobj = 0;
8453 wxBitmap *arg1 = 0 ;
8454 wxColour const &arg2_defvalue = wxNullColour ;
8455 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8456 wxMask *result = 0 ;
8457 void *argp1 = 0 ;
8458 int res1 = 0 ;
8459 wxColour temp2 ;
8460 PyObject * obj0 = 0 ;
8461 PyObject * obj1 = 0 ;
8462 char * kwnames[] = {
8463 (char *) "bitmap",(char *) "colour", NULL
8464 };
8465
8466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8467 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8468 if (!SWIG_IsOK(res1)) {
8469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8470 }
8471 if (!argp1) {
8472 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8473 }
8474 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8475 if (obj1) {
8476 {
8477 arg2 = &temp2;
8478 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8479 }
8480 }
8481 {
8482 if (!wxPyCheckForApp()) SWIG_fail;
8483 PyThreadState* __tstate = wxPyBeginAllowThreads();
8484 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8485 wxPyEndAllowThreads(__tstate);
8486 if (PyErr_Occurred()) SWIG_fail;
8487 }
8488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8489 return resultobj;
8490 fail:
8491 return NULL;
8492 }
8493
8494
8495 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8496 PyObject *resultobj = 0;
8497 wxMask *arg1 = (wxMask *) 0 ;
8498 void *argp1 = 0 ;
8499 int res1 = 0 ;
8500 PyObject *swig_obj[1] ;
8501
8502 if (!args) SWIG_fail;
8503 swig_obj[0] = args;
8504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8505 if (!SWIG_IsOK(res1)) {
8506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8507 }
8508 arg1 = reinterpret_cast< wxMask * >(argp1);
8509 {
8510 delete arg1;
8511
8512 if (PyErr_Occurred()) SWIG_fail;
8513 }
8514 resultobj = SWIG_Py_Void();
8515 return resultobj;
8516 fail:
8517 return NULL;
8518 }
8519
8520
8521 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8522 PyObject *obj;
8523 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8524 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8525 return SWIG_Py_Void();
8526 }
8527
8528 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8529 return SWIG_Python_InitShadowInstance(args);
8530 }
8531
8532 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8533 PyObject *resultobj = 0;
8534 wxString *arg1 = 0 ;
8535 wxBitmapType arg2 ;
8536 int arg3 = (int) -1 ;
8537 int arg4 = (int) -1 ;
8538 wxIcon *result = 0 ;
8539 bool temp1 = false ;
8540 int val2 ;
8541 int ecode2 = 0 ;
8542 int val3 ;
8543 int ecode3 = 0 ;
8544 int val4 ;
8545 int ecode4 = 0 ;
8546 PyObject * obj0 = 0 ;
8547 PyObject * obj1 = 0 ;
8548 PyObject * obj2 = 0 ;
8549 PyObject * obj3 = 0 ;
8550 char * kwnames[] = {
8551 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8552 };
8553
8554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8555 {
8556 arg1 = wxString_in_helper(obj0);
8557 if (arg1 == NULL) SWIG_fail;
8558 temp1 = true;
8559 }
8560 ecode2 = SWIG_AsVal_int(obj1, &val2);
8561 if (!SWIG_IsOK(ecode2)) {
8562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8563 }
8564 arg2 = static_cast< wxBitmapType >(val2);
8565 if (obj2) {
8566 ecode3 = SWIG_AsVal_int(obj2, &val3);
8567 if (!SWIG_IsOK(ecode3)) {
8568 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8569 }
8570 arg3 = static_cast< int >(val3);
8571 }
8572 if (obj3) {
8573 ecode4 = SWIG_AsVal_int(obj3, &val4);
8574 if (!SWIG_IsOK(ecode4)) {
8575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8576 }
8577 arg4 = static_cast< int >(val4);
8578 }
8579 {
8580 if (!wxPyCheckForApp()) SWIG_fail;
8581 PyThreadState* __tstate = wxPyBeginAllowThreads();
8582 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8583 wxPyEndAllowThreads(__tstate);
8584 if (PyErr_Occurred()) SWIG_fail;
8585 }
8586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8587 {
8588 if (temp1)
8589 delete arg1;
8590 }
8591 return resultobj;
8592 fail:
8593 {
8594 if (temp1)
8595 delete arg1;
8596 }
8597 return NULL;
8598 }
8599
8600
8601 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8602 PyObject *resultobj = 0;
8603 wxIcon *arg1 = (wxIcon *) 0 ;
8604 void *argp1 = 0 ;
8605 int res1 = 0 ;
8606 PyObject *swig_obj[1] ;
8607
8608 if (!args) SWIG_fail;
8609 swig_obj[0] = args;
8610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8611 if (!SWIG_IsOK(res1)) {
8612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8613 }
8614 arg1 = reinterpret_cast< wxIcon * >(argp1);
8615 {
8616 PyThreadState* __tstate = wxPyBeginAllowThreads();
8617 delete arg1;
8618
8619 wxPyEndAllowThreads(__tstate);
8620 if (PyErr_Occurred()) SWIG_fail;
8621 }
8622 resultobj = SWIG_Py_Void();
8623 return resultobj;
8624 fail:
8625 return NULL;
8626 }
8627
8628
8629 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8630 PyObject *resultobj = 0;
8631 wxIcon *result = 0 ;
8632
8633 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8634 {
8635 if (!wxPyCheckForApp()) SWIG_fail;
8636 PyThreadState* __tstate = wxPyBeginAllowThreads();
8637 result = (wxIcon *)new wxIcon();
8638 wxPyEndAllowThreads(__tstate);
8639 if (PyErr_Occurred()) SWIG_fail;
8640 }
8641 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8642 return resultobj;
8643 fail:
8644 return NULL;
8645 }
8646
8647
8648 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8649 PyObject *resultobj = 0;
8650 wxIconLocation *arg1 = 0 ;
8651 wxIcon *result = 0 ;
8652 void *argp1 = 0 ;
8653 int res1 = 0 ;
8654 PyObject * obj0 = 0 ;
8655 char * kwnames[] = {
8656 (char *) "loc", NULL
8657 };
8658
8659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
8660 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
8661 if (!SWIG_IsOK(res1)) {
8662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8663 }
8664 if (!argp1) {
8665 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
8666 }
8667 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
8668 {
8669 if (!wxPyCheckForApp()) SWIG_fail;
8670 PyThreadState* __tstate = wxPyBeginAllowThreads();
8671 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
8672 wxPyEndAllowThreads(__tstate);
8673 if (PyErr_Occurred()) SWIG_fail;
8674 }
8675 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8676 return resultobj;
8677 fail:
8678 return NULL;
8679 }
8680
8681
8682 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8683 PyObject *resultobj = 0;
8684 wxBitmap *arg1 = 0 ;
8685 wxIcon *result = 0 ;
8686 void *argp1 = 0 ;
8687 int res1 = 0 ;
8688 PyObject * obj0 = 0 ;
8689 char * kwnames[] = {
8690 (char *) "bmp", NULL
8691 };
8692
8693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
8694 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8695 if (!SWIG_IsOK(res1)) {
8696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8697 }
8698 if (!argp1) {
8699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8700 }
8701 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8702 {
8703 if (!wxPyCheckForApp()) SWIG_fail;
8704 PyThreadState* __tstate = wxPyBeginAllowThreads();
8705 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
8706 wxPyEndAllowThreads(__tstate);
8707 if (PyErr_Occurred()) SWIG_fail;
8708 }
8709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8710 return resultobj;
8711 fail:
8712 return NULL;
8713 }
8714
8715
8716 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8717 PyObject *resultobj = 0;
8718 PyObject *arg1 = (PyObject *) 0 ;
8719 wxIcon *result = 0 ;
8720 PyObject * obj0 = 0 ;
8721 char * kwnames[] = {
8722 (char *) "listOfStrings", NULL
8723 };
8724
8725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
8726 arg1 = obj0;
8727 {
8728 if (!wxPyCheckForApp()) SWIG_fail;
8729 PyThreadState* __tstate = wxPyBeginAllowThreads();
8730 result = (wxIcon *)new_wxIcon(arg1);
8731 wxPyEndAllowThreads(__tstate);
8732 if (PyErr_Occurred()) SWIG_fail;
8733 }
8734 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8735 return resultobj;
8736 fail:
8737 return NULL;
8738 }
8739
8740
8741 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8742 PyObject *resultobj = 0;
8743 wxIcon *arg1 = (wxIcon *) 0 ;
8744 wxString *arg2 = 0 ;
8745 wxBitmapType arg3 ;
8746 bool result;
8747 void *argp1 = 0 ;
8748 int res1 = 0 ;
8749 bool temp2 = false ;
8750 int val3 ;
8751 int ecode3 = 0 ;
8752 PyObject * obj0 = 0 ;
8753 PyObject * obj1 = 0 ;
8754 PyObject * obj2 = 0 ;
8755 char * kwnames[] = {
8756 (char *) "self",(char *) "name",(char *) "type", NULL
8757 };
8758
8759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8761 if (!SWIG_IsOK(res1)) {
8762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
8763 }
8764 arg1 = reinterpret_cast< wxIcon * >(argp1);
8765 {
8766 arg2 = wxString_in_helper(obj1);
8767 if (arg2 == NULL) SWIG_fail;
8768 temp2 = true;
8769 }
8770 ecode3 = SWIG_AsVal_int(obj2, &val3);
8771 if (!SWIG_IsOK(ecode3)) {
8772 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
8773 }
8774 arg3 = static_cast< wxBitmapType >(val3);
8775 {
8776 PyThreadState* __tstate = wxPyBeginAllowThreads();
8777 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
8778 wxPyEndAllowThreads(__tstate);
8779 if (PyErr_Occurred()) SWIG_fail;
8780 }
8781 {
8782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8783 }
8784 {
8785 if (temp2)
8786 delete arg2;
8787 }
8788 return resultobj;
8789 fail:
8790 {
8791 if (temp2)
8792 delete arg2;
8793 }
8794 return NULL;
8795 }
8796
8797
8798 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8799 PyObject *resultobj = 0;
8800 wxIcon *arg1 = (wxIcon *) 0 ;
8801 bool result;
8802 void *argp1 = 0 ;
8803 int res1 = 0 ;
8804 PyObject *swig_obj[1] ;
8805
8806 if (!args) SWIG_fail;
8807 swig_obj[0] = args;
8808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8809 if (!SWIG_IsOK(res1)) {
8810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
8811 }
8812 arg1 = reinterpret_cast< wxIcon * >(argp1);
8813 {
8814 PyThreadState* __tstate = wxPyBeginAllowThreads();
8815 result = (bool)(arg1)->Ok();
8816 wxPyEndAllowThreads(__tstate);
8817 if (PyErr_Occurred()) SWIG_fail;
8818 }
8819 {
8820 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8821 }
8822 return resultobj;
8823 fail:
8824 return NULL;
8825 }
8826
8827
8828 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8829 PyObject *resultobj = 0;
8830 wxIcon *arg1 = (wxIcon *) 0 ;
8831 int result;
8832 void *argp1 = 0 ;
8833 int res1 = 0 ;
8834 PyObject *swig_obj[1] ;
8835
8836 if (!args) SWIG_fail;
8837 swig_obj[0] = args;
8838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8839 if (!SWIG_IsOK(res1)) {
8840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8841 }
8842 arg1 = reinterpret_cast< wxIcon * >(argp1);
8843 {
8844 PyThreadState* __tstate = wxPyBeginAllowThreads();
8845 result = (int)(arg1)->GetWidth();
8846 wxPyEndAllowThreads(__tstate);
8847 if (PyErr_Occurred()) SWIG_fail;
8848 }
8849 resultobj = SWIG_From_int(static_cast< int >(result));
8850 return resultobj;
8851 fail:
8852 return NULL;
8853 }
8854
8855
8856 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8857 PyObject *resultobj = 0;
8858 wxIcon *arg1 = (wxIcon *) 0 ;
8859 int result;
8860 void *argp1 = 0 ;
8861 int res1 = 0 ;
8862 PyObject *swig_obj[1] ;
8863
8864 if (!args) SWIG_fail;
8865 swig_obj[0] = args;
8866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8867 if (!SWIG_IsOK(res1)) {
8868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8869 }
8870 arg1 = reinterpret_cast< wxIcon * >(argp1);
8871 {
8872 PyThreadState* __tstate = wxPyBeginAllowThreads();
8873 result = (int)(arg1)->GetHeight();
8874 wxPyEndAllowThreads(__tstate);
8875 if (PyErr_Occurred()) SWIG_fail;
8876 }
8877 resultobj = SWIG_From_int(static_cast< int >(result));
8878 return resultobj;
8879 fail:
8880 return NULL;
8881 }
8882
8883
8884 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8885 PyObject *resultobj = 0;
8886 wxIcon *arg1 = (wxIcon *) 0 ;
8887 int result;
8888 void *argp1 = 0 ;
8889 int res1 = 0 ;
8890 PyObject *swig_obj[1] ;
8891
8892 if (!args) SWIG_fail;
8893 swig_obj[0] = args;
8894 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8895 if (!SWIG_IsOK(res1)) {
8896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
8897 }
8898 arg1 = reinterpret_cast< wxIcon * >(argp1);
8899 {
8900 PyThreadState* __tstate = wxPyBeginAllowThreads();
8901 result = (int)(arg1)->GetDepth();
8902 wxPyEndAllowThreads(__tstate);
8903 if (PyErr_Occurred()) SWIG_fail;
8904 }
8905 resultobj = SWIG_From_int(static_cast< int >(result));
8906 return resultobj;
8907 fail:
8908 return NULL;
8909 }
8910
8911
8912 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8913 PyObject *resultobj = 0;
8914 wxIcon *arg1 = (wxIcon *) 0 ;
8915 int arg2 ;
8916 void *argp1 = 0 ;
8917 int res1 = 0 ;
8918 int val2 ;
8919 int ecode2 = 0 ;
8920 PyObject * obj0 = 0 ;
8921 PyObject * obj1 = 0 ;
8922 char * kwnames[] = {
8923 (char *) "self",(char *) "w", NULL
8924 };
8925
8926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8928 if (!SWIG_IsOK(res1)) {
8929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
8930 }
8931 arg1 = reinterpret_cast< wxIcon * >(argp1);
8932 ecode2 = SWIG_AsVal_int(obj1, &val2);
8933 if (!SWIG_IsOK(ecode2)) {
8934 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
8935 }
8936 arg2 = static_cast< int >(val2);
8937 {
8938 PyThreadState* __tstate = wxPyBeginAllowThreads();
8939 (arg1)->SetWidth(arg2);
8940 wxPyEndAllowThreads(__tstate);
8941 if (PyErr_Occurred()) SWIG_fail;
8942 }
8943 resultobj = SWIG_Py_Void();
8944 return resultobj;
8945 fail:
8946 return NULL;
8947 }
8948
8949
8950 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8951 PyObject *resultobj = 0;
8952 wxIcon *arg1 = (wxIcon *) 0 ;
8953 int arg2 ;
8954 void *argp1 = 0 ;
8955 int res1 = 0 ;
8956 int val2 ;
8957 int ecode2 = 0 ;
8958 PyObject * obj0 = 0 ;
8959 PyObject * obj1 = 0 ;
8960 char * kwnames[] = {
8961 (char *) "self",(char *) "h", NULL
8962 };
8963
8964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
8966 if (!SWIG_IsOK(res1)) {
8967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
8968 }
8969 arg1 = reinterpret_cast< wxIcon * >(argp1);
8970 ecode2 = SWIG_AsVal_int(obj1, &val2);
8971 if (!SWIG_IsOK(ecode2)) {
8972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
8973 }
8974 arg2 = static_cast< int >(val2);
8975 {
8976 PyThreadState* __tstate = wxPyBeginAllowThreads();
8977 (arg1)->SetHeight(arg2);
8978 wxPyEndAllowThreads(__tstate);
8979 if (PyErr_Occurred()) SWIG_fail;
8980 }
8981 resultobj = SWIG_Py_Void();
8982 return resultobj;
8983 fail:
8984 return NULL;
8985 }
8986
8987
8988 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8989 PyObject *resultobj = 0;
8990 wxIcon *arg1 = (wxIcon *) 0 ;
8991 int arg2 ;
8992 void *argp1 = 0 ;
8993 int res1 = 0 ;
8994 int val2 ;
8995 int ecode2 = 0 ;
8996 PyObject * obj0 = 0 ;
8997 PyObject * obj1 = 0 ;
8998 char * kwnames[] = {
8999 (char *) "self",(char *) "d", NULL
9000 };
9001
9002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9004 if (!SWIG_IsOK(res1)) {
9005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9006 }
9007 arg1 = reinterpret_cast< wxIcon * >(argp1);
9008 ecode2 = SWIG_AsVal_int(obj1, &val2);
9009 if (!SWIG_IsOK(ecode2)) {
9010 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9011 }
9012 arg2 = static_cast< int >(val2);
9013 {
9014 PyThreadState* __tstate = wxPyBeginAllowThreads();
9015 (arg1)->SetDepth(arg2);
9016 wxPyEndAllowThreads(__tstate);
9017 if (PyErr_Occurred()) SWIG_fail;
9018 }
9019 resultobj = SWIG_Py_Void();
9020 return resultobj;
9021 fail:
9022 return NULL;
9023 }
9024
9025
9026 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9027 PyObject *resultobj = 0;
9028 wxIcon *arg1 = (wxIcon *) 0 ;
9029 wxBitmap *arg2 = 0 ;
9030 void *argp1 = 0 ;
9031 int res1 = 0 ;
9032 void *argp2 = 0 ;
9033 int res2 = 0 ;
9034 PyObject * obj0 = 0 ;
9035 PyObject * obj1 = 0 ;
9036 char * kwnames[] = {
9037 (char *) "self",(char *) "bmp", NULL
9038 };
9039
9040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9042 if (!SWIG_IsOK(res1)) {
9043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9044 }
9045 arg1 = reinterpret_cast< wxIcon * >(argp1);
9046 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9047 if (!SWIG_IsOK(res2)) {
9048 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9049 }
9050 if (!argp2) {
9051 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9052 }
9053 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9054 {
9055 PyThreadState* __tstate = wxPyBeginAllowThreads();
9056 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9057 wxPyEndAllowThreads(__tstate);
9058 if (PyErr_Occurred()) SWIG_fail;
9059 }
9060 resultobj = SWIG_Py_Void();
9061 return resultobj;
9062 fail:
9063 return NULL;
9064 }
9065
9066
9067 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9068 PyObject *obj;
9069 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9070 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9071 return SWIG_Py_Void();
9072 }
9073
9074 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9075 return SWIG_Python_InitShadowInstance(args);
9076 }
9077
9078 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9079 PyObject *resultobj = 0;
9080 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9081 int arg2 = (int) 0 ;
9082 wxIconLocation *result = 0 ;
9083 bool temp1 = false ;
9084 int val2 ;
9085 int ecode2 = 0 ;
9086 PyObject * obj0 = 0 ;
9087 PyObject * obj1 = 0 ;
9088 char * kwnames[] = {
9089 (char *) "filename",(char *) "num", NULL
9090 };
9091
9092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9093 if (obj0) {
9094 {
9095 arg1 = wxString_in_helper(obj0);
9096 if (arg1 == NULL) SWIG_fail;
9097 temp1 = true;
9098 }
9099 }
9100 if (obj1) {
9101 ecode2 = SWIG_AsVal_int(obj1, &val2);
9102 if (!SWIG_IsOK(ecode2)) {
9103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9104 }
9105 arg2 = static_cast< int >(val2);
9106 }
9107 {
9108 PyThreadState* __tstate = wxPyBeginAllowThreads();
9109 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9110 wxPyEndAllowThreads(__tstate);
9111 if (PyErr_Occurred()) SWIG_fail;
9112 }
9113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9114 {
9115 if (temp1)
9116 delete arg1;
9117 }
9118 return resultobj;
9119 fail:
9120 {
9121 if (temp1)
9122 delete arg1;
9123 }
9124 return NULL;
9125 }
9126
9127
9128 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9129 PyObject *resultobj = 0;
9130 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9131 void *argp1 = 0 ;
9132 int res1 = 0 ;
9133 PyObject *swig_obj[1] ;
9134
9135 if (!args) SWIG_fail;
9136 swig_obj[0] = args;
9137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9138 if (!SWIG_IsOK(res1)) {
9139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9140 }
9141 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9142 {
9143 PyThreadState* __tstate = wxPyBeginAllowThreads();
9144 delete arg1;
9145
9146 wxPyEndAllowThreads(__tstate);
9147 if (PyErr_Occurred()) SWIG_fail;
9148 }
9149 resultobj = SWIG_Py_Void();
9150 return resultobj;
9151 fail:
9152 return NULL;
9153 }
9154
9155
9156 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9157 PyObject *resultobj = 0;
9158 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9159 bool result;
9160 void *argp1 = 0 ;
9161 int res1 = 0 ;
9162 PyObject *swig_obj[1] ;
9163
9164 if (!args) SWIG_fail;
9165 swig_obj[0] = args;
9166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9167 if (!SWIG_IsOK(res1)) {
9168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9169 }
9170 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9171 {
9172 PyThreadState* __tstate = wxPyBeginAllowThreads();
9173 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9174 wxPyEndAllowThreads(__tstate);
9175 if (PyErr_Occurred()) SWIG_fail;
9176 }
9177 {
9178 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9179 }
9180 return resultobj;
9181 fail:
9182 return NULL;
9183 }
9184
9185
9186 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9187 PyObject *resultobj = 0;
9188 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9189 wxString *arg2 = 0 ;
9190 void *argp1 = 0 ;
9191 int res1 = 0 ;
9192 bool temp2 = false ;
9193 PyObject * obj0 = 0 ;
9194 PyObject * obj1 = 0 ;
9195 char * kwnames[] = {
9196 (char *) "self",(char *) "filename", NULL
9197 };
9198
9199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9201 if (!SWIG_IsOK(res1)) {
9202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9203 }
9204 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9205 {
9206 arg2 = wxString_in_helper(obj1);
9207 if (arg2 == NULL) SWIG_fail;
9208 temp2 = true;
9209 }
9210 {
9211 PyThreadState* __tstate = wxPyBeginAllowThreads();
9212 (arg1)->SetFileName((wxString const &)*arg2);
9213 wxPyEndAllowThreads(__tstate);
9214 if (PyErr_Occurred()) SWIG_fail;
9215 }
9216 resultobj = SWIG_Py_Void();
9217 {
9218 if (temp2)
9219 delete arg2;
9220 }
9221 return resultobj;
9222 fail:
9223 {
9224 if (temp2)
9225 delete arg2;
9226 }
9227 return NULL;
9228 }
9229
9230
9231 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9232 PyObject *resultobj = 0;
9233 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9234 wxString *result = 0 ;
9235 void *argp1 = 0 ;
9236 int res1 = 0 ;
9237 PyObject *swig_obj[1] ;
9238
9239 if (!args) SWIG_fail;
9240 swig_obj[0] = args;
9241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9242 if (!SWIG_IsOK(res1)) {
9243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9244 }
9245 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 {
9249 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9250 result = (wxString *) &_result_ref;
9251 }
9252 wxPyEndAllowThreads(__tstate);
9253 if (PyErr_Occurred()) SWIG_fail;
9254 }
9255 {
9256 #if wxUSE_UNICODE
9257 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9258 #else
9259 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9260 #endif
9261 }
9262 return resultobj;
9263 fail:
9264 return NULL;
9265 }
9266
9267
9268 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9269 PyObject *resultobj = 0;
9270 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9271 int arg2 ;
9272 void *argp1 = 0 ;
9273 int res1 = 0 ;
9274 int val2 ;
9275 int ecode2 = 0 ;
9276 PyObject * obj0 = 0 ;
9277 PyObject * obj1 = 0 ;
9278 char * kwnames[] = {
9279 (char *) "self",(char *) "num", NULL
9280 };
9281
9282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9284 if (!SWIG_IsOK(res1)) {
9285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9286 }
9287 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9288 ecode2 = SWIG_AsVal_int(obj1, &val2);
9289 if (!SWIG_IsOK(ecode2)) {
9290 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9291 }
9292 arg2 = static_cast< int >(val2);
9293 {
9294 PyThreadState* __tstate = wxPyBeginAllowThreads();
9295 wxIconLocation_SetIndex(arg1,arg2);
9296 wxPyEndAllowThreads(__tstate);
9297 if (PyErr_Occurred()) SWIG_fail;
9298 }
9299 resultobj = SWIG_Py_Void();
9300 return resultobj;
9301 fail:
9302 return NULL;
9303 }
9304
9305
9306 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9307 PyObject *resultobj = 0;
9308 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9309 int result;
9310 void *argp1 = 0 ;
9311 int res1 = 0 ;
9312 PyObject *swig_obj[1] ;
9313
9314 if (!args) SWIG_fail;
9315 swig_obj[0] = args;
9316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9317 if (!SWIG_IsOK(res1)) {
9318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9319 }
9320 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9321 {
9322 PyThreadState* __tstate = wxPyBeginAllowThreads();
9323 result = (int)wxIconLocation_GetIndex(arg1);
9324 wxPyEndAllowThreads(__tstate);
9325 if (PyErr_Occurred()) SWIG_fail;
9326 }
9327 resultobj = SWIG_From_int(static_cast< int >(result));
9328 return resultobj;
9329 fail:
9330 return NULL;
9331 }
9332
9333
9334 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9335 PyObject *obj;
9336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9337 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9338 return SWIG_Py_Void();
9339 }
9340
9341 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9342 return SWIG_Python_InitShadowInstance(args);
9343 }
9344
9345 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9346 PyObject *resultobj = 0;
9347 wxIconBundle *result = 0 ;
9348
9349 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9350 {
9351 PyThreadState* __tstate = wxPyBeginAllowThreads();
9352 result = (wxIconBundle *)new wxIconBundle();
9353 wxPyEndAllowThreads(__tstate);
9354 if (PyErr_Occurred()) SWIG_fail;
9355 }
9356 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9357 return resultobj;
9358 fail:
9359 return NULL;
9360 }
9361
9362
9363 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9364 PyObject *resultobj = 0;
9365 wxString *arg1 = 0 ;
9366 long arg2 ;
9367 wxIconBundle *result = 0 ;
9368 bool temp1 = false ;
9369 long val2 ;
9370 int ecode2 = 0 ;
9371 PyObject * obj0 = 0 ;
9372 PyObject * obj1 = 0 ;
9373 char * kwnames[] = {
9374 (char *) "file",(char *) "type", NULL
9375 };
9376
9377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9378 {
9379 arg1 = wxString_in_helper(obj0);
9380 if (arg1 == NULL) SWIG_fail;
9381 temp1 = true;
9382 }
9383 ecode2 = SWIG_AsVal_long(obj1, &val2);
9384 if (!SWIG_IsOK(ecode2)) {
9385 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9386 }
9387 arg2 = static_cast< long >(val2);
9388 {
9389 PyThreadState* __tstate = wxPyBeginAllowThreads();
9390 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9391 wxPyEndAllowThreads(__tstate);
9392 if (PyErr_Occurred()) SWIG_fail;
9393 }
9394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9395 {
9396 if (temp1)
9397 delete arg1;
9398 }
9399 return resultobj;
9400 fail:
9401 {
9402 if (temp1)
9403 delete arg1;
9404 }
9405 return NULL;
9406 }
9407
9408
9409 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9410 PyObject *resultobj = 0;
9411 wxIcon *arg1 = 0 ;
9412 wxIconBundle *result = 0 ;
9413 void *argp1 = 0 ;
9414 int res1 = 0 ;
9415 PyObject * obj0 = 0 ;
9416 char * kwnames[] = {
9417 (char *) "icon", NULL
9418 };
9419
9420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9421 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9422 if (!SWIG_IsOK(res1)) {
9423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9424 }
9425 if (!argp1) {
9426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9427 }
9428 arg1 = reinterpret_cast< wxIcon * >(argp1);
9429 {
9430 PyThreadState* __tstate = wxPyBeginAllowThreads();
9431 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9432 wxPyEndAllowThreads(__tstate);
9433 if (PyErr_Occurred()) SWIG_fail;
9434 }
9435 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9436 return resultobj;
9437 fail:
9438 return NULL;
9439 }
9440
9441
9442 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9443 PyObject *resultobj = 0;
9444 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9445 void *argp1 = 0 ;
9446 int res1 = 0 ;
9447 PyObject *swig_obj[1] ;
9448
9449 if (!args) SWIG_fail;
9450 swig_obj[0] = args;
9451 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9452 if (!SWIG_IsOK(res1)) {
9453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9454 }
9455 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9456 {
9457 PyThreadState* __tstate = wxPyBeginAllowThreads();
9458 delete arg1;
9459
9460 wxPyEndAllowThreads(__tstate);
9461 if (PyErr_Occurred()) SWIG_fail;
9462 }
9463 resultobj = SWIG_Py_Void();
9464 return resultobj;
9465 fail:
9466 return NULL;
9467 }
9468
9469
9470 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9471 PyObject *resultobj = 0;
9472 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9473 wxIcon *arg2 = 0 ;
9474 void *argp1 = 0 ;
9475 int res1 = 0 ;
9476 void *argp2 = 0 ;
9477 int res2 = 0 ;
9478 PyObject * obj0 = 0 ;
9479 PyObject * obj1 = 0 ;
9480 char * kwnames[] = {
9481 (char *) "self",(char *) "icon", NULL
9482 };
9483
9484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9486 if (!SWIG_IsOK(res1)) {
9487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9488 }
9489 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9491 if (!SWIG_IsOK(res2)) {
9492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9493 }
9494 if (!argp2) {
9495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9496 }
9497 arg2 = reinterpret_cast< wxIcon * >(argp2);
9498 {
9499 PyThreadState* __tstate = wxPyBeginAllowThreads();
9500 (arg1)->AddIcon((wxIcon const &)*arg2);
9501 wxPyEndAllowThreads(__tstate);
9502 if (PyErr_Occurred()) SWIG_fail;
9503 }
9504 resultobj = SWIG_Py_Void();
9505 return resultobj;
9506 fail:
9507 return NULL;
9508 }
9509
9510
9511 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9512 PyObject *resultobj = 0;
9513 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9514 wxString *arg2 = 0 ;
9515 long arg3 ;
9516 void *argp1 = 0 ;
9517 int res1 = 0 ;
9518 bool temp2 = false ;
9519 long val3 ;
9520 int ecode3 = 0 ;
9521 PyObject * obj0 = 0 ;
9522 PyObject * obj1 = 0 ;
9523 PyObject * obj2 = 0 ;
9524 char * kwnames[] = {
9525 (char *) "self",(char *) "file",(char *) "type", NULL
9526 };
9527
9528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9530 if (!SWIG_IsOK(res1)) {
9531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9532 }
9533 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9534 {
9535 arg2 = wxString_in_helper(obj1);
9536 if (arg2 == NULL) SWIG_fail;
9537 temp2 = true;
9538 }
9539 ecode3 = SWIG_AsVal_long(obj2, &val3);
9540 if (!SWIG_IsOK(ecode3)) {
9541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9542 }
9543 arg3 = static_cast< long >(val3);
9544 {
9545 PyThreadState* __tstate = wxPyBeginAllowThreads();
9546 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9547 wxPyEndAllowThreads(__tstate);
9548 if (PyErr_Occurred()) SWIG_fail;
9549 }
9550 resultobj = SWIG_Py_Void();
9551 {
9552 if (temp2)
9553 delete arg2;
9554 }
9555 return resultobj;
9556 fail:
9557 {
9558 if (temp2)
9559 delete arg2;
9560 }
9561 return NULL;
9562 }
9563
9564
9565 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9566 PyObject *resultobj = 0;
9567 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9568 wxSize *arg2 = 0 ;
9569 wxIcon *result = 0 ;
9570 void *argp1 = 0 ;
9571 int res1 = 0 ;
9572 wxSize temp2 ;
9573 PyObject * obj0 = 0 ;
9574 PyObject * obj1 = 0 ;
9575 char * kwnames[] = {
9576 (char *) "self",(char *) "size", NULL
9577 };
9578
9579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9581 if (!SWIG_IsOK(res1)) {
9582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
9583 }
9584 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9585 {
9586 arg2 = &temp2;
9587 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9588 }
9589 {
9590 PyThreadState* __tstate = wxPyBeginAllowThreads();
9591 {
9592 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
9593 result = (wxIcon *) &_result_ref;
9594 }
9595 wxPyEndAllowThreads(__tstate);
9596 if (PyErr_Occurred()) SWIG_fail;
9597 }
9598 {
9599 wxIcon* resultptr = new wxIcon(*result);
9600 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
9601 }
9602 return resultobj;
9603 fail:
9604 return NULL;
9605 }
9606
9607
9608 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9609 PyObject *obj;
9610 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9611 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
9612 return SWIG_Py_Void();
9613 }
9614
9615 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9616 return SWIG_Python_InitShadowInstance(args);
9617 }
9618
9619 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9620 PyObject *resultobj = 0;
9621 wxString *arg1 = 0 ;
9622 long arg2 ;
9623 int arg3 = (int) 0 ;
9624 int arg4 = (int) 0 ;
9625 wxCursor *result = 0 ;
9626 bool temp1 = false ;
9627 long val2 ;
9628 int ecode2 = 0 ;
9629 int val3 ;
9630 int ecode3 = 0 ;
9631 int val4 ;
9632 int ecode4 = 0 ;
9633 PyObject * obj0 = 0 ;
9634 PyObject * obj1 = 0 ;
9635 PyObject * obj2 = 0 ;
9636 PyObject * obj3 = 0 ;
9637 char * kwnames[] = {
9638 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
9639 };
9640
9641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9642 {
9643 arg1 = wxString_in_helper(obj0);
9644 if (arg1 == NULL) SWIG_fail;
9645 temp1 = true;
9646 }
9647 ecode2 = SWIG_AsVal_long(obj1, &val2);
9648 if (!SWIG_IsOK(ecode2)) {
9649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
9650 }
9651 arg2 = static_cast< long >(val2);
9652 if (obj2) {
9653 ecode3 = SWIG_AsVal_int(obj2, &val3);
9654 if (!SWIG_IsOK(ecode3)) {
9655 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
9656 }
9657 arg3 = static_cast< int >(val3);
9658 }
9659 if (obj3) {
9660 ecode4 = SWIG_AsVal_int(obj3, &val4);
9661 if (!SWIG_IsOK(ecode4)) {
9662 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
9663 }
9664 arg4 = static_cast< int >(val4);
9665 }
9666 {
9667 if (!wxPyCheckForApp()) SWIG_fail;
9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
9669 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
9670 wxPyEndAllowThreads(__tstate);
9671 if (PyErr_Occurred()) SWIG_fail;
9672 }
9673 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
9674 {
9675 if (temp1)
9676 delete arg1;
9677 }
9678 return resultobj;
9679 fail:
9680 {
9681 if (temp1)
9682 delete arg1;
9683 }
9684 return NULL;
9685 }
9686
9687
9688 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9689 PyObject *resultobj = 0;
9690 wxCursor *arg1 = (wxCursor *) 0 ;
9691 void *argp1 = 0 ;
9692 int res1 = 0 ;
9693 PyObject *swig_obj[1] ;
9694
9695 if (!args) SWIG_fail;
9696 swig_obj[0] = args;
9697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
9698 if (!SWIG_IsOK(res1)) {
9699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
9700 }
9701 arg1 = reinterpret_cast< wxCursor * >(argp1);
9702 {
9703 PyThreadState* __tstate = wxPyBeginAllowThreads();
9704 delete arg1;
9705
9706 wxPyEndAllowThreads(__tstate);
9707 if (PyErr_Occurred()) SWIG_fail;
9708 }
9709 resultobj = SWIG_Py_Void();
9710 return resultobj;
9711 fail:
9712 return NULL;
9713 }
9714
9715
9716 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9717 PyObject *resultobj = 0;
9718 int arg1 ;
9719 wxCursor *result = 0 ;
9720 int val1 ;
9721 int ecode1 = 0 ;
9722 PyObject * obj0 = 0 ;
9723 char * kwnames[] = {
9724 (char *) "id", NULL
9725 };
9726
9727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
9728 ecode1 = SWIG_AsVal_int(obj0, &val1);
9729 if (!SWIG_IsOK(ecode1)) {
9730 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
9731 }
9732 arg1 = static_cast< int >(val1);
9733 {
9734 if (!wxPyCheckForApp()) SWIG_fail;
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (wxCursor *)new wxCursor(arg1);
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9741 return resultobj;
9742 fail:
9743 return NULL;
9744 }
9745
9746
9747 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9748 PyObject *resultobj = 0;
9749 wxImage *arg1 = 0 ;
9750 wxCursor *result = 0 ;
9751 void *argp1 = 0 ;
9752 int res1 = 0 ;
9753 PyObject * obj0 = 0 ;
9754 char * kwnames[] = {
9755 (char *) "image", NULL
9756 };
9757
9758 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
9759 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
9760 if (!SWIG_IsOK(res1)) {
9761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9762 }
9763 if (!argp1) {
9764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
9765 }
9766 arg1 = reinterpret_cast< wxImage * >(argp1);
9767 {
9768 if (!wxPyCheckForApp()) SWIG_fail;
9769 PyThreadState* __tstate = wxPyBeginAllowThreads();
9770 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
9771 wxPyEndAllowThreads(__tstate);
9772 if (PyErr_Occurred()) SWIG_fail;
9773 }
9774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
9775 return resultobj;
9776 fail:
9777 return NULL;
9778 }
9779
9780
9781 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9782 PyObject *resultobj = 0;
9783 wxCursor *arg1 = (wxCursor *) 0 ;
9784 bool result;
9785 void *argp1 = 0 ;
9786 int res1 = 0 ;
9787 PyObject *swig_obj[1] ;
9788
9789 if (!args) SWIG_fail;
9790 swig_obj[0] = args;
9791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
9792 if (!SWIG_IsOK(res1)) {
9793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
9794 }
9795 arg1 = reinterpret_cast< wxCursor * >(argp1);
9796 {
9797 PyThreadState* __tstate = wxPyBeginAllowThreads();
9798 result = (bool)(arg1)->Ok();
9799 wxPyEndAllowThreads(__tstate);
9800 if (PyErr_Occurred()) SWIG_fail;
9801 }
9802 {
9803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9804 }
9805 return resultobj;
9806 fail:
9807 return NULL;
9808 }
9809
9810
9811 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9812 PyObject *obj;
9813 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9814 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
9815 return SWIG_Py_Void();
9816 }
9817
9818 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9819 return SWIG_Python_InitShadowInstance(args);
9820 }
9821
9822 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9823 PyObject *resultobj = 0;
9824 int arg1 = (int) 0 ;
9825 int arg2 = (int) 0 ;
9826 int arg3 = (int) 0 ;
9827 int arg4 = (int) 0 ;
9828 wxRegion *result = 0 ;
9829 int val1 ;
9830 int ecode1 = 0 ;
9831 int val2 ;
9832 int ecode2 = 0 ;
9833 int val3 ;
9834 int ecode3 = 0 ;
9835 int val4 ;
9836 int ecode4 = 0 ;
9837 PyObject * obj0 = 0 ;
9838 PyObject * obj1 = 0 ;
9839 PyObject * obj2 = 0 ;
9840 PyObject * obj3 = 0 ;
9841 char * kwnames[] = {
9842 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9843 };
9844
9845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9846 if (obj0) {
9847 ecode1 = SWIG_AsVal_int(obj0, &val1);
9848 if (!SWIG_IsOK(ecode1)) {
9849 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
9850 }
9851 arg1 = static_cast< int >(val1);
9852 }
9853 if (obj1) {
9854 ecode2 = SWIG_AsVal_int(obj1, &val2);
9855 if (!SWIG_IsOK(ecode2)) {
9856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
9857 }
9858 arg2 = static_cast< int >(val2);
9859 }
9860 if (obj2) {
9861 ecode3 = SWIG_AsVal_int(obj2, &val3);
9862 if (!SWIG_IsOK(ecode3)) {
9863 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
9864 }
9865 arg3 = static_cast< int >(val3);
9866 }
9867 if (obj3) {
9868 ecode4 = SWIG_AsVal_int(obj3, &val4);
9869 if (!SWIG_IsOK(ecode4)) {
9870 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
9871 }
9872 arg4 = static_cast< int >(val4);
9873 }
9874 {
9875 if (!wxPyCheckForApp()) SWIG_fail;
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
9878 wxPyEndAllowThreads(__tstate);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 }
9881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
9882 return resultobj;
9883 fail:
9884 return NULL;
9885 }
9886
9887
9888 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9889 PyObject *resultobj = 0;
9890 wxBitmap *arg1 = 0 ;
9891 wxRegion *result = 0 ;
9892 void *argp1 = 0 ;
9893 int res1 = 0 ;
9894 PyObject * obj0 = 0 ;
9895 char * kwnames[] = {
9896 (char *) "bmp", NULL
9897 };
9898
9899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
9900 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9901 if (!SWIG_IsOK(res1)) {
9902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9903 }
9904 if (!argp1) {
9905 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9906 }
9907 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9908 {
9909 if (!wxPyCheckForApp()) SWIG_fail;
9910 PyThreadState* __tstate = wxPyBeginAllowThreads();
9911 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
9912 wxPyEndAllowThreads(__tstate);
9913 if (PyErr_Occurred()) SWIG_fail;
9914 }
9915 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9916 return resultobj;
9917 fail:
9918 return NULL;
9919 }
9920
9921
9922 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9923 PyObject *resultobj = 0;
9924 wxBitmap *arg1 = 0 ;
9925 wxColour *arg2 = 0 ;
9926 int arg3 = (int) 0 ;
9927 wxRegion *result = 0 ;
9928 void *argp1 = 0 ;
9929 int res1 = 0 ;
9930 wxColour temp2 ;
9931 int val3 ;
9932 int ecode3 = 0 ;
9933 PyObject * obj0 = 0 ;
9934 PyObject * obj1 = 0 ;
9935 PyObject * obj2 = 0 ;
9936 char * kwnames[] = {
9937 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9938 };
9939
9940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9941 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9942 if (!SWIG_IsOK(res1)) {
9943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9944 }
9945 if (!argp1) {
9946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9947 }
9948 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9949 {
9950 arg2 = &temp2;
9951 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
9952 }
9953 if (obj2) {
9954 ecode3 = SWIG_AsVal_int(obj2, &val3);
9955 if (!SWIG_IsOK(ecode3)) {
9956 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
9957 }
9958 arg3 = static_cast< int >(val3);
9959 }
9960 {
9961 if (!wxPyCheckForApp()) SWIG_fail;
9962 PyThreadState* __tstate = wxPyBeginAllowThreads();
9963 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
9964 wxPyEndAllowThreads(__tstate);
9965 if (PyErr_Occurred()) SWIG_fail;
9966 }
9967 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
9968 return resultobj;
9969 fail:
9970 return NULL;
9971 }
9972
9973
9974 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9975 PyObject *resultobj = 0;
9976 int arg1 ;
9977 wxPoint *arg2 = (wxPoint *) 0 ;
9978 int arg3 = (int) wxWINDING_RULE ;
9979 wxRegion *result = 0 ;
9980 int val3 ;
9981 int ecode3 = 0 ;
9982 PyObject * obj0 = 0 ;
9983 PyObject * obj1 = 0 ;
9984 char * kwnames[] = {
9985 (char *) "points",(char *) "fillStyle", NULL
9986 };
9987
9988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
9989 {
9990 arg2 = wxPoint_LIST_helper(obj0, &arg1);
9991 if (arg2 == NULL) SWIG_fail;
9992 }
9993 if (obj1) {
9994 ecode3 = SWIG_AsVal_int(obj1, &val3);
9995 if (!SWIG_IsOK(ecode3)) {
9996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
9997 }
9998 arg3 = static_cast< int >(val3);
9999 }
10000 {
10001 if (!wxPyCheckForApp()) SWIG_fail;
10002 PyThreadState* __tstate = wxPyBeginAllowThreads();
10003 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10004 wxPyEndAllowThreads(__tstate);
10005 if (PyErr_Occurred()) SWIG_fail;
10006 }
10007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10008 {
10009 if (arg2) delete [] arg2;
10010 }
10011 return resultobj;
10012 fail:
10013 {
10014 if (arg2) delete [] arg2;
10015 }
10016 return NULL;
10017 }
10018
10019
10020 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10021 PyObject *resultobj = 0;
10022 wxRegion *arg1 = (wxRegion *) 0 ;
10023 void *argp1 = 0 ;
10024 int res1 = 0 ;
10025 PyObject *swig_obj[1] ;
10026
10027 if (!args) SWIG_fail;
10028 swig_obj[0] = args;
10029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10030 if (!SWIG_IsOK(res1)) {
10031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10032 }
10033 arg1 = reinterpret_cast< wxRegion * >(argp1);
10034 {
10035 PyThreadState* __tstate = wxPyBeginAllowThreads();
10036 delete arg1;
10037
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 resultobj = SWIG_Py_Void();
10042 return resultobj;
10043 fail:
10044 return NULL;
10045 }
10046
10047
10048 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10049 PyObject *resultobj = 0;
10050 wxRegion *arg1 = (wxRegion *) 0 ;
10051 void *argp1 = 0 ;
10052 int res1 = 0 ;
10053 PyObject *swig_obj[1] ;
10054
10055 if (!args) SWIG_fail;
10056 swig_obj[0] = args;
10057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10058 if (!SWIG_IsOK(res1)) {
10059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10060 }
10061 arg1 = reinterpret_cast< wxRegion * >(argp1);
10062 {
10063 PyThreadState* __tstate = wxPyBeginAllowThreads();
10064 (arg1)->Clear();
10065 wxPyEndAllowThreads(__tstate);
10066 if (PyErr_Occurred()) SWIG_fail;
10067 }
10068 resultobj = SWIG_Py_Void();
10069 return resultobj;
10070 fail:
10071 return NULL;
10072 }
10073
10074
10075 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10076 PyObject *resultobj = 0;
10077 wxRegion *arg1 = (wxRegion *) 0 ;
10078 int arg2 ;
10079 int arg3 ;
10080 bool result;
10081 void *argp1 = 0 ;
10082 int res1 = 0 ;
10083 int val2 ;
10084 int ecode2 = 0 ;
10085 int val3 ;
10086 int ecode3 = 0 ;
10087 PyObject * obj0 = 0 ;
10088 PyObject * obj1 = 0 ;
10089 PyObject * obj2 = 0 ;
10090 char * kwnames[] = {
10091 (char *) "self",(char *) "x",(char *) "y", NULL
10092 };
10093
10094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10096 if (!SWIG_IsOK(res1)) {
10097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10098 }
10099 arg1 = reinterpret_cast< wxRegion * >(argp1);
10100 ecode2 = SWIG_AsVal_int(obj1, &val2);
10101 if (!SWIG_IsOK(ecode2)) {
10102 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10103 }
10104 arg2 = static_cast< int >(val2);
10105 ecode3 = SWIG_AsVal_int(obj2, &val3);
10106 if (!SWIG_IsOK(ecode3)) {
10107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10108 }
10109 arg3 = static_cast< int >(val3);
10110 {
10111 PyThreadState* __tstate = wxPyBeginAllowThreads();
10112 result = (bool)(arg1)->Offset(arg2,arg3);
10113 wxPyEndAllowThreads(__tstate);
10114 if (PyErr_Occurred()) SWIG_fail;
10115 }
10116 {
10117 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10118 }
10119 return resultobj;
10120 fail:
10121 return NULL;
10122 }
10123
10124
10125 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10126 PyObject *resultobj = 0;
10127 wxRegion *arg1 = (wxRegion *) 0 ;
10128 int arg2 ;
10129 int arg3 ;
10130 wxRegionContain result;
10131 void *argp1 = 0 ;
10132 int res1 = 0 ;
10133 int val2 ;
10134 int ecode2 = 0 ;
10135 int val3 ;
10136 int ecode3 = 0 ;
10137 PyObject * obj0 = 0 ;
10138 PyObject * obj1 = 0 ;
10139 PyObject * obj2 = 0 ;
10140 char * kwnames[] = {
10141 (char *) "self",(char *) "x",(char *) "y", NULL
10142 };
10143
10144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10146 if (!SWIG_IsOK(res1)) {
10147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10148 }
10149 arg1 = reinterpret_cast< wxRegion * >(argp1);
10150 ecode2 = SWIG_AsVal_int(obj1, &val2);
10151 if (!SWIG_IsOK(ecode2)) {
10152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10153 }
10154 arg2 = static_cast< int >(val2);
10155 ecode3 = SWIG_AsVal_int(obj2, &val3);
10156 if (!SWIG_IsOK(ecode3)) {
10157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10158 }
10159 arg3 = static_cast< int >(val3);
10160 {
10161 PyThreadState* __tstate = wxPyBeginAllowThreads();
10162 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10163 wxPyEndAllowThreads(__tstate);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 }
10166 resultobj = SWIG_From_int(static_cast< int >(result));
10167 return resultobj;
10168 fail:
10169 return NULL;
10170 }
10171
10172
10173 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10174 PyObject *resultobj = 0;
10175 wxRegion *arg1 = (wxRegion *) 0 ;
10176 wxPoint *arg2 = 0 ;
10177 wxRegionContain result;
10178 void *argp1 = 0 ;
10179 int res1 = 0 ;
10180 wxPoint temp2 ;
10181 PyObject * obj0 = 0 ;
10182 PyObject * obj1 = 0 ;
10183 char * kwnames[] = {
10184 (char *) "self",(char *) "pt", NULL
10185 };
10186
10187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10189 if (!SWIG_IsOK(res1)) {
10190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10191 }
10192 arg1 = reinterpret_cast< wxRegion * >(argp1);
10193 {
10194 arg2 = &temp2;
10195 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10196 }
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_From_int(static_cast< int >(result));
10204 return resultobj;
10205 fail:
10206 return NULL;
10207 }
10208
10209
10210 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10211 PyObject *resultobj = 0;
10212 wxRegion *arg1 = (wxRegion *) 0 ;
10213 wxRect *arg2 = 0 ;
10214 wxRegionContain result;
10215 void *argp1 = 0 ;
10216 int res1 = 0 ;
10217 wxRect temp2 ;
10218 PyObject * obj0 = 0 ;
10219 PyObject * obj1 = 0 ;
10220 char * kwnames[] = {
10221 (char *) "self",(char *) "rect", NULL
10222 };
10223
10224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10226 if (!SWIG_IsOK(res1)) {
10227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10228 }
10229 arg1 = reinterpret_cast< wxRegion * >(argp1);
10230 {
10231 arg2 = &temp2;
10232 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10233 }
10234 {
10235 PyThreadState* __tstate = wxPyBeginAllowThreads();
10236 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10237 wxPyEndAllowThreads(__tstate);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 }
10240 resultobj = SWIG_From_int(static_cast< int >(result));
10241 return resultobj;
10242 fail:
10243 return NULL;
10244 }
10245
10246
10247 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10248 PyObject *resultobj = 0;
10249 wxRegion *arg1 = (wxRegion *) 0 ;
10250 int arg2 ;
10251 int arg3 ;
10252 int arg4 ;
10253 int arg5 ;
10254 wxRegionContain result;
10255 void *argp1 = 0 ;
10256 int res1 = 0 ;
10257 int val2 ;
10258 int ecode2 = 0 ;
10259 int val3 ;
10260 int ecode3 = 0 ;
10261 int val4 ;
10262 int ecode4 = 0 ;
10263 int val5 ;
10264 int ecode5 = 0 ;
10265 PyObject * obj0 = 0 ;
10266 PyObject * obj1 = 0 ;
10267 PyObject * obj2 = 0 ;
10268 PyObject * obj3 = 0 ;
10269 PyObject * obj4 = 0 ;
10270 char * kwnames[] = {
10271 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
10272 };
10273
10274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10276 if (!SWIG_IsOK(res1)) {
10277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
10278 }
10279 arg1 = reinterpret_cast< wxRegion * >(argp1);
10280 ecode2 = SWIG_AsVal_int(obj1, &val2);
10281 if (!SWIG_IsOK(ecode2)) {
10282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
10283 }
10284 arg2 = static_cast< int >(val2);
10285 ecode3 = SWIG_AsVal_int(obj2, &val3);
10286 if (!SWIG_IsOK(ecode3)) {
10287 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
10288 }
10289 arg3 = static_cast< int >(val3);
10290 ecode4 = SWIG_AsVal_int(obj3, &val4);
10291 if (!SWIG_IsOK(ecode4)) {
10292 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
10293 }
10294 arg4 = static_cast< int >(val4);
10295 ecode5 = SWIG_AsVal_int(obj4, &val5);
10296 if (!SWIG_IsOK(ecode5)) {
10297 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
10298 }
10299 arg5 = static_cast< int >(val5);
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
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_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10314 PyObject *resultobj = 0;
10315 wxRegion *arg1 = (wxRegion *) 0 ;
10316 wxRect result;
10317 void *argp1 = 0 ;
10318 int res1 = 0 ;
10319 PyObject *swig_obj[1] ;
10320
10321 if (!args) SWIG_fail;
10322 swig_obj[0] = args;
10323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10324 if (!SWIG_IsOK(res1)) {
10325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
10326 }
10327 arg1 = reinterpret_cast< wxRegion * >(argp1);
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 result = (arg1)->GetBox();
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
10335 return resultobj;
10336 fail:
10337 return NULL;
10338 }
10339
10340
10341 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10342 PyObject *resultobj = 0;
10343 wxRegion *arg1 = (wxRegion *) 0 ;
10344 int arg2 ;
10345 int arg3 ;
10346 int arg4 ;
10347 int arg5 ;
10348 bool result;
10349 void *argp1 = 0 ;
10350 int res1 = 0 ;
10351 int val2 ;
10352 int ecode2 = 0 ;
10353 int val3 ;
10354 int ecode3 = 0 ;
10355 int val4 ;
10356 int ecode4 = 0 ;
10357 int val5 ;
10358 int ecode5 = 0 ;
10359 PyObject * obj0 = 0 ;
10360 PyObject * obj1 = 0 ;
10361 PyObject * obj2 = 0 ;
10362 PyObject * obj3 = 0 ;
10363 PyObject * obj4 = 0 ;
10364 char * kwnames[] = {
10365 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10366 };
10367
10368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10370 if (!SWIG_IsOK(res1)) {
10371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
10372 }
10373 arg1 = reinterpret_cast< wxRegion * >(argp1);
10374 ecode2 = SWIG_AsVal_int(obj1, &val2);
10375 if (!SWIG_IsOK(ecode2)) {
10376 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
10377 }
10378 arg2 = static_cast< int >(val2);
10379 ecode3 = SWIG_AsVal_int(obj2, &val3);
10380 if (!SWIG_IsOK(ecode3)) {
10381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
10382 }
10383 arg3 = static_cast< int >(val3);
10384 ecode4 = SWIG_AsVal_int(obj3, &val4);
10385 if (!SWIG_IsOK(ecode4)) {
10386 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
10387 }
10388 arg4 = static_cast< int >(val4);
10389 ecode5 = SWIG_AsVal_int(obj4, &val5);
10390 if (!SWIG_IsOK(ecode5)) {
10391 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
10392 }
10393 arg5 = static_cast< int >(val5);
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
10397 wxPyEndAllowThreads(__tstate);
10398 if (PyErr_Occurred()) SWIG_fail;
10399 }
10400 {
10401 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10402 }
10403 return resultobj;
10404 fail:
10405 return NULL;
10406 }
10407
10408
10409 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10410 PyObject *resultobj = 0;
10411 wxRegion *arg1 = (wxRegion *) 0 ;
10412 wxRect *arg2 = 0 ;
10413 bool result;
10414 void *argp1 = 0 ;
10415 int res1 = 0 ;
10416 wxRect temp2 ;
10417 PyObject * obj0 = 0 ;
10418 PyObject * obj1 = 0 ;
10419 char * kwnames[] = {
10420 (char *) "self",(char *) "rect", NULL
10421 };
10422
10423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
10424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10425 if (!SWIG_IsOK(res1)) {
10426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10427 }
10428 arg1 = reinterpret_cast< wxRegion * >(argp1);
10429 {
10430 arg2 = &temp2;
10431 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10432 }
10433 {
10434 PyThreadState* __tstate = wxPyBeginAllowThreads();
10435 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
10436 wxPyEndAllowThreads(__tstate);
10437 if (PyErr_Occurred()) SWIG_fail;
10438 }
10439 {
10440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10441 }
10442 return resultobj;
10443 fail:
10444 return NULL;
10445 }
10446
10447
10448 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10449 PyObject *resultobj = 0;
10450 wxRegion *arg1 = (wxRegion *) 0 ;
10451 wxRegion *arg2 = 0 ;
10452 bool result;
10453 void *argp1 = 0 ;
10454 int res1 = 0 ;
10455 void *argp2 = 0 ;
10456 int res2 = 0 ;
10457 PyObject * obj0 = 0 ;
10458 PyObject * obj1 = 0 ;
10459 char * kwnames[] = {
10460 (char *) "self",(char *) "region", NULL
10461 };
10462
10463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10465 if (!SWIG_IsOK(res1)) {
10466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10467 }
10468 arg1 = reinterpret_cast< wxRegion * >(argp1);
10469 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10470 if (!SWIG_IsOK(res2)) {
10471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10472 }
10473 if (!argp2) {
10474 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10475 }
10476 arg2 = reinterpret_cast< wxRegion * >(argp2);
10477 {
10478 PyThreadState* __tstate = wxPyBeginAllowThreads();
10479 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
10480 wxPyEndAllowThreads(__tstate);
10481 if (PyErr_Occurred()) SWIG_fail;
10482 }
10483 {
10484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10485 }
10486 return resultobj;
10487 fail:
10488 return NULL;
10489 }
10490
10491
10492 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10493 PyObject *resultobj = 0;
10494 wxRegion *arg1 = (wxRegion *) 0 ;
10495 bool result;
10496 void *argp1 = 0 ;
10497 int res1 = 0 ;
10498 PyObject *swig_obj[1] ;
10499
10500 if (!args) SWIG_fail;
10501 swig_obj[0] = args;
10502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10503 if (!SWIG_IsOK(res1)) {
10504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
10505 }
10506 arg1 = reinterpret_cast< wxRegion * >(argp1);
10507 {
10508 PyThreadState* __tstate = wxPyBeginAllowThreads();
10509 result = (bool)(arg1)->IsEmpty();
10510 wxPyEndAllowThreads(__tstate);
10511 if (PyErr_Occurred()) SWIG_fail;
10512 }
10513 {
10514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10515 }
10516 return resultobj;
10517 fail:
10518 return NULL;
10519 }
10520
10521
10522 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10523 PyObject *resultobj = 0;
10524 wxRegion *arg1 = (wxRegion *) 0 ;
10525 int arg2 ;
10526 int arg3 ;
10527 int arg4 ;
10528 int arg5 ;
10529 bool result;
10530 void *argp1 = 0 ;
10531 int res1 = 0 ;
10532 int val2 ;
10533 int ecode2 = 0 ;
10534 int val3 ;
10535 int ecode3 = 0 ;
10536 int val4 ;
10537 int ecode4 = 0 ;
10538 int val5 ;
10539 int ecode5 = 0 ;
10540 PyObject * obj0 = 0 ;
10541 PyObject * obj1 = 0 ;
10542 PyObject * obj2 = 0 ;
10543 PyObject * obj3 = 0 ;
10544 PyObject * obj4 = 0 ;
10545 char * kwnames[] = {
10546 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10547 };
10548
10549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10551 if (!SWIG_IsOK(res1)) {
10552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
10553 }
10554 arg1 = reinterpret_cast< wxRegion * >(argp1);
10555 ecode2 = SWIG_AsVal_int(obj1, &val2);
10556 if (!SWIG_IsOK(ecode2)) {
10557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
10558 }
10559 arg2 = static_cast< int >(val2);
10560 ecode3 = SWIG_AsVal_int(obj2, &val3);
10561 if (!SWIG_IsOK(ecode3)) {
10562 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
10563 }
10564 arg3 = static_cast< int >(val3);
10565 ecode4 = SWIG_AsVal_int(obj3, &val4);
10566 if (!SWIG_IsOK(ecode4)) {
10567 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
10568 }
10569 arg4 = static_cast< int >(val4);
10570 ecode5 = SWIG_AsVal_int(obj4, &val5);
10571 if (!SWIG_IsOK(ecode5)) {
10572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
10573 }
10574 arg5 = static_cast< int >(val5);
10575 {
10576 PyThreadState* __tstate = wxPyBeginAllowThreads();
10577 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
10578 wxPyEndAllowThreads(__tstate);
10579 if (PyErr_Occurred()) SWIG_fail;
10580 }
10581 {
10582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10583 }
10584 return resultobj;
10585 fail:
10586 return NULL;
10587 }
10588
10589
10590 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10591 PyObject *resultobj = 0;
10592 wxRegion *arg1 = (wxRegion *) 0 ;
10593 wxRect *arg2 = 0 ;
10594 bool result;
10595 void *argp1 = 0 ;
10596 int res1 = 0 ;
10597 wxRect temp2 ;
10598 PyObject * obj0 = 0 ;
10599 PyObject * obj1 = 0 ;
10600 char * kwnames[] = {
10601 (char *) "self",(char *) "rect", NULL
10602 };
10603
10604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
10605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10606 if (!SWIG_IsOK(res1)) {
10607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10608 }
10609 arg1 = reinterpret_cast< wxRegion * >(argp1);
10610 {
10611 arg2 = &temp2;
10612 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10613 }
10614 {
10615 PyThreadState* __tstate = wxPyBeginAllowThreads();
10616 result = (bool)(arg1)->Union((wxRect const &)*arg2);
10617 wxPyEndAllowThreads(__tstate);
10618 if (PyErr_Occurred()) SWIG_fail;
10619 }
10620 {
10621 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10622 }
10623 return resultobj;
10624 fail:
10625 return NULL;
10626 }
10627
10628
10629 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10630 PyObject *resultobj = 0;
10631 wxRegion *arg1 = (wxRegion *) 0 ;
10632 wxRegion *arg2 = 0 ;
10633 bool result;
10634 void *argp1 = 0 ;
10635 int res1 = 0 ;
10636 void *argp2 = 0 ;
10637 int res2 = 0 ;
10638 PyObject * obj0 = 0 ;
10639 PyObject * obj1 = 0 ;
10640 char * kwnames[] = {
10641 (char *) "self",(char *) "region", NULL
10642 };
10643
10644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10645 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10646 if (!SWIG_IsOK(res1)) {
10647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10648 }
10649 arg1 = reinterpret_cast< wxRegion * >(argp1);
10650 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10651 if (!SWIG_IsOK(res2)) {
10652 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10653 }
10654 if (!argp2) {
10655 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10656 }
10657 arg2 = reinterpret_cast< wxRegion * >(argp2);
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
10661 wxPyEndAllowThreads(__tstate);
10662 if (PyErr_Occurred()) SWIG_fail;
10663 }
10664 {
10665 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10666 }
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj = 0;
10675 wxRegion *arg1 = (wxRegion *) 0 ;
10676 int arg2 ;
10677 int arg3 ;
10678 int arg4 ;
10679 int arg5 ;
10680 bool result;
10681 void *argp1 = 0 ;
10682 int res1 = 0 ;
10683 int val2 ;
10684 int ecode2 = 0 ;
10685 int val3 ;
10686 int ecode3 = 0 ;
10687 int val4 ;
10688 int ecode4 = 0 ;
10689 int val5 ;
10690 int ecode5 = 0 ;
10691 PyObject * obj0 = 0 ;
10692 PyObject * obj1 = 0 ;
10693 PyObject * obj2 = 0 ;
10694 PyObject * obj3 = 0 ;
10695 PyObject * obj4 = 0 ;
10696 char * kwnames[] = {
10697 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10698 };
10699
10700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10702 if (!SWIG_IsOK(res1)) {
10703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
10704 }
10705 arg1 = reinterpret_cast< wxRegion * >(argp1);
10706 ecode2 = SWIG_AsVal_int(obj1, &val2);
10707 if (!SWIG_IsOK(ecode2)) {
10708 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
10709 }
10710 arg2 = static_cast< int >(val2);
10711 ecode3 = SWIG_AsVal_int(obj2, &val3);
10712 if (!SWIG_IsOK(ecode3)) {
10713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
10714 }
10715 arg3 = static_cast< int >(val3);
10716 ecode4 = SWIG_AsVal_int(obj3, &val4);
10717 if (!SWIG_IsOK(ecode4)) {
10718 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
10719 }
10720 arg4 = static_cast< int >(val4);
10721 ecode5 = SWIG_AsVal_int(obj4, &val5);
10722 if (!SWIG_IsOK(ecode5)) {
10723 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
10724 }
10725 arg5 = static_cast< int >(val5);
10726 {
10727 PyThreadState* __tstate = wxPyBeginAllowThreads();
10728 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
10729 wxPyEndAllowThreads(__tstate);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 }
10732 {
10733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10734 }
10735 return resultobj;
10736 fail:
10737 return NULL;
10738 }
10739
10740
10741 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10742 PyObject *resultobj = 0;
10743 wxRegion *arg1 = (wxRegion *) 0 ;
10744 wxRect *arg2 = 0 ;
10745 bool result;
10746 void *argp1 = 0 ;
10747 int res1 = 0 ;
10748 wxRect temp2 ;
10749 PyObject * obj0 = 0 ;
10750 PyObject * obj1 = 0 ;
10751 char * kwnames[] = {
10752 (char *) "self",(char *) "rect", NULL
10753 };
10754
10755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
10756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10757 if (!SWIG_IsOK(res1)) {
10758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10759 }
10760 arg1 = reinterpret_cast< wxRegion * >(argp1);
10761 {
10762 arg2 = &temp2;
10763 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10764 }
10765 {
10766 PyThreadState* __tstate = wxPyBeginAllowThreads();
10767 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
10768 wxPyEndAllowThreads(__tstate);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 }
10771 {
10772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10773 }
10774 return resultobj;
10775 fail:
10776 return NULL;
10777 }
10778
10779
10780 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10781 PyObject *resultobj = 0;
10782 wxRegion *arg1 = (wxRegion *) 0 ;
10783 wxRegion *arg2 = 0 ;
10784 bool result;
10785 void *argp1 = 0 ;
10786 int res1 = 0 ;
10787 void *argp2 = 0 ;
10788 int res2 = 0 ;
10789 PyObject * obj0 = 0 ;
10790 PyObject * obj1 = 0 ;
10791 char * kwnames[] = {
10792 (char *) "self",(char *) "region", NULL
10793 };
10794
10795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10797 if (!SWIG_IsOK(res1)) {
10798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10799 }
10800 arg1 = reinterpret_cast< wxRegion * >(argp1);
10801 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10802 if (!SWIG_IsOK(res2)) {
10803 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10804 }
10805 if (!argp2) {
10806 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10807 }
10808 arg2 = reinterpret_cast< wxRegion * >(argp2);
10809 {
10810 PyThreadState* __tstate = wxPyBeginAllowThreads();
10811 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
10812 wxPyEndAllowThreads(__tstate);
10813 if (PyErr_Occurred()) SWIG_fail;
10814 }
10815 {
10816 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10817 }
10818 return resultobj;
10819 fail:
10820 return NULL;
10821 }
10822
10823
10824 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10825 PyObject *resultobj = 0;
10826 wxRegion *arg1 = (wxRegion *) 0 ;
10827 int arg2 ;
10828 int arg3 ;
10829 int arg4 ;
10830 int arg5 ;
10831 bool result;
10832 void *argp1 = 0 ;
10833 int res1 = 0 ;
10834 int val2 ;
10835 int ecode2 = 0 ;
10836 int val3 ;
10837 int ecode3 = 0 ;
10838 int val4 ;
10839 int ecode4 = 0 ;
10840 int val5 ;
10841 int ecode5 = 0 ;
10842 PyObject * obj0 = 0 ;
10843 PyObject * obj1 = 0 ;
10844 PyObject * obj2 = 0 ;
10845 PyObject * obj3 = 0 ;
10846 PyObject * obj4 = 0 ;
10847 char * kwnames[] = {
10848 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10849 };
10850
10851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
10852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10853 if (!SWIG_IsOK(res1)) {
10854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
10855 }
10856 arg1 = reinterpret_cast< wxRegion * >(argp1);
10857 ecode2 = SWIG_AsVal_int(obj1, &val2);
10858 if (!SWIG_IsOK(ecode2)) {
10859 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
10860 }
10861 arg2 = static_cast< int >(val2);
10862 ecode3 = SWIG_AsVal_int(obj2, &val3);
10863 if (!SWIG_IsOK(ecode3)) {
10864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
10865 }
10866 arg3 = static_cast< int >(val3);
10867 ecode4 = SWIG_AsVal_int(obj3, &val4);
10868 if (!SWIG_IsOK(ecode4)) {
10869 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
10870 }
10871 arg4 = static_cast< int >(val4);
10872 ecode5 = SWIG_AsVal_int(obj4, &val5);
10873 if (!SWIG_IsOK(ecode5)) {
10874 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
10875 }
10876 arg5 = static_cast< int >(val5);
10877 {
10878 PyThreadState* __tstate = wxPyBeginAllowThreads();
10879 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
10880 wxPyEndAllowThreads(__tstate);
10881 if (PyErr_Occurred()) SWIG_fail;
10882 }
10883 {
10884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10885 }
10886 return resultobj;
10887 fail:
10888 return NULL;
10889 }
10890
10891
10892 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10893 PyObject *resultobj = 0;
10894 wxRegion *arg1 = (wxRegion *) 0 ;
10895 wxRect *arg2 = 0 ;
10896 bool result;
10897 void *argp1 = 0 ;
10898 int res1 = 0 ;
10899 wxRect temp2 ;
10900 PyObject * obj0 = 0 ;
10901 PyObject * obj1 = 0 ;
10902 char * kwnames[] = {
10903 (char *) "self",(char *) "rect", NULL
10904 };
10905
10906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
10907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10908 if (!SWIG_IsOK(res1)) {
10909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10910 }
10911 arg1 = reinterpret_cast< wxRegion * >(argp1);
10912 {
10913 arg2 = &temp2;
10914 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10915 }
10916 {
10917 PyThreadState* __tstate = wxPyBeginAllowThreads();
10918 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
10919 wxPyEndAllowThreads(__tstate);
10920 if (PyErr_Occurred()) SWIG_fail;
10921 }
10922 {
10923 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10924 }
10925 return resultobj;
10926 fail:
10927 return NULL;
10928 }
10929
10930
10931 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10932 PyObject *resultobj = 0;
10933 wxRegion *arg1 = (wxRegion *) 0 ;
10934 wxRegion *arg2 = 0 ;
10935 bool result;
10936 void *argp1 = 0 ;
10937 int res1 = 0 ;
10938 void *argp2 = 0 ;
10939 int res2 = 0 ;
10940 PyObject * obj0 = 0 ;
10941 PyObject * obj1 = 0 ;
10942 char * kwnames[] = {
10943 (char *) "self",(char *) "region", NULL
10944 };
10945
10946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
10947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10948 if (!SWIG_IsOK(res1)) {
10949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
10950 }
10951 arg1 = reinterpret_cast< wxRegion * >(argp1);
10952 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
10953 if (!SWIG_IsOK(res2)) {
10954 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10955 }
10956 if (!argp2) {
10957 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
10958 }
10959 arg2 = reinterpret_cast< wxRegion * >(argp2);
10960 {
10961 PyThreadState* __tstate = wxPyBeginAllowThreads();
10962 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
10963 wxPyEndAllowThreads(__tstate);
10964 if (PyErr_Occurred()) SWIG_fail;
10965 }
10966 {
10967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10968 }
10969 return resultobj;
10970 fail:
10971 return NULL;
10972 }
10973
10974
10975 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10976 PyObject *resultobj = 0;
10977 wxRegion *arg1 = (wxRegion *) 0 ;
10978 SwigValueWrapper<wxBitmap > result;
10979 void *argp1 = 0 ;
10980 int res1 = 0 ;
10981 PyObject *swig_obj[1] ;
10982
10983 if (!args) SWIG_fail;
10984 swig_obj[0] = args;
10985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10986 if (!SWIG_IsOK(res1)) {
10987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
10988 }
10989 arg1 = reinterpret_cast< wxRegion * >(argp1);
10990 {
10991 PyThreadState* __tstate = wxPyBeginAllowThreads();
10992 result = (arg1)->ConvertToBitmap();
10993 wxPyEndAllowThreads(__tstate);
10994 if (PyErr_Occurred()) SWIG_fail;
10995 }
10996 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
10997 return resultobj;
10998 fail:
10999 return NULL;
11000 }
11001
11002
11003 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11004 PyObject *resultobj = 0;
11005 wxRegion *arg1 = (wxRegion *) 0 ;
11006 wxBitmap *arg2 = 0 ;
11007 bool result;
11008 void *argp1 = 0 ;
11009 int res1 = 0 ;
11010 void *argp2 = 0 ;
11011 int res2 = 0 ;
11012 PyObject * obj0 = 0 ;
11013 PyObject * obj1 = 0 ;
11014 char * kwnames[] = {
11015 (char *) "self",(char *) "bmp", NULL
11016 };
11017
11018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11020 if (!SWIG_IsOK(res1)) {
11021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11022 }
11023 arg1 = reinterpret_cast< wxRegion * >(argp1);
11024 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11025 if (!SWIG_IsOK(res2)) {
11026 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11027 }
11028 if (!argp2) {
11029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11030 }
11031 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11035 wxPyEndAllowThreads(__tstate);
11036 if (PyErr_Occurred()) SWIG_fail;
11037 }
11038 {
11039 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11040 }
11041 return resultobj;
11042 fail:
11043 return NULL;
11044 }
11045
11046
11047 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11048 PyObject *resultobj = 0;
11049 wxRegion *arg1 = (wxRegion *) 0 ;
11050 wxBitmap *arg2 = 0 ;
11051 wxColour *arg3 = 0 ;
11052 int arg4 = (int) 0 ;
11053 bool result;
11054 void *argp1 = 0 ;
11055 int res1 = 0 ;
11056 void *argp2 = 0 ;
11057 int res2 = 0 ;
11058 wxColour temp3 ;
11059 int val4 ;
11060 int ecode4 = 0 ;
11061 PyObject * obj0 = 0 ;
11062 PyObject * obj1 = 0 ;
11063 PyObject * obj2 = 0 ;
11064 PyObject * obj3 = 0 ;
11065 char * kwnames[] = {
11066 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11067 };
11068
11069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11070 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11071 if (!SWIG_IsOK(res1)) {
11072 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11073 }
11074 arg1 = reinterpret_cast< wxRegion * >(argp1);
11075 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11076 if (!SWIG_IsOK(res2)) {
11077 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11078 }
11079 if (!argp2) {
11080 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11081 }
11082 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11083 {
11084 arg3 = &temp3;
11085 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11086 }
11087 if (obj3) {
11088 ecode4 = SWIG_AsVal_int(obj3, &val4);
11089 if (!SWIG_IsOK(ecode4)) {
11090 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11091 }
11092 arg4 = static_cast< int >(val4);
11093 }
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11097 wxPyEndAllowThreads(__tstate);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 {
11101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11102 }
11103 return resultobj;
11104 fail:
11105 return NULL;
11106 }
11107
11108
11109 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11110 PyObject *obj;
11111 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11112 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11113 return SWIG_Py_Void();
11114 }
11115
11116 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11117 return SWIG_Python_InitShadowInstance(args);
11118 }
11119
11120 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11121 PyObject *resultobj = 0;
11122 wxRegion *arg1 = 0 ;
11123 wxRegionIterator *result = 0 ;
11124 void *argp1 = 0 ;
11125 int res1 = 0 ;
11126 PyObject * obj0 = 0 ;
11127 char * kwnames[] = {
11128 (char *) "region", NULL
11129 };
11130
11131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11132 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11133 if (!SWIG_IsOK(res1)) {
11134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11135 }
11136 if (!argp1) {
11137 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11138 }
11139 arg1 = reinterpret_cast< wxRegion * >(argp1);
11140 {
11141 if (!wxPyCheckForApp()) SWIG_fail;
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11148 return resultobj;
11149 fail:
11150 return NULL;
11151 }
11152
11153
11154 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11155 PyObject *resultobj = 0;
11156 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11157 void *argp1 = 0 ;
11158 int res1 = 0 ;
11159 PyObject *swig_obj[1] ;
11160
11161 if (!args) SWIG_fail;
11162 swig_obj[0] = args;
11163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11164 if (!SWIG_IsOK(res1)) {
11165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11166 }
11167 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11168 {
11169 PyThreadState* __tstate = wxPyBeginAllowThreads();
11170 delete arg1;
11171
11172 wxPyEndAllowThreads(__tstate);
11173 if (PyErr_Occurred()) SWIG_fail;
11174 }
11175 resultobj = SWIG_Py_Void();
11176 return resultobj;
11177 fail:
11178 return NULL;
11179 }
11180
11181
11182 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11183 PyObject *resultobj = 0;
11184 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11185 int result;
11186 void *argp1 = 0 ;
11187 int res1 = 0 ;
11188 PyObject *swig_obj[1] ;
11189
11190 if (!args) SWIG_fail;
11191 swig_obj[0] = args;
11192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11193 if (!SWIG_IsOK(res1)) {
11194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11195 }
11196 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11197 {
11198 PyThreadState* __tstate = wxPyBeginAllowThreads();
11199 result = (int)(arg1)->GetX();
11200 wxPyEndAllowThreads(__tstate);
11201 if (PyErr_Occurred()) SWIG_fail;
11202 }
11203 resultobj = SWIG_From_int(static_cast< int >(result));
11204 return resultobj;
11205 fail:
11206 return NULL;
11207 }
11208
11209
11210 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11211 PyObject *resultobj = 0;
11212 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11213 int result;
11214 void *argp1 = 0 ;
11215 int res1 = 0 ;
11216 PyObject *swig_obj[1] ;
11217
11218 if (!args) SWIG_fail;
11219 swig_obj[0] = args;
11220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11221 if (!SWIG_IsOK(res1)) {
11222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11223 }
11224 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11225 {
11226 PyThreadState* __tstate = wxPyBeginAllowThreads();
11227 result = (int)(arg1)->GetY();
11228 wxPyEndAllowThreads(__tstate);
11229 if (PyErr_Occurred()) SWIG_fail;
11230 }
11231 resultobj = SWIG_From_int(static_cast< int >(result));
11232 return resultobj;
11233 fail:
11234 return NULL;
11235 }
11236
11237
11238 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11239 PyObject *resultobj = 0;
11240 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11241 int result;
11242 void *argp1 = 0 ;
11243 int res1 = 0 ;
11244 PyObject *swig_obj[1] ;
11245
11246 if (!args) SWIG_fail;
11247 swig_obj[0] = args;
11248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11249 if (!SWIG_IsOK(res1)) {
11250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11251 }
11252 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11253 {
11254 PyThreadState* __tstate = wxPyBeginAllowThreads();
11255 result = (int)(arg1)->GetW();
11256 wxPyEndAllowThreads(__tstate);
11257 if (PyErr_Occurred()) SWIG_fail;
11258 }
11259 resultobj = SWIG_From_int(static_cast< int >(result));
11260 return resultobj;
11261 fail:
11262 return NULL;
11263 }
11264
11265
11266 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11267 PyObject *resultobj = 0;
11268 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11269 int result;
11270 void *argp1 = 0 ;
11271 int res1 = 0 ;
11272 PyObject *swig_obj[1] ;
11273
11274 if (!args) SWIG_fail;
11275 swig_obj[0] = args;
11276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11277 if (!SWIG_IsOK(res1)) {
11278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11279 }
11280 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11281 {
11282 PyThreadState* __tstate = wxPyBeginAllowThreads();
11283 result = (int)(arg1)->GetWidth();
11284 wxPyEndAllowThreads(__tstate);
11285 if (PyErr_Occurred()) SWIG_fail;
11286 }
11287 resultobj = SWIG_From_int(static_cast< int >(result));
11288 return resultobj;
11289 fail:
11290 return NULL;
11291 }
11292
11293
11294 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11295 PyObject *resultobj = 0;
11296 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11297 int result;
11298 void *argp1 = 0 ;
11299 int res1 = 0 ;
11300 PyObject *swig_obj[1] ;
11301
11302 if (!args) SWIG_fail;
11303 swig_obj[0] = args;
11304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11305 if (!SWIG_IsOK(res1)) {
11306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11307 }
11308 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11309 {
11310 PyThreadState* __tstate = wxPyBeginAllowThreads();
11311 result = (int)(arg1)->GetH();
11312 wxPyEndAllowThreads(__tstate);
11313 if (PyErr_Occurred()) SWIG_fail;
11314 }
11315 resultobj = SWIG_From_int(static_cast< int >(result));
11316 return resultobj;
11317 fail:
11318 return NULL;
11319 }
11320
11321
11322 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11323 PyObject *resultobj = 0;
11324 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11325 int result;
11326 void *argp1 = 0 ;
11327 int res1 = 0 ;
11328 PyObject *swig_obj[1] ;
11329
11330 if (!args) SWIG_fail;
11331 swig_obj[0] = args;
11332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11333 if (!SWIG_IsOK(res1)) {
11334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11335 }
11336 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11337 {
11338 PyThreadState* __tstate = wxPyBeginAllowThreads();
11339 result = (int)(arg1)->GetHeight();
11340 wxPyEndAllowThreads(__tstate);
11341 if (PyErr_Occurred()) SWIG_fail;
11342 }
11343 resultobj = SWIG_From_int(static_cast< int >(result));
11344 return resultobj;
11345 fail:
11346 return NULL;
11347 }
11348
11349
11350 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11351 PyObject *resultobj = 0;
11352 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11353 wxRect result;
11354 void *argp1 = 0 ;
11355 int res1 = 0 ;
11356 PyObject *swig_obj[1] ;
11357
11358 if (!args) SWIG_fail;
11359 swig_obj[0] = args;
11360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11361 if (!SWIG_IsOK(res1)) {
11362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11363 }
11364 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11365 {
11366 PyThreadState* __tstate = wxPyBeginAllowThreads();
11367 result = (arg1)->GetRect();
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11372 return resultobj;
11373 fail:
11374 return NULL;
11375 }
11376
11377
11378 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11379 PyObject *resultobj = 0;
11380 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11381 bool result;
11382 void *argp1 = 0 ;
11383 int res1 = 0 ;
11384 PyObject *swig_obj[1] ;
11385
11386 if (!args) SWIG_fail;
11387 swig_obj[0] = args;
11388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11389 if (!SWIG_IsOK(res1)) {
11390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11391 }
11392 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11393 {
11394 PyThreadState* __tstate = wxPyBeginAllowThreads();
11395 result = (bool)(arg1)->HaveRects();
11396 wxPyEndAllowThreads(__tstate);
11397 if (PyErr_Occurred()) SWIG_fail;
11398 }
11399 {
11400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11401 }
11402 return resultobj;
11403 fail:
11404 return NULL;
11405 }
11406
11407
11408 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11409 PyObject *resultobj = 0;
11410 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11411 void *argp1 = 0 ;
11412 int res1 = 0 ;
11413 PyObject *swig_obj[1] ;
11414
11415 if (!args) SWIG_fail;
11416 swig_obj[0] = args;
11417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11418 if (!SWIG_IsOK(res1)) {
11419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11420 }
11421 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11422 {
11423 PyThreadState* __tstate = wxPyBeginAllowThreads();
11424 (arg1)->Reset();
11425 wxPyEndAllowThreads(__tstate);
11426 if (PyErr_Occurred()) SWIG_fail;
11427 }
11428 resultobj = SWIG_Py_Void();
11429 return resultobj;
11430 fail:
11431 return NULL;
11432 }
11433
11434
11435 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11436 PyObject *resultobj = 0;
11437 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11438 void *argp1 = 0 ;
11439 int res1 = 0 ;
11440 PyObject *swig_obj[1] ;
11441
11442 if (!args) SWIG_fail;
11443 swig_obj[0] = args;
11444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11445 if (!SWIG_IsOK(res1)) {
11446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11447 }
11448 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11449 {
11450 PyThreadState* __tstate = wxPyBeginAllowThreads();
11451 wxRegionIterator_Next(arg1);
11452 wxPyEndAllowThreads(__tstate);
11453 if (PyErr_Occurred()) SWIG_fail;
11454 }
11455 resultobj = SWIG_Py_Void();
11456 return resultobj;
11457 fail:
11458 return NULL;
11459 }
11460
11461
11462 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11463 PyObject *resultobj = 0;
11464 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11465 bool result;
11466 void *argp1 = 0 ;
11467 int res1 = 0 ;
11468 PyObject *swig_obj[1] ;
11469
11470 if (!args) SWIG_fail;
11471 swig_obj[0] = args;
11472 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11473 if (!SWIG_IsOK(res1)) {
11474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11475 }
11476 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11477 {
11478 PyThreadState* __tstate = wxPyBeginAllowThreads();
11479 result = (bool)wxRegionIterator___nonzero__(arg1);
11480 wxPyEndAllowThreads(__tstate);
11481 if (PyErr_Occurred()) SWIG_fail;
11482 }
11483 {
11484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11485 }
11486 return resultobj;
11487 fail:
11488 return NULL;
11489 }
11490
11491
11492 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11493 PyObject *obj;
11494 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11495 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
11496 return SWIG_Py_Void();
11497 }
11498
11499 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11500 return SWIG_Python_InitShadowInstance(args);
11501 }
11502
11503 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11504 PyObject *resultobj = 0;
11505 wxNativeFontInfo *result = 0 ;
11506
11507 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
11508 {
11509 PyThreadState* __tstate = wxPyBeginAllowThreads();
11510 result = (wxNativeFontInfo *)new wxNativeFontInfo();
11511 wxPyEndAllowThreads(__tstate);
11512 if (PyErr_Occurred()) SWIG_fail;
11513 }
11514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
11515 return resultobj;
11516 fail:
11517 return NULL;
11518 }
11519
11520
11521 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11522 PyObject *resultobj = 0;
11523 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11524 void *argp1 = 0 ;
11525 int res1 = 0 ;
11526 PyObject *swig_obj[1] ;
11527
11528 if (!args) SWIG_fail;
11529 swig_obj[0] = args;
11530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
11531 if (!SWIG_IsOK(res1)) {
11532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11533 }
11534 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11535 {
11536 PyThreadState* __tstate = wxPyBeginAllowThreads();
11537 delete arg1;
11538
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 resultobj = SWIG_Py_Void();
11543 return resultobj;
11544 fail:
11545 return NULL;
11546 }
11547
11548
11549 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11550 PyObject *resultobj = 0;
11551 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11552 void *argp1 = 0 ;
11553 int res1 = 0 ;
11554 PyObject *swig_obj[1] ;
11555
11556 if (!args) SWIG_fail;
11557 swig_obj[0] = args;
11558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11559 if (!SWIG_IsOK(res1)) {
11560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11561 }
11562 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11563 {
11564 PyThreadState* __tstate = wxPyBeginAllowThreads();
11565 (arg1)->Init();
11566 wxPyEndAllowThreads(__tstate);
11567 if (PyErr_Occurred()) SWIG_fail;
11568 }
11569 resultobj = SWIG_Py_Void();
11570 return resultobj;
11571 fail:
11572 return NULL;
11573 }
11574
11575
11576 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11577 PyObject *resultobj = 0;
11578 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11579 wxFont *arg2 = 0 ;
11580 void *argp1 = 0 ;
11581 int res1 = 0 ;
11582 void *argp2 = 0 ;
11583 int res2 = 0 ;
11584 PyObject * obj0 = 0 ;
11585 PyObject * obj1 = 0 ;
11586 char * kwnames[] = {
11587 (char *) "self",(char *) "font", NULL
11588 };
11589
11590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
11591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11592 if (!SWIG_IsOK(res1)) {
11593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11594 }
11595 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
11597 if (!SWIG_IsOK(res2)) {
11598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11599 }
11600 if (!argp2) {
11601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
11602 }
11603 arg2 = reinterpret_cast< wxFont * >(argp2);
11604 {
11605 PyThreadState* __tstate = wxPyBeginAllowThreads();
11606 (arg1)->InitFromFont((wxFont const &)*arg2);
11607 wxPyEndAllowThreads(__tstate);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 }
11610 resultobj = SWIG_Py_Void();
11611 return resultobj;
11612 fail:
11613 return NULL;
11614 }
11615
11616
11617 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11618 PyObject *resultobj = 0;
11619 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11620 int result;
11621 void *argp1 = 0 ;
11622 int res1 = 0 ;
11623 PyObject *swig_obj[1] ;
11624
11625 if (!args) SWIG_fail;
11626 swig_obj[0] = args;
11627 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11628 if (!SWIG_IsOK(res1)) {
11629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11630 }
11631 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11632 {
11633 PyThreadState* __tstate = wxPyBeginAllowThreads();
11634 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
11635 wxPyEndAllowThreads(__tstate);
11636 if (PyErr_Occurred()) SWIG_fail;
11637 }
11638 resultobj = SWIG_From_int(static_cast< int >(result));
11639 return resultobj;
11640 fail:
11641 return NULL;
11642 }
11643
11644
11645 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11646 PyObject *resultobj = 0;
11647 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11648 wxFontStyle result;
11649 void *argp1 = 0 ;
11650 int res1 = 0 ;
11651 PyObject *swig_obj[1] ;
11652
11653 if (!args) SWIG_fail;
11654 swig_obj[0] = args;
11655 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11656 if (!SWIG_IsOK(res1)) {
11657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11658 }
11659 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11660 {
11661 PyThreadState* __tstate = wxPyBeginAllowThreads();
11662 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
11663 wxPyEndAllowThreads(__tstate);
11664 if (PyErr_Occurred()) SWIG_fail;
11665 }
11666 resultobj = SWIG_From_int(static_cast< int >(result));
11667 return resultobj;
11668 fail:
11669 return NULL;
11670 }
11671
11672
11673 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11674 PyObject *resultobj = 0;
11675 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11676 wxFontWeight result;
11677 void *argp1 = 0 ;
11678 int res1 = 0 ;
11679 PyObject *swig_obj[1] ;
11680
11681 if (!args) SWIG_fail;
11682 swig_obj[0] = args;
11683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11684 if (!SWIG_IsOK(res1)) {
11685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11686 }
11687 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11688 {
11689 PyThreadState* __tstate = wxPyBeginAllowThreads();
11690 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
11691 wxPyEndAllowThreads(__tstate);
11692 if (PyErr_Occurred()) SWIG_fail;
11693 }
11694 resultobj = SWIG_From_int(static_cast< int >(result));
11695 return resultobj;
11696 fail:
11697 return NULL;
11698 }
11699
11700
11701 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11702 PyObject *resultobj = 0;
11703 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11704 bool result;
11705 void *argp1 = 0 ;
11706 int res1 = 0 ;
11707 PyObject *swig_obj[1] ;
11708
11709 if (!args) SWIG_fail;
11710 swig_obj[0] = args;
11711 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11712 if (!SWIG_IsOK(res1)) {
11713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11714 }
11715 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11716 {
11717 PyThreadState* __tstate = wxPyBeginAllowThreads();
11718 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
11719 wxPyEndAllowThreads(__tstate);
11720 if (PyErr_Occurred()) SWIG_fail;
11721 }
11722 {
11723 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11724 }
11725 return resultobj;
11726 fail:
11727 return NULL;
11728 }
11729
11730
11731 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11732 PyObject *resultobj = 0;
11733 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11734 wxString result;
11735 void *argp1 = 0 ;
11736 int res1 = 0 ;
11737 PyObject *swig_obj[1] ;
11738
11739 if (!args) SWIG_fail;
11740 swig_obj[0] = args;
11741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11742 if (!SWIG_IsOK(res1)) {
11743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11744 }
11745 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11746 {
11747 PyThreadState* __tstate = wxPyBeginAllowThreads();
11748 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
11749 wxPyEndAllowThreads(__tstate);
11750 if (PyErr_Occurred()) SWIG_fail;
11751 }
11752 {
11753 #if wxUSE_UNICODE
11754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11755 #else
11756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11757 #endif
11758 }
11759 return resultobj;
11760 fail:
11761 return NULL;
11762 }
11763
11764
11765 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11766 PyObject *resultobj = 0;
11767 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11768 wxFontFamily result;
11769 void *argp1 = 0 ;
11770 int res1 = 0 ;
11771 PyObject *swig_obj[1] ;
11772
11773 if (!args) SWIG_fail;
11774 swig_obj[0] = args;
11775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11776 if (!SWIG_IsOK(res1)) {
11777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11778 }
11779 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 resultobj = SWIG_From_int(static_cast< int >(result));
11787 return resultobj;
11788 fail:
11789 return NULL;
11790 }
11791
11792
11793 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11794 PyObject *resultobj = 0;
11795 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11796 wxFontEncoding result;
11797 void *argp1 = 0 ;
11798 int res1 = 0 ;
11799 PyObject *swig_obj[1] ;
11800
11801 if (!args) SWIG_fail;
11802 swig_obj[0] = args;
11803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11804 if (!SWIG_IsOK(res1)) {
11805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
11806 }
11807 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11808 {
11809 PyThreadState* __tstate = wxPyBeginAllowThreads();
11810 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
11811 wxPyEndAllowThreads(__tstate);
11812 if (PyErr_Occurred()) SWIG_fail;
11813 }
11814 resultobj = SWIG_From_int(static_cast< int >(result));
11815 return resultobj;
11816 fail:
11817 return NULL;
11818 }
11819
11820
11821 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11822 PyObject *resultobj = 0;
11823 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11824 int arg2 ;
11825 void *argp1 = 0 ;
11826 int res1 = 0 ;
11827 int val2 ;
11828 int ecode2 = 0 ;
11829 PyObject * obj0 = 0 ;
11830 PyObject * obj1 = 0 ;
11831 char * kwnames[] = {
11832 (char *) "self",(char *) "pointsize", NULL
11833 };
11834
11835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
11836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11837 if (!SWIG_IsOK(res1)) {
11838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11839 }
11840 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11841 ecode2 = SWIG_AsVal_int(obj1, &val2);
11842 if (!SWIG_IsOK(ecode2)) {
11843 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
11844 }
11845 arg2 = static_cast< int >(val2);
11846 {
11847 PyThreadState* __tstate = wxPyBeginAllowThreads();
11848 (arg1)->SetPointSize(arg2);
11849 wxPyEndAllowThreads(__tstate);
11850 if (PyErr_Occurred()) SWIG_fail;
11851 }
11852 resultobj = SWIG_Py_Void();
11853 return resultobj;
11854 fail:
11855 return NULL;
11856 }
11857
11858
11859 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11860 PyObject *resultobj = 0;
11861 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11862 wxFontStyle arg2 ;
11863 void *argp1 = 0 ;
11864 int res1 = 0 ;
11865 int val2 ;
11866 int ecode2 = 0 ;
11867 PyObject * obj0 = 0 ;
11868 PyObject * obj1 = 0 ;
11869 char * kwnames[] = {
11870 (char *) "self",(char *) "style", NULL
11871 };
11872
11873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
11874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11875 if (!SWIG_IsOK(res1)) {
11876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11877 }
11878 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11879 ecode2 = SWIG_AsVal_int(obj1, &val2);
11880 if (!SWIG_IsOK(ecode2)) {
11881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
11882 }
11883 arg2 = static_cast< wxFontStyle >(val2);
11884 {
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 (arg1)->SetStyle(arg2);
11887 wxPyEndAllowThreads(__tstate);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 resultobj = SWIG_Py_Void();
11891 return resultobj;
11892 fail:
11893 return NULL;
11894 }
11895
11896
11897 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11898 PyObject *resultobj = 0;
11899 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11900 wxFontWeight arg2 ;
11901 void *argp1 = 0 ;
11902 int res1 = 0 ;
11903 int val2 ;
11904 int ecode2 = 0 ;
11905 PyObject * obj0 = 0 ;
11906 PyObject * obj1 = 0 ;
11907 char * kwnames[] = {
11908 (char *) "self",(char *) "weight", NULL
11909 };
11910
11911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
11912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11913 if (!SWIG_IsOK(res1)) {
11914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11915 }
11916 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11917 ecode2 = SWIG_AsVal_int(obj1, &val2);
11918 if (!SWIG_IsOK(ecode2)) {
11919 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
11920 }
11921 arg2 = static_cast< wxFontWeight >(val2);
11922 {
11923 PyThreadState* __tstate = wxPyBeginAllowThreads();
11924 (arg1)->SetWeight(arg2);
11925 wxPyEndAllowThreads(__tstate);
11926 if (PyErr_Occurred()) SWIG_fail;
11927 }
11928 resultobj = SWIG_Py_Void();
11929 return resultobj;
11930 fail:
11931 return NULL;
11932 }
11933
11934
11935 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11936 PyObject *resultobj = 0;
11937 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11938 bool arg2 ;
11939 void *argp1 = 0 ;
11940 int res1 = 0 ;
11941 bool val2 ;
11942 int ecode2 = 0 ;
11943 PyObject * obj0 = 0 ;
11944 PyObject * obj1 = 0 ;
11945 char * kwnames[] = {
11946 (char *) "self",(char *) "underlined", NULL
11947 };
11948
11949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
11950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11951 if (!SWIG_IsOK(res1)) {
11952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11953 }
11954 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11955 ecode2 = SWIG_AsVal_bool(obj1, &val2);
11956 if (!SWIG_IsOK(ecode2)) {
11957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
11958 }
11959 arg2 = static_cast< bool >(val2);
11960 {
11961 PyThreadState* __tstate = wxPyBeginAllowThreads();
11962 (arg1)->SetUnderlined(arg2);
11963 wxPyEndAllowThreads(__tstate);
11964 if (PyErr_Occurred()) SWIG_fail;
11965 }
11966 resultobj = SWIG_Py_Void();
11967 return resultobj;
11968 fail:
11969 return NULL;
11970 }
11971
11972
11973 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11974 PyObject *resultobj = 0;
11975 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
11976 wxString arg2 ;
11977 bool result;
11978 void *argp1 = 0 ;
11979 int res1 = 0 ;
11980 PyObject * obj0 = 0 ;
11981 PyObject * obj1 = 0 ;
11982 char * kwnames[] = {
11983 (char *) "self",(char *) "facename", NULL
11984 };
11985
11986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
11987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11988 if (!SWIG_IsOK(res1)) {
11989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
11990 }
11991 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11992 {
11993 wxString* sptr = wxString_in_helper(obj1);
11994 if (sptr == NULL) SWIG_fail;
11995 arg2 = *sptr;
11996 delete sptr;
11997 }
11998 {
11999 PyThreadState* __tstate = wxPyBeginAllowThreads();
12000 result = (bool)(arg1)->SetFaceName(arg2);
12001 wxPyEndAllowThreads(__tstate);
12002 if (PyErr_Occurred()) SWIG_fail;
12003 }
12004 {
12005 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12006 }
12007 return resultobj;
12008 fail:
12009 return NULL;
12010 }
12011
12012
12013 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12014 PyObject *resultobj = 0;
12015 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12016 wxFontFamily arg2 ;
12017 void *argp1 = 0 ;
12018 int res1 = 0 ;
12019 int val2 ;
12020 int ecode2 = 0 ;
12021 PyObject * obj0 = 0 ;
12022 PyObject * obj1 = 0 ;
12023 char * kwnames[] = {
12024 (char *) "self",(char *) "family", NULL
12025 };
12026
12027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12029 if (!SWIG_IsOK(res1)) {
12030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12031 }
12032 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12033 ecode2 = SWIG_AsVal_int(obj1, &val2);
12034 if (!SWIG_IsOK(ecode2)) {
12035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12036 }
12037 arg2 = static_cast< wxFontFamily >(val2);
12038 {
12039 PyThreadState* __tstate = wxPyBeginAllowThreads();
12040 (arg1)->SetFamily(arg2);
12041 wxPyEndAllowThreads(__tstate);
12042 if (PyErr_Occurred()) SWIG_fail;
12043 }
12044 resultobj = SWIG_Py_Void();
12045 return resultobj;
12046 fail:
12047 return NULL;
12048 }
12049
12050
12051 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12052 PyObject *resultobj = 0;
12053 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12054 wxFontEncoding arg2 ;
12055 void *argp1 = 0 ;
12056 int res1 = 0 ;
12057 int val2 ;
12058 int ecode2 = 0 ;
12059 PyObject * obj0 = 0 ;
12060 PyObject * obj1 = 0 ;
12061 char * kwnames[] = {
12062 (char *) "self",(char *) "encoding", NULL
12063 };
12064
12065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12067 if (!SWIG_IsOK(res1)) {
12068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12069 }
12070 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12071 ecode2 = SWIG_AsVal_int(obj1, &val2);
12072 if (!SWIG_IsOK(ecode2)) {
12073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12074 }
12075 arg2 = static_cast< wxFontEncoding >(val2);
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 (arg1)->SetEncoding(arg2);
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 resultobj = SWIG_Py_Void();
12083 return resultobj;
12084 fail:
12085 return NULL;
12086 }
12087
12088
12089 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12090 PyObject *resultobj = 0;
12091 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12092 wxString *arg2 = 0 ;
12093 bool result;
12094 void *argp1 = 0 ;
12095 int res1 = 0 ;
12096 bool temp2 = false ;
12097 PyObject * obj0 = 0 ;
12098 PyObject * obj1 = 0 ;
12099 char * kwnames[] = {
12100 (char *) "self",(char *) "s", NULL
12101 };
12102
12103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12105 if (!SWIG_IsOK(res1)) {
12106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12107 }
12108 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12109 {
12110 arg2 = wxString_in_helper(obj1);
12111 if (arg2 == NULL) SWIG_fail;
12112 temp2 = true;
12113 }
12114 {
12115 PyThreadState* __tstate = wxPyBeginAllowThreads();
12116 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12117 wxPyEndAllowThreads(__tstate);
12118 if (PyErr_Occurred()) SWIG_fail;
12119 }
12120 {
12121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12122 }
12123 {
12124 if (temp2)
12125 delete arg2;
12126 }
12127 return resultobj;
12128 fail:
12129 {
12130 if (temp2)
12131 delete arg2;
12132 }
12133 return NULL;
12134 }
12135
12136
12137 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12138 PyObject *resultobj = 0;
12139 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12140 wxString result;
12141 void *argp1 = 0 ;
12142 int res1 = 0 ;
12143 PyObject *swig_obj[1] ;
12144
12145 if (!args) SWIG_fail;
12146 swig_obj[0] = args;
12147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12148 if (!SWIG_IsOK(res1)) {
12149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12150 }
12151 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12152 {
12153 PyThreadState* __tstate = wxPyBeginAllowThreads();
12154 result = ((wxNativeFontInfo const *)arg1)->ToString();
12155 wxPyEndAllowThreads(__tstate);
12156 if (PyErr_Occurred()) SWIG_fail;
12157 }
12158 {
12159 #if wxUSE_UNICODE
12160 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12161 #else
12162 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12163 #endif
12164 }
12165 return resultobj;
12166 fail:
12167 return NULL;
12168 }
12169
12170
12171 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12172 PyObject *resultobj = 0;
12173 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12174 wxString result;
12175 void *argp1 = 0 ;
12176 int res1 = 0 ;
12177 PyObject *swig_obj[1] ;
12178
12179 if (!args) SWIG_fail;
12180 swig_obj[0] = args;
12181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12182 if (!SWIG_IsOK(res1)) {
12183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12184 }
12185 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12186 {
12187 PyThreadState* __tstate = wxPyBeginAllowThreads();
12188 result = wxNativeFontInfo___str__(arg1);
12189 wxPyEndAllowThreads(__tstate);
12190 if (PyErr_Occurred()) SWIG_fail;
12191 }
12192 {
12193 #if wxUSE_UNICODE
12194 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12195 #else
12196 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12197 #endif
12198 }
12199 return resultobj;
12200 fail:
12201 return NULL;
12202 }
12203
12204
12205 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12206 PyObject *resultobj = 0;
12207 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12208 wxString *arg2 = 0 ;
12209 bool result;
12210 void *argp1 = 0 ;
12211 int res1 = 0 ;
12212 bool temp2 = false ;
12213 PyObject * obj0 = 0 ;
12214 PyObject * obj1 = 0 ;
12215 char * kwnames[] = {
12216 (char *) "self",(char *) "s", NULL
12217 };
12218
12219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
12220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12221 if (!SWIG_IsOK(res1)) {
12222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12223 }
12224 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12225 {
12226 arg2 = wxString_in_helper(obj1);
12227 if (arg2 == NULL) SWIG_fail;
12228 temp2 = true;
12229 }
12230 {
12231 PyThreadState* __tstate = wxPyBeginAllowThreads();
12232 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
12233 wxPyEndAllowThreads(__tstate);
12234 if (PyErr_Occurred()) SWIG_fail;
12235 }
12236 {
12237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12238 }
12239 {
12240 if (temp2)
12241 delete arg2;
12242 }
12243 return resultobj;
12244 fail:
12245 {
12246 if (temp2)
12247 delete arg2;
12248 }
12249 return NULL;
12250 }
12251
12252
12253 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12254 PyObject *resultobj = 0;
12255 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12256 wxString result;
12257 void *argp1 = 0 ;
12258 int res1 = 0 ;
12259 PyObject *swig_obj[1] ;
12260
12261 if (!args) SWIG_fail;
12262 swig_obj[0] = args;
12263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12264 if (!SWIG_IsOK(res1)) {
12265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12266 }
12267 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12268 {
12269 PyThreadState* __tstate = wxPyBeginAllowThreads();
12270 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
12271 wxPyEndAllowThreads(__tstate);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 {
12275 #if wxUSE_UNICODE
12276 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12277 #else
12278 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12279 #endif
12280 }
12281 return resultobj;
12282 fail:
12283 return NULL;
12284 }
12285
12286
12287 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12288 PyObject *obj;
12289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12290 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
12291 return SWIG_Py_Void();
12292 }
12293
12294 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12295 return SWIG_Python_InitShadowInstance(args);
12296 }
12297
12298 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12299 PyObject *resultobj = 0;
12300 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12301 wxString *arg2 = (wxString *) 0 ;
12302 void *argp1 = 0 ;
12303 int res1 = 0 ;
12304 bool temp2 = false ;
12305 PyObject *swig_obj[2] ;
12306
12307 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
12308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12309 if (!SWIG_IsOK(res1)) {
12310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12311 }
12312 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12313 {
12314 arg2 = wxString_in_helper(swig_obj[1]);
12315 if (arg2 == NULL) SWIG_fail;
12316 temp2 = true;
12317 }
12318 if (arg1) (arg1)->facename = *arg2;
12319
12320 resultobj = SWIG_Py_Void();
12321 {
12322 if (temp2)
12323 delete arg2;
12324 }
12325 return resultobj;
12326 fail:
12327 {
12328 if (temp2)
12329 delete arg2;
12330 }
12331 return NULL;
12332 }
12333
12334
12335 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12336 PyObject *resultobj = 0;
12337 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12338 wxString *result = 0 ;
12339 void *argp1 = 0 ;
12340 int res1 = 0 ;
12341 PyObject *swig_obj[1] ;
12342
12343 if (!args) SWIG_fail;
12344 swig_obj[0] = args;
12345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12346 if (!SWIG_IsOK(res1)) {
12347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12348 }
12349 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12350 result = (wxString *)& ((arg1)->facename);
12351 {
12352 #if wxUSE_UNICODE
12353 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
12354 #else
12355 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
12356 #endif
12357 }
12358 return resultobj;
12359 fail:
12360 return NULL;
12361 }
12362
12363
12364 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12365 PyObject *resultobj = 0;
12366 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12367 wxFontEncoding arg2 ;
12368 void *argp1 = 0 ;
12369 int res1 = 0 ;
12370 int val2 ;
12371 int ecode2 = 0 ;
12372 PyObject *swig_obj[2] ;
12373
12374 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
12375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12376 if (!SWIG_IsOK(res1)) {
12377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12378 }
12379 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12380 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12381 if (!SWIG_IsOK(ecode2)) {
12382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12383 }
12384 arg2 = static_cast< wxFontEncoding >(val2);
12385 if (arg1) (arg1)->encoding = arg2;
12386
12387 resultobj = SWIG_Py_Void();
12388 return resultobj;
12389 fail:
12390 return NULL;
12391 }
12392
12393
12394 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12395 PyObject *resultobj = 0;
12396 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12397 wxFontEncoding result;
12398 void *argp1 = 0 ;
12399 int res1 = 0 ;
12400 PyObject *swig_obj[1] ;
12401
12402 if (!args) SWIG_fail;
12403 swig_obj[0] = args;
12404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12405 if (!SWIG_IsOK(res1)) {
12406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12407 }
12408 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12409 result = (wxFontEncoding) ((arg1)->encoding);
12410 resultobj = SWIG_From_int(static_cast< int >(result));
12411 return resultobj;
12412 fail:
12413 return NULL;
12414 }
12415
12416
12417 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12418 PyObject *resultobj = 0;
12419 wxNativeEncodingInfo *result = 0 ;
12420
12421 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
12422 {
12423 PyThreadState* __tstate = wxPyBeginAllowThreads();
12424 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
12429 return resultobj;
12430 fail:
12431 return NULL;
12432 }
12433
12434
12435 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12436 PyObject *resultobj = 0;
12437 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12438 void *argp1 = 0 ;
12439 int res1 = 0 ;
12440 PyObject *swig_obj[1] ;
12441
12442 if (!args) SWIG_fail;
12443 swig_obj[0] = args;
12444 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
12445 if (!SWIG_IsOK(res1)) {
12446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12447 }
12448 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12449 {
12450 PyThreadState* __tstate = wxPyBeginAllowThreads();
12451 delete arg1;
12452
12453 wxPyEndAllowThreads(__tstate);
12454 if (PyErr_Occurred()) SWIG_fail;
12455 }
12456 resultobj = SWIG_Py_Void();
12457 return resultobj;
12458 fail:
12459 return NULL;
12460 }
12461
12462
12463 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12464 PyObject *resultobj = 0;
12465 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12466 wxString *arg2 = 0 ;
12467 bool result;
12468 void *argp1 = 0 ;
12469 int res1 = 0 ;
12470 bool temp2 = false ;
12471 PyObject * obj0 = 0 ;
12472 PyObject * obj1 = 0 ;
12473 char * kwnames[] = {
12474 (char *) "self",(char *) "s", NULL
12475 };
12476
12477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12479 if (!SWIG_IsOK(res1)) {
12480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
12481 }
12482 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12483 {
12484 arg2 = wxString_in_helper(obj1);
12485 if (arg2 == NULL) SWIG_fail;
12486 temp2 = true;
12487 }
12488 {
12489 PyThreadState* __tstate = wxPyBeginAllowThreads();
12490 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12491 wxPyEndAllowThreads(__tstate);
12492 if (PyErr_Occurred()) SWIG_fail;
12493 }
12494 {
12495 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12496 }
12497 {
12498 if (temp2)
12499 delete arg2;
12500 }
12501 return resultobj;
12502 fail:
12503 {
12504 if (temp2)
12505 delete arg2;
12506 }
12507 return NULL;
12508 }
12509
12510
12511 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12512 PyObject *resultobj = 0;
12513 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
12514 wxString result;
12515 void *argp1 = 0 ;
12516 int res1 = 0 ;
12517 PyObject *swig_obj[1] ;
12518
12519 if (!args) SWIG_fail;
12520 swig_obj[0] = args;
12521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12522 if (!SWIG_IsOK(res1)) {
12523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
12524 }
12525 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12526 {
12527 PyThreadState* __tstate = wxPyBeginAllowThreads();
12528 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
12529 wxPyEndAllowThreads(__tstate);
12530 if (PyErr_Occurred()) SWIG_fail;
12531 }
12532 {
12533 #if wxUSE_UNICODE
12534 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12535 #else
12536 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12537 #endif
12538 }
12539 return resultobj;
12540 fail:
12541 return NULL;
12542 }
12543
12544
12545 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12546 PyObject *obj;
12547 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12548 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
12549 return SWIG_Py_Void();
12550 }
12551
12552 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12553 return SWIG_Python_InitShadowInstance(args);
12554 }
12555
12556 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12557 PyObject *resultobj = 0;
12558 wxFontEncoding arg1 ;
12559 wxNativeEncodingInfo *result = 0 ;
12560 int val1 ;
12561 int ecode1 = 0 ;
12562 PyObject * obj0 = 0 ;
12563 char * kwnames[] = {
12564 (char *) "encoding", NULL
12565 };
12566
12567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
12568 ecode1 = SWIG_AsVal_int(obj0, &val1);
12569 if (!SWIG_IsOK(ecode1)) {
12570 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12571 }
12572 arg1 = static_cast< wxFontEncoding >(val1);
12573 {
12574 PyThreadState* __tstate = wxPyBeginAllowThreads();
12575 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
12576 wxPyEndAllowThreads(__tstate);
12577 if (PyErr_Occurred()) SWIG_fail;
12578 }
12579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
12580 return resultobj;
12581 fail:
12582 return NULL;
12583 }
12584
12585
12586 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12587 PyObject *resultobj = 0;
12588 wxNativeEncodingInfo *arg1 = 0 ;
12589 bool result;
12590 void *argp1 = 0 ;
12591 int res1 = 0 ;
12592 PyObject * obj0 = 0 ;
12593 char * kwnames[] = {
12594 (char *) "info", NULL
12595 };
12596
12597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
12598 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
12599 if (!SWIG_IsOK(res1)) {
12600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12601 }
12602 if (!argp1) {
12603 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
12604 }
12605 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
12606 {
12607 PyThreadState* __tstate = wxPyBeginAllowThreads();
12608 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
12609 wxPyEndAllowThreads(__tstate);
12610 if (PyErr_Occurred()) SWIG_fail;
12611 }
12612 {
12613 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12614 }
12615 return resultobj;
12616 fail:
12617 return NULL;
12618 }
12619
12620
12621 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12622 PyObject *resultobj = 0;
12623 wxFontMapper *result = 0 ;
12624
12625 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
12626 {
12627 PyThreadState* __tstate = wxPyBeginAllowThreads();
12628 result = (wxFontMapper *)new wxFontMapper();
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
12633 return resultobj;
12634 fail:
12635 return NULL;
12636 }
12637
12638
12639 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12640 PyObject *resultobj = 0;
12641 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12642 void *argp1 = 0 ;
12643 int res1 = 0 ;
12644 PyObject *swig_obj[1] ;
12645
12646 if (!args) SWIG_fail;
12647 swig_obj[0] = args;
12648 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
12649 if (!SWIG_IsOK(res1)) {
12650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12651 }
12652 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12653 {
12654 PyThreadState* __tstate = wxPyBeginAllowThreads();
12655 delete arg1;
12656
12657 wxPyEndAllowThreads(__tstate);
12658 if (PyErr_Occurred()) SWIG_fail;
12659 }
12660 resultobj = SWIG_Py_Void();
12661 return resultobj;
12662 fail:
12663 return NULL;
12664 }
12665
12666
12667 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12668 PyObject *resultobj = 0;
12669 wxFontMapper *result = 0 ;
12670
12671 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
12672 {
12673 PyThreadState* __tstate = wxPyBeginAllowThreads();
12674 result = (wxFontMapper *)wxFontMapper::Get();
12675 wxPyEndAllowThreads(__tstate);
12676 if (PyErr_Occurred()) SWIG_fail;
12677 }
12678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12679 return resultobj;
12680 fail:
12681 return NULL;
12682 }
12683
12684
12685 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12686 PyObject *resultobj = 0;
12687 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12688 wxFontMapper *result = 0 ;
12689 void *argp1 = 0 ;
12690 int res1 = 0 ;
12691 PyObject * obj0 = 0 ;
12692 char * kwnames[] = {
12693 (char *) "mapper", NULL
12694 };
12695
12696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
12697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12698 if (!SWIG_IsOK(res1)) {
12699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12700 }
12701 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12702 {
12703 PyThreadState* __tstate = wxPyBeginAllowThreads();
12704 result = (wxFontMapper *)wxFontMapper::Set(arg1);
12705 wxPyEndAllowThreads(__tstate);
12706 if (PyErr_Occurred()) SWIG_fail;
12707 }
12708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
12709 return resultobj;
12710 fail:
12711 return NULL;
12712 }
12713
12714
12715 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12716 PyObject *resultobj = 0;
12717 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12718 wxString *arg2 = 0 ;
12719 bool arg3 = (bool) true ;
12720 wxFontEncoding result;
12721 void *argp1 = 0 ;
12722 int res1 = 0 ;
12723 bool temp2 = false ;
12724 bool val3 ;
12725 int ecode3 = 0 ;
12726 PyObject * obj0 = 0 ;
12727 PyObject * obj1 = 0 ;
12728 PyObject * obj2 = 0 ;
12729 char * kwnames[] = {
12730 (char *) "self",(char *) "charset",(char *) "interactive", NULL
12731 };
12732
12733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12735 if (!SWIG_IsOK(res1)) {
12736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12737 }
12738 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12739 {
12740 arg2 = wxString_in_helper(obj1);
12741 if (arg2 == NULL) SWIG_fail;
12742 temp2 = true;
12743 }
12744 if (obj2) {
12745 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12746 if (!SWIG_IsOK(ecode3)) {
12747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
12748 }
12749 arg3 = static_cast< bool >(val3);
12750 }
12751 {
12752 PyThreadState* __tstate = wxPyBeginAllowThreads();
12753 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
12754 wxPyEndAllowThreads(__tstate);
12755 if (PyErr_Occurred()) SWIG_fail;
12756 }
12757 resultobj = SWIG_From_int(static_cast< int >(result));
12758 {
12759 if (temp2)
12760 delete arg2;
12761 }
12762 return resultobj;
12763 fail:
12764 {
12765 if (temp2)
12766 delete arg2;
12767 }
12768 return NULL;
12769 }
12770
12771
12772 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12773 PyObject *resultobj = 0;
12774 size_t result;
12775
12776 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
12777 {
12778 PyThreadState* __tstate = wxPyBeginAllowThreads();
12779 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
12780 wxPyEndAllowThreads(__tstate);
12781 if (PyErr_Occurred()) SWIG_fail;
12782 }
12783 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
12784 return resultobj;
12785 fail:
12786 return NULL;
12787 }
12788
12789
12790 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12791 PyObject *resultobj = 0;
12792 size_t arg1 ;
12793 wxFontEncoding result;
12794 size_t val1 ;
12795 int ecode1 = 0 ;
12796 PyObject * obj0 = 0 ;
12797 char * kwnames[] = {
12798 (char *) "n", NULL
12799 };
12800
12801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
12802 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
12803 if (!SWIG_IsOK(ecode1)) {
12804 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
12805 }
12806 arg1 = static_cast< size_t >(val1);
12807 {
12808 PyThreadState* __tstate = wxPyBeginAllowThreads();
12809 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
12810 wxPyEndAllowThreads(__tstate);
12811 if (PyErr_Occurred()) SWIG_fail;
12812 }
12813 resultobj = SWIG_From_int(static_cast< int >(result));
12814 return resultobj;
12815 fail:
12816 return NULL;
12817 }
12818
12819
12820 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12821 PyObject *resultobj = 0;
12822 wxFontEncoding arg1 ;
12823 wxString result;
12824 int val1 ;
12825 int ecode1 = 0 ;
12826 PyObject * obj0 = 0 ;
12827 char * kwnames[] = {
12828 (char *) "encoding", NULL
12829 };
12830
12831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
12832 ecode1 = SWIG_AsVal_int(obj0, &val1);
12833 if (!SWIG_IsOK(ecode1)) {
12834 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12835 }
12836 arg1 = static_cast< wxFontEncoding >(val1);
12837 {
12838 PyThreadState* __tstate = wxPyBeginAllowThreads();
12839 result = wxFontMapper::GetEncodingName(arg1);
12840 wxPyEndAllowThreads(__tstate);
12841 if (PyErr_Occurred()) SWIG_fail;
12842 }
12843 {
12844 #if wxUSE_UNICODE
12845 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12846 #else
12847 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12848 #endif
12849 }
12850 return resultobj;
12851 fail:
12852 return NULL;
12853 }
12854
12855
12856 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12857 PyObject *resultobj = 0;
12858 wxFontEncoding arg1 ;
12859 wxString result;
12860 int val1 ;
12861 int ecode1 = 0 ;
12862 PyObject * obj0 = 0 ;
12863 char * kwnames[] = {
12864 (char *) "encoding", NULL
12865 };
12866
12867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
12868 ecode1 = SWIG_AsVal_int(obj0, &val1);
12869 if (!SWIG_IsOK(ecode1)) {
12870 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12871 }
12872 arg1 = static_cast< wxFontEncoding >(val1);
12873 {
12874 PyThreadState* __tstate = wxPyBeginAllowThreads();
12875 result = wxFontMapper::GetEncodingDescription(arg1);
12876 wxPyEndAllowThreads(__tstate);
12877 if (PyErr_Occurred()) SWIG_fail;
12878 }
12879 {
12880 #if wxUSE_UNICODE
12881 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12882 #else
12883 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12884 #endif
12885 }
12886 return resultobj;
12887 fail:
12888 return NULL;
12889 }
12890
12891
12892 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12893 PyObject *resultobj = 0;
12894 wxString *arg1 = 0 ;
12895 wxFontEncoding result;
12896 bool temp1 = false ;
12897 PyObject * obj0 = 0 ;
12898 char * kwnames[] = {
12899 (char *) "name", NULL
12900 };
12901
12902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
12903 {
12904 arg1 = wxString_in_helper(obj0);
12905 if (arg1 == NULL) SWIG_fail;
12906 temp1 = true;
12907 }
12908 {
12909 PyThreadState* __tstate = wxPyBeginAllowThreads();
12910 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
12911 wxPyEndAllowThreads(__tstate);
12912 if (PyErr_Occurred()) SWIG_fail;
12913 }
12914 resultobj = SWIG_From_int(static_cast< int >(result));
12915 {
12916 if (temp1)
12917 delete arg1;
12918 }
12919 return resultobj;
12920 fail:
12921 {
12922 if (temp1)
12923 delete arg1;
12924 }
12925 return NULL;
12926 }
12927
12928
12929 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12930 PyObject *resultobj = 0;
12931 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
12932 wxString *arg2 = 0 ;
12933 void *argp1 = 0 ;
12934 int res1 = 0 ;
12935 bool temp2 = false ;
12936 PyObject * obj0 = 0 ;
12937 PyObject * obj1 = 0 ;
12938 char * kwnames[] = {
12939 (char *) "self",(char *) "prefix", NULL
12940 };
12941
12942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
12943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
12944 if (!SWIG_IsOK(res1)) {
12945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
12946 }
12947 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
12948 {
12949 arg2 = wxString_in_helper(obj1);
12950 if (arg2 == NULL) SWIG_fail;
12951 temp2 = true;
12952 }
12953 {
12954 PyThreadState* __tstate = wxPyBeginAllowThreads();
12955 (arg1)->SetConfigPath((wxString const &)*arg2);
12956 wxPyEndAllowThreads(__tstate);
12957 if (PyErr_Occurred()) SWIG_fail;
12958 }
12959 resultobj = SWIG_Py_Void();
12960 {
12961 if (temp2)
12962 delete arg2;
12963 }
12964 return resultobj;
12965 fail:
12966 {
12967 if (temp2)
12968 delete arg2;
12969 }
12970 return NULL;
12971 }
12972
12973
12974 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12975 PyObject *resultobj = 0;
12976 wxString result;
12977
12978 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
12979 {
12980 PyThreadState* __tstate = wxPyBeginAllowThreads();
12981 result = wxFontMapper::GetDefaultConfigPath();
12982 wxPyEndAllowThreads(__tstate);
12983 if (PyErr_Occurred()) SWIG_fail;
12984 }
12985 {
12986 #if wxUSE_UNICODE
12987 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12988 #else
12989 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12990 #endif
12991 }
12992 return resultobj;
12993 fail:
12994 return NULL;
12995 }
12996
12997
12998 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12999 PyObject *resultobj = 0;
13000 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13001 wxFontEncoding arg2 ;
13002 wxString const &arg3_defvalue = wxPyEmptyString ;
13003 wxString *arg3 = (wxString *) &arg3_defvalue ;
13004 bool arg4 = (bool) true ;
13005 PyObject *result = 0 ;
13006 void *argp1 = 0 ;
13007 int res1 = 0 ;
13008 int val2 ;
13009 int ecode2 = 0 ;
13010 bool temp3 = false ;
13011 bool val4 ;
13012 int ecode4 = 0 ;
13013 PyObject * obj0 = 0 ;
13014 PyObject * obj1 = 0 ;
13015 PyObject * obj2 = 0 ;
13016 PyObject * obj3 = 0 ;
13017 char * kwnames[] = {
13018 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13019 };
13020
13021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13023 if (!SWIG_IsOK(res1)) {
13024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13025 }
13026 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13027 ecode2 = SWIG_AsVal_int(obj1, &val2);
13028 if (!SWIG_IsOK(ecode2)) {
13029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13030 }
13031 arg2 = static_cast< wxFontEncoding >(val2);
13032 if (obj2) {
13033 {
13034 arg3 = wxString_in_helper(obj2);
13035 if (arg3 == NULL) SWIG_fail;
13036 temp3 = true;
13037 }
13038 }
13039 if (obj3) {
13040 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13041 if (!SWIG_IsOK(ecode4)) {
13042 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13043 }
13044 arg4 = static_cast< bool >(val4);
13045 }
13046 {
13047 PyThreadState* __tstate = wxPyBeginAllowThreads();
13048 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13049 wxPyEndAllowThreads(__tstate);
13050 if (PyErr_Occurred()) SWIG_fail;
13051 }
13052 resultobj = result;
13053 {
13054 if (temp3)
13055 delete arg3;
13056 }
13057 return resultobj;
13058 fail:
13059 {
13060 if (temp3)
13061 delete arg3;
13062 }
13063 return NULL;
13064 }
13065
13066
13067 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13068 PyObject *resultobj = 0;
13069 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13070 wxFontEncoding arg2 ;
13071 wxString const &arg3_defvalue = wxPyEmptyString ;
13072 wxString *arg3 = (wxString *) &arg3_defvalue ;
13073 bool result;
13074 void *argp1 = 0 ;
13075 int res1 = 0 ;
13076 int val2 ;
13077 int ecode2 = 0 ;
13078 bool temp3 = false ;
13079 PyObject * obj0 = 0 ;
13080 PyObject * obj1 = 0 ;
13081 PyObject * obj2 = 0 ;
13082 char * kwnames[] = {
13083 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13084 };
13085
13086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13088 if (!SWIG_IsOK(res1)) {
13089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13090 }
13091 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13092 ecode2 = SWIG_AsVal_int(obj1, &val2);
13093 if (!SWIG_IsOK(ecode2)) {
13094 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13095 }
13096 arg2 = static_cast< wxFontEncoding >(val2);
13097 if (obj2) {
13098 {
13099 arg3 = wxString_in_helper(obj2);
13100 if (arg3 == NULL) SWIG_fail;
13101 temp3 = true;
13102 }
13103 }
13104 {
13105 PyThreadState* __tstate = wxPyBeginAllowThreads();
13106 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13107 wxPyEndAllowThreads(__tstate);
13108 if (PyErr_Occurred()) SWIG_fail;
13109 }
13110 {
13111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13112 }
13113 {
13114 if (temp3)
13115 delete arg3;
13116 }
13117 return resultobj;
13118 fail:
13119 {
13120 if (temp3)
13121 delete arg3;
13122 }
13123 return NULL;
13124 }
13125
13126
13127 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13128 PyObject *resultobj = 0;
13129 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13130 wxWindow *arg2 = (wxWindow *) 0 ;
13131 void *argp1 = 0 ;
13132 int res1 = 0 ;
13133 void *argp2 = 0 ;
13134 int res2 = 0 ;
13135 PyObject * obj0 = 0 ;
13136 PyObject * obj1 = 0 ;
13137 char * kwnames[] = {
13138 (char *) "self",(char *) "parent", NULL
13139 };
13140
13141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13143 if (!SWIG_IsOK(res1)) {
13144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13145 }
13146 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13147 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
13148 if (!SWIG_IsOK(res2)) {
13149 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
13150 }
13151 arg2 = reinterpret_cast< wxWindow * >(argp2);
13152 {
13153 PyThreadState* __tstate = wxPyBeginAllowThreads();
13154 (arg1)->SetDialogParent(arg2);
13155 wxPyEndAllowThreads(__tstate);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 resultobj = SWIG_Py_Void();
13159 return resultobj;
13160 fail:
13161 return NULL;
13162 }
13163
13164
13165 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13166 PyObject *resultobj = 0;
13167 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13168 wxString *arg2 = 0 ;
13169 void *argp1 = 0 ;
13170 int res1 = 0 ;
13171 bool temp2 = false ;
13172 PyObject * obj0 = 0 ;
13173 PyObject * obj1 = 0 ;
13174 char * kwnames[] = {
13175 (char *) "self",(char *) "title", NULL
13176 };
13177
13178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
13179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13180 if (!SWIG_IsOK(res1)) {
13181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13182 }
13183 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13184 {
13185 arg2 = wxString_in_helper(obj1);
13186 if (arg2 == NULL) SWIG_fail;
13187 temp2 = true;
13188 }
13189 {
13190 PyThreadState* __tstate = wxPyBeginAllowThreads();
13191 (arg1)->SetDialogTitle((wxString const &)*arg2);
13192 wxPyEndAllowThreads(__tstate);
13193 if (PyErr_Occurred()) SWIG_fail;
13194 }
13195 resultobj = SWIG_Py_Void();
13196 {
13197 if (temp2)
13198 delete arg2;
13199 }
13200 return resultobj;
13201 fail:
13202 {
13203 if (temp2)
13204 delete arg2;
13205 }
13206 return NULL;
13207 }
13208
13209
13210 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13211 PyObject *obj;
13212 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13213 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
13214 return SWIG_Py_Void();
13215 }
13216
13217 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13218 return SWIG_Python_InitShadowInstance(args);
13219 }
13220
13221 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13222 PyObject *resultobj = 0;
13223 int arg1 ;
13224 int arg2 ;
13225 int arg3 ;
13226 int arg4 ;
13227 bool arg5 = (bool) false ;
13228 wxString const &arg6_defvalue = wxPyEmptyString ;
13229 wxString *arg6 = (wxString *) &arg6_defvalue ;
13230 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13231 wxFont *result = 0 ;
13232 int val1 ;
13233 int ecode1 = 0 ;
13234 int val2 ;
13235 int ecode2 = 0 ;
13236 int val3 ;
13237 int ecode3 = 0 ;
13238 int val4 ;
13239 int ecode4 = 0 ;
13240 bool val5 ;
13241 int ecode5 = 0 ;
13242 bool temp6 = false ;
13243 int val7 ;
13244 int ecode7 = 0 ;
13245 PyObject * obj0 = 0 ;
13246 PyObject * obj1 = 0 ;
13247 PyObject * obj2 = 0 ;
13248 PyObject * obj3 = 0 ;
13249 PyObject * obj4 = 0 ;
13250 PyObject * obj5 = 0 ;
13251 PyObject * obj6 = 0 ;
13252 char * kwnames[] = {
13253 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
13254 };
13255
13256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13257 ecode1 = SWIG_AsVal_int(obj0, &val1);
13258 if (!SWIG_IsOK(ecode1)) {
13259 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
13260 }
13261 arg1 = static_cast< int >(val1);
13262 ecode2 = SWIG_AsVal_int(obj1, &val2);
13263 if (!SWIG_IsOK(ecode2)) {
13264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
13265 }
13266 arg2 = static_cast< int >(val2);
13267 ecode3 = SWIG_AsVal_int(obj2, &val3);
13268 if (!SWIG_IsOK(ecode3)) {
13269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
13270 }
13271 arg3 = static_cast< int >(val3);
13272 ecode4 = SWIG_AsVal_int(obj3, &val4);
13273 if (!SWIG_IsOK(ecode4)) {
13274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
13275 }
13276 arg4 = static_cast< int >(val4);
13277 if (obj4) {
13278 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13279 if (!SWIG_IsOK(ecode5)) {
13280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
13281 }
13282 arg5 = static_cast< bool >(val5);
13283 }
13284 if (obj5) {
13285 {
13286 arg6 = wxString_in_helper(obj5);
13287 if (arg6 == NULL) SWIG_fail;
13288 temp6 = true;
13289 }
13290 }
13291 if (obj6) {
13292 ecode7 = SWIG_AsVal_int(obj6, &val7);
13293 if (!SWIG_IsOK(ecode7)) {
13294 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13295 }
13296 arg7 = static_cast< wxFontEncoding >(val7);
13297 }
13298 {
13299 if (!wxPyCheckForApp()) SWIG_fail;
13300 PyThreadState* __tstate = wxPyBeginAllowThreads();
13301 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
13306 {
13307 if (temp6)
13308 delete arg6;
13309 }
13310 return resultobj;
13311 fail:
13312 {
13313 if (temp6)
13314 delete arg6;
13315 }
13316 return NULL;
13317 }
13318
13319
13320 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13321 PyObject *resultobj = 0;
13322 wxFont *arg1 = (wxFont *) 0 ;
13323 void *argp1 = 0 ;
13324 int res1 = 0 ;
13325 PyObject *swig_obj[1] ;
13326
13327 if (!args) SWIG_fail;
13328 swig_obj[0] = args;
13329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
13330 if (!SWIG_IsOK(res1)) {
13331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
13332 }
13333 arg1 = reinterpret_cast< wxFont * >(argp1);
13334 {
13335 PyThreadState* __tstate = wxPyBeginAllowThreads();
13336 delete arg1;
13337
13338 wxPyEndAllowThreads(__tstate);
13339 if (PyErr_Occurred()) SWIG_fail;
13340 }
13341 resultobj = SWIG_Py_Void();
13342 return resultobj;
13343 fail:
13344 return NULL;
13345 }
13346
13347
13348 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13349 PyObject *resultobj = 0;
13350 wxNativeFontInfo *arg1 = 0 ;
13351 wxFont *result = 0 ;
13352 void *argp1 = 0 ;
13353 int res1 = 0 ;
13354 PyObject * obj0 = 0 ;
13355 char * kwnames[] = {
13356 (char *) "info", NULL
13357 };
13358
13359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
13360 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13361 if (!SWIG_IsOK(res1)) {
13362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13363 }
13364 if (!argp1) {
13365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
13366 }
13367 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13368 {
13369 if (!wxPyCheckForApp()) SWIG_fail;
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
13372 wxPyEndAllowThreads(__tstate);
13373 if (PyErr_Occurred()) SWIG_fail;
13374 }
13375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13376 return resultobj;
13377 fail:
13378 return NULL;
13379 }
13380
13381
13382 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13383 PyObject *resultobj = 0;
13384 wxString *arg1 = 0 ;
13385 wxFont *result = 0 ;
13386 bool temp1 = false ;
13387 PyObject * obj0 = 0 ;
13388 char * kwnames[] = {
13389 (char *) "info", NULL
13390 };
13391
13392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
13393 {
13394 arg1 = wxString_in_helper(obj0);
13395 if (arg1 == NULL) SWIG_fail;
13396 temp1 = true;
13397 }
13398 {
13399 if (!wxPyCheckForApp()) SWIG_fail;
13400 PyThreadState* __tstate = wxPyBeginAllowThreads();
13401 result = (wxFont *)new_wxFont((wxString const &)*arg1);
13402 wxPyEndAllowThreads(__tstate);
13403 if (PyErr_Occurred()) SWIG_fail;
13404 }
13405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13406 {
13407 if (temp1)
13408 delete arg1;
13409 }
13410 return resultobj;
13411 fail:
13412 {
13413 if (temp1)
13414 delete arg1;
13415 }
13416 return NULL;
13417 }
13418
13419
13420 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13421 PyObject *resultobj = 0;
13422 int arg1 ;
13423 wxFontFamily arg2 ;
13424 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13425 wxString const &arg4_defvalue = wxPyEmptyString ;
13426 wxString *arg4 = (wxString *) &arg4_defvalue ;
13427 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13428 wxFont *result = 0 ;
13429 int val1 ;
13430 int ecode1 = 0 ;
13431 int val2 ;
13432 int ecode2 = 0 ;
13433 int val3 ;
13434 int ecode3 = 0 ;
13435 bool temp4 = false ;
13436 int val5 ;
13437 int ecode5 = 0 ;
13438 PyObject * obj0 = 0 ;
13439 PyObject * obj1 = 0 ;
13440 PyObject * obj2 = 0 ;
13441 PyObject * obj3 = 0 ;
13442 PyObject * obj4 = 0 ;
13443 char * kwnames[] = {
13444 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13445 };
13446
13447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13448 ecode1 = SWIG_AsVal_int(obj0, &val1);
13449 if (!SWIG_IsOK(ecode1)) {
13450 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
13451 }
13452 arg1 = static_cast< int >(val1);
13453 ecode2 = SWIG_AsVal_int(obj1, &val2);
13454 if (!SWIG_IsOK(ecode2)) {
13455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
13456 }
13457 arg2 = static_cast< wxFontFamily >(val2);
13458 if (obj2) {
13459 ecode3 = SWIG_AsVal_int(obj2, &val3);
13460 if (!SWIG_IsOK(ecode3)) {
13461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
13462 }
13463 arg3 = static_cast< int >(val3);
13464 }
13465 if (obj3) {
13466 {
13467 arg4 = wxString_in_helper(obj3);
13468 if (arg4 == NULL) SWIG_fail;
13469 temp4 = true;
13470 }
13471 }
13472 if (obj4) {
13473 ecode5 = SWIG_AsVal_int(obj4, &val5);
13474 if (!SWIG_IsOK(ecode5)) {
13475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13476 }
13477 arg5 = static_cast< wxFontEncoding >(val5);
13478 }
13479 {
13480 if (!wxPyCheckForApp()) SWIG_fail;
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13487 {
13488 if (temp4)
13489 delete arg4;
13490 }
13491 return resultobj;
13492 fail:
13493 {
13494 if (temp4)
13495 delete arg4;
13496 }
13497 return NULL;
13498 }
13499
13500
13501 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13502 PyObject *resultobj = 0;
13503 wxSize *arg1 = 0 ;
13504 int arg2 ;
13505 int arg3 ;
13506 int arg4 ;
13507 bool arg5 = (bool) false ;
13508 wxString const &arg6_defvalue = wxEmptyString ;
13509 wxString *arg6 = (wxString *) &arg6_defvalue ;
13510 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13511 wxFont *result = 0 ;
13512 wxSize temp1 ;
13513 int val2 ;
13514 int ecode2 = 0 ;
13515 int val3 ;
13516 int ecode3 = 0 ;
13517 int val4 ;
13518 int ecode4 = 0 ;
13519 bool val5 ;
13520 int ecode5 = 0 ;
13521 bool temp6 = false ;
13522 int val7 ;
13523 int ecode7 = 0 ;
13524 PyObject * obj0 = 0 ;
13525 PyObject * obj1 = 0 ;
13526 PyObject * obj2 = 0 ;
13527 PyObject * obj3 = 0 ;
13528 PyObject * obj4 = 0 ;
13529 PyObject * obj5 = 0 ;
13530 PyObject * obj6 = 0 ;
13531 char * kwnames[] = {
13532 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
13533 };
13534
13535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
13536 {
13537 arg1 = &temp1;
13538 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13539 }
13540 ecode2 = SWIG_AsVal_int(obj1, &val2);
13541 if (!SWIG_IsOK(ecode2)) {
13542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
13543 }
13544 arg2 = static_cast< int >(val2);
13545 ecode3 = SWIG_AsVal_int(obj2, &val3);
13546 if (!SWIG_IsOK(ecode3)) {
13547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13548 }
13549 arg3 = static_cast< int >(val3);
13550 ecode4 = SWIG_AsVal_int(obj3, &val4);
13551 if (!SWIG_IsOK(ecode4)) {
13552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
13553 }
13554 arg4 = static_cast< int >(val4);
13555 if (obj4) {
13556 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13557 if (!SWIG_IsOK(ecode5)) {
13558 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
13559 }
13560 arg5 = static_cast< bool >(val5);
13561 }
13562 if (obj5) {
13563 {
13564 arg6 = wxString_in_helper(obj5);
13565 if (arg6 == NULL) SWIG_fail;
13566 temp6 = true;
13567 }
13568 }
13569 if (obj6) {
13570 ecode7 = SWIG_AsVal_int(obj6, &val7);
13571 if (!SWIG_IsOK(ecode7)) {
13572 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
13573 }
13574 arg7 = static_cast< wxFontEncoding >(val7);
13575 }
13576 {
13577 if (!wxPyCheckForApp()) SWIG_fail;
13578 PyThreadState* __tstate = wxPyBeginAllowThreads();
13579 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
13580 wxPyEndAllowThreads(__tstate);
13581 if (PyErr_Occurred()) SWIG_fail;
13582 }
13583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13584 {
13585 if (temp6)
13586 delete arg6;
13587 }
13588 return resultobj;
13589 fail:
13590 {
13591 if (temp6)
13592 delete arg6;
13593 }
13594 return NULL;
13595 }
13596
13597
13598 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13599 PyObject *resultobj = 0;
13600 wxSize *arg1 = 0 ;
13601 wxFontFamily arg2 ;
13602 int arg3 = (int) wxFONTFLAG_DEFAULT ;
13603 wxString const &arg4_defvalue = wxEmptyString ;
13604 wxString *arg4 = (wxString *) &arg4_defvalue ;
13605 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
13606 wxFont *result = 0 ;
13607 wxSize temp1 ;
13608 int val2 ;
13609 int ecode2 = 0 ;
13610 int val3 ;
13611 int ecode3 = 0 ;
13612 bool temp4 = false ;
13613 int val5 ;
13614 int ecode5 = 0 ;
13615 PyObject * obj0 = 0 ;
13616 PyObject * obj1 = 0 ;
13617 PyObject * obj2 = 0 ;
13618 PyObject * obj3 = 0 ;
13619 PyObject * obj4 = 0 ;
13620 char * kwnames[] = {
13621 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
13622 };
13623
13624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
13625 {
13626 arg1 = &temp1;
13627 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
13628 }
13629 ecode2 = SWIG_AsVal_int(obj1, &val2);
13630 if (!SWIG_IsOK(ecode2)) {
13631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
13632 }
13633 arg2 = static_cast< wxFontFamily >(val2);
13634 if (obj2) {
13635 ecode3 = SWIG_AsVal_int(obj2, &val3);
13636 if (!SWIG_IsOK(ecode3)) {
13637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
13638 }
13639 arg3 = static_cast< int >(val3);
13640 }
13641 if (obj3) {
13642 {
13643 arg4 = wxString_in_helper(obj3);
13644 if (arg4 == NULL) SWIG_fail;
13645 temp4 = true;
13646 }
13647 }
13648 if (obj4) {
13649 ecode5 = SWIG_AsVal_int(obj4, &val5);
13650 if (!SWIG_IsOK(ecode5)) {
13651 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
13652 }
13653 arg5 = static_cast< wxFontEncoding >(val5);
13654 }
13655 {
13656 if (!wxPyCheckForApp()) SWIG_fail;
13657 PyThreadState* __tstate = wxPyBeginAllowThreads();
13658 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
13659 wxPyEndAllowThreads(__tstate);
13660 if (PyErr_Occurred()) SWIG_fail;
13661 }
13662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
13663 {
13664 if (temp4)
13665 delete arg4;
13666 }
13667 return resultobj;
13668 fail:
13669 {
13670 if (temp4)
13671 delete arg4;
13672 }
13673 return NULL;
13674 }
13675
13676
13677 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13678 PyObject *resultobj = 0;
13679 wxFont *arg1 = (wxFont *) 0 ;
13680 bool result;
13681 void *argp1 = 0 ;
13682 int res1 = 0 ;
13683 PyObject *swig_obj[1] ;
13684
13685 if (!args) SWIG_fail;
13686 swig_obj[0] = args;
13687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13688 if (!SWIG_IsOK(res1)) {
13689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
13690 }
13691 arg1 = reinterpret_cast< wxFont * >(argp1);
13692 {
13693 PyThreadState* __tstate = wxPyBeginAllowThreads();
13694 result = (bool)((wxFont const *)arg1)->Ok();
13695 wxPyEndAllowThreads(__tstate);
13696 if (PyErr_Occurred()) SWIG_fail;
13697 }
13698 {
13699 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13700 }
13701 return resultobj;
13702 fail:
13703 return NULL;
13704 }
13705
13706
13707 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13708 PyObject *resultobj = 0;
13709 wxFont *arg1 = (wxFont *) 0 ;
13710 wxFont *arg2 = (wxFont *) 0 ;
13711 bool result;
13712 void *argp1 = 0 ;
13713 int res1 = 0 ;
13714 void *argp2 = 0 ;
13715 int res2 = 0 ;
13716 PyObject * obj0 = 0 ;
13717 PyObject * obj1 = 0 ;
13718 char * kwnames[] = {
13719 (char *) "self",(char *) "other", NULL
13720 };
13721
13722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
13723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13724 if (!SWIG_IsOK(res1)) {
13725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
13726 }
13727 arg1 = reinterpret_cast< wxFont * >(argp1);
13728 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13729 if (!SWIG_IsOK(res2)) {
13730 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
13731 }
13732 arg2 = reinterpret_cast< wxFont * >(argp2);
13733 {
13734 PyThreadState* __tstate = wxPyBeginAllowThreads();
13735 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
13736 wxPyEndAllowThreads(__tstate);
13737 if (PyErr_Occurred()) SWIG_fail;
13738 }
13739 {
13740 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13741 }
13742 return resultobj;
13743 fail:
13744 return NULL;
13745 }
13746
13747
13748 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13749 PyObject *resultobj = 0;
13750 wxFont *arg1 = (wxFont *) 0 ;
13751 wxFont *arg2 = (wxFont *) 0 ;
13752 bool result;
13753 void *argp1 = 0 ;
13754 int res1 = 0 ;
13755 void *argp2 = 0 ;
13756 int res2 = 0 ;
13757 PyObject * obj0 = 0 ;
13758 PyObject * obj1 = 0 ;
13759 char * kwnames[] = {
13760 (char *) "self",(char *) "other", NULL
13761 };
13762
13763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
13764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13765 if (!SWIG_IsOK(res1)) {
13766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
13767 }
13768 arg1 = reinterpret_cast< wxFont * >(argp1);
13769 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
13770 if (!SWIG_IsOK(res2)) {
13771 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
13772 }
13773 arg2 = reinterpret_cast< wxFont * >(argp2);
13774 {
13775 PyThreadState* __tstate = wxPyBeginAllowThreads();
13776 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
13777 wxPyEndAllowThreads(__tstate);
13778 if (PyErr_Occurred()) SWIG_fail;
13779 }
13780 {
13781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13782 }
13783 return resultobj;
13784 fail:
13785 return NULL;
13786 }
13787
13788
13789 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13790 PyObject *resultobj = 0;
13791 wxFont *arg1 = (wxFont *) 0 ;
13792 int result;
13793 void *argp1 = 0 ;
13794 int res1 = 0 ;
13795 PyObject *swig_obj[1] ;
13796
13797 if (!args) SWIG_fail;
13798 swig_obj[0] = args;
13799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13800 if (!SWIG_IsOK(res1)) {
13801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13802 }
13803 arg1 = reinterpret_cast< wxFont * >(argp1);
13804 {
13805 PyThreadState* __tstate = wxPyBeginAllowThreads();
13806 result = (int)((wxFont const *)arg1)->GetPointSize();
13807 wxPyEndAllowThreads(__tstate);
13808 if (PyErr_Occurred()) SWIG_fail;
13809 }
13810 resultobj = SWIG_From_int(static_cast< int >(result));
13811 return resultobj;
13812 fail:
13813 return NULL;
13814 }
13815
13816
13817 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13818 PyObject *resultobj = 0;
13819 wxFont *arg1 = (wxFont *) 0 ;
13820 wxSize result;
13821 void *argp1 = 0 ;
13822 int res1 = 0 ;
13823 PyObject *swig_obj[1] ;
13824
13825 if (!args) SWIG_fail;
13826 swig_obj[0] = args;
13827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13828 if (!SWIG_IsOK(res1)) {
13829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
13830 }
13831 arg1 = reinterpret_cast< wxFont * >(argp1);
13832 {
13833 PyThreadState* __tstate = wxPyBeginAllowThreads();
13834 result = ((wxFont const *)arg1)->GetPixelSize();
13835 wxPyEndAllowThreads(__tstate);
13836 if (PyErr_Occurred()) SWIG_fail;
13837 }
13838 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
13839 return resultobj;
13840 fail:
13841 return NULL;
13842 }
13843
13844
13845 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13846 PyObject *resultobj = 0;
13847 wxFont *arg1 = (wxFont *) 0 ;
13848 bool result;
13849 void *argp1 = 0 ;
13850 int res1 = 0 ;
13851 PyObject *swig_obj[1] ;
13852
13853 if (!args) SWIG_fail;
13854 swig_obj[0] = args;
13855 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13856 if (!SWIG_IsOK(res1)) {
13857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
13858 }
13859 arg1 = reinterpret_cast< wxFont * >(argp1);
13860 {
13861 PyThreadState* __tstate = wxPyBeginAllowThreads();
13862 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
13863 wxPyEndAllowThreads(__tstate);
13864 if (PyErr_Occurred()) SWIG_fail;
13865 }
13866 {
13867 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13868 }
13869 return resultobj;
13870 fail:
13871 return NULL;
13872 }
13873
13874
13875 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13876 PyObject *resultobj = 0;
13877 wxFont *arg1 = (wxFont *) 0 ;
13878 int result;
13879 void *argp1 = 0 ;
13880 int res1 = 0 ;
13881 PyObject *swig_obj[1] ;
13882
13883 if (!args) SWIG_fail;
13884 swig_obj[0] = args;
13885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13886 if (!SWIG_IsOK(res1)) {
13887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
13888 }
13889 arg1 = reinterpret_cast< wxFont * >(argp1);
13890 {
13891 PyThreadState* __tstate = wxPyBeginAllowThreads();
13892 result = (int)((wxFont const *)arg1)->GetFamily();
13893 wxPyEndAllowThreads(__tstate);
13894 if (PyErr_Occurred()) SWIG_fail;
13895 }
13896 resultobj = SWIG_From_int(static_cast< int >(result));
13897 return resultobj;
13898 fail:
13899 return NULL;
13900 }
13901
13902
13903 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13904 PyObject *resultobj = 0;
13905 wxFont *arg1 = (wxFont *) 0 ;
13906 int result;
13907 void *argp1 = 0 ;
13908 int res1 = 0 ;
13909 PyObject *swig_obj[1] ;
13910
13911 if (!args) SWIG_fail;
13912 swig_obj[0] = args;
13913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13914 if (!SWIG_IsOK(res1)) {
13915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
13916 }
13917 arg1 = reinterpret_cast< wxFont * >(argp1);
13918 {
13919 PyThreadState* __tstate = wxPyBeginAllowThreads();
13920 result = (int)((wxFont const *)arg1)->GetStyle();
13921 wxPyEndAllowThreads(__tstate);
13922 if (PyErr_Occurred()) SWIG_fail;
13923 }
13924 resultobj = SWIG_From_int(static_cast< int >(result));
13925 return resultobj;
13926 fail:
13927 return NULL;
13928 }
13929
13930
13931 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13932 PyObject *resultobj = 0;
13933 wxFont *arg1 = (wxFont *) 0 ;
13934 int result;
13935 void *argp1 = 0 ;
13936 int res1 = 0 ;
13937 PyObject *swig_obj[1] ;
13938
13939 if (!args) SWIG_fail;
13940 swig_obj[0] = args;
13941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13942 if (!SWIG_IsOK(res1)) {
13943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
13944 }
13945 arg1 = reinterpret_cast< wxFont * >(argp1);
13946 {
13947 PyThreadState* __tstate = wxPyBeginAllowThreads();
13948 result = (int)((wxFont const *)arg1)->GetWeight();
13949 wxPyEndAllowThreads(__tstate);
13950 if (PyErr_Occurred()) SWIG_fail;
13951 }
13952 resultobj = SWIG_From_int(static_cast< int >(result));
13953 return resultobj;
13954 fail:
13955 return NULL;
13956 }
13957
13958
13959 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13960 PyObject *resultobj = 0;
13961 wxFont *arg1 = (wxFont *) 0 ;
13962 bool result;
13963 void *argp1 = 0 ;
13964 int res1 = 0 ;
13965 PyObject *swig_obj[1] ;
13966
13967 if (!args) SWIG_fail;
13968 swig_obj[0] = args;
13969 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13970 if (!SWIG_IsOK(res1)) {
13971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
13972 }
13973 arg1 = reinterpret_cast< wxFont * >(argp1);
13974 {
13975 PyThreadState* __tstate = wxPyBeginAllowThreads();
13976 result = (bool)((wxFont const *)arg1)->GetUnderlined();
13977 wxPyEndAllowThreads(__tstate);
13978 if (PyErr_Occurred()) SWIG_fail;
13979 }
13980 {
13981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13982 }
13983 return resultobj;
13984 fail:
13985 return NULL;
13986 }
13987
13988
13989 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13990 PyObject *resultobj = 0;
13991 wxFont *arg1 = (wxFont *) 0 ;
13992 wxString result;
13993 void *argp1 = 0 ;
13994 int res1 = 0 ;
13995 PyObject *swig_obj[1] ;
13996
13997 if (!args) SWIG_fail;
13998 swig_obj[0] = args;
13999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14000 if (!SWIG_IsOK(res1)) {
14001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14002 }
14003 arg1 = reinterpret_cast< wxFont * >(argp1);
14004 {
14005 PyThreadState* __tstate = wxPyBeginAllowThreads();
14006 result = ((wxFont const *)arg1)->GetFaceName();
14007 wxPyEndAllowThreads(__tstate);
14008 if (PyErr_Occurred()) SWIG_fail;
14009 }
14010 {
14011 #if wxUSE_UNICODE
14012 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14013 #else
14014 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14015 #endif
14016 }
14017 return resultobj;
14018 fail:
14019 return NULL;
14020 }
14021
14022
14023 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14024 PyObject *resultobj = 0;
14025 wxFont *arg1 = (wxFont *) 0 ;
14026 wxFontEncoding result;
14027 void *argp1 = 0 ;
14028 int res1 = 0 ;
14029 PyObject *swig_obj[1] ;
14030
14031 if (!args) SWIG_fail;
14032 swig_obj[0] = args;
14033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14034 if (!SWIG_IsOK(res1)) {
14035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14036 }
14037 arg1 = reinterpret_cast< wxFont * >(argp1);
14038 {
14039 PyThreadState* __tstate = wxPyBeginAllowThreads();
14040 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14041 wxPyEndAllowThreads(__tstate);
14042 if (PyErr_Occurred()) SWIG_fail;
14043 }
14044 resultobj = SWIG_From_int(static_cast< int >(result));
14045 return resultobj;
14046 fail:
14047 return NULL;
14048 }
14049
14050
14051 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14052 PyObject *resultobj = 0;
14053 wxFont *arg1 = (wxFont *) 0 ;
14054 wxNativeFontInfo *result = 0 ;
14055 void *argp1 = 0 ;
14056 int res1 = 0 ;
14057 PyObject *swig_obj[1] ;
14058
14059 if (!args) SWIG_fail;
14060 swig_obj[0] = args;
14061 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14062 if (!SWIG_IsOK(res1)) {
14063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14064 }
14065 arg1 = reinterpret_cast< wxFont * >(argp1);
14066 {
14067 PyThreadState* __tstate = wxPyBeginAllowThreads();
14068 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14069 wxPyEndAllowThreads(__tstate);
14070 if (PyErr_Occurred()) SWIG_fail;
14071 }
14072 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14073 return resultobj;
14074 fail:
14075 return NULL;
14076 }
14077
14078
14079 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14080 PyObject *resultobj = 0;
14081 wxFont *arg1 = (wxFont *) 0 ;
14082 bool result;
14083 void *argp1 = 0 ;
14084 int res1 = 0 ;
14085 PyObject *swig_obj[1] ;
14086
14087 if (!args) SWIG_fail;
14088 swig_obj[0] = args;
14089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14090 if (!SWIG_IsOK(res1)) {
14091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14092 }
14093 arg1 = reinterpret_cast< wxFont * >(argp1);
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14097 wxPyEndAllowThreads(__tstate);
14098 if (PyErr_Occurred()) SWIG_fail;
14099 }
14100 {
14101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14102 }
14103 return resultobj;
14104 fail:
14105 return NULL;
14106 }
14107
14108
14109 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14110 PyObject *resultobj = 0;
14111 wxFont *arg1 = (wxFont *) 0 ;
14112 wxString result;
14113 void *argp1 = 0 ;
14114 int res1 = 0 ;
14115 PyObject *swig_obj[1] ;
14116
14117 if (!args) SWIG_fail;
14118 swig_obj[0] = args;
14119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14120 if (!SWIG_IsOK(res1)) {
14121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14122 }
14123 arg1 = reinterpret_cast< wxFont * >(argp1);
14124 {
14125 PyThreadState* __tstate = wxPyBeginAllowThreads();
14126 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14127 wxPyEndAllowThreads(__tstate);
14128 if (PyErr_Occurred()) SWIG_fail;
14129 }
14130 {
14131 #if wxUSE_UNICODE
14132 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14133 #else
14134 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14135 #endif
14136 }
14137 return resultobj;
14138 fail:
14139 return NULL;
14140 }
14141
14142
14143 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14144 PyObject *resultobj = 0;
14145 wxFont *arg1 = (wxFont *) 0 ;
14146 wxString 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_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14156 }
14157 arg1 = reinterpret_cast< wxFont * >(argp1);
14158 {
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
14161 wxPyEndAllowThreads(__tstate);
14162 if (PyErr_Occurred()) SWIG_fail;
14163 }
14164 {
14165 #if wxUSE_UNICODE
14166 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14167 #else
14168 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14169 #endif
14170 }
14171 return resultobj;
14172 fail:
14173 return NULL;
14174 }
14175
14176
14177 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14178 PyObject *resultobj = 0;
14179 wxFont *arg1 = (wxFont *) 0 ;
14180 int arg2 ;
14181 void *argp1 = 0 ;
14182 int res1 = 0 ;
14183 int val2 ;
14184 int ecode2 = 0 ;
14185 PyObject * obj0 = 0 ;
14186 PyObject * obj1 = 0 ;
14187 char * kwnames[] = {
14188 (char *) "self",(char *) "pointSize", NULL
14189 };
14190
14191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
14192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14193 if (!SWIG_IsOK(res1)) {
14194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
14195 }
14196 arg1 = reinterpret_cast< wxFont * >(argp1);
14197 ecode2 = SWIG_AsVal_int(obj1, &val2);
14198 if (!SWIG_IsOK(ecode2)) {
14199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
14200 }
14201 arg2 = static_cast< int >(val2);
14202 {
14203 PyThreadState* __tstate = wxPyBeginAllowThreads();
14204 (arg1)->SetPointSize(arg2);
14205 wxPyEndAllowThreads(__tstate);
14206 if (PyErr_Occurred()) SWIG_fail;
14207 }
14208 resultobj = SWIG_Py_Void();
14209 return resultobj;
14210 fail:
14211 return NULL;
14212 }
14213
14214
14215 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14216 PyObject *resultobj = 0;
14217 wxFont *arg1 = (wxFont *) 0 ;
14218 wxSize *arg2 = 0 ;
14219 void *argp1 = 0 ;
14220 int res1 = 0 ;
14221 wxSize temp2 ;
14222 PyObject * obj0 = 0 ;
14223 PyObject * obj1 = 0 ;
14224 char * kwnames[] = {
14225 (char *) "self",(char *) "pixelSize", NULL
14226 };
14227
14228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
14229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14230 if (!SWIG_IsOK(res1)) {
14231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
14232 }
14233 arg1 = reinterpret_cast< wxFont * >(argp1);
14234 {
14235 arg2 = &temp2;
14236 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
14237 }
14238 {
14239 PyThreadState* __tstate = wxPyBeginAllowThreads();
14240 (arg1)->SetPixelSize((wxSize const &)*arg2);
14241 wxPyEndAllowThreads(__tstate);
14242 if (PyErr_Occurred()) SWIG_fail;
14243 }
14244 resultobj = SWIG_Py_Void();
14245 return resultobj;
14246 fail:
14247 return NULL;
14248 }
14249
14250
14251 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14252 PyObject *resultobj = 0;
14253 wxFont *arg1 = (wxFont *) 0 ;
14254 int arg2 ;
14255 void *argp1 = 0 ;
14256 int res1 = 0 ;
14257 int val2 ;
14258 int ecode2 = 0 ;
14259 PyObject * obj0 = 0 ;
14260 PyObject * obj1 = 0 ;
14261 char * kwnames[] = {
14262 (char *) "self",(char *) "family", NULL
14263 };
14264
14265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
14266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14267 if (!SWIG_IsOK(res1)) {
14268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
14269 }
14270 arg1 = reinterpret_cast< wxFont * >(argp1);
14271 ecode2 = SWIG_AsVal_int(obj1, &val2);
14272 if (!SWIG_IsOK(ecode2)) {
14273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
14274 }
14275 arg2 = static_cast< int >(val2);
14276 {
14277 PyThreadState* __tstate = wxPyBeginAllowThreads();
14278 (arg1)->SetFamily(arg2);
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 resultobj = SWIG_Py_Void();
14283 return resultobj;
14284 fail:
14285 return NULL;
14286 }
14287
14288
14289 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14290 PyObject *resultobj = 0;
14291 wxFont *arg1 = (wxFont *) 0 ;
14292 int arg2 ;
14293 void *argp1 = 0 ;
14294 int res1 = 0 ;
14295 int val2 ;
14296 int ecode2 = 0 ;
14297 PyObject * obj0 = 0 ;
14298 PyObject * obj1 = 0 ;
14299 char * kwnames[] = {
14300 (char *) "self",(char *) "style", NULL
14301 };
14302
14303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
14304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14305 if (!SWIG_IsOK(res1)) {
14306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
14307 }
14308 arg1 = reinterpret_cast< wxFont * >(argp1);
14309 ecode2 = SWIG_AsVal_int(obj1, &val2);
14310 if (!SWIG_IsOK(ecode2)) {
14311 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
14312 }
14313 arg2 = static_cast< int >(val2);
14314 {
14315 PyThreadState* __tstate = wxPyBeginAllowThreads();
14316 (arg1)->SetStyle(arg2);
14317 wxPyEndAllowThreads(__tstate);
14318 if (PyErr_Occurred()) SWIG_fail;
14319 }
14320 resultobj = SWIG_Py_Void();
14321 return resultobj;
14322 fail:
14323 return NULL;
14324 }
14325
14326
14327 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14328 PyObject *resultobj = 0;
14329 wxFont *arg1 = (wxFont *) 0 ;
14330 int arg2 ;
14331 void *argp1 = 0 ;
14332 int res1 = 0 ;
14333 int val2 ;
14334 int ecode2 = 0 ;
14335 PyObject * obj0 = 0 ;
14336 PyObject * obj1 = 0 ;
14337 char * kwnames[] = {
14338 (char *) "self",(char *) "weight", NULL
14339 };
14340
14341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
14342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14343 if (!SWIG_IsOK(res1)) {
14344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
14345 }
14346 arg1 = reinterpret_cast< wxFont * >(argp1);
14347 ecode2 = SWIG_AsVal_int(obj1, &val2);
14348 if (!SWIG_IsOK(ecode2)) {
14349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
14350 }
14351 arg2 = static_cast< int >(val2);
14352 {
14353 PyThreadState* __tstate = wxPyBeginAllowThreads();
14354 (arg1)->SetWeight(arg2);
14355 wxPyEndAllowThreads(__tstate);
14356 if (PyErr_Occurred()) SWIG_fail;
14357 }
14358 resultobj = SWIG_Py_Void();
14359 return resultobj;
14360 fail:
14361 return NULL;
14362 }
14363
14364
14365 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14366 PyObject *resultobj = 0;
14367 wxFont *arg1 = (wxFont *) 0 ;
14368 wxString *arg2 = 0 ;
14369 bool result;
14370 void *argp1 = 0 ;
14371 int res1 = 0 ;
14372 bool temp2 = false ;
14373 PyObject * obj0 = 0 ;
14374 PyObject * obj1 = 0 ;
14375 char * kwnames[] = {
14376 (char *) "self",(char *) "faceName", NULL
14377 };
14378
14379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
14380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14381 if (!SWIG_IsOK(res1)) {
14382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
14383 }
14384 arg1 = reinterpret_cast< wxFont * >(argp1);
14385 {
14386 arg2 = wxString_in_helper(obj1);
14387 if (arg2 == NULL) SWIG_fail;
14388 temp2 = true;
14389 }
14390 {
14391 PyThreadState* __tstate = wxPyBeginAllowThreads();
14392 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
14393 wxPyEndAllowThreads(__tstate);
14394 if (PyErr_Occurred()) SWIG_fail;
14395 }
14396 {
14397 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14398 }
14399 {
14400 if (temp2)
14401 delete arg2;
14402 }
14403 return resultobj;
14404 fail:
14405 {
14406 if (temp2)
14407 delete arg2;
14408 }
14409 return NULL;
14410 }
14411
14412
14413 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14414 PyObject *resultobj = 0;
14415 wxFont *arg1 = (wxFont *) 0 ;
14416 bool arg2 ;
14417 void *argp1 = 0 ;
14418 int res1 = 0 ;
14419 bool val2 ;
14420 int ecode2 = 0 ;
14421 PyObject * obj0 = 0 ;
14422 PyObject * obj1 = 0 ;
14423 char * kwnames[] = {
14424 (char *) "self",(char *) "underlined", NULL
14425 };
14426
14427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
14428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14429 if (!SWIG_IsOK(res1)) {
14430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
14431 }
14432 arg1 = reinterpret_cast< wxFont * >(argp1);
14433 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14434 if (!SWIG_IsOK(ecode2)) {
14435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
14436 }
14437 arg2 = static_cast< bool >(val2);
14438 {
14439 PyThreadState* __tstate = wxPyBeginAllowThreads();
14440 (arg1)->SetUnderlined(arg2);
14441 wxPyEndAllowThreads(__tstate);
14442 if (PyErr_Occurred()) SWIG_fail;
14443 }
14444 resultobj = SWIG_Py_Void();
14445 return resultobj;
14446 fail:
14447 return NULL;
14448 }
14449
14450
14451 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14452 PyObject *resultobj = 0;
14453 wxFont *arg1 = (wxFont *) 0 ;
14454 wxFontEncoding arg2 ;
14455 void *argp1 = 0 ;
14456 int res1 = 0 ;
14457 int val2 ;
14458 int ecode2 = 0 ;
14459 PyObject * obj0 = 0 ;
14460 PyObject * obj1 = 0 ;
14461 char * kwnames[] = {
14462 (char *) "self",(char *) "encoding", NULL
14463 };
14464
14465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
14466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14467 if (!SWIG_IsOK(res1)) {
14468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
14469 }
14470 arg1 = reinterpret_cast< wxFont * >(argp1);
14471 ecode2 = SWIG_AsVal_int(obj1, &val2);
14472 if (!SWIG_IsOK(ecode2)) {
14473 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14474 }
14475 arg2 = static_cast< wxFontEncoding >(val2);
14476 {
14477 PyThreadState* __tstate = wxPyBeginAllowThreads();
14478 (arg1)->SetEncoding(arg2);
14479 wxPyEndAllowThreads(__tstate);
14480 if (PyErr_Occurred()) SWIG_fail;
14481 }
14482 resultobj = SWIG_Py_Void();
14483 return resultobj;
14484 fail:
14485 return NULL;
14486 }
14487
14488
14489 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14490 PyObject *resultobj = 0;
14491 wxFont *arg1 = (wxFont *) 0 ;
14492 wxNativeFontInfo *arg2 = 0 ;
14493 void *argp1 = 0 ;
14494 int res1 = 0 ;
14495 void *argp2 = 0 ;
14496 int res2 = 0 ;
14497 PyObject * obj0 = 0 ;
14498 PyObject * obj1 = 0 ;
14499 char * kwnames[] = {
14500 (char *) "self",(char *) "info", NULL
14501 };
14502
14503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
14504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14505 if (!SWIG_IsOK(res1)) {
14506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
14507 }
14508 arg1 = reinterpret_cast< wxFont * >(argp1);
14509 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14510 if (!SWIG_IsOK(res2)) {
14511 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14512 }
14513 if (!argp2) {
14514 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
14515 }
14516 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
14517 {
14518 PyThreadState* __tstate = wxPyBeginAllowThreads();
14519 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
14520 wxPyEndAllowThreads(__tstate);
14521 if (PyErr_Occurred()) SWIG_fail;
14522 }
14523 resultobj = SWIG_Py_Void();
14524 return resultobj;
14525 fail:
14526 return NULL;
14527 }
14528
14529
14530 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14531 PyObject *resultobj = 0;
14532 wxFont *arg1 = (wxFont *) 0 ;
14533 wxString *arg2 = 0 ;
14534 bool result;
14535 void *argp1 = 0 ;
14536 int res1 = 0 ;
14537 bool temp2 = false ;
14538 PyObject * obj0 = 0 ;
14539 PyObject * obj1 = 0 ;
14540 char * kwnames[] = {
14541 (char *) "self",(char *) "info", NULL
14542 };
14543
14544 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
14545 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14546 if (!SWIG_IsOK(res1)) {
14547 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
14548 }
14549 arg1 = reinterpret_cast< wxFont * >(argp1);
14550 {
14551 arg2 = wxString_in_helper(obj1);
14552 if (arg2 == NULL) SWIG_fail;
14553 temp2 = true;
14554 }
14555 {
14556 PyThreadState* __tstate = wxPyBeginAllowThreads();
14557 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
14558 wxPyEndAllowThreads(__tstate);
14559 if (PyErr_Occurred()) SWIG_fail;
14560 }
14561 {
14562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14563 }
14564 {
14565 if (temp2)
14566 delete arg2;
14567 }
14568 return resultobj;
14569 fail:
14570 {
14571 if (temp2)
14572 delete arg2;
14573 }
14574 return NULL;
14575 }
14576
14577
14578 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14579 PyObject *resultobj = 0;
14580 wxFont *arg1 = (wxFont *) 0 ;
14581 wxString *arg2 = 0 ;
14582 bool result;
14583 void *argp1 = 0 ;
14584 int res1 = 0 ;
14585 bool temp2 = false ;
14586 PyObject * obj0 = 0 ;
14587 PyObject * obj1 = 0 ;
14588 char * kwnames[] = {
14589 (char *) "self",(char *) "info", NULL
14590 };
14591
14592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
14593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14594 if (!SWIG_IsOK(res1)) {
14595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
14596 }
14597 arg1 = reinterpret_cast< wxFont * >(argp1);
14598 {
14599 arg2 = wxString_in_helper(obj1);
14600 if (arg2 == NULL) SWIG_fail;
14601 temp2 = true;
14602 }
14603 {
14604 PyThreadState* __tstate = wxPyBeginAllowThreads();
14605 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
14606 wxPyEndAllowThreads(__tstate);
14607 if (PyErr_Occurred()) SWIG_fail;
14608 }
14609 {
14610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14611 }
14612 {
14613 if (temp2)
14614 delete arg2;
14615 }
14616 return resultobj;
14617 fail:
14618 {
14619 if (temp2)
14620 delete arg2;
14621 }
14622 return NULL;
14623 }
14624
14625
14626 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14627 PyObject *resultobj = 0;
14628 wxFont *arg1 = (wxFont *) 0 ;
14629 wxString result;
14630 void *argp1 = 0 ;
14631 int res1 = 0 ;
14632 PyObject *swig_obj[1] ;
14633
14634 if (!args) SWIG_fail;
14635 swig_obj[0] = args;
14636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14637 if (!SWIG_IsOK(res1)) {
14638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
14639 }
14640 arg1 = reinterpret_cast< wxFont * >(argp1);
14641 {
14642 PyThreadState* __tstate = wxPyBeginAllowThreads();
14643 result = ((wxFont const *)arg1)->GetFamilyString();
14644 wxPyEndAllowThreads(__tstate);
14645 if (PyErr_Occurred()) SWIG_fail;
14646 }
14647 {
14648 #if wxUSE_UNICODE
14649 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14650 #else
14651 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14652 #endif
14653 }
14654 return resultobj;
14655 fail:
14656 return NULL;
14657 }
14658
14659
14660 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14661 PyObject *resultobj = 0;
14662 wxFont *arg1 = (wxFont *) 0 ;
14663 wxString result;
14664 void *argp1 = 0 ;
14665 int res1 = 0 ;
14666 PyObject *swig_obj[1] ;
14667
14668 if (!args) SWIG_fail;
14669 swig_obj[0] = args;
14670 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14671 if (!SWIG_IsOK(res1)) {
14672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
14673 }
14674 arg1 = reinterpret_cast< wxFont * >(argp1);
14675 {
14676 PyThreadState* __tstate = wxPyBeginAllowThreads();
14677 result = ((wxFont const *)arg1)->GetStyleString();
14678 wxPyEndAllowThreads(__tstate);
14679 if (PyErr_Occurred()) SWIG_fail;
14680 }
14681 {
14682 #if wxUSE_UNICODE
14683 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14684 #else
14685 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14686 #endif
14687 }
14688 return resultobj;
14689 fail:
14690 return NULL;
14691 }
14692
14693
14694 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14695 PyObject *resultobj = 0;
14696 wxFont *arg1 = (wxFont *) 0 ;
14697 wxString result;
14698 void *argp1 = 0 ;
14699 int res1 = 0 ;
14700 PyObject *swig_obj[1] ;
14701
14702 if (!args) SWIG_fail;
14703 swig_obj[0] = args;
14704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14705 if (!SWIG_IsOK(res1)) {
14706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
14707 }
14708 arg1 = reinterpret_cast< wxFont * >(argp1);
14709 {
14710 PyThreadState* __tstate = wxPyBeginAllowThreads();
14711 result = ((wxFont const *)arg1)->GetWeightString();
14712 wxPyEndAllowThreads(__tstate);
14713 if (PyErr_Occurred()) SWIG_fail;
14714 }
14715 {
14716 #if wxUSE_UNICODE
14717 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14718 #else
14719 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14720 #endif
14721 }
14722 return resultobj;
14723 fail:
14724 return NULL;
14725 }
14726
14727
14728 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14729 PyObject *resultobj = 0;
14730 wxFont *arg1 = (wxFont *) 0 ;
14731 bool arg2 = (bool) true ;
14732 void *argp1 = 0 ;
14733 int res1 = 0 ;
14734 bool val2 ;
14735 int ecode2 = 0 ;
14736 PyObject * obj0 = 0 ;
14737 PyObject * obj1 = 0 ;
14738 char * kwnames[] = {
14739 (char *) "self",(char *) "no", NULL
14740 };
14741
14742 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
14743 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14744 if (!SWIG_IsOK(res1)) {
14745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
14746 }
14747 arg1 = reinterpret_cast< wxFont * >(argp1);
14748 if (obj1) {
14749 ecode2 = SWIG_AsVal_bool(obj1, &val2);
14750 if (!SWIG_IsOK(ecode2)) {
14751 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
14752 }
14753 arg2 = static_cast< bool >(val2);
14754 }
14755 {
14756 PyThreadState* __tstate = wxPyBeginAllowThreads();
14757 (arg1)->SetNoAntiAliasing(arg2);
14758 wxPyEndAllowThreads(__tstate);
14759 if (PyErr_Occurred()) SWIG_fail;
14760 }
14761 resultobj = SWIG_Py_Void();
14762 return resultobj;
14763 fail:
14764 return NULL;
14765 }
14766
14767
14768 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14769 PyObject *resultobj = 0;
14770 wxFont *arg1 = (wxFont *) 0 ;
14771 bool result;
14772 void *argp1 = 0 ;
14773 int res1 = 0 ;
14774 PyObject *swig_obj[1] ;
14775
14776 if (!args) SWIG_fail;
14777 swig_obj[0] = args;
14778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14779 if (!SWIG_IsOK(res1)) {
14780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
14781 }
14782 arg1 = reinterpret_cast< wxFont * >(argp1);
14783 {
14784 PyThreadState* __tstate = wxPyBeginAllowThreads();
14785 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
14786 wxPyEndAllowThreads(__tstate);
14787 if (PyErr_Occurred()) SWIG_fail;
14788 }
14789 {
14790 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14791 }
14792 return resultobj;
14793 fail:
14794 return NULL;
14795 }
14796
14797
14798 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14799 PyObject *resultobj = 0;
14800 wxFontEncoding result;
14801
14802 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
14803 {
14804 if (!wxPyCheckForApp()) SWIG_fail;
14805 PyThreadState* __tstate = wxPyBeginAllowThreads();
14806 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
14807 wxPyEndAllowThreads(__tstate);
14808 if (PyErr_Occurred()) SWIG_fail;
14809 }
14810 resultobj = SWIG_From_int(static_cast< int >(result));
14811 return resultobj;
14812 fail:
14813 return NULL;
14814 }
14815
14816
14817 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14818 PyObject *resultobj = 0;
14819 wxFontEncoding arg1 ;
14820 int val1 ;
14821 int ecode1 = 0 ;
14822 PyObject * obj0 = 0 ;
14823 char * kwnames[] = {
14824 (char *) "encoding", NULL
14825 };
14826
14827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
14828 ecode1 = SWIG_AsVal_int(obj0, &val1);
14829 if (!SWIG_IsOK(ecode1)) {
14830 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14831 }
14832 arg1 = static_cast< wxFontEncoding >(val1);
14833 {
14834 if (!wxPyCheckForApp()) SWIG_fail;
14835 PyThreadState* __tstate = wxPyBeginAllowThreads();
14836 wxFont::SetDefaultEncoding(arg1);
14837 wxPyEndAllowThreads(__tstate);
14838 if (PyErr_Occurred()) SWIG_fail;
14839 }
14840 resultobj = SWIG_Py_Void();
14841 return resultobj;
14842 fail:
14843 return NULL;
14844 }
14845
14846
14847 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14848 PyObject *obj;
14849 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14850 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
14851 return SWIG_Py_Void();
14852 }
14853
14854 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14855 return SWIG_Python_InitShadowInstance(args);
14856 }
14857
14858 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14859 PyObject *resultobj = 0;
14860 wxPyFontEnumerator *result = 0 ;
14861
14862 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
14863 {
14864 if (!wxPyCheckForApp()) SWIG_fail;
14865 PyThreadState* __tstate = wxPyBeginAllowThreads();
14866 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
14867 wxPyEndAllowThreads(__tstate);
14868 if (PyErr_Occurred()) SWIG_fail;
14869 }
14870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
14871 return resultobj;
14872 fail:
14873 return NULL;
14874 }
14875
14876
14877 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14878 PyObject *resultobj = 0;
14879 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14880 void *argp1 = 0 ;
14881 int res1 = 0 ;
14882 PyObject *swig_obj[1] ;
14883
14884 if (!args) SWIG_fail;
14885 swig_obj[0] = args;
14886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
14887 if (!SWIG_IsOK(res1)) {
14888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14889 }
14890 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14891 {
14892 PyThreadState* __tstate = wxPyBeginAllowThreads();
14893 delete arg1;
14894
14895 wxPyEndAllowThreads(__tstate);
14896 if (PyErr_Occurred()) SWIG_fail;
14897 }
14898 resultobj = SWIG_Py_Void();
14899 return resultobj;
14900 fail:
14901 return NULL;
14902 }
14903
14904
14905 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14906 PyObject *resultobj = 0;
14907 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14908 PyObject *arg2 = (PyObject *) 0 ;
14909 PyObject *arg3 = (PyObject *) 0 ;
14910 bool arg4 ;
14911 void *argp1 = 0 ;
14912 int res1 = 0 ;
14913 bool val4 ;
14914 int ecode4 = 0 ;
14915 PyObject * obj0 = 0 ;
14916 PyObject * obj1 = 0 ;
14917 PyObject * obj2 = 0 ;
14918 PyObject * obj3 = 0 ;
14919 char * kwnames[] = {
14920 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
14921 };
14922
14923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14925 if (!SWIG_IsOK(res1)) {
14926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14927 }
14928 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14929 arg2 = obj1;
14930 arg3 = obj2;
14931 ecode4 = SWIG_AsVal_bool(obj3, &val4);
14932 if (!SWIG_IsOK(ecode4)) {
14933 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
14934 }
14935 arg4 = static_cast< bool >(val4);
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
14942 resultobj = SWIG_Py_Void();
14943 return resultobj;
14944 fail:
14945 return NULL;
14946 }
14947
14948
14949 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14950 PyObject *resultobj = 0;
14951 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
14952 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
14953 bool arg3 = (bool) false ;
14954 bool result;
14955 void *argp1 = 0 ;
14956 int res1 = 0 ;
14957 int val2 ;
14958 int ecode2 = 0 ;
14959 bool val3 ;
14960 int ecode3 = 0 ;
14961 PyObject * obj0 = 0 ;
14962 PyObject * obj1 = 0 ;
14963 PyObject * obj2 = 0 ;
14964 char * kwnames[] = {
14965 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
14966 };
14967
14968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
14970 if (!SWIG_IsOK(res1)) {
14971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
14972 }
14973 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
14974 if (obj1) {
14975 ecode2 = SWIG_AsVal_int(obj1, &val2);
14976 if (!SWIG_IsOK(ecode2)) {
14977 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14978 }
14979 arg2 = static_cast< wxFontEncoding >(val2);
14980 }
14981 if (obj2) {
14982 ecode3 = SWIG_AsVal_bool(obj2, &val3);
14983 if (!SWIG_IsOK(ecode3)) {
14984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
14985 }
14986 arg3 = static_cast< bool >(val3);
14987 }
14988 {
14989 PyThreadState* __tstate = wxPyBeginAllowThreads();
14990 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
14991 wxPyEndAllowThreads(__tstate);
14992 if (PyErr_Occurred()) SWIG_fail;
14993 }
14994 {
14995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14996 }
14997 return resultobj;
14998 fail:
14999 return NULL;
15000 }
15001
15002
15003 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15004 PyObject *resultobj = 0;
15005 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15006 wxString const &arg2_defvalue = wxPyEmptyString ;
15007 wxString *arg2 = (wxString *) &arg2_defvalue ;
15008 bool result;
15009 void *argp1 = 0 ;
15010 int res1 = 0 ;
15011 bool temp2 = false ;
15012 PyObject * obj0 = 0 ;
15013 PyObject * obj1 = 0 ;
15014 char * kwnames[] = {
15015 (char *) "self",(char *) "facename", NULL
15016 };
15017
15018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15019 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15020 if (!SWIG_IsOK(res1)) {
15021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15022 }
15023 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15024 if (obj1) {
15025 {
15026 arg2 = wxString_in_helper(obj1);
15027 if (arg2 == NULL) SWIG_fail;
15028 temp2 = true;
15029 }
15030 }
15031 {
15032 PyThreadState* __tstate = wxPyBeginAllowThreads();
15033 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15034 wxPyEndAllowThreads(__tstate);
15035 if (PyErr_Occurred()) SWIG_fail;
15036 }
15037 {
15038 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15039 }
15040 {
15041 if (temp2)
15042 delete arg2;
15043 }
15044 return resultobj;
15045 fail:
15046 {
15047 if (temp2)
15048 delete arg2;
15049 }
15050 return NULL;
15051 }
15052
15053
15054 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15055 PyObject *resultobj = 0;
15056 PyObject *result = 0 ;
15057
15058 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15059 {
15060 PyThreadState* __tstate = wxPyBeginAllowThreads();
15061 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15062 wxPyEndAllowThreads(__tstate);
15063 if (PyErr_Occurred()) SWIG_fail;
15064 }
15065 resultobj = result;
15066 return resultobj;
15067 fail:
15068 return NULL;
15069 }
15070
15071
15072 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15073 PyObject *resultobj = 0;
15074 PyObject *result = 0 ;
15075
15076 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15080 wxPyEndAllowThreads(__tstate);
15081 if (PyErr_Occurred()) SWIG_fail;
15082 }
15083 resultobj = result;
15084 return resultobj;
15085 fail:
15086 return NULL;
15087 }
15088
15089
15090 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15091 PyObject *resultobj = 0;
15092 wxString *arg1 = 0 ;
15093 bool result;
15094 bool temp1 = false ;
15095 PyObject * obj0 = 0 ;
15096 char * kwnames[] = {
15097 (char *) "str", NULL
15098 };
15099
15100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15101 {
15102 arg1 = wxString_in_helper(obj0);
15103 if (arg1 == NULL) SWIG_fail;
15104 temp1 = true;
15105 }
15106 {
15107 PyThreadState* __tstate = wxPyBeginAllowThreads();
15108 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15109 wxPyEndAllowThreads(__tstate);
15110 if (PyErr_Occurred()) SWIG_fail;
15111 }
15112 {
15113 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15114 }
15115 {
15116 if (temp1)
15117 delete arg1;
15118 }
15119 return resultobj;
15120 fail:
15121 {
15122 if (temp1)
15123 delete arg1;
15124 }
15125 return NULL;
15126 }
15127
15128
15129 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15130 PyObject *obj;
15131 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15132 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15133 return SWIG_Py_Void();
15134 }
15135
15136 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15137 return SWIG_Python_InitShadowInstance(args);
15138 }
15139
15140 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15141 PyObject *resultobj = 0;
15142 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15143 int arg2 ;
15144 void *argp1 = 0 ;
15145 int res1 = 0 ;
15146 int val2 ;
15147 int ecode2 = 0 ;
15148 PyObject *swig_obj[2] ;
15149
15150 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
15151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15152 if (!SWIG_IsOK(res1)) {
15153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15154 }
15155 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15156 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
15157 if (!SWIG_IsOK(ecode2)) {
15158 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
15159 }
15160 arg2 = static_cast< int >(val2);
15161 if (arg1) (arg1)->Language = arg2;
15162
15163 resultobj = SWIG_Py_Void();
15164 return resultobj;
15165 fail:
15166 return NULL;
15167 }
15168
15169
15170 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15171 PyObject *resultobj = 0;
15172 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15173 int result;
15174 void *argp1 = 0 ;
15175 int res1 = 0 ;
15176 PyObject *swig_obj[1] ;
15177
15178 if (!args) SWIG_fail;
15179 swig_obj[0] = args;
15180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15181 if (!SWIG_IsOK(res1)) {
15182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15183 }
15184 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15185 result = (int) ((arg1)->Language);
15186 resultobj = SWIG_From_int(static_cast< int >(result));
15187 return resultobj;
15188 fail:
15189 return NULL;
15190 }
15191
15192
15193 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15194 PyObject *resultobj = 0;
15195 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15196 wxString *arg2 = (wxString *) 0 ;
15197 void *argp1 = 0 ;
15198 int res1 = 0 ;
15199 bool temp2 = false ;
15200 PyObject *swig_obj[2] ;
15201
15202 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
15203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15204 if (!SWIG_IsOK(res1)) {
15205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15206 }
15207 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15208 {
15209 arg2 = wxString_in_helper(swig_obj[1]);
15210 if (arg2 == NULL) SWIG_fail;
15211 temp2 = true;
15212 }
15213 if (arg1) (arg1)->CanonicalName = *arg2;
15214
15215 resultobj = SWIG_Py_Void();
15216 {
15217 if (temp2)
15218 delete arg2;
15219 }
15220 return resultobj;
15221 fail:
15222 {
15223 if (temp2)
15224 delete arg2;
15225 }
15226 return NULL;
15227 }
15228
15229
15230 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15231 PyObject *resultobj = 0;
15232 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15233 wxString *result = 0 ;
15234 void *argp1 = 0 ;
15235 int res1 = 0 ;
15236 PyObject *swig_obj[1] ;
15237
15238 if (!args) SWIG_fail;
15239 swig_obj[0] = args;
15240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15241 if (!SWIG_IsOK(res1)) {
15242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15243 }
15244 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15245 result = (wxString *)& ((arg1)->CanonicalName);
15246 {
15247 #if wxUSE_UNICODE
15248 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15249 #else
15250 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15251 #endif
15252 }
15253 return resultobj;
15254 fail:
15255 return NULL;
15256 }
15257
15258
15259 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15260 PyObject *resultobj = 0;
15261 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15262 wxString *arg2 = (wxString *) 0 ;
15263 void *argp1 = 0 ;
15264 int res1 = 0 ;
15265 bool temp2 = false ;
15266 PyObject *swig_obj[2] ;
15267
15268 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
15269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15270 if (!SWIG_IsOK(res1)) {
15271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15272 }
15273 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15274 {
15275 arg2 = wxString_in_helper(swig_obj[1]);
15276 if (arg2 == NULL) SWIG_fail;
15277 temp2 = true;
15278 }
15279 if (arg1) (arg1)->Description = *arg2;
15280
15281 resultobj = SWIG_Py_Void();
15282 {
15283 if (temp2)
15284 delete arg2;
15285 }
15286 return resultobj;
15287 fail:
15288 {
15289 if (temp2)
15290 delete arg2;
15291 }
15292 return NULL;
15293 }
15294
15295
15296 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15297 PyObject *resultobj = 0;
15298 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15299 wxString *result = 0 ;
15300 void *argp1 = 0 ;
15301 int res1 = 0 ;
15302 PyObject *swig_obj[1] ;
15303
15304 if (!args) SWIG_fail;
15305 swig_obj[0] = args;
15306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15307 if (!SWIG_IsOK(res1)) {
15308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
15309 }
15310 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
15311 result = (wxString *)& ((arg1)->Description);
15312 {
15313 #if wxUSE_UNICODE
15314 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
15315 #else
15316 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
15317 #endif
15318 }
15319 return resultobj;
15320 fail:
15321 return NULL;
15322 }
15323
15324
15325 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15326 PyObject *obj;
15327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15328 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
15329 return SWIG_Py_Void();
15330 }
15331
15332 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15333 PyObject *resultobj = 0;
15334 int arg1 = (int) -1 ;
15335 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15336 wxLocale *result = 0 ;
15337 int val1 ;
15338 int ecode1 = 0 ;
15339 int val2 ;
15340 int ecode2 = 0 ;
15341 PyObject * obj0 = 0 ;
15342 PyObject * obj1 = 0 ;
15343 char * kwnames[] = {
15344 (char *) "language",(char *) "flags", NULL
15345 };
15346
15347 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
15348 if (obj0) {
15349 ecode1 = SWIG_AsVal_int(obj0, &val1);
15350 if (!SWIG_IsOK(ecode1)) {
15351 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
15352 }
15353 arg1 = static_cast< int >(val1);
15354 }
15355 if (obj1) {
15356 ecode2 = SWIG_AsVal_int(obj1, &val2);
15357 if (!SWIG_IsOK(ecode2)) {
15358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
15359 }
15360 arg2 = static_cast< int >(val2);
15361 }
15362 {
15363 PyThreadState* __tstate = wxPyBeginAllowThreads();
15364 result = (wxLocale *)new_wxLocale(arg1,arg2);
15365 wxPyEndAllowThreads(__tstate);
15366 if (PyErr_Occurred()) SWIG_fail;
15367 }
15368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
15369 return resultobj;
15370 fail:
15371 return NULL;
15372 }
15373
15374
15375 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15376 PyObject *resultobj = 0;
15377 wxLocale *arg1 = (wxLocale *) 0 ;
15378 void *argp1 = 0 ;
15379 int res1 = 0 ;
15380 PyObject *swig_obj[1] ;
15381
15382 if (!args) SWIG_fail;
15383 swig_obj[0] = args;
15384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
15385 if (!SWIG_IsOK(res1)) {
15386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
15387 }
15388 arg1 = reinterpret_cast< wxLocale * >(argp1);
15389 {
15390 PyThreadState* __tstate = wxPyBeginAllowThreads();
15391 delete arg1;
15392
15393 wxPyEndAllowThreads(__tstate);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 resultobj = SWIG_Py_Void();
15397 return resultobj;
15398 fail:
15399 return NULL;
15400 }
15401
15402
15403 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15404 PyObject *resultobj = 0;
15405 wxLocale *arg1 = (wxLocale *) 0 ;
15406 wxString *arg2 = 0 ;
15407 wxString const &arg3_defvalue = wxPyEmptyString ;
15408 wxString *arg3 = (wxString *) &arg3_defvalue ;
15409 wxString const &arg4_defvalue = wxPyEmptyString ;
15410 wxString *arg4 = (wxString *) &arg4_defvalue ;
15411 bool arg5 = (bool) true ;
15412 bool arg6 = (bool) false ;
15413 bool result;
15414 void *argp1 = 0 ;
15415 int res1 = 0 ;
15416 bool temp2 = false ;
15417 bool temp3 = false ;
15418 bool temp4 = false ;
15419 bool val5 ;
15420 int ecode5 = 0 ;
15421 bool val6 ;
15422 int ecode6 = 0 ;
15423 PyObject * obj0 = 0 ;
15424 PyObject * obj1 = 0 ;
15425 PyObject * obj2 = 0 ;
15426 PyObject * obj3 = 0 ;
15427 PyObject * obj4 = 0 ;
15428 PyObject * obj5 = 0 ;
15429 char * kwnames[] = {
15430 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
15431 };
15432
15433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
15434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15435 if (!SWIG_IsOK(res1)) {
15436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
15437 }
15438 arg1 = reinterpret_cast< wxLocale * >(argp1);
15439 {
15440 arg2 = wxString_in_helper(obj1);
15441 if (arg2 == NULL) SWIG_fail;
15442 temp2 = true;
15443 }
15444 if (obj2) {
15445 {
15446 arg3 = wxString_in_helper(obj2);
15447 if (arg3 == NULL) SWIG_fail;
15448 temp3 = true;
15449 }
15450 }
15451 if (obj3) {
15452 {
15453 arg4 = wxString_in_helper(obj3);
15454 if (arg4 == NULL) SWIG_fail;
15455 temp4 = true;
15456 }
15457 }
15458 if (obj4) {
15459 ecode5 = SWIG_AsVal_bool(obj4, &val5);
15460 if (!SWIG_IsOK(ecode5)) {
15461 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
15462 }
15463 arg5 = static_cast< bool >(val5);
15464 }
15465 if (obj5) {
15466 ecode6 = SWIG_AsVal_bool(obj5, &val6);
15467 if (!SWIG_IsOK(ecode6)) {
15468 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
15469 }
15470 arg6 = static_cast< bool >(val6);
15471 }
15472 {
15473 PyThreadState* __tstate = wxPyBeginAllowThreads();
15474 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
15475 wxPyEndAllowThreads(__tstate);
15476 if (PyErr_Occurred()) SWIG_fail;
15477 }
15478 {
15479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15480 }
15481 {
15482 if (temp2)
15483 delete arg2;
15484 }
15485 {
15486 if (temp3)
15487 delete arg3;
15488 }
15489 {
15490 if (temp4)
15491 delete arg4;
15492 }
15493 return resultobj;
15494 fail:
15495 {
15496 if (temp2)
15497 delete arg2;
15498 }
15499 {
15500 if (temp3)
15501 delete arg3;
15502 }
15503 {
15504 if (temp4)
15505 delete arg4;
15506 }
15507 return NULL;
15508 }
15509
15510
15511 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15512 PyObject *resultobj = 0;
15513 wxLocale *arg1 = (wxLocale *) 0 ;
15514 int arg2 = (int) wxLANGUAGE_DEFAULT ;
15515 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
15516 bool result;
15517 void *argp1 = 0 ;
15518 int res1 = 0 ;
15519 int val2 ;
15520 int ecode2 = 0 ;
15521 int val3 ;
15522 int ecode3 = 0 ;
15523 PyObject * obj0 = 0 ;
15524 PyObject * obj1 = 0 ;
15525 PyObject * obj2 = 0 ;
15526 char * kwnames[] = {
15527 (char *) "self",(char *) "language",(char *) "flags", NULL
15528 };
15529
15530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15532 if (!SWIG_IsOK(res1)) {
15533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
15534 }
15535 arg1 = reinterpret_cast< wxLocale * >(argp1);
15536 if (obj1) {
15537 ecode2 = SWIG_AsVal_int(obj1, &val2);
15538 if (!SWIG_IsOK(ecode2)) {
15539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
15540 }
15541 arg2 = static_cast< int >(val2);
15542 }
15543 if (obj2) {
15544 ecode3 = SWIG_AsVal_int(obj2, &val3);
15545 if (!SWIG_IsOK(ecode3)) {
15546 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
15547 }
15548 arg3 = static_cast< int >(val3);
15549 }
15550 {
15551 PyThreadState* __tstate = wxPyBeginAllowThreads();
15552 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
15553 wxPyEndAllowThreads(__tstate);
15554 if (PyErr_Occurred()) SWIG_fail;
15555 }
15556 {
15557 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15558 }
15559 return resultobj;
15560 fail:
15561 return NULL;
15562 }
15563
15564
15565 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15566 PyObject *resultobj = 0;
15567 int result;
15568
15569 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
15570 {
15571 PyThreadState* __tstate = wxPyBeginAllowThreads();
15572 result = (int)wxLocale::GetSystemLanguage();
15573 wxPyEndAllowThreads(__tstate);
15574 if (PyErr_Occurred()) SWIG_fail;
15575 }
15576 resultobj = SWIG_From_int(static_cast< int >(result));
15577 return resultobj;
15578 fail:
15579 return NULL;
15580 }
15581
15582
15583 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15584 PyObject *resultobj = 0;
15585 wxFontEncoding result;
15586
15587 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
15588 {
15589 PyThreadState* __tstate = wxPyBeginAllowThreads();
15590 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
15591 wxPyEndAllowThreads(__tstate);
15592 if (PyErr_Occurred()) SWIG_fail;
15593 }
15594 resultobj = SWIG_From_int(static_cast< int >(result));
15595 return resultobj;
15596 fail:
15597 return NULL;
15598 }
15599
15600
15601 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15602 PyObject *resultobj = 0;
15603 wxString result;
15604
15605 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
15606 {
15607 PyThreadState* __tstate = wxPyBeginAllowThreads();
15608 result = wxLocale::GetSystemEncodingName();
15609 wxPyEndAllowThreads(__tstate);
15610 if (PyErr_Occurred()) SWIG_fail;
15611 }
15612 {
15613 #if wxUSE_UNICODE
15614 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15615 #else
15616 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15617 #endif
15618 }
15619 return resultobj;
15620 fail:
15621 return NULL;
15622 }
15623
15624
15625 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15626 PyObject *resultobj = 0;
15627 wxLocale *arg1 = (wxLocale *) 0 ;
15628 bool result;
15629 void *argp1 = 0 ;
15630 int res1 = 0 ;
15631 PyObject *swig_obj[1] ;
15632
15633 if (!args) SWIG_fail;
15634 swig_obj[0] = args;
15635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15636 if (!SWIG_IsOK(res1)) {
15637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
15638 }
15639 arg1 = reinterpret_cast< wxLocale * >(argp1);
15640 {
15641 PyThreadState* __tstate = wxPyBeginAllowThreads();
15642 result = (bool)((wxLocale const *)arg1)->IsOk();
15643 wxPyEndAllowThreads(__tstate);
15644 if (PyErr_Occurred()) SWIG_fail;
15645 }
15646 {
15647 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15648 }
15649 return resultobj;
15650 fail:
15651 return NULL;
15652 }
15653
15654
15655 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15656 PyObject *resultobj = 0;
15657 wxLocale *arg1 = (wxLocale *) 0 ;
15658 wxString result;
15659 void *argp1 = 0 ;
15660 int res1 = 0 ;
15661 PyObject *swig_obj[1] ;
15662
15663 if (!args) SWIG_fail;
15664 swig_obj[0] = args;
15665 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15666 if (!SWIG_IsOK(res1)) {
15667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
15668 }
15669 arg1 = reinterpret_cast< wxLocale * >(argp1);
15670 {
15671 PyThreadState* __tstate = wxPyBeginAllowThreads();
15672 result = ((wxLocale const *)arg1)->GetLocale();
15673 wxPyEndAllowThreads(__tstate);
15674 if (PyErr_Occurred()) SWIG_fail;
15675 }
15676 {
15677 #if wxUSE_UNICODE
15678 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15679 #else
15680 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15681 #endif
15682 }
15683 return resultobj;
15684 fail:
15685 return NULL;
15686 }
15687
15688
15689 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15690 PyObject *resultobj = 0;
15691 wxLocale *arg1 = (wxLocale *) 0 ;
15692 int result;
15693 void *argp1 = 0 ;
15694 int res1 = 0 ;
15695 PyObject *swig_obj[1] ;
15696
15697 if (!args) SWIG_fail;
15698 swig_obj[0] = args;
15699 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15700 if (!SWIG_IsOK(res1)) {
15701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
15702 }
15703 arg1 = reinterpret_cast< wxLocale * >(argp1);
15704 {
15705 PyThreadState* __tstate = wxPyBeginAllowThreads();
15706 result = (int)((wxLocale const *)arg1)->GetLanguage();
15707 wxPyEndAllowThreads(__tstate);
15708 if (PyErr_Occurred()) SWIG_fail;
15709 }
15710 resultobj = SWIG_From_int(static_cast< int >(result));
15711 return resultobj;
15712 fail:
15713 return NULL;
15714 }
15715
15716
15717 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15718 PyObject *resultobj = 0;
15719 wxLocale *arg1 = (wxLocale *) 0 ;
15720 wxString result;
15721 void *argp1 = 0 ;
15722 int res1 = 0 ;
15723 PyObject *swig_obj[1] ;
15724
15725 if (!args) SWIG_fail;
15726 swig_obj[0] = args;
15727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15728 if (!SWIG_IsOK(res1)) {
15729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15730 }
15731 arg1 = reinterpret_cast< wxLocale * >(argp1);
15732 {
15733 PyThreadState* __tstate = wxPyBeginAllowThreads();
15734 result = ((wxLocale const *)arg1)->GetSysName();
15735 wxPyEndAllowThreads(__tstate);
15736 if (PyErr_Occurred()) SWIG_fail;
15737 }
15738 {
15739 #if wxUSE_UNICODE
15740 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15741 #else
15742 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15743 #endif
15744 }
15745 return resultobj;
15746 fail:
15747 return NULL;
15748 }
15749
15750
15751 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15752 PyObject *resultobj = 0;
15753 wxLocale *arg1 = (wxLocale *) 0 ;
15754 wxString result;
15755 void *argp1 = 0 ;
15756 int res1 = 0 ;
15757 PyObject *swig_obj[1] ;
15758
15759 if (!args) SWIG_fail;
15760 swig_obj[0] = args;
15761 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15762 if (!SWIG_IsOK(res1)) {
15763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
15764 }
15765 arg1 = reinterpret_cast< wxLocale * >(argp1);
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 result = ((wxLocale const *)arg1)->GetCanonicalName();
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 {
15773 #if wxUSE_UNICODE
15774 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15775 #else
15776 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15777 #endif
15778 }
15779 return resultobj;
15780 fail:
15781 return NULL;
15782 }
15783
15784
15785 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15786 PyObject *resultobj = 0;
15787 wxString *arg1 = 0 ;
15788 bool temp1 = false ;
15789 PyObject * obj0 = 0 ;
15790 char * kwnames[] = {
15791 (char *) "prefix", NULL
15792 };
15793
15794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
15795 {
15796 arg1 = wxString_in_helper(obj0);
15797 if (arg1 == NULL) SWIG_fail;
15798 temp1 = true;
15799 }
15800 {
15801 PyThreadState* __tstate = wxPyBeginAllowThreads();
15802 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
15803 wxPyEndAllowThreads(__tstate);
15804 if (PyErr_Occurred()) SWIG_fail;
15805 }
15806 resultobj = SWIG_Py_Void();
15807 {
15808 if (temp1)
15809 delete arg1;
15810 }
15811 return resultobj;
15812 fail:
15813 {
15814 if (temp1)
15815 delete arg1;
15816 }
15817 return NULL;
15818 }
15819
15820
15821 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15822 PyObject *resultobj = 0;
15823 wxLocale *arg1 = (wxLocale *) 0 ;
15824 wxString *arg2 = 0 ;
15825 bool result;
15826 void *argp1 = 0 ;
15827 int res1 = 0 ;
15828 bool temp2 = false ;
15829 PyObject * obj0 = 0 ;
15830 PyObject * obj1 = 0 ;
15831 char * kwnames[] = {
15832 (char *) "self",(char *) "szDomain", NULL
15833 };
15834
15835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
15836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15837 if (!SWIG_IsOK(res1)) {
15838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
15839 }
15840 arg1 = reinterpret_cast< wxLocale * >(argp1);
15841 {
15842 arg2 = wxString_in_helper(obj1);
15843 if (arg2 == NULL) SWIG_fail;
15844 temp2 = true;
15845 }
15846 {
15847 PyThreadState* __tstate = wxPyBeginAllowThreads();
15848 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
15849 wxPyEndAllowThreads(__tstate);
15850 if (PyErr_Occurred()) SWIG_fail;
15851 }
15852 {
15853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15854 }
15855 {
15856 if (temp2)
15857 delete arg2;
15858 }
15859 return resultobj;
15860 fail:
15861 {
15862 if (temp2)
15863 delete arg2;
15864 }
15865 return NULL;
15866 }
15867
15868
15869 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15870 PyObject *resultobj = 0;
15871 wxLocale *arg1 = (wxLocale *) 0 ;
15872 wxString *arg2 = 0 ;
15873 bool result;
15874 void *argp1 = 0 ;
15875 int res1 = 0 ;
15876 bool temp2 = false ;
15877 PyObject * obj0 = 0 ;
15878 PyObject * obj1 = 0 ;
15879 char * kwnames[] = {
15880 (char *) "self",(char *) "szDomain", NULL
15881 };
15882
15883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
15884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
15885 if (!SWIG_IsOK(res1)) {
15886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
15887 }
15888 arg1 = reinterpret_cast< wxLocale * >(argp1);
15889 {
15890 arg2 = wxString_in_helper(obj1);
15891 if (arg2 == NULL) SWIG_fail;
15892 temp2 = true;
15893 }
15894 {
15895 PyThreadState* __tstate = wxPyBeginAllowThreads();
15896 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
15897 wxPyEndAllowThreads(__tstate);
15898 if (PyErr_Occurred()) SWIG_fail;
15899 }
15900 {
15901 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15902 }
15903 {
15904 if (temp2)
15905 delete arg2;
15906 }
15907 return resultobj;
15908 fail:
15909 {
15910 if (temp2)
15911 delete arg2;
15912 }
15913 return NULL;
15914 }
15915
15916
15917 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15918 PyObject *resultobj = 0;
15919 int arg1 ;
15920 wxLanguageInfo *result = 0 ;
15921 int val1 ;
15922 int ecode1 = 0 ;
15923 PyObject * obj0 = 0 ;
15924 char * kwnames[] = {
15925 (char *) "lang", NULL
15926 };
15927
15928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
15929 ecode1 = SWIG_AsVal_int(obj0, &val1);
15930 if (!SWIG_IsOK(ecode1)) {
15931 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
15932 }
15933 arg1 = static_cast< int >(val1);
15934 {
15935 PyThreadState* __tstate = wxPyBeginAllowThreads();
15936 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
15937 wxPyEndAllowThreads(__tstate);
15938 if (PyErr_Occurred()) SWIG_fail;
15939 }
15940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
15941 return resultobj;
15942 fail:
15943 return NULL;
15944 }
15945
15946
15947 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15948 PyObject *resultobj = 0;
15949 int arg1 ;
15950 wxString result;
15951 int val1 ;
15952 int ecode1 = 0 ;
15953 PyObject * obj0 = 0 ;
15954 char * kwnames[] = {
15955 (char *) "lang", NULL
15956 };
15957
15958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
15959 ecode1 = SWIG_AsVal_int(obj0, &val1);
15960 if (!SWIG_IsOK(ecode1)) {
15961 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
15962 }
15963 arg1 = static_cast< int >(val1);
15964 {
15965 PyThreadState* __tstate = wxPyBeginAllowThreads();
15966 result = wxLocale::GetLanguageName(arg1);
15967 wxPyEndAllowThreads(__tstate);
15968 if (PyErr_Occurred()) SWIG_fail;
15969 }
15970 {
15971 #if wxUSE_UNICODE
15972 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15973 #else
15974 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15975 #endif
15976 }
15977 return resultobj;
15978 fail:
15979 return NULL;
15980 }
15981
15982
15983 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15984 PyObject *resultobj = 0;
15985 wxString *arg1 = 0 ;
15986 wxLanguageInfo *result = 0 ;
15987 bool temp1 = false ;
15988 PyObject * obj0 = 0 ;
15989 char * kwnames[] = {
15990 (char *) "locale", NULL
15991 };
15992
15993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
15994 {
15995 arg1 = wxString_in_helper(obj0);
15996 if (arg1 == NULL) SWIG_fail;
15997 temp1 = true;
15998 }
15999 {
16000 PyThreadState* __tstate = wxPyBeginAllowThreads();
16001 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16002 wxPyEndAllowThreads(__tstate);
16003 if (PyErr_Occurred()) SWIG_fail;
16004 }
16005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16006 {
16007 if (temp1)
16008 delete arg1;
16009 }
16010 return resultobj;
16011 fail:
16012 {
16013 if (temp1)
16014 delete arg1;
16015 }
16016 return NULL;
16017 }
16018
16019
16020 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16021 PyObject *resultobj = 0;
16022 wxLanguageInfo *arg1 = 0 ;
16023 void *argp1 = 0 ;
16024 int res1 = 0 ;
16025 PyObject * obj0 = 0 ;
16026 char * kwnames[] = {
16027 (char *) "info", NULL
16028 };
16029
16030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16031 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16032 if (!SWIG_IsOK(res1)) {
16033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16034 }
16035 if (!argp1) {
16036 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16037 }
16038 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16039 {
16040 PyThreadState* __tstate = wxPyBeginAllowThreads();
16041 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16042 wxPyEndAllowThreads(__tstate);
16043 if (PyErr_Occurred()) SWIG_fail;
16044 }
16045 resultobj = SWIG_Py_Void();
16046 return resultobj;
16047 fail:
16048 return NULL;
16049 }
16050
16051
16052 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16053 PyObject *resultobj = 0;
16054 wxLocale *arg1 = (wxLocale *) 0 ;
16055 wxString *arg2 = 0 ;
16056 wxString const &arg3_defvalue = wxPyEmptyString ;
16057 wxString *arg3 = (wxString *) &arg3_defvalue ;
16058 wxString result;
16059 void *argp1 = 0 ;
16060 int res1 = 0 ;
16061 bool temp2 = false ;
16062 bool temp3 = false ;
16063 PyObject * obj0 = 0 ;
16064 PyObject * obj1 = 0 ;
16065 PyObject * obj2 = 0 ;
16066 char * kwnames[] = {
16067 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16068 };
16069
16070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16072 if (!SWIG_IsOK(res1)) {
16073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16074 }
16075 arg1 = reinterpret_cast< wxLocale * >(argp1);
16076 {
16077 arg2 = wxString_in_helper(obj1);
16078 if (arg2 == NULL) SWIG_fail;
16079 temp2 = true;
16080 }
16081 if (obj2) {
16082 {
16083 arg3 = wxString_in_helper(obj2);
16084 if (arg3 == NULL) SWIG_fail;
16085 temp3 = true;
16086 }
16087 }
16088 {
16089 PyThreadState* __tstate = wxPyBeginAllowThreads();
16090 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16091 wxPyEndAllowThreads(__tstate);
16092 if (PyErr_Occurred()) SWIG_fail;
16093 }
16094 {
16095 #if wxUSE_UNICODE
16096 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16097 #else
16098 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16099 #endif
16100 }
16101 {
16102 if (temp2)
16103 delete arg2;
16104 }
16105 {
16106 if (temp3)
16107 delete arg3;
16108 }
16109 return resultobj;
16110 fail:
16111 {
16112 if (temp2)
16113 delete arg2;
16114 }
16115 {
16116 if (temp3)
16117 delete arg3;
16118 }
16119 return NULL;
16120 }
16121
16122
16123 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16124 PyObject *resultobj = 0;
16125 wxLocale *arg1 = (wxLocale *) 0 ;
16126 wxString *result = 0 ;
16127 void *argp1 = 0 ;
16128 int res1 = 0 ;
16129 PyObject *swig_obj[1] ;
16130
16131 if (!args) SWIG_fail;
16132 swig_obj[0] = args;
16133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16134 if (!SWIG_IsOK(res1)) {
16135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16136 }
16137 arg1 = reinterpret_cast< wxLocale * >(argp1);
16138 {
16139 PyThreadState* __tstate = wxPyBeginAllowThreads();
16140 {
16141 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
16142 result = (wxString *) &_result_ref;
16143 }
16144 wxPyEndAllowThreads(__tstate);
16145 if (PyErr_Occurred()) SWIG_fail;
16146 }
16147 {
16148 #if wxUSE_UNICODE
16149 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16150 #else
16151 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16152 #endif
16153 }
16154 return resultobj;
16155 fail:
16156 return NULL;
16157 }
16158
16159
16160 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16161 PyObject *obj;
16162 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16163 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
16164 return SWIG_Py_Void();
16165 }
16166
16167 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16168 return SWIG_Python_InitShadowInstance(args);
16169 }
16170
16171 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16172 PyObject *resultobj = 0;
16173 int arg1 = (int) -1 ;
16174 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16175 wxPyLocale *result = 0 ;
16176 int val1 ;
16177 int ecode1 = 0 ;
16178 int val2 ;
16179 int ecode2 = 0 ;
16180 PyObject * obj0 = 0 ;
16181 PyObject * obj1 = 0 ;
16182 char * kwnames[] = {
16183 (char *) "language",(char *) "flags", NULL
16184 };
16185
16186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
16187 if (obj0) {
16188 ecode1 = SWIG_AsVal_int(obj0, &val1);
16189 if (!SWIG_IsOK(ecode1)) {
16190 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
16191 }
16192 arg1 = static_cast< int >(val1);
16193 }
16194 if (obj1) {
16195 ecode2 = SWIG_AsVal_int(obj1, &val2);
16196 if (!SWIG_IsOK(ecode2)) {
16197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
16198 }
16199 arg2 = static_cast< int >(val2);
16200 }
16201 {
16202 PyThreadState* __tstate = wxPyBeginAllowThreads();
16203 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
16204 wxPyEndAllowThreads(__tstate);
16205 if (PyErr_Occurred()) SWIG_fail;
16206 }
16207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
16208 return resultobj;
16209 fail:
16210 return NULL;
16211 }
16212
16213
16214 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16215 PyObject *resultobj = 0;
16216 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16217 void *argp1 = 0 ;
16218 int res1 = 0 ;
16219 PyObject *swig_obj[1] ;
16220
16221 if (!args) SWIG_fail;
16222 swig_obj[0] = args;
16223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
16224 if (!SWIG_IsOK(res1)) {
16225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16226 }
16227 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16228 {
16229 PyThreadState* __tstate = wxPyBeginAllowThreads();
16230 delete arg1;
16231
16232 wxPyEndAllowThreads(__tstate);
16233 if (PyErr_Occurred()) SWIG_fail;
16234 }
16235 resultobj = SWIG_Py_Void();
16236 return resultobj;
16237 fail:
16238 return NULL;
16239 }
16240
16241
16242 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16243 PyObject *resultobj = 0;
16244 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16245 PyObject *arg2 = (PyObject *) 0 ;
16246 PyObject *arg3 = (PyObject *) 0 ;
16247 void *argp1 = 0 ;
16248 int res1 = 0 ;
16249 PyObject * obj0 = 0 ;
16250 PyObject * obj1 = 0 ;
16251 PyObject * obj2 = 0 ;
16252 char * kwnames[] = {
16253 (char *) "self",(char *) "self",(char *) "_class", NULL
16254 };
16255
16256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16258 if (!SWIG_IsOK(res1)) {
16259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
16260 }
16261 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16262 arg2 = obj1;
16263 arg3 = obj2;
16264 {
16265 PyThreadState* __tstate = wxPyBeginAllowThreads();
16266 (arg1)->_setCallbackInfo(arg2,arg3);
16267 wxPyEndAllowThreads(__tstate);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 }
16270 resultobj = SWIG_Py_Void();
16271 return resultobj;
16272 fail:
16273 return NULL;
16274 }
16275
16276
16277 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16278 PyObject *resultobj = 0;
16279 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16280 wxChar *arg2 = (wxChar *) 0 ;
16281 wxChar *arg3 = (wxChar *) NULL ;
16282 wxChar *result = 0 ;
16283 void *argp1 = 0 ;
16284 int res1 = 0 ;
16285 void *argp2 = 0 ;
16286 int res2 = 0 ;
16287 void *argp3 = 0 ;
16288 int res3 = 0 ;
16289 PyObject * obj0 = 0 ;
16290 PyObject * obj1 = 0 ;
16291 PyObject * obj2 = 0 ;
16292 char * kwnames[] = {
16293 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16294 };
16295
16296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16298 if (!SWIG_IsOK(res1)) {
16299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16300 }
16301 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16302 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16303 if (!SWIG_IsOK(res2)) {
16304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
16305 }
16306 arg2 = reinterpret_cast< wxChar * >(argp2);
16307 if (obj2) {
16308 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16309 if (!SWIG_IsOK(res3)) {
16310 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
16311 }
16312 arg3 = reinterpret_cast< wxChar * >(argp3);
16313 }
16314 {
16315 PyThreadState* __tstate = wxPyBeginAllowThreads();
16316 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
16317 wxPyEndAllowThreads(__tstate);
16318 if (PyErr_Occurred()) SWIG_fail;
16319 }
16320 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16321 return resultobj;
16322 fail:
16323 return NULL;
16324 }
16325
16326
16327 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16328 PyObject *resultobj = 0;
16329 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
16330 wxChar *arg2 = (wxChar *) 0 ;
16331 wxChar *arg3 = (wxChar *) 0 ;
16332 size_t arg4 ;
16333 wxChar *arg5 = (wxChar *) NULL ;
16334 wxChar *result = 0 ;
16335 void *argp1 = 0 ;
16336 int res1 = 0 ;
16337 void *argp2 = 0 ;
16338 int res2 = 0 ;
16339 void *argp3 = 0 ;
16340 int res3 = 0 ;
16341 size_t val4 ;
16342 int ecode4 = 0 ;
16343 void *argp5 = 0 ;
16344 int res5 = 0 ;
16345 PyObject * obj0 = 0 ;
16346 PyObject * obj1 = 0 ;
16347 PyObject * obj2 = 0 ;
16348 PyObject * obj3 = 0 ;
16349 PyObject * obj4 = 0 ;
16350 char * kwnames[] = {
16351 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
16352 };
16353
16354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
16356 if (!SWIG_IsOK(res1)) {
16357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
16358 }
16359 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
16360 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
16361 if (!SWIG_IsOK(res2)) {
16362 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
16363 }
16364 arg2 = reinterpret_cast< wxChar * >(argp2);
16365 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
16366 if (!SWIG_IsOK(res3)) {
16367 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
16368 }
16369 arg3 = reinterpret_cast< wxChar * >(argp3);
16370 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
16371 if (!SWIG_IsOK(ecode4)) {
16372 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
16373 }
16374 arg4 = static_cast< size_t >(val4);
16375 if (obj4) {
16376 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
16377 if (!SWIG_IsOK(res5)) {
16378 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
16379 }
16380 arg5 = reinterpret_cast< wxChar * >(argp5);
16381 }
16382 {
16383 PyThreadState* __tstate = wxPyBeginAllowThreads();
16384 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
16385 wxPyEndAllowThreads(__tstate);
16386 if (PyErr_Occurred()) SWIG_fail;
16387 }
16388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
16389 return resultobj;
16390 fail:
16391 return NULL;
16392 }
16393
16394
16395 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16396 PyObject *obj;
16397 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16398 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
16399 return SWIG_Py_Void();
16400 }
16401
16402 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16403 return SWIG_Python_InitShadowInstance(args);
16404 }
16405
16406 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16407 PyObject *resultobj = 0;
16408 wxLocale *result = 0 ;
16409
16410 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
16411 {
16412 PyThreadState* __tstate = wxPyBeginAllowThreads();
16413 result = (wxLocale *)wxGetLocale();
16414 wxPyEndAllowThreads(__tstate);
16415 if (PyErr_Occurred()) SWIG_fail;
16416 }
16417 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
16418 return resultobj;
16419 fail:
16420 return NULL;
16421 }
16422
16423
16424 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16425 PyObject *resultobj = 0;
16426 wxString *arg1 = 0 ;
16427 wxString result;
16428 bool temp1 = false ;
16429
16430 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
16431 {
16432 arg1 = wxString_in_helper(swig_obj[0]);
16433 if (arg1 == NULL) SWIG_fail;
16434 temp1 = true;
16435 }
16436 {
16437 PyThreadState* __tstate = wxPyBeginAllowThreads();
16438 result = wxGetTranslation((wxString const &)*arg1);
16439 wxPyEndAllowThreads(__tstate);
16440 if (PyErr_Occurred()) SWIG_fail;
16441 }
16442 {
16443 #if wxUSE_UNICODE
16444 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16445 #else
16446 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16447 #endif
16448 }
16449 {
16450 if (temp1)
16451 delete arg1;
16452 }
16453 return resultobj;
16454 fail:
16455 {
16456 if (temp1)
16457 delete arg1;
16458 }
16459 return NULL;
16460 }
16461
16462
16463 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16464 PyObject *resultobj = 0;
16465 wxString *arg1 = 0 ;
16466 wxString *arg2 = 0 ;
16467 wxString result;
16468 bool temp1 = false ;
16469 bool temp2 = false ;
16470
16471 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
16472 {
16473 arg1 = wxString_in_helper(swig_obj[0]);
16474 if (arg1 == NULL) SWIG_fail;
16475 temp1 = true;
16476 }
16477 {
16478 arg2 = wxString_in_helper(swig_obj[1]);
16479 if (arg2 == NULL) SWIG_fail;
16480 temp2 = true;
16481 }
16482 {
16483 PyThreadState* __tstate = wxPyBeginAllowThreads();
16484 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
16485 wxPyEndAllowThreads(__tstate);
16486 if (PyErr_Occurred()) SWIG_fail;
16487 }
16488 {
16489 #if wxUSE_UNICODE
16490 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16491 #else
16492 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16493 #endif
16494 }
16495 {
16496 if (temp1)
16497 delete arg1;
16498 }
16499 {
16500 if (temp2)
16501 delete arg2;
16502 }
16503 return resultobj;
16504 fail:
16505 {
16506 if (temp1)
16507 delete arg1;
16508 }
16509 {
16510 if (temp2)
16511 delete arg2;
16512 }
16513 return NULL;
16514 }
16515
16516
16517 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16518 PyObject *resultobj = 0;
16519 wxString *arg1 = 0 ;
16520 wxString *arg2 = 0 ;
16521 size_t arg3 ;
16522 wxString result;
16523 bool temp1 = false ;
16524 bool temp2 = false ;
16525 size_t val3 ;
16526 int ecode3 = 0 ;
16527
16528 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
16529 {
16530 arg1 = wxString_in_helper(swig_obj[0]);
16531 if (arg1 == NULL) SWIG_fail;
16532 temp1 = true;
16533 }
16534 {
16535 arg2 = wxString_in_helper(swig_obj[1]);
16536 if (arg2 == NULL) SWIG_fail;
16537 temp2 = true;
16538 }
16539 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16540 if (!SWIG_IsOK(ecode3)) {
16541 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16542 }
16543 arg3 = static_cast< size_t >(val3);
16544 {
16545 PyThreadState* __tstate = wxPyBeginAllowThreads();
16546 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 {
16551 #if wxUSE_UNICODE
16552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16553 #else
16554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16555 #endif
16556 }
16557 {
16558 if (temp1)
16559 delete arg1;
16560 }
16561 {
16562 if (temp2)
16563 delete arg2;
16564 }
16565 return resultobj;
16566 fail:
16567 {
16568 if (temp1)
16569 delete arg1;
16570 }
16571 {
16572 if (temp2)
16573 delete arg2;
16574 }
16575 return NULL;
16576 }
16577
16578
16579 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
16580 PyObject *resultobj = 0;
16581 wxString *arg1 = 0 ;
16582 wxString *arg2 = 0 ;
16583 size_t arg3 ;
16584 wxString *arg4 = 0 ;
16585 wxString result;
16586 bool temp1 = false ;
16587 bool temp2 = false ;
16588 size_t val3 ;
16589 int ecode3 = 0 ;
16590 bool temp4 = false ;
16591
16592 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
16593 {
16594 arg1 = wxString_in_helper(swig_obj[0]);
16595 if (arg1 == NULL) SWIG_fail;
16596 temp1 = true;
16597 }
16598 {
16599 arg2 = wxString_in_helper(swig_obj[1]);
16600 if (arg2 == NULL) SWIG_fail;
16601 temp2 = true;
16602 }
16603 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
16604 if (!SWIG_IsOK(ecode3)) {
16605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
16606 }
16607 arg3 = static_cast< size_t >(val3);
16608 {
16609 arg4 = wxString_in_helper(swig_obj[3]);
16610 if (arg4 == NULL) SWIG_fail;
16611 temp4 = true;
16612 }
16613 {
16614 PyThreadState* __tstate = wxPyBeginAllowThreads();
16615 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
16616 wxPyEndAllowThreads(__tstate);
16617 if (PyErr_Occurred()) SWIG_fail;
16618 }
16619 {
16620 #if wxUSE_UNICODE
16621 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16622 #else
16623 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16624 #endif
16625 }
16626 {
16627 if (temp1)
16628 delete arg1;
16629 }
16630 {
16631 if (temp2)
16632 delete arg2;
16633 }
16634 {
16635 if (temp4)
16636 delete arg4;
16637 }
16638 return resultobj;
16639 fail:
16640 {
16641 if (temp1)
16642 delete arg1;
16643 }
16644 {
16645 if (temp2)
16646 delete arg2;
16647 }
16648 {
16649 if (temp4)
16650 delete arg4;
16651 }
16652 return NULL;
16653 }
16654
16655
16656 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
16657 int argc;
16658 PyObject *argv[5];
16659
16660 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
16661 --argc;
16662 if (argc == 1) {
16663 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
16664 }
16665 if (argc == 2) {
16666 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
16667 }
16668 if (argc == 3) {
16669 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
16670 }
16671 if (argc == 4) {
16672 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
16673 }
16674
16675 fail:
16676 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
16677 return NULL;
16678 }
16679
16680
16681 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16682 PyObject *resultobj = 0;
16683 wxEncodingConverter *result = 0 ;
16684
16685 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
16686 {
16687 PyThreadState* __tstate = wxPyBeginAllowThreads();
16688 result = (wxEncodingConverter *)new wxEncodingConverter();
16689 wxPyEndAllowThreads(__tstate);
16690 if (PyErr_Occurred()) SWIG_fail;
16691 }
16692 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
16693 return resultobj;
16694 fail:
16695 return NULL;
16696 }
16697
16698
16699 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16700 PyObject *resultobj = 0;
16701 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16702 void *argp1 = 0 ;
16703 int res1 = 0 ;
16704 PyObject *swig_obj[1] ;
16705
16706 if (!args) SWIG_fail;
16707 swig_obj[0] = args;
16708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
16709 if (!SWIG_IsOK(res1)) {
16710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16711 }
16712 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16713 {
16714 PyThreadState* __tstate = wxPyBeginAllowThreads();
16715 delete arg1;
16716
16717 wxPyEndAllowThreads(__tstate);
16718 if (PyErr_Occurred()) SWIG_fail;
16719 }
16720 resultobj = SWIG_Py_Void();
16721 return resultobj;
16722 fail:
16723 return NULL;
16724 }
16725
16726
16727 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16728 PyObject *resultobj = 0;
16729 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16730 wxFontEncoding arg2 ;
16731 wxFontEncoding arg3 ;
16732 int arg4 = (int) wxCONVERT_STRICT ;
16733 bool result;
16734 void *argp1 = 0 ;
16735 int res1 = 0 ;
16736 int val2 ;
16737 int ecode2 = 0 ;
16738 int val3 ;
16739 int ecode3 = 0 ;
16740 int val4 ;
16741 int ecode4 = 0 ;
16742 PyObject * obj0 = 0 ;
16743 PyObject * obj1 = 0 ;
16744 PyObject * obj2 = 0 ;
16745 PyObject * obj3 = 0 ;
16746 char * kwnames[] = {
16747 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
16748 };
16749
16750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16752 if (!SWIG_IsOK(res1)) {
16753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16754 }
16755 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16756 ecode2 = SWIG_AsVal_int(obj1, &val2);
16757 if (!SWIG_IsOK(ecode2)) {
16758 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16759 }
16760 arg2 = static_cast< wxFontEncoding >(val2);
16761 ecode3 = SWIG_AsVal_int(obj2, &val3);
16762 if (!SWIG_IsOK(ecode3)) {
16763 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
16764 }
16765 arg3 = static_cast< wxFontEncoding >(val3);
16766 if (obj3) {
16767 ecode4 = SWIG_AsVal_int(obj3, &val4);
16768 if (!SWIG_IsOK(ecode4)) {
16769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
16770 }
16771 arg4 = static_cast< int >(val4);
16772 }
16773 {
16774 PyThreadState* __tstate = wxPyBeginAllowThreads();
16775 result = (bool)(arg1)->Init(arg2,arg3,arg4);
16776 wxPyEndAllowThreads(__tstate);
16777 if (PyErr_Occurred()) SWIG_fail;
16778 }
16779 {
16780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16781 }
16782 return resultobj;
16783 fail:
16784 return NULL;
16785 }
16786
16787
16788 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16789 PyObject *resultobj = 0;
16790 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
16791 wxString *arg2 = 0 ;
16792 wxString result;
16793 void *argp1 = 0 ;
16794 int res1 = 0 ;
16795 bool temp2 = false ;
16796 PyObject * obj0 = 0 ;
16797 PyObject * obj1 = 0 ;
16798 char * kwnames[] = {
16799 (char *) "self",(char *) "input", NULL
16800 };
16801
16802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
16803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
16804 if (!SWIG_IsOK(res1)) {
16805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
16806 }
16807 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
16808 {
16809 arg2 = wxString_in_helper(obj1);
16810 if (arg2 == NULL) SWIG_fail;
16811 temp2 = true;
16812 }
16813 {
16814 PyThreadState* __tstate = wxPyBeginAllowThreads();
16815 result = (arg1)->Convert((wxString const &)*arg2);
16816 wxPyEndAllowThreads(__tstate);
16817 if (PyErr_Occurred()) SWIG_fail;
16818 }
16819 {
16820 #if wxUSE_UNICODE
16821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16822 #else
16823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16824 #endif
16825 }
16826 {
16827 if (temp2)
16828 delete arg2;
16829 }
16830 return resultobj;
16831 fail:
16832 {
16833 if (temp2)
16834 delete arg2;
16835 }
16836 return NULL;
16837 }
16838
16839
16840 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16841 PyObject *resultobj = 0;
16842 wxFontEncoding arg1 ;
16843 int arg2 = (int) wxPLATFORM_CURRENT ;
16844 wxFontEncodingArray result;
16845 int val1 ;
16846 int ecode1 = 0 ;
16847 int val2 ;
16848 int ecode2 = 0 ;
16849 PyObject * obj0 = 0 ;
16850 PyObject * obj1 = 0 ;
16851 char * kwnames[] = {
16852 (char *) "enc",(char *) "platform", NULL
16853 };
16854
16855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
16856 ecode1 = SWIG_AsVal_int(obj0, &val1);
16857 if (!SWIG_IsOK(ecode1)) {
16858 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16859 }
16860 arg1 = static_cast< wxFontEncoding >(val1);
16861 if (obj1) {
16862 ecode2 = SWIG_AsVal_int(obj1, &val2);
16863 if (!SWIG_IsOK(ecode2)) {
16864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
16865 }
16866 arg2 = static_cast< int >(val2);
16867 }
16868 {
16869 PyThreadState* __tstate = wxPyBeginAllowThreads();
16870 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
16871 wxPyEndAllowThreads(__tstate);
16872 if (PyErr_Occurred()) SWIG_fail;
16873 }
16874 {
16875 resultobj = PyList_New(0);
16876 for (size_t i=0; i < (&result)->GetCount(); i++) {
16877 PyObject* number = PyInt_FromLong((&result)->Item(i));
16878 PyList_Append(resultobj, number);
16879 Py_DECREF(number);
16880 }
16881 }
16882 return resultobj;
16883 fail:
16884 return NULL;
16885 }
16886
16887
16888 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16889 PyObject *resultobj = 0;
16890 wxFontEncoding arg1 ;
16891 wxFontEncodingArray result;
16892 int val1 ;
16893 int ecode1 = 0 ;
16894 PyObject * obj0 = 0 ;
16895 char * kwnames[] = {
16896 (char *) "enc", NULL
16897 };
16898
16899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
16900 ecode1 = SWIG_AsVal_int(obj0, &val1);
16901 if (!SWIG_IsOK(ecode1)) {
16902 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16903 }
16904 arg1 = static_cast< wxFontEncoding >(val1);
16905 {
16906 PyThreadState* __tstate = wxPyBeginAllowThreads();
16907 result = wxEncodingConverter::GetAllEquivalents(arg1);
16908 wxPyEndAllowThreads(__tstate);
16909 if (PyErr_Occurred()) SWIG_fail;
16910 }
16911 {
16912 resultobj = PyList_New(0);
16913 for (size_t i=0; i < (&result)->GetCount(); i++) {
16914 PyObject* number = PyInt_FromLong((&result)->Item(i));
16915 PyList_Append(resultobj, number);
16916 Py_DECREF(number);
16917 }
16918 }
16919 return resultobj;
16920 fail:
16921 return NULL;
16922 }
16923
16924
16925 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16926 PyObject *resultobj = 0;
16927 wxFontEncoding arg1 ;
16928 wxFontEncoding arg2 ;
16929 bool result;
16930 int val1 ;
16931 int ecode1 = 0 ;
16932 int val2 ;
16933 int ecode2 = 0 ;
16934 PyObject * obj0 = 0 ;
16935 PyObject * obj1 = 0 ;
16936 char * kwnames[] = {
16937 (char *) "encIn",(char *) "encOut", NULL
16938 };
16939
16940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
16941 ecode1 = SWIG_AsVal_int(obj0, &val1);
16942 if (!SWIG_IsOK(ecode1)) {
16943 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
16944 }
16945 arg1 = static_cast< wxFontEncoding >(val1);
16946 ecode2 = SWIG_AsVal_int(obj1, &val2);
16947 if (!SWIG_IsOK(ecode2)) {
16948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
16949 }
16950 arg2 = static_cast< wxFontEncoding >(val2);
16951 {
16952 PyThreadState* __tstate = wxPyBeginAllowThreads();
16953 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
16954 wxPyEndAllowThreads(__tstate);
16955 if (PyErr_Occurred()) SWIG_fail;
16956 }
16957 {
16958 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16959 }
16960 return resultobj;
16961 fail:
16962 return NULL;
16963 }
16964
16965
16966 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16967 PyObject *obj;
16968 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16969 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
16970 return SWIG_Py_Void();
16971 }
16972
16973 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16974 return SWIG_Python_InitShadowInstance(args);
16975 }
16976
16977 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16978 PyObject *resultobj = 0;
16979 wxDC *arg1 = (wxDC *) 0 ;
16980 void *argp1 = 0 ;
16981 int res1 = 0 ;
16982 PyObject *swig_obj[1] ;
16983
16984 if (!args) SWIG_fail;
16985 swig_obj[0] = args;
16986 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
16987 if (!SWIG_IsOK(res1)) {
16988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
16989 }
16990 arg1 = reinterpret_cast< wxDC * >(argp1);
16991 {
16992 PyThreadState* __tstate = wxPyBeginAllowThreads();
16993 delete arg1;
16994
16995 wxPyEndAllowThreads(__tstate);
16996 if (PyErr_Occurred()) SWIG_fail;
16997 }
16998 resultobj = SWIG_Py_Void();
16999 return resultobj;
17000 fail:
17001 return NULL;
17002 }
17003
17004
17005 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17006 PyObject *resultobj = 0;
17007 wxDC *arg1 = (wxDC *) 0 ;
17008 int arg2 ;
17009 int arg3 ;
17010 wxColour *arg4 = 0 ;
17011 int arg5 = (int) wxFLOOD_SURFACE ;
17012 bool result;
17013 void *argp1 = 0 ;
17014 int res1 = 0 ;
17015 int val2 ;
17016 int ecode2 = 0 ;
17017 int val3 ;
17018 int ecode3 = 0 ;
17019 wxColour temp4 ;
17020 int val5 ;
17021 int ecode5 = 0 ;
17022 PyObject * obj0 = 0 ;
17023 PyObject * obj1 = 0 ;
17024 PyObject * obj2 = 0 ;
17025 PyObject * obj3 = 0 ;
17026 PyObject * obj4 = 0 ;
17027 char * kwnames[] = {
17028 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17029 };
17030
17031 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17032 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17033 if (!SWIG_IsOK(res1)) {
17034 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17035 }
17036 arg1 = reinterpret_cast< wxDC * >(argp1);
17037 ecode2 = SWIG_AsVal_int(obj1, &val2);
17038 if (!SWIG_IsOK(ecode2)) {
17039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17040 }
17041 arg2 = static_cast< int >(val2);
17042 ecode3 = SWIG_AsVal_int(obj2, &val3);
17043 if (!SWIG_IsOK(ecode3)) {
17044 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17045 }
17046 arg3 = static_cast< int >(val3);
17047 {
17048 arg4 = &temp4;
17049 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17050 }
17051 if (obj4) {
17052 ecode5 = SWIG_AsVal_int(obj4, &val5);
17053 if (!SWIG_IsOK(ecode5)) {
17054 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17055 }
17056 arg5 = static_cast< int >(val5);
17057 }
17058 {
17059 PyThreadState* __tstate = wxPyBeginAllowThreads();
17060 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17061 wxPyEndAllowThreads(__tstate);
17062 if (PyErr_Occurred()) SWIG_fail;
17063 }
17064 {
17065 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17066 }
17067 return resultobj;
17068 fail:
17069 return NULL;
17070 }
17071
17072
17073 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17074 PyObject *resultobj = 0;
17075 wxDC *arg1 = (wxDC *) 0 ;
17076 wxPoint *arg2 = 0 ;
17077 wxColour *arg3 = 0 ;
17078 int arg4 = (int) wxFLOOD_SURFACE ;
17079 bool result;
17080 void *argp1 = 0 ;
17081 int res1 = 0 ;
17082 wxPoint temp2 ;
17083 wxColour temp3 ;
17084 int val4 ;
17085 int ecode4 = 0 ;
17086 PyObject * obj0 = 0 ;
17087 PyObject * obj1 = 0 ;
17088 PyObject * obj2 = 0 ;
17089 PyObject * obj3 = 0 ;
17090 char * kwnames[] = {
17091 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17092 };
17093
17094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17096 if (!SWIG_IsOK(res1)) {
17097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17098 }
17099 arg1 = reinterpret_cast< wxDC * >(argp1);
17100 {
17101 arg2 = &temp2;
17102 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17103 }
17104 {
17105 arg3 = &temp3;
17106 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17107 }
17108 if (obj3) {
17109 ecode4 = SWIG_AsVal_int(obj3, &val4);
17110 if (!SWIG_IsOK(ecode4)) {
17111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17112 }
17113 arg4 = static_cast< int >(val4);
17114 }
17115 {
17116 PyThreadState* __tstate = wxPyBeginAllowThreads();
17117 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
17118 wxPyEndAllowThreads(__tstate);
17119 if (PyErr_Occurred()) SWIG_fail;
17120 }
17121 {
17122 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17123 }
17124 return resultobj;
17125 fail:
17126 return NULL;
17127 }
17128
17129
17130 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17131 PyObject *resultobj = 0;
17132 wxDC *arg1 = (wxDC *) 0 ;
17133 wxRect *arg2 = 0 ;
17134 wxColour *arg3 = 0 ;
17135 wxColour *arg4 = 0 ;
17136 wxPoint *arg5 = 0 ;
17137 void *argp1 = 0 ;
17138 int res1 = 0 ;
17139 wxRect temp2 ;
17140 wxColour temp3 ;
17141 wxColour temp4 ;
17142 wxPoint temp5 ;
17143 PyObject * obj0 = 0 ;
17144 PyObject * obj1 = 0 ;
17145 PyObject * obj2 = 0 ;
17146 PyObject * obj3 = 0 ;
17147 PyObject * obj4 = 0 ;
17148 char * kwnames[] = {
17149 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
17150 };
17151
17152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17154 if (!SWIG_IsOK(res1)) {
17155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
17156 }
17157 arg1 = reinterpret_cast< wxDC * >(argp1);
17158 {
17159 arg2 = &temp2;
17160 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17161 }
17162 {
17163 arg3 = &temp3;
17164 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17165 }
17166 {
17167 arg4 = &temp4;
17168 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17169 }
17170 {
17171 arg5 = &temp5;
17172 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17173 }
17174 {
17175 PyThreadState* __tstate = wxPyBeginAllowThreads();
17176 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
17177 wxPyEndAllowThreads(__tstate);
17178 if (PyErr_Occurred()) SWIG_fail;
17179 }
17180 resultobj = SWIG_Py_Void();
17181 return resultobj;
17182 fail:
17183 return NULL;
17184 }
17185
17186
17187 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17188 PyObject *resultobj = 0;
17189 wxDC *arg1 = (wxDC *) 0 ;
17190 wxRect *arg2 = 0 ;
17191 wxColour *arg3 = 0 ;
17192 wxColour *arg4 = 0 ;
17193 wxDirection arg5 = (wxDirection) wxEAST ;
17194 void *argp1 = 0 ;
17195 int res1 = 0 ;
17196 wxRect temp2 ;
17197 wxColour temp3 ;
17198 wxColour temp4 ;
17199 int val5 ;
17200 int ecode5 = 0 ;
17201 PyObject * obj0 = 0 ;
17202 PyObject * obj1 = 0 ;
17203 PyObject * obj2 = 0 ;
17204 PyObject * obj3 = 0 ;
17205 PyObject * obj4 = 0 ;
17206 char * kwnames[] = {
17207 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
17208 };
17209
17210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17212 if (!SWIG_IsOK(res1)) {
17213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
17214 }
17215 arg1 = reinterpret_cast< wxDC * >(argp1);
17216 {
17217 arg2 = &temp2;
17218 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17219 }
17220 {
17221 arg3 = &temp3;
17222 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17223 }
17224 {
17225 arg4 = &temp4;
17226 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17227 }
17228 if (obj4) {
17229 ecode5 = SWIG_AsVal_int(obj4, &val5);
17230 if (!SWIG_IsOK(ecode5)) {
17231 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
17232 }
17233 arg5 = static_cast< wxDirection >(val5);
17234 }
17235 {
17236 PyThreadState* __tstate = wxPyBeginAllowThreads();
17237 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
17238 wxPyEndAllowThreads(__tstate);
17239 if (PyErr_Occurred()) SWIG_fail;
17240 }
17241 resultobj = SWIG_Py_Void();
17242 return resultobj;
17243 fail:
17244 return NULL;
17245 }
17246
17247
17248 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17249 PyObject *resultobj = 0;
17250 wxDC *arg1 = (wxDC *) 0 ;
17251 int arg2 ;
17252 int arg3 ;
17253 wxColour result;
17254 void *argp1 = 0 ;
17255 int res1 = 0 ;
17256 int val2 ;
17257 int ecode2 = 0 ;
17258 int val3 ;
17259 int ecode3 = 0 ;
17260 PyObject * obj0 = 0 ;
17261 PyObject * obj1 = 0 ;
17262 PyObject * obj2 = 0 ;
17263 char * kwnames[] = {
17264 (char *) "self",(char *) "x",(char *) "y", NULL
17265 };
17266
17267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17269 if (!SWIG_IsOK(res1)) {
17270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
17271 }
17272 arg1 = reinterpret_cast< wxDC * >(argp1);
17273 ecode2 = SWIG_AsVal_int(obj1, &val2);
17274 if (!SWIG_IsOK(ecode2)) {
17275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
17276 }
17277 arg2 = static_cast< int >(val2);
17278 ecode3 = SWIG_AsVal_int(obj2, &val3);
17279 if (!SWIG_IsOK(ecode3)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
17281 }
17282 arg3 = static_cast< int >(val3);
17283 {
17284 PyThreadState* __tstate = wxPyBeginAllowThreads();
17285 result = wxDC_GetPixel(arg1,arg2,arg3);
17286 wxPyEndAllowThreads(__tstate);
17287 if (PyErr_Occurred()) SWIG_fail;
17288 }
17289 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17290 return resultobj;
17291 fail:
17292 return NULL;
17293 }
17294
17295
17296 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17297 PyObject *resultobj = 0;
17298 wxDC *arg1 = (wxDC *) 0 ;
17299 wxPoint *arg2 = 0 ;
17300 wxColour result;
17301 void *argp1 = 0 ;
17302 int res1 = 0 ;
17303 wxPoint temp2 ;
17304 PyObject * obj0 = 0 ;
17305 PyObject * obj1 = 0 ;
17306 char * kwnames[] = {
17307 (char *) "self",(char *) "pt", NULL
17308 };
17309
17310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) 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_GetPixelPoint" "', 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 PyThreadState* __tstate = wxPyBeginAllowThreads();
17322 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
17323 wxPyEndAllowThreads(__tstate);
17324 if (PyErr_Occurred()) SWIG_fail;
17325 }
17326 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
17327 return resultobj;
17328 fail:
17329 return NULL;
17330 }
17331
17332
17333 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17334 PyObject *resultobj = 0;
17335 wxDC *arg1 = (wxDC *) 0 ;
17336 int arg2 ;
17337 int arg3 ;
17338 int arg4 ;
17339 int arg5 ;
17340 void *argp1 = 0 ;
17341 int res1 = 0 ;
17342 int val2 ;
17343 int ecode2 = 0 ;
17344 int val3 ;
17345 int ecode3 = 0 ;
17346 int val4 ;
17347 int ecode4 = 0 ;
17348 int val5 ;
17349 int ecode5 = 0 ;
17350 PyObject * obj0 = 0 ;
17351 PyObject * obj1 = 0 ;
17352 PyObject * obj2 = 0 ;
17353 PyObject * obj3 = 0 ;
17354 PyObject * obj4 = 0 ;
17355 char * kwnames[] = {
17356 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
17357 };
17358
17359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17361 if (!SWIG_IsOK(res1)) {
17362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
17363 }
17364 arg1 = reinterpret_cast< wxDC * >(argp1);
17365 ecode2 = SWIG_AsVal_int(obj1, &val2);
17366 if (!SWIG_IsOK(ecode2)) {
17367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
17368 }
17369 arg2 = static_cast< int >(val2);
17370 ecode3 = SWIG_AsVal_int(obj2, &val3);
17371 if (!SWIG_IsOK(ecode3)) {
17372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
17373 }
17374 arg3 = static_cast< int >(val3);
17375 ecode4 = SWIG_AsVal_int(obj3, &val4);
17376 if (!SWIG_IsOK(ecode4)) {
17377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
17378 }
17379 arg4 = static_cast< int >(val4);
17380 ecode5 = SWIG_AsVal_int(obj4, &val5);
17381 if (!SWIG_IsOK(ecode5)) {
17382 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
17383 }
17384 arg5 = static_cast< int >(val5);
17385 {
17386 PyThreadState* __tstate = wxPyBeginAllowThreads();
17387 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
17388 wxPyEndAllowThreads(__tstate);
17389 if (PyErr_Occurred()) SWIG_fail;
17390 }
17391 resultobj = SWIG_Py_Void();
17392 return resultobj;
17393 fail:
17394 return NULL;
17395 }
17396
17397
17398 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17399 PyObject *resultobj = 0;
17400 wxDC *arg1 = (wxDC *) 0 ;
17401 wxPoint *arg2 = 0 ;
17402 wxPoint *arg3 = 0 ;
17403 void *argp1 = 0 ;
17404 int res1 = 0 ;
17405 wxPoint temp2 ;
17406 wxPoint temp3 ;
17407 PyObject * obj0 = 0 ;
17408 PyObject * obj1 = 0 ;
17409 PyObject * obj2 = 0 ;
17410 char * kwnames[] = {
17411 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
17412 };
17413
17414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17416 if (!SWIG_IsOK(res1)) {
17417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
17418 }
17419 arg1 = reinterpret_cast< wxDC * >(argp1);
17420 {
17421 arg2 = &temp2;
17422 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17423 }
17424 {
17425 arg3 = &temp3;
17426 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17427 }
17428 {
17429 PyThreadState* __tstate = wxPyBeginAllowThreads();
17430 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
17431 wxPyEndAllowThreads(__tstate);
17432 if (PyErr_Occurred()) SWIG_fail;
17433 }
17434 resultobj = SWIG_Py_Void();
17435 return resultobj;
17436 fail:
17437 return NULL;
17438 }
17439
17440
17441 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17442 PyObject *resultobj = 0;
17443 wxDC *arg1 = (wxDC *) 0 ;
17444 int arg2 ;
17445 int arg3 ;
17446 void *argp1 = 0 ;
17447 int res1 = 0 ;
17448 int val2 ;
17449 int ecode2 = 0 ;
17450 int val3 ;
17451 int ecode3 = 0 ;
17452 PyObject * obj0 = 0 ;
17453 PyObject * obj1 = 0 ;
17454 PyObject * obj2 = 0 ;
17455 char * kwnames[] = {
17456 (char *) "self",(char *) "x",(char *) "y", NULL
17457 };
17458
17459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17461 if (!SWIG_IsOK(res1)) {
17462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
17463 }
17464 arg1 = reinterpret_cast< wxDC * >(argp1);
17465 ecode2 = SWIG_AsVal_int(obj1, &val2);
17466 if (!SWIG_IsOK(ecode2)) {
17467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
17468 }
17469 arg2 = static_cast< int >(val2);
17470 ecode3 = SWIG_AsVal_int(obj2, &val3);
17471 if (!SWIG_IsOK(ecode3)) {
17472 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
17473 }
17474 arg3 = static_cast< int >(val3);
17475 {
17476 PyThreadState* __tstate = wxPyBeginAllowThreads();
17477 (arg1)->CrossHair(arg2,arg3);
17478 wxPyEndAllowThreads(__tstate);
17479 if (PyErr_Occurred()) SWIG_fail;
17480 }
17481 resultobj = SWIG_Py_Void();
17482 return resultobj;
17483 fail:
17484 return NULL;
17485 }
17486
17487
17488 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17489 PyObject *resultobj = 0;
17490 wxDC *arg1 = (wxDC *) 0 ;
17491 wxPoint *arg2 = 0 ;
17492 void *argp1 = 0 ;
17493 int res1 = 0 ;
17494 wxPoint temp2 ;
17495 PyObject * obj0 = 0 ;
17496 PyObject * obj1 = 0 ;
17497 char * kwnames[] = {
17498 (char *) "self",(char *) "pt", NULL
17499 };
17500
17501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17503 if (!SWIG_IsOK(res1)) {
17504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17505 }
17506 arg1 = reinterpret_cast< wxDC * >(argp1);
17507 {
17508 arg2 = &temp2;
17509 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17510 }
17511 {
17512 PyThreadState* __tstate = wxPyBeginAllowThreads();
17513 (arg1)->CrossHair((wxPoint const &)*arg2);
17514 wxPyEndAllowThreads(__tstate);
17515 if (PyErr_Occurred()) SWIG_fail;
17516 }
17517 resultobj = SWIG_Py_Void();
17518 return resultobj;
17519 fail:
17520 return NULL;
17521 }
17522
17523
17524 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17525 PyObject *resultobj = 0;
17526 wxDC *arg1 = (wxDC *) 0 ;
17527 int arg2 ;
17528 int arg3 ;
17529 int arg4 ;
17530 int arg5 ;
17531 int arg6 ;
17532 int arg7 ;
17533 void *argp1 = 0 ;
17534 int res1 = 0 ;
17535 int val2 ;
17536 int ecode2 = 0 ;
17537 int val3 ;
17538 int ecode3 = 0 ;
17539 int val4 ;
17540 int ecode4 = 0 ;
17541 int val5 ;
17542 int ecode5 = 0 ;
17543 int val6 ;
17544 int ecode6 = 0 ;
17545 int val7 ;
17546 int ecode7 = 0 ;
17547 PyObject * obj0 = 0 ;
17548 PyObject * obj1 = 0 ;
17549 PyObject * obj2 = 0 ;
17550 PyObject * obj3 = 0 ;
17551 PyObject * obj4 = 0 ;
17552 PyObject * obj5 = 0 ;
17553 PyObject * obj6 = 0 ;
17554 char * kwnames[] = {
17555 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
17556 };
17557
17558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17559 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17560 if (!SWIG_IsOK(res1)) {
17561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
17562 }
17563 arg1 = reinterpret_cast< wxDC * >(argp1);
17564 ecode2 = SWIG_AsVal_int(obj1, &val2);
17565 if (!SWIG_IsOK(ecode2)) {
17566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
17567 }
17568 arg2 = static_cast< int >(val2);
17569 ecode3 = SWIG_AsVal_int(obj2, &val3);
17570 if (!SWIG_IsOK(ecode3)) {
17571 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
17572 }
17573 arg3 = static_cast< int >(val3);
17574 ecode4 = SWIG_AsVal_int(obj3, &val4);
17575 if (!SWIG_IsOK(ecode4)) {
17576 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
17577 }
17578 arg4 = static_cast< int >(val4);
17579 ecode5 = SWIG_AsVal_int(obj4, &val5);
17580 if (!SWIG_IsOK(ecode5)) {
17581 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
17582 }
17583 arg5 = static_cast< int >(val5);
17584 ecode6 = SWIG_AsVal_int(obj5, &val6);
17585 if (!SWIG_IsOK(ecode6)) {
17586 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
17587 }
17588 arg6 = static_cast< int >(val6);
17589 ecode7 = SWIG_AsVal_int(obj6, &val7);
17590 if (!SWIG_IsOK(ecode7)) {
17591 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
17592 }
17593 arg7 = static_cast< int >(val7);
17594 {
17595 PyThreadState* __tstate = wxPyBeginAllowThreads();
17596 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
17597 wxPyEndAllowThreads(__tstate);
17598 if (PyErr_Occurred()) SWIG_fail;
17599 }
17600 resultobj = SWIG_Py_Void();
17601 return resultobj;
17602 fail:
17603 return NULL;
17604 }
17605
17606
17607 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17608 PyObject *resultobj = 0;
17609 wxDC *arg1 = (wxDC *) 0 ;
17610 wxPoint *arg2 = 0 ;
17611 wxPoint *arg3 = 0 ;
17612 wxPoint *arg4 = 0 ;
17613 void *argp1 = 0 ;
17614 int res1 = 0 ;
17615 wxPoint temp2 ;
17616 wxPoint temp3 ;
17617 wxPoint temp4 ;
17618 PyObject * obj0 = 0 ;
17619 PyObject * obj1 = 0 ;
17620 PyObject * obj2 = 0 ;
17621 PyObject * obj3 = 0 ;
17622 char * kwnames[] = {
17623 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
17624 };
17625
17626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17628 if (!SWIG_IsOK(res1)) {
17629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17630 }
17631 arg1 = reinterpret_cast< wxDC * >(argp1);
17632 {
17633 arg2 = &temp2;
17634 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17635 }
17636 {
17637 arg3 = &temp3;
17638 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17639 }
17640 {
17641 arg4 = &temp4;
17642 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
17643 }
17644 {
17645 PyThreadState* __tstate = wxPyBeginAllowThreads();
17646 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
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_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17658 PyObject *resultobj = 0;
17659 wxDC *arg1 = (wxDC *) 0 ;
17660 int arg2 ;
17661 int arg3 ;
17662 int arg4 ;
17663 int arg5 ;
17664 void *argp1 = 0 ;
17665 int res1 = 0 ;
17666 int val2 ;
17667 int ecode2 = 0 ;
17668 int val3 ;
17669 int ecode3 = 0 ;
17670 int val4 ;
17671 int ecode4 = 0 ;
17672 int val5 ;
17673 int ecode5 = 0 ;
17674 PyObject * obj0 = 0 ;
17675 PyObject * obj1 = 0 ;
17676 PyObject * obj2 = 0 ;
17677 PyObject * obj3 = 0 ;
17678 PyObject * obj4 = 0 ;
17679 char * kwnames[] = {
17680 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17681 };
17682
17683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17685 if (!SWIG_IsOK(res1)) {
17686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
17687 }
17688 arg1 = reinterpret_cast< wxDC * >(argp1);
17689 ecode2 = SWIG_AsVal_int(obj1, &val2);
17690 if (!SWIG_IsOK(ecode2)) {
17691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
17692 }
17693 arg2 = static_cast< int >(val2);
17694 ecode3 = SWIG_AsVal_int(obj2, &val3);
17695 if (!SWIG_IsOK(ecode3)) {
17696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
17697 }
17698 arg3 = static_cast< int >(val3);
17699 ecode4 = SWIG_AsVal_int(obj3, &val4);
17700 if (!SWIG_IsOK(ecode4)) {
17701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
17702 }
17703 arg4 = static_cast< int >(val4);
17704 ecode5 = SWIG_AsVal_int(obj4, &val5);
17705 if (!SWIG_IsOK(ecode5)) {
17706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
17707 }
17708 arg5 = static_cast< int >(val5);
17709 {
17710 PyThreadState* __tstate = wxPyBeginAllowThreads();
17711 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
17712 wxPyEndAllowThreads(__tstate);
17713 if (PyErr_Occurred()) SWIG_fail;
17714 }
17715 resultobj = SWIG_Py_Void();
17716 return resultobj;
17717 fail:
17718 return NULL;
17719 }
17720
17721
17722 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17723 PyObject *resultobj = 0;
17724 wxDC *arg1 = (wxDC *) 0 ;
17725 wxRect *arg2 = 0 ;
17726 void *argp1 = 0 ;
17727 int res1 = 0 ;
17728 wxRect temp2 ;
17729 PyObject * obj0 = 0 ;
17730 PyObject * obj1 = 0 ;
17731 char * kwnames[] = {
17732 (char *) "self",(char *) "rect", NULL
17733 };
17734
17735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
17736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17737 if (!SWIG_IsOK(res1)) {
17738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
17739 }
17740 arg1 = reinterpret_cast< wxDC * >(argp1);
17741 {
17742 arg2 = &temp2;
17743 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17744 }
17745 {
17746 PyThreadState* __tstate = wxPyBeginAllowThreads();
17747 (arg1)->DrawCheckMark((wxRect const &)*arg2);
17748 wxPyEndAllowThreads(__tstate);
17749 if (PyErr_Occurred()) SWIG_fail;
17750 }
17751 resultobj = SWIG_Py_Void();
17752 return resultobj;
17753 fail:
17754 return NULL;
17755 }
17756
17757
17758 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17759 PyObject *resultobj = 0;
17760 wxDC *arg1 = (wxDC *) 0 ;
17761 int arg2 ;
17762 int arg3 ;
17763 int arg4 ;
17764 int arg5 ;
17765 double arg6 ;
17766 double arg7 ;
17767 void *argp1 = 0 ;
17768 int res1 = 0 ;
17769 int val2 ;
17770 int ecode2 = 0 ;
17771 int val3 ;
17772 int ecode3 = 0 ;
17773 int val4 ;
17774 int ecode4 = 0 ;
17775 int val5 ;
17776 int ecode5 = 0 ;
17777 double val6 ;
17778 int ecode6 = 0 ;
17779 double val7 ;
17780 int ecode7 = 0 ;
17781 PyObject * obj0 = 0 ;
17782 PyObject * obj1 = 0 ;
17783 PyObject * obj2 = 0 ;
17784 PyObject * obj3 = 0 ;
17785 PyObject * obj4 = 0 ;
17786 PyObject * obj5 = 0 ;
17787 PyObject * obj6 = 0 ;
17788 char * kwnames[] = {
17789 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
17790 };
17791
17792 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
17793 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17794 if (!SWIG_IsOK(res1)) {
17795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
17796 }
17797 arg1 = reinterpret_cast< wxDC * >(argp1);
17798 ecode2 = SWIG_AsVal_int(obj1, &val2);
17799 if (!SWIG_IsOK(ecode2)) {
17800 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
17801 }
17802 arg2 = static_cast< int >(val2);
17803 ecode3 = SWIG_AsVal_int(obj2, &val3);
17804 if (!SWIG_IsOK(ecode3)) {
17805 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
17806 }
17807 arg3 = static_cast< int >(val3);
17808 ecode4 = SWIG_AsVal_int(obj3, &val4);
17809 if (!SWIG_IsOK(ecode4)) {
17810 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
17811 }
17812 arg4 = static_cast< int >(val4);
17813 ecode5 = SWIG_AsVal_int(obj4, &val5);
17814 if (!SWIG_IsOK(ecode5)) {
17815 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
17816 }
17817 arg5 = static_cast< int >(val5);
17818 ecode6 = SWIG_AsVal_double(obj5, &val6);
17819 if (!SWIG_IsOK(ecode6)) {
17820 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
17821 }
17822 arg6 = static_cast< double >(val6);
17823 ecode7 = SWIG_AsVal_double(obj6, &val7);
17824 if (!SWIG_IsOK(ecode7)) {
17825 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
17826 }
17827 arg7 = static_cast< double >(val7);
17828 {
17829 PyThreadState* __tstate = wxPyBeginAllowThreads();
17830 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
17831 wxPyEndAllowThreads(__tstate);
17832 if (PyErr_Occurred()) SWIG_fail;
17833 }
17834 resultobj = SWIG_Py_Void();
17835 return resultobj;
17836 fail:
17837 return NULL;
17838 }
17839
17840
17841 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17842 PyObject *resultobj = 0;
17843 wxDC *arg1 = (wxDC *) 0 ;
17844 wxPoint *arg2 = 0 ;
17845 wxSize *arg3 = 0 ;
17846 double arg4 ;
17847 double arg5 ;
17848 void *argp1 = 0 ;
17849 int res1 = 0 ;
17850 wxPoint temp2 ;
17851 wxSize temp3 ;
17852 double val4 ;
17853 int ecode4 = 0 ;
17854 double val5 ;
17855 int ecode5 = 0 ;
17856 PyObject * obj0 = 0 ;
17857 PyObject * obj1 = 0 ;
17858 PyObject * obj2 = 0 ;
17859 PyObject * obj3 = 0 ;
17860 PyObject * obj4 = 0 ;
17861 char * kwnames[] = {
17862 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
17863 };
17864
17865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17867 if (!SWIG_IsOK(res1)) {
17868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17869 }
17870 arg1 = reinterpret_cast< wxDC * >(argp1);
17871 {
17872 arg2 = &temp2;
17873 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17874 }
17875 {
17876 arg3 = &temp3;
17877 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17878 }
17879 ecode4 = SWIG_AsVal_double(obj3, &val4);
17880 if (!SWIG_IsOK(ecode4)) {
17881 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
17882 }
17883 arg4 = static_cast< double >(val4);
17884 ecode5 = SWIG_AsVal_double(obj4, &val5);
17885 if (!SWIG_IsOK(ecode5)) {
17886 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
17887 }
17888 arg5 = static_cast< double >(val5);
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 resultobj = SWIG_Py_Void();
17896 return resultobj;
17897 fail:
17898 return NULL;
17899 }
17900
17901
17902 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17903 PyObject *resultobj = 0;
17904 wxDC *arg1 = (wxDC *) 0 ;
17905 int arg2 ;
17906 int arg3 ;
17907 void *argp1 = 0 ;
17908 int res1 = 0 ;
17909 int val2 ;
17910 int ecode2 = 0 ;
17911 int val3 ;
17912 int ecode3 = 0 ;
17913 PyObject * obj0 = 0 ;
17914 PyObject * obj1 = 0 ;
17915 PyObject * obj2 = 0 ;
17916 char * kwnames[] = {
17917 (char *) "self",(char *) "x",(char *) "y", NULL
17918 };
17919
17920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17922 if (!SWIG_IsOK(res1)) {
17923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17924 }
17925 arg1 = reinterpret_cast< wxDC * >(argp1);
17926 ecode2 = SWIG_AsVal_int(obj1, &val2);
17927 if (!SWIG_IsOK(ecode2)) {
17928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
17929 }
17930 arg2 = static_cast< int >(val2);
17931 ecode3 = SWIG_AsVal_int(obj2, &val3);
17932 if (!SWIG_IsOK(ecode3)) {
17933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
17934 }
17935 arg3 = static_cast< int >(val3);
17936 {
17937 PyThreadState* __tstate = wxPyBeginAllowThreads();
17938 (arg1)->DrawPoint(arg2,arg3);
17939 wxPyEndAllowThreads(__tstate);
17940 if (PyErr_Occurred()) SWIG_fail;
17941 }
17942 resultobj = SWIG_Py_Void();
17943 return resultobj;
17944 fail:
17945 return NULL;
17946 }
17947
17948
17949 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17950 PyObject *resultobj = 0;
17951 wxDC *arg1 = (wxDC *) 0 ;
17952 wxPoint *arg2 = 0 ;
17953 void *argp1 = 0 ;
17954 int res1 = 0 ;
17955 wxPoint temp2 ;
17956 PyObject * obj0 = 0 ;
17957 PyObject * obj1 = 0 ;
17958 char * kwnames[] = {
17959 (char *) "self",(char *) "pt", NULL
17960 };
17961
17962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
17963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17964 if (!SWIG_IsOK(res1)) {
17965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17966 }
17967 arg1 = reinterpret_cast< wxDC * >(argp1);
17968 {
17969 arg2 = &temp2;
17970 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17971 }
17972 {
17973 PyThreadState* __tstate = wxPyBeginAllowThreads();
17974 (arg1)->DrawPoint((wxPoint const &)*arg2);
17975 wxPyEndAllowThreads(__tstate);
17976 if (PyErr_Occurred()) SWIG_fail;
17977 }
17978 resultobj = SWIG_Py_Void();
17979 return resultobj;
17980 fail:
17981 return NULL;
17982 }
17983
17984
17985 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17986 PyObject *resultobj = 0;
17987 wxDC *arg1 = (wxDC *) 0 ;
17988 int arg2 ;
17989 int arg3 ;
17990 int arg4 ;
17991 int arg5 ;
17992 void *argp1 = 0 ;
17993 int res1 = 0 ;
17994 int val2 ;
17995 int ecode2 = 0 ;
17996 int val3 ;
17997 int ecode3 = 0 ;
17998 int val4 ;
17999 int ecode4 = 0 ;
18000 int val5 ;
18001 int ecode5 = 0 ;
18002 PyObject * obj0 = 0 ;
18003 PyObject * obj1 = 0 ;
18004 PyObject * obj2 = 0 ;
18005 PyObject * obj3 = 0 ;
18006 PyObject * obj4 = 0 ;
18007 char * kwnames[] = {
18008 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18009 };
18010
18011 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18012 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18013 if (!SWIG_IsOK(res1)) {
18014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18015 }
18016 arg1 = reinterpret_cast< wxDC * >(argp1);
18017 ecode2 = SWIG_AsVal_int(obj1, &val2);
18018 if (!SWIG_IsOK(ecode2)) {
18019 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18020 }
18021 arg2 = static_cast< int >(val2);
18022 ecode3 = SWIG_AsVal_int(obj2, &val3);
18023 if (!SWIG_IsOK(ecode3)) {
18024 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18025 }
18026 arg3 = static_cast< int >(val3);
18027 ecode4 = SWIG_AsVal_int(obj3, &val4);
18028 if (!SWIG_IsOK(ecode4)) {
18029 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18030 }
18031 arg4 = static_cast< int >(val4);
18032 ecode5 = SWIG_AsVal_int(obj4, &val5);
18033 if (!SWIG_IsOK(ecode5)) {
18034 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18035 }
18036 arg5 = static_cast< int >(val5);
18037 {
18038 PyThreadState* __tstate = wxPyBeginAllowThreads();
18039 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18040 wxPyEndAllowThreads(__tstate);
18041 if (PyErr_Occurred()) SWIG_fail;
18042 }
18043 resultobj = SWIG_Py_Void();
18044 return resultobj;
18045 fail:
18046 return NULL;
18047 }
18048
18049
18050 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18051 PyObject *resultobj = 0;
18052 wxDC *arg1 = (wxDC *) 0 ;
18053 wxRect *arg2 = 0 ;
18054 void *argp1 = 0 ;
18055 int res1 = 0 ;
18056 wxRect temp2 ;
18057 PyObject * obj0 = 0 ;
18058 PyObject * obj1 = 0 ;
18059 char * kwnames[] = {
18060 (char *) "self",(char *) "rect", NULL
18061 };
18062
18063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18065 if (!SWIG_IsOK(res1)) {
18066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18067 }
18068 arg1 = reinterpret_cast< wxDC * >(argp1);
18069 {
18070 arg2 = &temp2;
18071 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18072 }
18073 {
18074 PyThreadState* __tstate = wxPyBeginAllowThreads();
18075 (arg1)->DrawRectangle((wxRect const &)*arg2);
18076 wxPyEndAllowThreads(__tstate);
18077 if (PyErr_Occurred()) SWIG_fail;
18078 }
18079 resultobj = SWIG_Py_Void();
18080 return resultobj;
18081 fail:
18082 return NULL;
18083 }
18084
18085
18086 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18087 PyObject *resultobj = 0;
18088 wxDC *arg1 = (wxDC *) 0 ;
18089 wxPoint *arg2 = 0 ;
18090 wxSize *arg3 = 0 ;
18091 void *argp1 = 0 ;
18092 int res1 = 0 ;
18093 wxPoint temp2 ;
18094 wxSize temp3 ;
18095 PyObject * obj0 = 0 ;
18096 PyObject * obj1 = 0 ;
18097 PyObject * obj2 = 0 ;
18098 char * kwnames[] = {
18099 (char *) "self",(char *) "pt",(char *) "sz", NULL
18100 };
18101
18102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18104 if (!SWIG_IsOK(res1)) {
18105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18106 }
18107 arg1 = reinterpret_cast< wxDC * >(argp1);
18108 {
18109 arg2 = &temp2;
18110 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18111 }
18112 {
18113 arg3 = &temp3;
18114 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18115 }
18116 {
18117 PyThreadState* __tstate = wxPyBeginAllowThreads();
18118 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
18119 wxPyEndAllowThreads(__tstate);
18120 if (PyErr_Occurred()) SWIG_fail;
18121 }
18122 resultobj = SWIG_Py_Void();
18123 return resultobj;
18124 fail:
18125 return NULL;
18126 }
18127
18128
18129 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18130 PyObject *resultobj = 0;
18131 wxDC *arg1 = (wxDC *) 0 ;
18132 int arg2 ;
18133 int arg3 ;
18134 int arg4 ;
18135 int arg5 ;
18136 double arg6 ;
18137 void *argp1 = 0 ;
18138 int res1 = 0 ;
18139 int val2 ;
18140 int ecode2 = 0 ;
18141 int val3 ;
18142 int ecode3 = 0 ;
18143 int val4 ;
18144 int ecode4 = 0 ;
18145 int val5 ;
18146 int ecode5 = 0 ;
18147 double val6 ;
18148 int ecode6 = 0 ;
18149 PyObject * obj0 = 0 ;
18150 PyObject * obj1 = 0 ;
18151 PyObject * obj2 = 0 ;
18152 PyObject * obj3 = 0 ;
18153 PyObject * obj4 = 0 ;
18154 PyObject * obj5 = 0 ;
18155 char * kwnames[] = {
18156 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
18157 };
18158
18159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
18160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18161 if (!SWIG_IsOK(res1)) {
18162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18163 }
18164 arg1 = reinterpret_cast< wxDC * >(argp1);
18165 ecode2 = SWIG_AsVal_int(obj1, &val2);
18166 if (!SWIG_IsOK(ecode2)) {
18167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
18168 }
18169 arg2 = static_cast< int >(val2);
18170 ecode3 = SWIG_AsVal_int(obj2, &val3);
18171 if (!SWIG_IsOK(ecode3)) {
18172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
18173 }
18174 arg3 = static_cast< int >(val3);
18175 ecode4 = SWIG_AsVal_int(obj3, &val4);
18176 if (!SWIG_IsOK(ecode4)) {
18177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
18178 }
18179 arg4 = static_cast< int >(val4);
18180 ecode5 = SWIG_AsVal_int(obj4, &val5);
18181 if (!SWIG_IsOK(ecode5)) {
18182 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
18183 }
18184 arg5 = static_cast< int >(val5);
18185 ecode6 = SWIG_AsVal_double(obj5, &val6);
18186 if (!SWIG_IsOK(ecode6)) {
18187 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
18188 }
18189 arg6 = static_cast< double >(val6);
18190 {
18191 PyThreadState* __tstate = wxPyBeginAllowThreads();
18192 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
18193 wxPyEndAllowThreads(__tstate);
18194 if (PyErr_Occurred()) SWIG_fail;
18195 }
18196 resultobj = SWIG_Py_Void();
18197 return resultobj;
18198 fail:
18199 return NULL;
18200 }
18201
18202
18203 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18204 PyObject *resultobj = 0;
18205 wxDC *arg1 = (wxDC *) 0 ;
18206 wxRect *arg2 = 0 ;
18207 double arg3 ;
18208 void *argp1 = 0 ;
18209 int res1 = 0 ;
18210 wxRect temp2 ;
18211 double val3 ;
18212 int ecode3 = 0 ;
18213 PyObject * obj0 = 0 ;
18214 PyObject * obj1 = 0 ;
18215 PyObject * obj2 = 0 ;
18216 char * kwnames[] = {
18217 (char *) "self",(char *) "r",(char *) "radius", NULL
18218 };
18219
18220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18222 if (!SWIG_IsOK(res1)) {
18223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18224 }
18225 arg1 = reinterpret_cast< wxDC * >(argp1);
18226 {
18227 arg2 = &temp2;
18228 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18229 }
18230 ecode3 = SWIG_AsVal_double(obj2, &val3);
18231 if (!SWIG_IsOK(ecode3)) {
18232 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
18233 }
18234 arg3 = static_cast< double >(val3);
18235 {
18236 PyThreadState* __tstate = wxPyBeginAllowThreads();
18237 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
18238 wxPyEndAllowThreads(__tstate);
18239 if (PyErr_Occurred()) SWIG_fail;
18240 }
18241 resultobj = SWIG_Py_Void();
18242 return resultobj;
18243 fail:
18244 return NULL;
18245 }
18246
18247
18248 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18249 PyObject *resultobj = 0;
18250 wxDC *arg1 = (wxDC *) 0 ;
18251 wxPoint *arg2 = 0 ;
18252 wxSize *arg3 = 0 ;
18253 double arg4 ;
18254 void *argp1 = 0 ;
18255 int res1 = 0 ;
18256 wxPoint temp2 ;
18257 wxSize temp3 ;
18258 double val4 ;
18259 int ecode4 = 0 ;
18260 PyObject * obj0 = 0 ;
18261 PyObject * obj1 = 0 ;
18262 PyObject * obj2 = 0 ;
18263 PyObject * obj3 = 0 ;
18264 char * kwnames[] = {
18265 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
18266 };
18267
18268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18270 if (!SWIG_IsOK(res1)) {
18271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18272 }
18273 arg1 = reinterpret_cast< wxDC * >(argp1);
18274 {
18275 arg2 = &temp2;
18276 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18277 }
18278 {
18279 arg3 = &temp3;
18280 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18281 }
18282 ecode4 = SWIG_AsVal_double(obj3, &val4);
18283 if (!SWIG_IsOK(ecode4)) {
18284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
18285 }
18286 arg4 = static_cast< double >(val4);
18287 {
18288 PyThreadState* __tstate = wxPyBeginAllowThreads();
18289 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
18290 wxPyEndAllowThreads(__tstate);
18291 if (PyErr_Occurred()) SWIG_fail;
18292 }
18293 resultobj = SWIG_Py_Void();
18294 return resultobj;
18295 fail:
18296 return NULL;
18297 }
18298
18299
18300 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18301 PyObject *resultobj = 0;
18302 wxDC *arg1 = (wxDC *) 0 ;
18303 int arg2 ;
18304 int arg3 ;
18305 int arg4 ;
18306 void *argp1 = 0 ;
18307 int res1 = 0 ;
18308 int val2 ;
18309 int ecode2 = 0 ;
18310 int val3 ;
18311 int ecode3 = 0 ;
18312 int val4 ;
18313 int ecode4 = 0 ;
18314 PyObject * obj0 = 0 ;
18315 PyObject * obj1 = 0 ;
18316 PyObject * obj2 = 0 ;
18317 PyObject * obj3 = 0 ;
18318 char * kwnames[] = {
18319 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
18320 };
18321
18322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18324 if (!SWIG_IsOK(res1)) {
18325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
18326 }
18327 arg1 = reinterpret_cast< wxDC * >(argp1);
18328 ecode2 = SWIG_AsVal_int(obj1, &val2);
18329 if (!SWIG_IsOK(ecode2)) {
18330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
18331 }
18332 arg2 = static_cast< int >(val2);
18333 ecode3 = SWIG_AsVal_int(obj2, &val3);
18334 if (!SWIG_IsOK(ecode3)) {
18335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
18336 }
18337 arg3 = static_cast< int >(val3);
18338 ecode4 = SWIG_AsVal_int(obj3, &val4);
18339 if (!SWIG_IsOK(ecode4)) {
18340 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
18341 }
18342 arg4 = static_cast< int >(val4);
18343 {
18344 PyThreadState* __tstate = wxPyBeginAllowThreads();
18345 (arg1)->DrawCircle(arg2,arg3,arg4);
18346 wxPyEndAllowThreads(__tstate);
18347 if (PyErr_Occurred()) SWIG_fail;
18348 }
18349 resultobj = SWIG_Py_Void();
18350 return resultobj;
18351 fail:
18352 return NULL;
18353 }
18354
18355
18356 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18357 PyObject *resultobj = 0;
18358 wxDC *arg1 = (wxDC *) 0 ;
18359 wxPoint *arg2 = 0 ;
18360 int arg3 ;
18361 void *argp1 = 0 ;
18362 int res1 = 0 ;
18363 wxPoint temp2 ;
18364 int val3 ;
18365 int ecode3 = 0 ;
18366 PyObject * obj0 = 0 ;
18367 PyObject * obj1 = 0 ;
18368 PyObject * obj2 = 0 ;
18369 char * kwnames[] = {
18370 (char *) "self",(char *) "pt",(char *) "radius", NULL
18371 };
18372
18373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18375 if (!SWIG_IsOK(res1)) {
18376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18377 }
18378 arg1 = reinterpret_cast< wxDC * >(argp1);
18379 {
18380 arg2 = &temp2;
18381 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18382 }
18383 ecode3 = SWIG_AsVal_int(obj2, &val3);
18384 if (!SWIG_IsOK(ecode3)) {
18385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
18386 }
18387 arg3 = static_cast< int >(val3);
18388 {
18389 PyThreadState* __tstate = wxPyBeginAllowThreads();
18390 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
18391 wxPyEndAllowThreads(__tstate);
18392 if (PyErr_Occurred()) SWIG_fail;
18393 }
18394 resultobj = SWIG_Py_Void();
18395 return resultobj;
18396 fail:
18397 return NULL;
18398 }
18399
18400
18401 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18402 PyObject *resultobj = 0;
18403 wxDC *arg1 = (wxDC *) 0 ;
18404 int arg2 ;
18405 int arg3 ;
18406 int arg4 ;
18407 int arg5 ;
18408 void *argp1 = 0 ;
18409 int res1 = 0 ;
18410 int val2 ;
18411 int ecode2 = 0 ;
18412 int val3 ;
18413 int ecode3 = 0 ;
18414 int val4 ;
18415 int ecode4 = 0 ;
18416 int val5 ;
18417 int ecode5 = 0 ;
18418 PyObject * obj0 = 0 ;
18419 PyObject * obj1 = 0 ;
18420 PyObject * obj2 = 0 ;
18421 PyObject * obj3 = 0 ;
18422 PyObject * obj4 = 0 ;
18423 char * kwnames[] = {
18424 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18425 };
18426
18427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18429 if (!SWIG_IsOK(res1)) {
18430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
18431 }
18432 arg1 = reinterpret_cast< wxDC * >(argp1);
18433 ecode2 = SWIG_AsVal_int(obj1, &val2);
18434 if (!SWIG_IsOK(ecode2)) {
18435 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
18436 }
18437 arg2 = static_cast< int >(val2);
18438 ecode3 = SWIG_AsVal_int(obj2, &val3);
18439 if (!SWIG_IsOK(ecode3)) {
18440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
18441 }
18442 arg3 = static_cast< int >(val3);
18443 ecode4 = SWIG_AsVal_int(obj3, &val4);
18444 if (!SWIG_IsOK(ecode4)) {
18445 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
18446 }
18447 arg4 = static_cast< int >(val4);
18448 ecode5 = SWIG_AsVal_int(obj4, &val5);
18449 if (!SWIG_IsOK(ecode5)) {
18450 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
18451 }
18452 arg5 = static_cast< int >(val5);
18453 {
18454 PyThreadState* __tstate = wxPyBeginAllowThreads();
18455 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
18456 wxPyEndAllowThreads(__tstate);
18457 if (PyErr_Occurred()) SWIG_fail;
18458 }
18459 resultobj = SWIG_Py_Void();
18460 return resultobj;
18461 fail:
18462 return NULL;
18463 }
18464
18465
18466 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18467 PyObject *resultobj = 0;
18468 wxDC *arg1 = (wxDC *) 0 ;
18469 wxRect *arg2 = 0 ;
18470 void *argp1 = 0 ;
18471 int res1 = 0 ;
18472 wxRect temp2 ;
18473 PyObject * obj0 = 0 ;
18474 PyObject * obj1 = 0 ;
18475 char * kwnames[] = {
18476 (char *) "self",(char *) "rect", NULL
18477 };
18478
18479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
18480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18481 if (!SWIG_IsOK(res1)) {
18482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
18483 }
18484 arg1 = reinterpret_cast< wxDC * >(argp1);
18485 {
18486 arg2 = &temp2;
18487 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18488 }
18489 {
18490 PyThreadState* __tstate = wxPyBeginAllowThreads();
18491 (arg1)->DrawEllipse((wxRect const &)*arg2);
18492 wxPyEndAllowThreads(__tstate);
18493 if (PyErr_Occurred()) SWIG_fail;
18494 }
18495 resultobj = SWIG_Py_Void();
18496 return resultobj;
18497 fail:
18498 return NULL;
18499 }
18500
18501
18502 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18503 PyObject *resultobj = 0;
18504 wxDC *arg1 = (wxDC *) 0 ;
18505 wxPoint *arg2 = 0 ;
18506 wxSize *arg3 = 0 ;
18507 void *argp1 = 0 ;
18508 int res1 = 0 ;
18509 wxPoint temp2 ;
18510 wxSize temp3 ;
18511 PyObject * obj0 = 0 ;
18512 PyObject * obj1 = 0 ;
18513 PyObject * obj2 = 0 ;
18514 char * kwnames[] = {
18515 (char *) "self",(char *) "pt",(char *) "sz", NULL
18516 };
18517
18518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18520 if (!SWIG_IsOK(res1)) {
18521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18522 }
18523 arg1 = reinterpret_cast< wxDC * >(argp1);
18524 {
18525 arg2 = &temp2;
18526 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18527 }
18528 {
18529 arg3 = &temp3;
18530 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18531 }
18532 {
18533 PyThreadState* __tstate = wxPyBeginAllowThreads();
18534 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
18535 wxPyEndAllowThreads(__tstate);
18536 if (PyErr_Occurred()) SWIG_fail;
18537 }
18538 resultobj = SWIG_Py_Void();
18539 return resultobj;
18540 fail:
18541 return NULL;
18542 }
18543
18544
18545 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18546 PyObject *resultobj = 0;
18547 wxDC *arg1 = (wxDC *) 0 ;
18548 wxIcon *arg2 = 0 ;
18549 int arg3 ;
18550 int arg4 ;
18551 void *argp1 = 0 ;
18552 int res1 = 0 ;
18553 void *argp2 = 0 ;
18554 int res2 = 0 ;
18555 int val3 ;
18556 int ecode3 = 0 ;
18557 int val4 ;
18558 int ecode4 = 0 ;
18559 PyObject * obj0 = 0 ;
18560 PyObject * obj1 = 0 ;
18561 PyObject * obj2 = 0 ;
18562 PyObject * obj3 = 0 ;
18563 char * kwnames[] = {
18564 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
18565 };
18566
18567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18569 if (!SWIG_IsOK(res1)) {
18570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
18571 }
18572 arg1 = reinterpret_cast< wxDC * >(argp1);
18573 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18574 if (!SWIG_IsOK(res2)) {
18575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18576 }
18577 if (!argp2) {
18578 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
18579 }
18580 arg2 = reinterpret_cast< wxIcon * >(argp2);
18581 ecode3 = SWIG_AsVal_int(obj2, &val3);
18582 if (!SWIG_IsOK(ecode3)) {
18583 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
18584 }
18585 arg3 = static_cast< int >(val3);
18586 ecode4 = SWIG_AsVal_int(obj3, &val4);
18587 if (!SWIG_IsOK(ecode4)) {
18588 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
18589 }
18590 arg4 = static_cast< int >(val4);
18591 {
18592 PyThreadState* __tstate = wxPyBeginAllowThreads();
18593 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
18594 wxPyEndAllowThreads(__tstate);
18595 if (PyErr_Occurred()) SWIG_fail;
18596 }
18597 resultobj = SWIG_Py_Void();
18598 return resultobj;
18599 fail:
18600 return NULL;
18601 }
18602
18603
18604 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18605 PyObject *resultobj = 0;
18606 wxDC *arg1 = (wxDC *) 0 ;
18607 wxIcon *arg2 = 0 ;
18608 wxPoint *arg3 = 0 ;
18609 void *argp1 = 0 ;
18610 int res1 = 0 ;
18611 void *argp2 = 0 ;
18612 int res2 = 0 ;
18613 wxPoint temp3 ;
18614 PyObject * obj0 = 0 ;
18615 PyObject * obj1 = 0 ;
18616 PyObject * obj2 = 0 ;
18617 char * kwnames[] = {
18618 (char *) "self",(char *) "icon",(char *) "pt", NULL
18619 };
18620
18621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18623 if (!SWIG_IsOK(res1)) {
18624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18625 }
18626 arg1 = reinterpret_cast< wxDC * >(argp1);
18627 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
18628 if (!SWIG_IsOK(res2)) {
18629 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18630 }
18631 if (!argp2) {
18632 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
18633 }
18634 arg2 = reinterpret_cast< wxIcon * >(argp2);
18635 {
18636 arg3 = &temp3;
18637 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18638 }
18639 {
18640 PyThreadState* __tstate = wxPyBeginAllowThreads();
18641 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
18642 wxPyEndAllowThreads(__tstate);
18643 if (PyErr_Occurred()) SWIG_fail;
18644 }
18645 resultobj = SWIG_Py_Void();
18646 return resultobj;
18647 fail:
18648 return NULL;
18649 }
18650
18651
18652 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18653 PyObject *resultobj = 0;
18654 wxDC *arg1 = (wxDC *) 0 ;
18655 wxBitmap *arg2 = 0 ;
18656 int arg3 ;
18657 int arg4 ;
18658 bool arg5 = (bool) false ;
18659 void *argp1 = 0 ;
18660 int res1 = 0 ;
18661 void *argp2 = 0 ;
18662 int res2 = 0 ;
18663 int val3 ;
18664 int ecode3 = 0 ;
18665 int val4 ;
18666 int ecode4 = 0 ;
18667 bool val5 ;
18668 int ecode5 = 0 ;
18669 PyObject * obj0 = 0 ;
18670 PyObject * obj1 = 0 ;
18671 PyObject * obj2 = 0 ;
18672 PyObject * obj3 = 0 ;
18673 PyObject * obj4 = 0 ;
18674 char * kwnames[] = {
18675 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
18676 };
18677
18678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18680 if (!SWIG_IsOK(res1)) {
18681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
18682 }
18683 arg1 = reinterpret_cast< wxDC * >(argp1);
18684 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18685 if (!SWIG_IsOK(res2)) {
18686 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18687 }
18688 if (!argp2) {
18689 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18690 }
18691 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18692 ecode3 = SWIG_AsVal_int(obj2, &val3);
18693 if (!SWIG_IsOK(ecode3)) {
18694 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
18695 }
18696 arg3 = static_cast< int >(val3);
18697 ecode4 = SWIG_AsVal_int(obj3, &val4);
18698 if (!SWIG_IsOK(ecode4)) {
18699 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
18700 }
18701 arg4 = static_cast< int >(val4);
18702 if (obj4) {
18703 ecode5 = SWIG_AsVal_bool(obj4, &val5);
18704 if (!SWIG_IsOK(ecode5)) {
18705 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
18706 }
18707 arg5 = static_cast< bool >(val5);
18708 }
18709 {
18710 PyThreadState* __tstate = wxPyBeginAllowThreads();
18711 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
18712 wxPyEndAllowThreads(__tstate);
18713 if (PyErr_Occurred()) SWIG_fail;
18714 }
18715 resultobj = SWIG_Py_Void();
18716 return resultobj;
18717 fail:
18718 return NULL;
18719 }
18720
18721
18722 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18723 PyObject *resultobj = 0;
18724 wxDC *arg1 = (wxDC *) 0 ;
18725 wxBitmap *arg2 = 0 ;
18726 wxPoint *arg3 = 0 ;
18727 bool arg4 = (bool) false ;
18728 void *argp1 = 0 ;
18729 int res1 = 0 ;
18730 void *argp2 = 0 ;
18731 int res2 = 0 ;
18732 wxPoint temp3 ;
18733 bool val4 ;
18734 int ecode4 = 0 ;
18735 PyObject * obj0 = 0 ;
18736 PyObject * obj1 = 0 ;
18737 PyObject * obj2 = 0 ;
18738 PyObject * obj3 = 0 ;
18739 char * kwnames[] = {
18740 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
18741 };
18742
18743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18745 if (!SWIG_IsOK(res1)) {
18746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18747 }
18748 arg1 = reinterpret_cast< wxDC * >(argp1);
18749 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
18750 if (!SWIG_IsOK(res2)) {
18751 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18752 }
18753 if (!argp2) {
18754 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
18755 }
18756 arg2 = reinterpret_cast< wxBitmap * >(argp2);
18757 {
18758 arg3 = &temp3;
18759 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18760 }
18761 if (obj3) {
18762 ecode4 = SWIG_AsVal_bool(obj3, &val4);
18763 if (!SWIG_IsOK(ecode4)) {
18764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
18765 }
18766 arg4 = static_cast< bool >(val4);
18767 }
18768 {
18769 PyThreadState* __tstate = wxPyBeginAllowThreads();
18770 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
18771 wxPyEndAllowThreads(__tstate);
18772 if (PyErr_Occurred()) SWIG_fail;
18773 }
18774 resultobj = SWIG_Py_Void();
18775 return resultobj;
18776 fail:
18777 return NULL;
18778 }
18779
18780
18781 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18782 PyObject *resultobj = 0;
18783 wxDC *arg1 = (wxDC *) 0 ;
18784 wxString *arg2 = 0 ;
18785 int arg3 ;
18786 int arg4 ;
18787 void *argp1 = 0 ;
18788 int res1 = 0 ;
18789 bool temp2 = false ;
18790 int val3 ;
18791 int ecode3 = 0 ;
18792 int val4 ;
18793 int ecode4 = 0 ;
18794 PyObject * obj0 = 0 ;
18795 PyObject * obj1 = 0 ;
18796 PyObject * obj2 = 0 ;
18797 PyObject * obj3 = 0 ;
18798 char * kwnames[] = {
18799 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
18800 };
18801
18802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18804 if (!SWIG_IsOK(res1)) {
18805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
18806 }
18807 arg1 = reinterpret_cast< wxDC * >(argp1);
18808 {
18809 arg2 = wxString_in_helper(obj1);
18810 if (arg2 == NULL) SWIG_fail;
18811 temp2 = true;
18812 }
18813 ecode3 = SWIG_AsVal_int(obj2, &val3);
18814 if (!SWIG_IsOK(ecode3)) {
18815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
18816 }
18817 arg3 = static_cast< int >(val3);
18818 ecode4 = SWIG_AsVal_int(obj3, &val4);
18819 if (!SWIG_IsOK(ecode4)) {
18820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
18821 }
18822 arg4 = static_cast< int >(val4);
18823 {
18824 PyThreadState* __tstate = wxPyBeginAllowThreads();
18825 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
18826 wxPyEndAllowThreads(__tstate);
18827 if (PyErr_Occurred()) SWIG_fail;
18828 }
18829 resultobj = SWIG_Py_Void();
18830 {
18831 if (temp2)
18832 delete arg2;
18833 }
18834 return resultobj;
18835 fail:
18836 {
18837 if (temp2)
18838 delete arg2;
18839 }
18840 return NULL;
18841 }
18842
18843
18844 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18845 PyObject *resultobj = 0;
18846 wxDC *arg1 = (wxDC *) 0 ;
18847 wxString *arg2 = 0 ;
18848 wxPoint *arg3 = 0 ;
18849 void *argp1 = 0 ;
18850 int res1 = 0 ;
18851 bool temp2 = false ;
18852 wxPoint temp3 ;
18853 PyObject * obj0 = 0 ;
18854 PyObject * obj1 = 0 ;
18855 PyObject * obj2 = 0 ;
18856 char * kwnames[] = {
18857 (char *) "self",(char *) "text",(char *) "pt", NULL
18858 };
18859
18860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18862 if (!SWIG_IsOK(res1)) {
18863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18864 }
18865 arg1 = reinterpret_cast< wxDC * >(argp1);
18866 {
18867 arg2 = wxString_in_helper(obj1);
18868 if (arg2 == NULL) SWIG_fail;
18869 temp2 = true;
18870 }
18871 {
18872 arg3 = &temp3;
18873 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18874 }
18875 {
18876 PyThreadState* __tstate = wxPyBeginAllowThreads();
18877 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
18878 wxPyEndAllowThreads(__tstate);
18879 if (PyErr_Occurred()) SWIG_fail;
18880 }
18881 resultobj = SWIG_Py_Void();
18882 {
18883 if (temp2)
18884 delete arg2;
18885 }
18886 return resultobj;
18887 fail:
18888 {
18889 if (temp2)
18890 delete arg2;
18891 }
18892 return NULL;
18893 }
18894
18895
18896 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18897 PyObject *resultobj = 0;
18898 wxDC *arg1 = (wxDC *) 0 ;
18899 wxString *arg2 = 0 ;
18900 int arg3 ;
18901 int arg4 ;
18902 double arg5 ;
18903 void *argp1 = 0 ;
18904 int res1 = 0 ;
18905 bool temp2 = false ;
18906 int val3 ;
18907 int ecode3 = 0 ;
18908 int val4 ;
18909 int ecode4 = 0 ;
18910 double val5 ;
18911 int ecode5 = 0 ;
18912 PyObject * obj0 = 0 ;
18913 PyObject * obj1 = 0 ;
18914 PyObject * obj2 = 0 ;
18915 PyObject * obj3 = 0 ;
18916 PyObject * obj4 = 0 ;
18917 char * kwnames[] = {
18918 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
18919 };
18920
18921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18923 if (!SWIG_IsOK(res1)) {
18924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
18925 }
18926 arg1 = reinterpret_cast< wxDC * >(argp1);
18927 {
18928 arg2 = wxString_in_helper(obj1);
18929 if (arg2 == NULL) SWIG_fail;
18930 temp2 = true;
18931 }
18932 ecode3 = SWIG_AsVal_int(obj2, &val3);
18933 if (!SWIG_IsOK(ecode3)) {
18934 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
18935 }
18936 arg3 = static_cast< int >(val3);
18937 ecode4 = SWIG_AsVal_int(obj3, &val4);
18938 if (!SWIG_IsOK(ecode4)) {
18939 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
18940 }
18941 arg4 = static_cast< int >(val4);
18942 ecode5 = SWIG_AsVal_double(obj4, &val5);
18943 if (!SWIG_IsOK(ecode5)) {
18944 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
18945 }
18946 arg5 = static_cast< double >(val5);
18947 {
18948 PyThreadState* __tstate = wxPyBeginAllowThreads();
18949 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
18950 wxPyEndAllowThreads(__tstate);
18951 if (PyErr_Occurred()) SWIG_fail;
18952 }
18953 resultobj = SWIG_Py_Void();
18954 {
18955 if (temp2)
18956 delete arg2;
18957 }
18958 return resultobj;
18959 fail:
18960 {
18961 if (temp2)
18962 delete arg2;
18963 }
18964 return NULL;
18965 }
18966
18967
18968 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18969 PyObject *resultobj = 0;
18970 wxDC *arg1 = (wxDC *) 0 ;
18971 wxString *arg2 = 0 ;
18972 wxPoint *arg3 = 0 ;
18973 double arg4 ;
18974 void *argp1 = 0 ;
18975 int res1 = 0 ;
18976 bool temp2 = false ;
18977 wxPoint temp3 ;
18978 double val4 ;
18979 int ecode4 = 0 ;
18980 PyObject * obj0 = 0 ;
18981 PyObject * obj1 = 0 ;
18982 PyObject * obj2 = 0 ;
18983 PyObject * obj3 = 0 ;
18984 char * kwnames[] = {
18985 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
18986 };
18987
18988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18990 if (!SWIG_IsOK(res1)) {
18991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18992 }
18993 arg1 = reinterpret_cast< wxDC * >(argp1);
18994 {
18995 arg2 = wxString_in_helper(obj1);
18996 if (arg2 == NULL) SWIG_fail;
18997 temp2 = true;
18998 }
18999 {
19000 arg3 = &temp3;
19001 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19002 }
19003 ecode4 = SWIG_AsVal_double(obj3, &val4);
19004 if (!SWIG_IsOK(ecode4)) {
19005 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19006 }
19007 arg4 = static_cast< double >(val4);
19008 {
19009 PyThreadState* __tstate = wxPyBeginAllowThreads();
19010 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19011 wxPyEndAllowThreads(__tstate);
19012 if (PyErr_Occurred()) SWIG_fail;
19013 }
19014 resultobj = SWIG_Py_Void();
19015 {
19016 if (temp2)
19017 delete arg2;
19018 }
19019 return resultobj;
19020 fail:
19021 {
19022 if (temp2)
19023 delete arg2;
19024 }
19025 return NULL;
19026 }
19027
19028
19029 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19030 PyObject *resultobj = 0;
19031 wxDC *arg1 = (wxDC *) 0 ;
19032 int arg2 ;
19033 int arg3 ;
19034 int arg4 ;
19035 int arg5 ;
19036 wxDC *arg6 = (wxDC *) 0 ;
19037 int arg7 ;
19038 int arg8 ;
19039 int arg9 = (int) wxCOPY ;
19040 bool arg10 = (bool) false ;
19041 int arg11 = (int) -1 ;
19042 int arg12 = (int) -1 ;
19043 bool result;
19044 void *argp1 = 0 ;
19045 int res1 = 0 ;
19046 int val2 ;
19047 int ecode2 = 0 ;
19048 int val3 ;
19049 int ecode3 = 0 ;
19050 int val4 ;
19051 int ecode4 = 0 ;
19052 int val5 ;
19053 int ecode5 = 0 ;
19054 void *argp6 = 0 ;
19055 int res6 = 0 ;
19056 int val7 ;
19057 int ecode7 = 0 ;
19058 int val8 ;
19059 int ecode8 = 0 ;
19060 int val9 ;
19061 int ecode9 = 0 ;
19062 bool val10 ;
19063 int ecode10 = 0 ;
19064 int val11 ;
19065 int ecode11 = 0 ;
19066 int val12 ;
19067 int ecode12 = 0 ;
19068 PyObject * obj0 = 0 ;
19069 PyObject * obj1 = 0 ;
19070 PyObject * obj2 = 0 ;
19071 PyObject * obj3 = 0 ;
19072 PyObject * obj4 = 0 ;
19073 PyObject * obj5 = 0 ;
19074 PyObject * obj6 = 0 ;
19075 PyObject * obj7 = 0 ;
19076 PyObject * obj8 = 0 ;
19077 PyObject * obj9 = 0 ;
19078 PyObject * obj10 = 0 ;
19079 PyObject * obj11 = 0 ;
19080 char * kwnames[] = {
19081 (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
19082 };
19083
19084 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;
19085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19086 if (!SWIG_IsOK(res1)) {
19087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19088 }
19089 arg1 = reinterpret_cast< wxDC * >(argp1);
19090 ecode2 = SWIG_AsVal_int(obj1, &val2);
19091 if (!SWIG_IsOK(ecode2)) {
19092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19093 }
19094 arg2 = static_cast< int >(val2);
19095 ecode3 = SWIG_AsVal_int(obj2, &val3);
19096 if (!SWIG_IsOK(ecode3)) {
19097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19098 }
19099 arg3 = static_cast< int >(val3);
19100 ecode4 = SWIG_AsVal_int(obj3, &val4);
19101 if (!SWIG_IsOK(ecode4)) {
19102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19103 }
19104 arg4 = static_cast< int >(val4);
19105 ecode5 = SWIG_AsVal_int(obj4, &val5);
19106 if (!SWIG_IsOK(ecode5)) {
19107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19108 }
19109 arg5 = static_cast< int >(val5);
19110 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19111 if (!SWIG_IsOK(res6)) {
19112 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19113 }
19114 arg6 = reinterpret_cast< wxDC * >(argp6);
19115 ecode7 = SWIG_AsVal_int(obj6, &val7);
19116 if (!SWIG_IsOK(ecode7)) {
19117 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
19118 }
19119 arg7 = static_cast< int >(val7);
19120 ecode8 = SWIG_AsVal_int(obj7, &val8);
19121 if (!SWIG_IsOK(ecode8)) {
19122 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
19123 }
19124 arg8 = static_cast< int >(val8);
19125 if (obj8) {
19126 ecode9 = SWIG_AsVal_int(obj8, &val9);
19127 if (!SWIG_IsOK(ecode9)) {
19128 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
19129 }
19130 arg9 = static_cast< int >(val9);
19131 }
19132 if (obj9) {
19133 ecode10 = SWIG_AsVal_bool(obj9, &val10);
19134 if (!SWIG_IsOK(ecode10)) {
19135 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
19136 }
19137 arg10 = static_cast< bool >(val10);
19138 }
19139 if (obj10) {
19140 ecode11 = SWIG_AsVal_int(obj10, &val11);
19141 if (!SWIG_IsOK(ecode11)) {
19142 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
19143 }
19144 arg11 = static_cast< int >(val11);
19145 }
19146 if (obj11) {
19147 ecode12 = SWIG_AsVal_int(obj11, &val12);
19148 if (!SWIG_IsOK(ecode12)) {
19149 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
19150 }
19151 arg12 = static_cast< int >(val12);
19152 }
19153 {
19154 PyThreadState* __tstate = wxPyBeginAllowThreads();
19155 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
19156 wxPyEndAllowThreads(__tstate);
19157 if (PyErr_Occurred()) SWIG_fail;
19158 }
19159 {
19160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19161 }
19162 return resultobj;
19163 fail:
19164 return NULL;
19165 }
19166
19167
19168 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19169 PyObject *resultobj = 0;
19170 wxDC *arg1 = (wxDC *) 0 ;
19171 wxPoint *arg2 = 0 ;
19172 wxSize *arg3 = 0 ;
19173 wxDC *arg4 = (wxDC *) 0 ;
19174 wxPoint *arg5 = 0 ;
19175 int arg6 = (int) wxCOPY ;
19176 bool arg7 = (bool) false ;
19177 wxPoint const &arg8_defvalue = wxDefaultPosition ;
19178 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
19179 bool result;
19180 void *argp1 = 0 ;
19181 int res1 = 0 ;
19182 wxPoint temp2 ;
19183 wxSize temp3 ;
19184 void *argp4 = 0 ;
19185 int res4 = 0 ;
19186 wxPoint temp5 ;
19187 int val6 ;
19188 int ecode6 = 0 ;
19189 bool val7 ;
19190 int ecode7 = 0 ;
19191 wxPoint temp8 ;
19192 PyObject * obj0 = 0 ;
19193 PyObject * obj1 = 0 ;
19194 PyObject * obj2 = 0 ;
19195 PyObject * obj3 = 0 ;
19196 PyObject * obj4 = 0 ;
19197 PyObject * obj5 = 0 ;
19198 PyObject * obj6 = 0 ;
19199 PyObject * obj7 = 0 ;
19200 char * kwnames[] = {
19201 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
19202 };
19203
19204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) 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_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19208 }
19209 arg1 = reinterpret_cast< wxDC * >(argp1);
19210 {
19211 arg2 = &temp2;
19212 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19213 }
19214 {
19215 arg3 = &temp3;
19216 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19217 }
19218 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
19219 if (!SWIG_IsOK(res4)) {
19220 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
19221 }
19222 arg4 = reinterpret_cast< wxDC * >(argp4);
19223 {
19224 arg5 = &temp5;
19225 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
19226 }
19227 if (obj5) {
19228 ecode6 = SWIG_AsVal_int(obj5, &val6);
19229 if (!SWIG_IsOK(ecode6)) {
19230 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
19231 }
19232 arg6 = static_cast< int >(val6);
19233 }
19234 if (obj6) {
19235 ecode7 = SWIG_AsVal_bool(obj6, &val7);
19236 if (!SWIG_IsOK(ecode7)) {
19237 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
19238 }
19239 arg7 = static_cast< bool >(val7);
19240 }
19241 if (obj7) {
19242 {
19243 arg8 = &temp8;
19244 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
19245 }
19246 }
19247 {
19248 PyThreadState* __tstate = wxPyBeginAllowThreads();
19249 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
19250 wxPyEndAllowThreads(__tstate);
19251 if (PyErr_Occurred()) SWIG_fail;
19252 }
19253 {
19254 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19255 }
19256 return resultobj;
19257 fail:
19258 return NULL;
19259 }
19260
19261
19262 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19263 PyObject *resultobj = 0;
19264 wxDC *arg1 = (wxDC *) 0 ;
19265 int arg2 ;
19266 int arg3 ;
19267 int arg4 ;
19268 int arg5 ;
19269 void *argp1 = 0 ;
19270 int res1 = 0 ;
19271 int val2 ;
19272 int ecode2 = 0 ;
19273 int val3 ;
19274 int ecode3 = 0 ;
19275 int val4 ;
19276 int ecode4 = 0 ;
19277 int val5 ;
19278 int ecode5 = 0 ;
19279 PyObject * obj0 = 0 ;
19280 PyObject * obj1 = 0 ;
19281 PyObject * obj2 = 0 ;
19282 PyObject * obj3 = 0 ;
19283 PyObject * obj4 = 0 ;
19284 char * kwnames[] = {
19285 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19286 };
19287
19288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19290 if (!SWIG_IsOK(res1)) {
19291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19292 }
19293 arg1 = reinterpret_cast< wxDC * >(argp1);
19294 ecode2 = SWIG_AsVal_int(obj1, &val2);
19295 if (!SWIG_IsOK(ecode2)) {
19296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
19297 }
19298 arg2 = static_cast< int >(val2);
19299 ecode3 = SWIG_AsVal_int(obj2, &val3);
19300 if (!SWIG_IsOK(ecode3)) {
19301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
19302 }
19303 arg3 = static_cast< int >(val3);
19304 ecode4 = SWIG_AsVal_int(obj3, &val4);
19305 if (!SWIG_IsOK(ecode4)) {
19306 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
19307 }
19308 arg4 = static_cast< int >(val4);
19309 ecode5 = SWIG_AsVal_int(obj4, &val5);
19310 if (!SWIG_IsOK(ecode5)) {
19311 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
19312 }
19313 arg5 = static_cast< int >(val5);
19314 {
19315 PyThreadState* __tstate = wxPyBeginAllowThreads();
19316 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
19317 wxPyEndAllowThreads(__tstate);
19318 if (PyErr_Occurred()) SWIG_fail;
19319 }
19320 resultobj = SWIG_Py_Void();
19321 return resultobj;
19322 fail:
19323 return NULL;
19324 }
19325
19326
19327 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19328 PyObject *resultobj = 0;
19329 wxDC *arg1 = (wxDC *) 0 ;
19330 wxPoint *arg2 = 0 ;
19331 wxSize *arg3 = 0 ;
19332 void *argp1 = 0 ;
19333 int res1 = 0 ;
19334 wxPoint temp2 ;
19335 wxSize temp3 ;
19336 PyObject * obj0 = 0 ;
19337 PyObject * obj1 = 0 ;
19338 PyObject * obj2 = 0 ;
19339 char * kwnames[] = {
19340 (char *) "self",(char *) "pt",(char *) "sz", NULL
19341 };
19342
19343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19345 if (!SWIG_IsOK(res1)) {
19346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19347 }
19348 arg1 = reinterpret_cast< wxDC * >(argp1);
19349 {
19350 arg2 = &temp2;
19351 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19352 }
19353 {
19354 arg3 = &temp3;
19355 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19356 }
19357 {
19358 PyThreadState* __tstate = wxPyBeginAllowThreads();
19359 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
19360 wxPyEndAllowThreads(__tstate);
19361 if (PyErr_Occurred()) SWIG_fail;
19362 }
19363 resultobj = SWIG_Py_Void();
19364 return resultobj;
19365 fail:
19366 return NULL;
19367 }
19368
19369
19370 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19371 PyObject *resultobj = 0;
19372 wxDC *arg1 = (wxDC *) 0 ;
19373 wxRegion *arg2 = 0 ;
19374 void *argp1 = 0 ;
19375 int res1 = 0 ;
19376 void *argp2 = 0 ;
19377 int res2 = 0 ;
19378 PyObject * obj0 = 0 ;
19379 PyObject * obj1 = 0 ;
19380 char * kwnames[] = {
19381 (char *) "self",(char *) "region", NULL
19382 };
19383
19384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
19385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19386 if (!SWIG_IsOK(res1)) {
19387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
19388 }
19389 arg1 = reinterpret_cast< wxDC * >(argp1);
19390 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
19391 if (!SWIG_IsOK(res2)) {
19392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19393 }
19394 if (!argp2) {
19395 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
19396 }
19397 arg2 = reinterpret_cast< wxRegion * >(argp2);
19398 {
19399 PyThreadState* __tstate = wxPyBeginAllowThreads();
19400 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
19401 wxPyEndAllowThreads(__tstate);
19402 if (PyErr_Occurred()) SWIG_fail;
19403 }
19404 resultobj = SWIG_Py_Void();
19405 return resultobj;
19406 fail:
19407 return NULL;
19408 }
19409
19410
19411 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19412 PyObject *resultobj = 0;
19413 wxDC *arg1 = (wxDC *) 0 ;
19414 wxRect *arg2 = 0 ;
19415 void *argp1 = 0 ;
19416 int res1 = 0 ;
19417 wxRect temp2 ;
19418 PyObject * obj0 = 0 ;
19419 PyObject * obj1 = 0 ;
19420 char * kwnames[] = {
19421 (char *) "self",(char *) "rect", NULL
19422 };
19423
19424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
19425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19426 if (!SWIG_IsOK(res1)) {
19427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
19428 }
19429 arg1 = reinterpret_cast< wxDC * >(argp1);
19430 {
19431 arg2 = &temp2;
19432 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19433 }
19434 {
19435 PyThreadState* __tstate = wxPyBeginAllowThreads();
19436 (arg1)->SetClippingRegion((wxRect const &)*arg2);
19437 wxPyEndAllowThreads(__tstate);
19438 if (PyErr_Occurred()) SWIG_fail;
19439 }
19440 resultobj = SWIG_Py_Void();
19441 return resultobj;
19442 fail:
19443 return NULL;
19444 }
19445
19446
19447 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19448 PyObject *resultobj = 0;
19449 wxDC *arg1 = (wxDC *) 0 ;
19450 int arg2 ;
19451 wxPoint *arg3 = (wxPoint *) 0 ;
19452 int arg4 = (int) 0 ;
19453 int arg5 = (int) 0 ;
19454 void *argp1 = 0 ;
19455 int res1 = 0 ;
19456 int val4 ;
19457 int ecode4 = 0 ;
19458 int val5 ;
19459 int ecode5 = 0 ;
19460 PyObject * obj0 = 0 ;
19461 PyObject * obj1 = 0 ;
19462 PyObject * obj2 = 0 ;
19463 PyObject * obj3 = 0 ;
19464 char * kwnames[] = {
19465 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
19466 };
19467
19468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19470 if (!SWIG_IsOK(res1)) {
19471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
19472 }
19473 arg1 = reinterpret_cast< wxDC * >(argp1);
19474 {
19475 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19476 if (arg3 == NULL) SWIG_fail;
19477 }
19478 if (obj2) {
19479 ecode4 = SWIG_AsVal_int(obj2, &val4);
19480 if (!SWIG_IsOK(ecode4)) {
19481 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
19482 }
19483 arg4 = static_cast< int >(val4);
19484 }
19485 if (obj3) {
19486 ecode5 = SWIG_AsVal_int(obj3, &val5);
19487 if (!SWIG_IsOK(ecode5)) {
19488 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
19489 }
19490 arg5 = static_cast< int >(val5);
19491 }
19492 {
19493 PyThreadState* __tstate = wxPyBeginAllowThreads();
19494 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
19495 wxPyEndAllowThreads(__tstate);
19496 if (PyErr_Occurred()) SWIG_fail;
19497 }
19498 resultobj = SWIG_Py_Void();
19499 {
19500 if (arg3) delete [] arg3;
19501 }
19502 return resultobj;
19503 fail:
19504 {
19505 if (arg3) delete [] arg3;
19506 }
19507 return NULL;
19508 }
19509
19510
19511 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19512 PyObject *resultobj = 0;
19513 wxDC *arg1 = (wxDC *) 0 ;
19514 int arg2 ;
19515 wxPoint *arg3 = (wxPoint *) 0 ;
19516 int arg4 = (int) 0 ;
19517 int arg5 = (int) 0 ;
19518 int arg6 = (int) wxODDEVEN_RULE ;
19519 void *argp1 = 0 ;
19520 int res1 = 0 ;
19521 int val4 ;
19522 int ecode4 = 0 ;
19523 int val5 ;
19524 int ecode5 = 0 ;
19525 int val6 ;
19526 int ecode6 = 0 ;
19527 PyObject * obj0 = 0 ;
19528 PyObject * obj1 = 0 ;
19529 PyObject * obj2 = 0 ;
19530 PyObject * obj3 = 0 ;
19531 PyObject * obj4 = 0 ;
19532 char * kwnames[] = {
19533 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
19534 };
19535
19536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19538 if (!SWIG_IsOK(res1)) {
19539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
19540 }
19541 arg1 = reinterpret_cast< wxDC * >(argp1);
19542 {
19543 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19544 if (arg3 == NULL) SWIG_fail;
19545 }
19546 if (obj2) {
19547 ecode4 = SWIG_AsVal_int(obj2, &val4);
19548 if (!SWIG_IsOK(ecode4)) {
19549 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
19550 }
19551 arg4 = static_cast< int >(val4);
19552 }
19553 if (obj3) {
19554 ecode5 = SWIG_AsVal_int(obj3, &val5);
19555 if (!SWIG_IsOK(ecode5)) {
19556 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
19557 }
19558 arg5 = static_cast< int >(val5);
19559 }
19560 if (obj4) {
19561 ecode6 = SWIG_AsVal_int(obj4, &val6);
19562 if (!SWIG_IsOK(ecode6)) {
19563 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
19564 }
19565 arg6 = static_cast< int >(val6);
19566 }
19567 {
19568 PyThreadState* __tstate = wxPyBeginAllowThreads();
19569 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
19570 wxPyEndAllowThreads(__tstate);
19571 if (PyErr_Occurred()) SWIG_fail;
19572 }
19573 resultobj = SWIG_Py_Void();
19574 {
19575 if (arg3) delete [] arg3;
19576 }
19577 return resultobj;
19578 fail:
19579 {
19580 if (arg3) delete [] arg3;
19581 }
19582 return NULL;
19583 }
19584
19585
19586 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19587 PyObject *resultobj = 0;
19588 wxDC *arg1 = (wxDC *) 0 ;
19589 wxString *arg2 = 0 ;
19590 wxRect *arg3 = 0 ;
19591 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19592 int arg5 = (int) -1 ;
19593 void *argp1 = 0 ;
19594 int res1 = 0 ;
19595 bool temp2 = false ;
19596 wxRect temp3 ;
19597 int val4 ;
19598 int ecode4 = 0 ;
19599 int val5 ;
19600 int ecode5 = 0 ;
19601 PyObject * obj0 = 0 ;
19602 PyObject * obj1 = 0 ;
19603 PyObject * obj2 = 0 ;
19604 PyObject * obj3 = 0 ;
19605 PyObject * obj4 = 0 ;
19606 char * kwnames[] = {
19607 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19608 };
19609
19610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19612 if (!SWIG_IsOK(res1)) {
19613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19614 }
19615 arg1 = reinterpret_cast< wxDC * >(argp1);
19616 {
19617 arg2 = wxString_in_helper(obj1);
19618 if (arg2 == NULL) SWIG_fail;
19619 temp2 = true;
19620 }
19621 {
19622 arg3 = &temp3;
19623 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
19624 }
19625 if (obj3) {
19626 ecode4 = SWIG_AsVal_int(obj3, &val4);
19627 if (!SWIG_IsOK(ecode4)) {
19628 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
19629 }
19630 arg4 = static_cast< int >(val4);
19631 }
19632 if (obj4) {
19633 ecode5 = SWIG_AsVal_int(obj4, &val5);
19634 if (!SWIG_IsOK(ecode5)) {
19635 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
19636 }
19637 arg5 = static_cast< int >(val5);
19638 }
19639 {
19640 PyThreadState* __tstate = wxPyBeginAllowThreads();
19641 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
19642 wxPyEndAllowThreads(__tstate);
19643 if (PyErr_Occurred()) SWIG_fail;
19644 }
19645 resultobj = SWIG_Py_Void();
19646 {
19647 if (temp2)
19648 delete arg2;
19649 }
19650 return resultobj;
19651 fail:
19652 {
19653 if (temp2)
19654 delete arg2;
19655 }
19656 return NULL;
19657 }
19658
19659
19660 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19661 PyObject *resultobj = 0;
19662 wxDC *arg1 = (wxDC *) 0 ;
19663 wxString *arg2 = 0 ;
19664 wxBitmap *arg3 = 0 ;
19665 wxRect *arg4 = 0 ;
19666 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
19667 int arg6 = (int) -1 ;
19668 wxRect result;
19669 void *argp1 = 0 ;
19670 int res1 = 0 ;
19671 bool temp2 = false ;
19672 void *argp3 = 0 ;
19673 int res3 = 0 ;
19674 wxRect temp4 ;
19675 int val5 ;
19676 int ecode5 = 0 ;
19677 int val6 ;
19678 int ecode6 = 0 ;
19679 PyObject * obj0 = 0 ;
19680 PyObject * obj1 = 0 ;
19681 PyObject * obj2 = 0 ;
19682 PyObject * obj3 = 0 ;
19683 PyObject * obj4 = 0 ;
19684 PyObject * obj5 = 0 ;
19685 char * kwnames[] = {
19686 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
19687 };
19688
19689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19691 if (!SWIG_IsOK(res1)) {
19692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
19693 }
19694 arg1 = reinterpret_cast< wxDC * >(argp1);
19695 {
19696 arg2 = wxString_in_helper(obj1);
19697 if (arg2 == NULL) SWIG_fail;
19698 temp2 = true;
19699 }
19700 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
19701 if (!SWIG_IsOK(res3)) {
19702 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19703 }
19704 if (!argp3) {
19705 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
19706 }
19707 arg3 = reinterpret_cast< wxBitmap * >(argp3);
19708 {
19709 arg4 = &temp4;
19710 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
19711 }
19712 if (obj4) {
19713 ecode5 = SWIG_AsVal_int(obj4, &val5);
19714 if (!SWIG_IsOK(ecode5)) {
19715 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
19716 }
19717 arg5 = static_cast< int >(val5);
19718 }
19719 if (obj5) {
19720 ecode6 = SWIG_AsVal_int(obj5, &val6);
19721 if (!SWIG_IsOK(ecode6)) {
19722 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
19723 }
19724 arg6 = static_cast< int >(val6);
19725 }
19726 {
19727 PyThreadState* __tstate = wxPyBeginAllowThreads();
19728 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
19729 wxPyEndAllowThreads(__tstate);
19730 if (PyErr_Occurred()) SWIG_fail;
19731 }
19732 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
19733 {
19734 if (temp2)
19735 delete arg2;
19736 }
19737 return resultobj;
19738 fail:
19739 {
19740 if (temp2)
19741 delete arg2;
19742 }
19743 return NULL;
19744 }
19745
19746
19747 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19748 PyObject *resultobj = 0;
19749 wxDC *arg1 = (wxDC *) 0 ;
19750 int arg2 ;
19751 wxPoint *arg3 = (wxPoint *) 0 ;
19752 void *argp1 = 0 ;
19753 int res1 = 0 ;
19754 PyObject * obj0 = 0 ;
19755 PyObject * obj1 = 0 ;
19756 char * kwnames[] = {
19757 (char *) "self",(char *) "points", NULL
19758 };
19759
19760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
19761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19762 if (!SWIG_IsOK(res1)) {
19763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
19764 }
19765 arg1 = reinterpret_cast< wxDC * >(argp1);
19766 {
19767 arg3 = wxPoint_LIST_helper(obj1, &arg2);
19768 if (arg3 == NULL) SWIG_fail;
19769 }
19770 {
19771 PyThreadState* __tstate = wxPyBeginAllowThreads();
19772 (arg1)->DrawSpline(arg2,arg3);
19773 wxPyEndAllowThreads(__tstate);
19774 if (PyErr_Occurred()) SWIG_fail;
19775 }
19776 resultobj = SWIG_Py_Void();
19777 {
19778 if (arg3) delete [] arg3;
19779 }
19780 return resultobj;
19781 fail:
19782 {
19783 if (arg3) delete [] arg3;
19784 }
19785 return NULL;
19786 }
19787
19788
19789 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19790 PyObject *resultobj = 0;
19791 wxDC *arg1 = (wxDC *) 0 ;
19792 void *argp1 = 0 ;
19793 int res1 = 0 ;
19794 PyObject *swig_obj[1] ;
19795
19796 if (!args) SWIG_fail;
19797 swig_obj[0] = args;
19798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19799 if (!SWIG_IsOK(res1)) {
19800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
19801 }
19802 arg1 = reinterpret_cast< wxDC * >(argp1);
19803 {
19804 PyThreadState* __tstate = wxPyBeginAllowThreads();
19805 (arg1)->Clear();
19806 wxPyEndAllowThreads(__tstate);
19807 if (PyErr_Occurred()) SWIG_fail;
19808 }
19809 resultobj = SWIG_Py_Void();
19810 return resultobj;
19811 fail:
19812 return NULL;
19813 }
19814
19815
19816 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19817 PyObject *resultobj = 0;
19818 wxDC *arg1 = (wxDC *) 0 ;
19819 wxString *arg2 = 0 ;
19820 bool result;
19821 void *argp1 = 0 ;
19822 int res1 = 0 ;
19823 bool temp2 = false ;
19824 PyObject * obj0 = 0 ;
19825 PyObject * obj1 = 0 ;
19826 char * kwnames[] = {
19827 (char *) "self",(char *) "message", NULL
19828 };
19829
19830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
19831 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19832 if (!SWIG_IsOK(res1)) {
19833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19834 }
19835 arg1 = reinterpret_cast< wxDC * >(argp1);
19836 {
19837 arg2 = wxString_in_helper(obj1);
19838 if (arg2 == NULL) SWIG_fail;
19839 temp2 = true;
19840 }
19841 {
19842 PyThreadState* __tstate = wxPyBeginAllowThreads();
19843 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
19844 wxPyEndAllowThreads(__tstate);
19845 if (PyErr_Occurred()) SWIG_fail;
19846 }
19847 {
19848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19849 }
19850 {
19851 if (temp2)
19852 delete arg2;
19853 }
19854 return resultobj;
19855 fail:
19856 {
19857 if (temp2)
19858 delete arg2;
19859 }
19860 return NULL;
19861 }
19862
19863
19864 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19865 PyObject *resultobj = 0;
19866 wxDC *arg1 = (wxDC *) 0 ;
19867 void *argp1 = 0 ;
19868 int res1 = 0 ;
19869 PyObject *swig_obj[1] ;
19870
19871 if (!args) SWIG_fail;
19872 swig_obj[0] = args;
19873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19874 if (!SWIG_IsOK(res1)) {
19875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
19876 }
19877 arg1 = reinterpret_cast< wxDC * >(argp1);
19878 {
19879 PyThreadState* __tstate = wxPyBeginAllowThreads();
19880 (arg1)->EndDoc();
19881 wxPyEndAllowThreads(__tstate);
19882 if (PyErr_Occurred()) SWIG_fail;
19883 }
19884 resultobj = SWIG_Py_Void();
19885 return resultobj;
19886 fail:
19887 return NULL;
19888 }
19889
19890
19891 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19892 PyObject *resultobj = 0;
19893 wxDC *arg1 = (wxDC *) 0 ;
19894 void *argp1 = 0 ;
19895 int res1 = 0 ;
19896 PyObject *swig_obj[1] ;
19897
19898 if (!args) SWIG_fail;
19899 swig_obj[0] = args;
19900 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19901 if (!SWIG_IsOK(res1)) {
19902 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
19903 }
19904 arg1 = reinterpret_cast< wxDC * >(argp1);
19905 {
19906 PyThreadState* __tstate = wxPyBeginAllowThreads();
19907 (arg1)->StartPage();
19908 wxPyEndAllowThreads(__tstate);
19909 if (PyErr_Occurred()) SWIG_fail;
19910 }
19911 resultobj = SWIG_Py_Void();
19912 return resultobj;
19913 fail:
19914 return NULL;
19915 }
19916
19917
19918 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19919 PyObject *resultobj = 0;
19920 wxDC *arg1 = (wxDC *) 0 ;
19921 void *argp1 = 0 ;
19922 int res1 = 0 ;
19923 PyObject *swig_obj[1] ;
19924
19925 if (!args) SWIG_fail;
19926 swig_obj[0] = args;
19927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19928 if (!SWIG_IsOK(res1)) {
19929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
19930 }
19931 arg1 = reinterpret_cast< wxDC * >(argp1);
19932 {
19933 PyThreadState* __tstate = wxPyBeginAllowThreads();
19934 (arg1)->EndPage();
19935 wxPyEndAllowThreads(__tstate);
19936 if (PyErr_Occurred()) SWIG_fail;
19937 }
19938 resultobj = SWIG_Py_Void();
19939 return resultobj;
19940 fail:
19941 return NULL;
19942 }
19943
19944
19945 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19946 PyObject *resultobj = 0;
19947 wxDC *arg1 = (wxDC *) 0 ;
19948 wxFont *arg2 = 0 ;
19949 void *argp1 = 0 ;
19950 int res1 = 0 ;
19951 void *argp2 = 0 ;
19952 int res2 = 0 ;
19953 PyObject * obj0 = 0 ;
19954 PyObject * obj1 = 0 ;
19955 char * kwnames[] = {
19956 (char *) "self",(char *) "font", NULL
19957 };
19958
19959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
19960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19961 if (!SWIG_IsOK(res1)) {
19962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
19963 }
19964 arg1 = reinterpret_cast< wxDC * >(argp1);
19965 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
19966 if (!SWIG_IsOK(res2)) {
19967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
19968 }
19969 if (!argp2) {
19970 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
19971 }
19972 arg2 = reinterpret_cast< wxFont * >(argp2);
19973 {
19974 PyThreadState* __tstate = wxPyBeginAllowThreads();
19975 (arg1)->SetFont((wxFont const &)*arg2);
19976 wxPyEndAllowThreads(__tstate);
19977 if (PyErr_Occurred()) SWIG_fail;
19978 }
19979 resultobj = SWIG_Py_Void();
19980 return resultobj;
19981 fail:
19982 return NULL;
19983 }
19984
19985
19986 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19987 PyObject *resultobj = 0;
19988 wxDC *arg1 = (wxDC *) 0 ;
19989 wxPen *arg2 = 0 ;
19990 void *argp1 = 0 ;
19991 int res1 = 0 ;
19992 void *argp2 = 0 ;
19993 int res2 = 0 ;
19994 PyObject * obj0 = 0 ;
19995 PyObject * obj1 = 0 ;
19996 char * kwnames[] = {
19997 (char *) "self",(char *) "pen", NULL
19998 };
19999
20000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20002 if (!SWIG_IsOK(res1)) {
20003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20004 }
20005 arg1 = reinterpret_cast< wxDC * >(argp1);
20006 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20007 if (!SWIG_IsOK(res2)) {
20008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20009 }
20010 if (!argp2) {
20011 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20012 }
20013 arg2 = reinterpret_cast< wxPen * >(argp2);
20014 {
20015 PyThreadState* __tstate = wxPyBeginAllowThreads();
20016 (arg1)->SetPen((wxPen const &)*arg2);
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 resultobj = SWIG_Py_Void();
20021 return resultobj;
20022 fail:
20023 return NULL;
20024 }
20025
20026
20027 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20028 PyObject *resultobj = 0;
20029 wxDC *arg1 = (wxDC *) 0 ;
20030 wxBrush *arg2 = 0 ;
20031 void *argp1 = 0 ;
20032 int res1 = 0 ;
20033 void *argp2 = 0 ;
20034 int res2 = 0 ;
20035 PyObject * obj0 = 0 ;
20036 PyObject * obj1 = 0 ;
20037 char * kwnames[] = {
20038 (char *) "self",(char *) "brush", NULL
20039 };
20040
20041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20043 if (!SWIG_IsOK(res1)) {
20044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20045 }
20046 arg1 = reinterpret_cast< wxDC * >(argp1);
20047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20048 if (!SWIG_IsOK(res2)) {
20049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20050 }
20051 if (!argp2) {
20052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20053 }
20054 arg2 = reinterpret_cast< wxBrush * >(argp2);
20055 {
20056 PyThreadState* __tstate = wxPyBeginAllowThreads();
20057 (arg1)->SetBrush((wxBrush const &)*arg2);
20058 wxPyEndAllowThreads(__tstate);
20059 if (PyErr_Occurred()) SWIG_fail;
20060 }
20061 resultobj = SWIG_Py_Void();
20062 return resultobj;
20063 fail:
20064 return NULL;
20065 }
20066
20067
20068 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20069 PyObject *resultobj = 0;
20070 wxDC *arg1 = (wxDC *) 0 ;
20071 wxBrush *arg2 = 0 ;
20072 void *argp1 = 0 ;
20073 int res1 = 0 ;
20074 void *argp2 = 0 ;
20075 int res2 = 0 ;
20076 PyObject * obj0 = 0 ;
20077 PyObject * obj1 = 0 ;
20078 char * kwnames[] = {
20079 (char *) "self",(char *) "brush", NULL
20080 };
20081
20082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20084 if (!SWIG_IsOK(res1)) {
20085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20086 }
20087 arg1 = reinterpret_cast< wxDC * >(argp1);
20088 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20089 if (!SWIG_IsOK(res2)) {
20090 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20091 }
20092 if (!argp2) {
20093 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20094 }
20095 arg2 = reinterpret_cast< wxBrush * >(argp2);
20096 {
20097 PyThreadState* __tstate = wxPyBeginAllowThreads();
20098 (arg1)->SetBackground((wxBrush const &)*arg2);
20099 wxPyEndAllowThreads(__tstate);
20100 if (PyErr_Occurred()) SWIG_fail;
20101 }
20102 resultobj = SWIG_Py_Void();
20103 return resultobj;
20104 fail:
20105 return NULL;
20106 }
20107
20108
20109 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20110 PyObject *resultobj = 0;
20111 wxDC *arg1 = (wxDC *) 0 ;
20112 int arg2 ;
20113 void *argp1 = 0 ;
20114 int res1 = 0 ;
20115 int val2 ;
20116 int ecode2 = 0 ;
20117 PyObject * obj0 = 0 ;
20118 PyObject * obj1 = 0 ;
20119 char * kwnames[] = {
20120 (char *) "self",(char *) "mode", NULL
20121 };
20122
20123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
20124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20125 if (!SWIG_IsOK(res1)) {
20126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
20127 }
20128 arg1 = reinterpret_cast< wxDC * >(argp1);
20129 ecode2 = SWIG_AsVal_int(obj1, &val2);
20130 if (!SWIG_IsOK(ecode2)) {
20131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
20132 }
20133 arg2 = static_cast< int >(val2);
20134 {
20135 PyThreadState* __tstate = wxPyBeginAllowThreads();
20136 (arg1)->SetBackgroundMode(arg2);
20137 wxPyEndAllowThreads(__tstate);
20138 if (PyErr_Occurred()) SWIG_fail;
20139 }
20140 resultobj = SWIG_Py_Void();
20141 return resultobj;
20142 fail:
20143 return NULL;
20144 }
20145
20146
20147 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20148 PyObject *resultobj = 0;
20149 wxDC *arg1 = (wxDC *) 0 ;
20150 wxPalette *arg2 = 0 ;
20151 void *argp1 = 0 ;
20152 int res1 = 0 ;
20153 void *argp2 = 0 ;
20154 int res2 = 0 ;
20155 PyObject * obj0 = 0 ;
20156 PyObject * obj1 = 0 ;
20157 char * kwnames[] = {
20158 (char *) "self",(char *) "palette", NULL
20159 };
20160
20161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
20162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20163 if (!SWIG_IsOK(res1)) {
20164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
20165 }
20166 arg1 = reinterpret_cast< wxDC * >(argp1);
20167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
20168 if (!SWIG_IsOK(res2)) {
20169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20170 }
20171 if (!argp2) {
20172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
20173 }
20174 arg2 = reinterpret_cast< wxPalette * >(argp2);
20175 {
20176 PyThreadState* __tstate = wxPyBeginAllowThreads();
20177 (arg1)->SetPalette((wxPalette const &)*arg2);
20178 wxPyEndAllowThreads(__tstate);
20179 if (PyErr_Occurred()) SWIG_fail;
20180 }
20181 resultobj = SWIG_Py_Void();
20182 return resultobj;
20183 fail:
20184 return NULL;
20185 }
20186
20187
20188 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20189 PyObject *resultobj = 0;
20190 wxDC *arg1 = (wxDC *) 0 ;
20191 void *argp1 = 0 ;
20192 int res1 = 0 ;
20193 PyObject *swig_obj[1] ;
20194
20195 if (!args) SWIG_fail;
20196 swig_obj[0] = args;
20197 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20198 if (!SWIG_IsOK(res1)) {
20199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20200 }
20201 arg1 = reinterpret_cast< wxDC * >(argp1);
20202 {
20203 PyThreadState* __tstate = wxPyBeginAllowThreads();
20204 (arg1)->DestroyClippingRegion();
20205 wxPyEndAllowThreads(__tstate);
20206 if (PyErr_Occurred()) SWIG_fail;
20207 }
20208 resultobj = SWIG_Py_Void();
20209 return resultobj;
20210 fail:
20211 return NULL;
20212 }
20213
20214
20215 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20216 PyObject *resultobj = 0;
20217 wxDC *arg1 = (wxDC *) 0 ;
20218 int *arg2 = (int *) 0 ;
20219 int *arg3 = (int *) 0 ;
20220 int *arg4 = (int *) 0 ;
20221 int *arg5 = (int *) 0 ;
20222 void *argp1 = 0 ;
20223 int res1 = 0 ;
20224 int temp2 ;
20225 int res2 = SWIG_TMPOBJ ;
20226 int temp3 ;
20227 int res3 = SWIG_TMPOBJ ;
20228 int temp4 ;
20229 int res4 = SWIG_TMPOBJ ;
20230 int temp5 ;
20231 int res5 = SWIG_TMPOBJ ;
20232 PyObject *swig_obj[1] ;
20233
20234 arg2 = &temp2;
20235 arg3 = &temp3;
20236 arg4 = &temp4;
20237 arg5 = &temp5;
20238 if (!args) SWIG_fail;
20239 swig_obj[0] = args;
20240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20241 if (!SWIG_IsOK(res1)) {
20242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
20243 }
20244 arg1 = reinterpret_cast< wxDC * >(argp1);
20245 {
20246 PyThreadState* __tstate = wxPyBeginAllowThreads();
20247 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
20248 wxPyEndAllowThreads(__tstate);
20249 if (PyErr_Occurred()) SWIG_fail;
20250 }
20251 resultobj = SWIG_Py_Void();
20252 if (SWIG_IsTmpObj(res2)) {
20253 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20254 } else {
20255 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20256 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20257 }
20258 if (SWIG_IsTmpObj(res3)) {
20259 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20260 } else {
20261 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20262 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20263 }
20264 if (SWIG_IsTmpObj(res4)) {
20265 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20266 } else {
20267 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20268 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20269 }
20270 if (SWIG_IsTmpObj(res5)) {
20271 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20272 } else {
20273 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20274 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20275 }
20276 return resultobj;
20277 fail:
20278 return NULL;
20279 }
20280
20281
20282 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20283 PyObject *resultobj = 0;
20284 wxDC *arg1 = (wxDC *) 0 ;
20285 wxRect result;
20286 void *argp1 = 0 ;
20287 int res1 = 0 ;
20288 PyObject *swig_obj[1] ;
20289
20290 if (!args) SWIG_fail;
20291 swig_obj[0] = args;
20292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20293 if (!SWIG_IsOK(res1)) {
20294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20295 }
20296 arg1 = reinterpret_cast< wxDC * >(argp1);
20297 {
20298 PyThreadState* __tstate = wxPyBeginAllowThreads();
20299 result = wxDC_GetClippingRect(arg1);
20300 wxPyEndAllowThreads(__tstate);
20301 if (PyErr_Occurred()) SWIG_fail;
20302 }
20303 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20304 return resultobj;
20305 fail:
20306 return NULL;
20307 }
20308
20309
20310 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20311 PyObject *resultobj = 0;
20312 wxDC *arg1 = (wxDC *) 0 ;
20313 int result;
20314 void *argp1 = 0 ;
20315 int res1 = 0 ;
20316 PyObject *swig_obj[1] ;
20317
20318 if (!args) SWIG_fail;
20319 swig_obj[0] = args;
20320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20321 if (!SWIG_IsOK(res1)) {
20322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
20323 }
20324 arg1 = reinterpret_cast< wxDC * >(argp1);
20325 {
20326 PyThreadState* __tstate = wxPyBeginAllowThreads();
20327 result = (int)((wxDC const *)arg1)->GetCharHeight();
20328 wxPyEndAllowThreads(__tstate);
20329 if (PyErr_Occurred()) SWIG_fail;
20330 }
20331 resultobj = SWIG_From_int(static_cast< int >(result));
20332 return resultobj;
20333 fail:
20334 return NULL;
20335 }
20336
20337
20338 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20339 PyObject *resultobj = 0;
20340 wxDC *arg1 = (wxDC *) 0 ;
20341 int result;
20342 void *argp1 = 0 ;
20343 int res1 = 0 ;
20344 PyObject *swig_obj[1] ;
20345
20346 if (!args) SWIG_fail;
20347 swig_obj[0] = args;
20348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20349 if (!SWIG_IsOK(res1)) {
20350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
20351 }
20352 arg1 = reinterpret_cast< wxDC * >(argp1);
20353 {
20354 PyThreadState* __tstate = wxPyBeginAllowThreads();
20355 result = (int)((wxDC const *)arg1)->GetCharWidth();
20356 wxPyEndAllowThreads(__tstate);
20357 if (PyErr_Occurred()) SWIG_fail;
20358 }
20359 resultobj = SWIG_From_int(static_cast< int >(result));
20360 return resultobj;
20361 fail:
20362 return NULL;
20363 }
20364
20365
20366 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20367 PyObject *resultobj = 0;
20368 wxDC *arg1 = (wxDC *) 0 ;
20369 wxString *arg2 = 0 ;
20370 int *arg3 = (int *) 0 ;
20371 int *arg4 = (int *) 0 ;
20372 void *argp1 = 0 ;
20373 int res1 = 0 ;
20374 bool temp2 = false ;
20375 int temp3 ;
20376 int res3 = SWIG_TMPOBJ ;
20377 int temp4 ;
20378 int res4 = SWIG_TMPOBJ ;
20379 PyObject * obj0 = 0 ;
20380 PyObject * obj1 = 0 ;
20381 char * kwnames[] = {
20382 (char *) "self",(char *) "string", NULL
20383 };
20384
20385 arg3 = &temp3;
20386 arg4 = &temp4;
20387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
20388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20389 if (!SWIG_IsOK(res1)) {
20390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20391 }
20392 arg1 = reinterpret_cast< wxDC * >(argp1);
20393 {
20394 arg2 = wxString_in_helper(obj1);
20395 if (arg2 == NULL) SWIG_fail;
20396 temp2 = true;
20397 }
20398 {
20399 PyThreadState* __tstate = wxPyBeginAllowThreads();
20400 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
20401 wxPyEndAllowThreads(__tstate);
20402 if (PyErr_Occurred()) SWIG_fail;
20403 }
20404 resultobj = SWIG_Py_Void();
20405 if (SWIG_IsTmpObj(res3)) {
20406 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20407 } else {
20408 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20409 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20410 }
20411 if (SWIG_IsTmpObj(res4)) {
20412 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20413 } else {
20414 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20415 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20416 }
20417 {
20418 if (temp2)
20419 delete arg2;
20420 }
20421 return resultobj;
20422 fail:
20423 {
20424 if (temp2)
20425 delete arg2;
20426 }
20427 return NULL;
20428 }
20429
20430
20431 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20432 PyObject *resultobj = 0;
20433 wxDC *arg1 = (wxDC *) 0 ;
20434 wxString *arg2 = 0 ;
20435 int *arg3 = (int *) 0 ;
20436 int *arg4 = (int *) 0 ;
20437 int *arg5 = (int *) 0 ;
20438 int *arg6 = (int *) 0 ;
20439 wxFont *arg7 = (wxFont *) NULL ;
20440 void *argp1 = 0 ;
20441 int res1 = 0 ;
20442 bool temp2 = false ;
20443 int temp3 ;
20444 int res3 = SWIG_TMPOBJ ;
20445 int temp4 ;
20446 int res4 = SWIG_TMPOBJ ;
20447 int temp5 ;
20448 int res5 = SWIG_TMPOBJ ;
20449 int temp6 ;
20450 int res6 = SWIG_TMPOBJ ;
20451 void *argp7 = 0 ;
20452 int res7 = 0 ;
20453 PyObject * obj0 = 0 ;
20454 PyObject * obj1 = 0 ;
20455 PyObject * obj2 = 0 ;
20456 char * kwnames[] = {
20457 (char *) "self",(char *) "string",(char *) "font", NULL
20458 };
20459
20460 arg3 = &temp3;
20461 arg4 = &temp4;
20462 arg5 = &temp5;
20463 arg6 = &temp6;
20464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20466 if (!SWIG_IsOK(res1)) {
20467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20468 }
20469 arg1 = reinterpret_cast< wxDC * >(argp1);
20470 {
20471 arg2 = wxString_in_helper(obj1);
20472 if (arg2 == NULL) SWIG_fail;
20473 temp2 = true;
20474 }
20475 if (obj2) {
20476 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
20477 if (!SWIG_IsOK(res7)) {
20478 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
20479 }
20480 arg7 = reinterpret_cast< wxFont * >(argp7);
20481 }
20482 {
20483 PyThreadState* __tstate = wxPyBeginAllowThreads();
20484 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
20485 wxPyEndAllowThreads(__tstate);
20486 if (PyErr_Occurred()) SWIG_fail;
20487 }
20488 resultobj = SWIG_Py_Void();
20489 if (SWIG_IsTmpObj(res3)) {
20490 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20491 } else {
20492 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20493 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20494 }
20495 if (SWIG_IsTmpObj(res4)) {
20496 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20497 } else {
20498 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20499 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20500 }
20501 if (SWIG_IsTmpObj(res5)) {
20502 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20503 } else {
20504 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20505 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20506 }
20507 if (SWIG_IsTmpObj(res6)) {
20508 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
20509 } else {
20510 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20511 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
20512 }
20513 {
20514 if (temp2)
20515 delete arg2;
20516 }
20517 return resultobj;
20518 fail:
20519 {
20520 if (temp2)
20521 delete arg2;
20522 }
20523 return NULL;
20524 }
20525
20526
20527 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20528 PyObject *resultobj = 0;
20529 wxDC *arg1 = (wxDC *) 0 ;
20530 wxString *arg2 = 0 ;
20531 int *arg3 = (int *) 0 ;
20532 int *arg4 = (int *) 0 ;
20533 int *arg5 = (int *) 0 ;
20534 wxFont *arg6 = (wxFont *) NULL ;
20535 void *argp1 = 0 ;
20536 int res1 = 0 ;
20537 bool temp2 = false ;
20538 int temp3 ;
20539 int res3 = SWIG_TMPOBJ ;
20540 int temp4 ;
20541 int res4 = SWIG_TMPOBJ ;
20542 int temp5 ;
20543 int res5 = SWIG_TMPOBJ ;
20544 void *argp6 = 0 ;
20545 int res6 = 0 ;
20546 PyObject * obj0 = 0 ;
20547 PyObject * obj1 = 0 ;
20548 PyObject * obj2 = 0 ;
20549 char * kwnames[] = {
20550 (char *) "self",(char *) "text",(char *) "font", NULL
20551 };
20552
20553 arg3 = &temp3;
20554 arg4 = &temp4;
20555 arg5 = &temp5;
20556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20558 if (!SWIG_IsOK(res1)) {
20559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
20560 }
20561 arg1 = reinterpret_cast< wxDC * >(argp1);
20562 {
20563 arg2 = wxString_in_helper(obj1);
20564 if (arg2 == NULL) SWIG_fail;
20565 temp2 = true;
20566 }
20567 if (obj2) {
20568 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
20569 if (!SWIG_IsOK(res6)) {
20570 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
20571 }
20572 arg6 = reinterpret_cast< wxFont * >(argp6);
20573 }
20574 {
20575 PyThreadState* __tstate = wxPyBeginAllowThreads();
20576 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
20577 wxPyEndAllowThreads(__tstate);
20578 if (PyErr_Occurred()) SWIG_fail;
20579 }
20580 resultobj = SWIG_Py_Void();
20581 if (SWIG_IsTmpObj(res3)) {
20582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20583 } else {
20584 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20585 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20586 }
20587 if (SWIG_IsTmpObj(res4)) {
20588 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20589 } else {
20590 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20591 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20592 }
20593 if (SWIG_IsTmpObj(res5)) {
20594 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20595 } else {
20596 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20597 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20598 }
20599 {
20600 if (temp2)
20601 delete arg2;
20602 }
20603 return resultobj;
20604 fail:
20605 {
20606 if (temp2)
20607 delete arg2;
20608 }
20609 return NULL;
20610 }
20611
20612
20613 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20614 PyObject *resultobj = 0;
20615 wxDC *arg1 = (wxDC *) 0 ;
20616 wxString *arg2 = 0 ;
20617 wxArrayInt result;
20618 void *argp1 = 0 ;
20619 int res1 = 0 ;
20620 bool temp2 = false ;
20621 PyObject * obj0 = 0 ;
20622 PyObject * obj1 = 0 ;
20623 char * kwnames[] = {
20624 (char *) "self",(char *) "text", NULL
20625 };
20626
20627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
20628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20629 if (!SWIG_IsOK(res1)) {
20630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
20631 }
20632 arg1 = reinterpret_cast< wxDC * >(argp1);
20633 {
20634 arg2 = wxString_in_helper(obj1);
20635 if (arg2 == NULL) SWIG_fail;
20636 temp2 = true;
20637 }
20638 {
20639 PyThreadState* __tstate = wxPyBeginAllowThreads();
20640 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
20641 wxPyEndAllowThreads(__tstate);
20642 if (PyErr_Occurred()) SWIG_fail;
20643 }
20644 {
20645 resultobj = PyList_New(0);
20646 size_t idx;
20647 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
20648 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
20649 PyList_Append(resultobj, val);
20650 Py_DECREF(val);
20651 }
20652 }
20653 {
20654 if (temp2)
20655 delete arg2;
20656 }
20657 return resultobj;
20658 fail:
20659 {
20660 if (temp2)
20661 delete arg2;
20662 }
20663 return NULL;
20664 }
20665
20666
20667 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20668 PyObject *resultobj = 0;
20669 wxDC *arg1 = (wxDC *) 0 ;
20670 wxSize result;
20671 void *argp1 = 0 ;
20672 int res1 = 0 ;
20673 PyObject *swig_obj[1] ;
20674
20675 if (!args) SWIG_fail;
20676 swig_obj[0] = args;
20677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20678 if (!SWIG_IsOK(res1)) {
20679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
20680 }
20681 arg1 = reinterpret_cast< wxDC * >(argp1);
20682 {
20683 PyThreadState* __tstate = wxPyBeginAllowThreads();
20684 result = (arg1)->GetSize();
20685 wxPyEndAllowThreads(__tstate);
20686 if (PyErr_Occurred()) SWIG_fail;
20687 }
20688 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20689 return resultobj;
20690 fail:
20691 return NULL;
20692 }
20693
20694
20695 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20696 PyObject *resultobj = 0;
20697 wxDC *arg1 = (wxDC *) 0 ;
20698 int *arg2 = (int *) 0 ;
20699 int *arg3 = (int *) 0 ;
20700 void *argp1 = 0 ;
20701 int res1 = 0 ;
20702 int temp2 ;
20703 int res2 = SWIG_TMPOBJ ;
20704 int temp3 ;
20705 int res3 = SWIG_TMPOBJ ;
20706 PyObject *swig_obj[1] ;
20707
20708 arg2 = &temp2;
20709 arg3 = &temp3;
20710 if (!args) SWIG_fail;
20711 swig_obj[0] = args;
20712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20713 if (!SWIG_IsOK(res1)) {
20714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
20715 }
20716 arg1 = reinterpret_cast< wxDC * >(argp1);
20717 {
20718 PyThreadState* __tstate = wxPyBeginAllowThreads();
20719 (arg1)->GetSize(arg2,arg3);
20720 wxPyEndAllowThreads(__tstate);
20721 if (PyErr_Occurred()) SWIG_fail;
20722 }
20723 resultobj = SWIG_Py_Void();
20724 if (SWIG_IsTmpObj(res2)) {
20725 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20726 } else {
20727 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20728 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20729 }
20730 if (SWIG_IsTmpObj(res3)) {
20731 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20732 } else {
20733 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20734 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20735 }
20736 return resultobj;
20737 fail:
20738 return NULL;
20739 }
20740
20741
20742 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20743 PyObject *resultobj = 0;
20744 wxDC *arg1 = (wxDC *) 0 ;
20745 wxSize result;
20746 void *argp1 = 0 ;
20747 int res1 = 0 ;
20748 PyObject *swig_obj[1] ;
20749
20750 if (!args) SWIG_fail;
20751 swig_obj[0] = args;
20752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20753 if (!SWIG_IsOK(res1)) {
20754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
20755 }
20756 arg1 = reinterpret_cast< wxDC * >(argp1);
20757 {
20758 PyThreadState* __tstate = wxPyBeginAllowThreads();
20759 result = ((wxDC const *)arg1)->GetSizeMM();
20760 wxPyEndAllowThreads(__tstate);
20761 if (PyErr_Occurred()) SWIG_fail;
20762 }
20763 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
20764 return resultobj;
20765 fail:
20766 return NULL;
20767 }
20768
20769
20770 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20771 PyObject *resultobj = 0;
20772 wxDC *arg1 = (wxDC *) 0 ;
20773 int *arg2 = (int *) 0 ;
20774 int *arg3 = (int *) 0 ;
20775 void *argp1 = 0 ;
20776 int res1 = 0 ;
20777 int temp2 ;
20778 int res2 = SWIG_TMPOBJ ;
20779 int temp3 ;
20780 int res3 = SWIG_TMPOBJ ;
20781 PyObject *swig_obj[1] ;
20782
20783 arg2 = &temp2;
20784 arg3 = &temp3;
20785 if (!args) SWIG_fail;
20786 swig_obj[0] = args;
20787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20788 if (!SWIG_IsOK(res1)) {
20789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20790 }
20791 arg1 = reinterpret_cast< wxDC * >(argp1);
20792 {
20793 PyThreadState* __tstate = wxPyBeginAllowThreads();
20794 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
20795 wxPyEndAllowThreads(__tstate);
20796 if (PyErr_Occurred()) SWIG_fail;
20797 }
20798 resultobj = SWIG_Py_Void();
20799 if (SWIG_IsTmpObj(res2)) {
20800 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20801 } else {
20802 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20803 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20804 }
20805 if (SWIG_IsTmpObj(res3)) {
20806 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20807 } else {
20808 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20809 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20810 }
20811 return resultobj;
20812 fail:
20813 return NULL;
20814 }
20815
20816
20817 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20818 PyObject *resultobj = 0;
20819 wxDC *arg1 = (wxDC *) 0 ;
20820 int arg2 ;
20821 int result;
20822 void *argp1 = 0 ;
20823 int res1 = 0 ;
20824 int val2 ;
20825 int ecode2 = 0 ;
20826 PyObject * obj0 = 0 ;
20827 PyObject * obj1 = 0 ;
20828 char * kwnames[] = {
20829 (char *) "self",(char *) "x", NULL
20830 };
20831
20832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
20833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20834 if (!SWIG_IsOK(res1)) {
20835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
20836 }
20837 arg1 = reinterpret_cast< wxDC * >(argp1);
20838 ecode2 = SWIG_AsVal_int(obj1, &val2);
20839 if (!SWIG_IsOK(ecode2)) {
20840 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
20841 }
20842 arg2 = static_cast< int >(val2);
20843 {
20844 PyThreadState* __tstate = wxPyBeginAllowThreads();
20845 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
20846 wxPyEndAllowThreads(__tstate);
20847 if (PyErr_Occurred()) SWIG_fail;
20848 }
20849 resultobj = SWIG_From_int(static_cast< int >(result));
20850 return resultobj;
20851 fail:
20852 return NULL;
20853 }
20854
20855
20856 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20857 PyObject *resultobj = 0;
20858 wxDC *arg1 = (wxDC *) 0 ;
20859 int arg2 ;
20860 int result;
20861 void *argp1 = 0 ;
20862 int res1 = 0 ;
20863 int val2 ;
20864 int ecode2 = 0 ;
20865 PyObject * obj0 = 0 ;
20866 PyObject * obj1 = 0 ;
20867 char * kwnames[] = {
20868 (char *) "self",(char *) "y", NULL
20869 };
20870
20871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
20872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20873 if (!SWIG_IsOK(res1)) {
20874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
20875 }
20876 arg1 = reinterpret_cast< wxDC * >(argp1);
20877 ecode2 = SWIG_AsVal_int(obj1, &val2);
20878 if (!SWIG_IsOK(ecode2)) {
20879 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
20880 }
20881 arg2 = static_cast< int >(val2);
20882 {
20883 PyThreadState* __tstate = wxPyBeginAllowThreads();
20884 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
20885 wxPyEndAllowThreads(__tstate);
20886 if (PyErr_Occurred()) SWIG_fail;
20887 }
20888 resultobj = SWIG_From_int(static_cast< int >(result));
20889 return resultobj;
20890 fail:
20891 return NULL;
20892 }
20893
20894
20895 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20896 PyObject *resultobj = 0;
20897 wxDC *arg1 = (wxDC *) 0 ;
20898 int arg2 ;
20899 int result;
20900 void *argp1 = 0 ;
20901 int res1 = 0 ;
20902 int val2 ;
20903 int ecode2 = 0 ;
20904 PyObject * obj0 = 0 ;
20905 PyObject * obj1 = 0 ;
20906 char * kwnames[] = {
20907 (char *) "self",(char *) "x", NULL
20908 };
20909
20910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
20911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20912 if (!SWIG_IsOK(res1)) {
20913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20914 }
20915 arg1 = reinterpret_cast< wxDC * >(argp1);
20916 ecode2 = SWIG_AsVal_int(obj1, &val2);
20917 if (!SWIG_IsOK(ecode2)) {
20918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
20919 }
20920 arg2 = static_cast< int >(val2);
20921 {
20922 PyThreadState* __tstate = wxPyBeginAllowThreads();
20923 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
20924 wxPyEndAllowThreads(__tstate);
20925 if (PyErr_Occurred()) SWIG_fail;
20926 }
20927 resultobj = SWIG_From_int(static_cast< int >(result));
20928 return resultobj;
20929 fail:
20930 return NULL;
20931 }
20932
20933
20934 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20935 PyObject *resultobj = 0;
20936 wxDC *arg1 = (wxDC *) 0 ;
20937 int arg2 ;
20938 int result;
20939 void *argp1 = 0 ;
20940 int res1 = 0 ;
20941 int val2 ;
20942 int ecode2 = 0 ;
20943 PyObject * obj0 = 0 ;
20944 PyObject * obj1 = 0 ;
20945 char * kwnames[] = {
20946 (char *) "self",(char *) "y", NULL
20947 };
20948
20949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
20950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20951 if (!SWIG_IsOK(res1)) {
20952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
20953 }
20954 arg1 = reinterpret_cast< wxDC * >(argp1);
20955 ecode2 = SWIG_AsVal_int(obj1, &val2);
20956 if (!SWIG_IsOK(ecode2)) {
20957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
20958 }
20959 arg2 = static_cast< int >(val2);
20960 {
20961 PyThreadState* __tstate = wxPyBeginAllowThreads();
20962 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
20963 wxPyEndAllowThreads(__tstate);
20964 if (PyErr_Occurred()) SWIG_fail;
20965 }
20966 resultobj = SWIG_From_int(static_cast< int >(result));
20967 return resultobj;
20968 fail:
20969 return NULL;
20970 }
20971
20972
20973 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20974 PyObject *resultobj = 0;
20975 wxDC *arg1 = (wxDC *) 0 ;
20976 int arg2 ;
20977 int result;
20978 void *argp1 = 0 ;
20979 int res1 = 0 ;
20980 int val2 ;
20981 int ecode2 = 0 ;
20982 PyObject * obj0 = 0 ;
20983 PyObject * obj1 = 0 ;
20984 char * kwnames[] = {
20985 (char *) "self",(char *) "x", NULL
20986 };
20987
20988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
20989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20990 if (!SWIG_IsOK(res1)) {
20991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
20992 }
20993 arg1 = reinterpret_cast< wxDC * >(argp1);
20994 ecode2 = SWIG_AsVal_int(obj1, &val2);
20995 if (!SWIG_IsOK(ecode2)) {
20996 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
20997 }
20998 arg2 = static_cast< int >(val2);
20999 {
21000 PyThreadState* __tstate = wxPyBeginAllowThreads();
21001 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21002 wxPyEndAllowThreads(__tstate);
21003 if (PyErr_Occurred()) SWIG_fail;
21004 }
21005 resultobj = SWIG_From_int(static_cast< int >(result));
21006 return resultobj;
21007 fail:
21008 return NULL;
21009 }
21010
21011
21012 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21013 PyObject *resultobj = 0;
21014 wxDC *arg1 = (wxDC *) 0 ;
21015 int arg2 ;
21016 int result;
21017 void *argp1 = 0 ;
21018 int res1 = 0 ;
21019 int val2 ;
21020 int ecode2 = 0 ;
21021 PyObject * obj0 = 0 ;
21022 PyObject * obj1 = 0 ;
21023 char * kwnames[] = {
21024 (char *) "self",(char *) "y", NULL
21025 };
21026
21027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21029 if (!SWIG_IsOK(res1)) {
21030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21031 }
21032 arg1 = reinterpret_cast< wxDC * >(argp1);
21033 ecode2 = SWIG_AsVal_int(obj1, &val2);
21034 if (!SWIG_IsOK(ecode2)) {
21035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21036 }
21037 arg2 = static_cast< int >(val2);
21038 {
21039 PyThreadState* __tstate = wxPyBeginAllowThreads();
21040 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21041 wxPyEndAllowThreads(__tstate);
21042 if (PyErr_Occurred()) SWIG_fail;
21043 }
21044 resultobj = SWIG_From_int(static_cast< int >(result));
21045 return resultobj;
21046 fail:
21047 return NULL;
21048 }
21049
21050
21051 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21052 PyObject *resultobj = 0;
21053 wxDC *arg1 = (wxDC *) 0 ;
21054 int arg2 ;
21055 int result;
21056 void *argp1 = 0 ;
21057 int res1 = 0 ;
21058 int val2 ;
21059 int ecode2 = 0 ;
21060 PyObject * obj0 = 0 ;
21061 PyObject * obj1 = 0 ;
21062 char * kwnames[] = {
21063 (char *) "self",(char *) "x", NULL
21064 };
21065
21066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21068 if (!SWIG_IsOK(res1)) {
21069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21070 }
21071 arg1 = reinterpret_cast< wxDC * >(argp1);
21072 ecode2 = SWIG_AsVal_int(obj1, &val2);
21073 if (!SWIG_IsOK(ecode2)) {
21074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21075 }
21076 arg2 = static_cast< int >(val2);
21077 {
21078 PyThreadState* __tstate = wxPyBeginAllowThreads();
21079 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21080 wxPyEndAllowThreads(__tstate);
21081 if (PyErr_Occurred()) SWIG_fail;
21082 }
21083 resultobj = SWIG_From_int(static_cast< int >(result));
21084 return resultobj;
21085 fail:
21086 return NULL;
21087 }
21088
21089
21090 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21091 PyObject *resultobj = 0;
21092 wxDC *arg1 = (wxDC *) 0 ;
21093 int arg2 ;
21094 int result;
21095 void *argp1 = 0 ;
21096 int res1 = 0 ;
21097 int val2 ;
21098 int ecode2 = 0 ;
21099 PyObject * obj0 = 0 ;
21100 PyObject * obj1 = 0 ;
21101 char * kwnames[] = {
21102 (char *) "self",(char *) "y", NULL
21103 };
21104
21105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21106 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21107 if (!SWIG_IsOK(res1)) {
21108 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21109 }
21110 arg1 = reinterpret_cast< wxDC * >(argp1);
21111 ecode2 = SWIG_AsVal_int(obj1, &val2);
21112 if (!SWIG_IsOK(ecode2)) {
21113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21114 }
21115 arg2 = static_cast< int >(val2);
21116 {
21117 PyThreadState* __tstate = wxPyBeginAllowThreads();
21118 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21119 wxPyEndAllowThreads(__tstate);
21120 if (PyErr_Occurred()) SWIG_fail;
21121 }
21122 resultobj = SWIG_From_int(static_cast< int >(result));
21123 return resultobj;
21124 fail:
21125 return NULL;
21126 }
21127
21128
21129 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21130 PyObject *resultobj = 0;
21131 wxDC *arg1 = (wxDC *) 0 ;
21132 bool result;
21133 void *argp1 = 0 ;
21134 int res1 = 0 ;
21135 PyObject *swig_obj[1] ;
21136
21137 if (!args) SWIG_fail;
21138 swig_obj[0] = args;
21139 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21140 if (!SWIG_IsOK(res1)) {
21141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
21142 }
21143 arg1 = reinterpret_cast< wxDC * >(argp1);
21144 {
21145 PyThreadState* __tstate = wxPyBeginAllowThreads();
21146 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
21147 wxPyEndAllowThreads(__tstate);
21148 if (PyErr_Occurred()) SWIG_fail;
21149 }
21150 {
21151 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21152 }
21153 return resultobj;
21154 fail:
21155 return NULL;
21156 }
21157
21158
21159 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21160 PyObject *resultobj = 0;
21161 wxDC *arg1 = (wxDC *) 0 ;
21162 bool result;
21163 void *argp1 = 0 ;
21164 int res1 = 0 ;
21165 PyObject *swig_obj[1] ;
21166
21167 if (!args) SWIG_fail;
21168 swig_obj[0] = args;
21169 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21170 if (!SWIG_IsOK(res1)) {
21171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
21172 }
21173 arg1 = reinterpret_cast< wxDC * >(argp1);
21174 {
21175 PyThreadState* __tstate = wxPyBeginAllowThreads();
21176 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
21177 wxPyEndAllowThreads(__tstate);
21178 if (PyErr_Occurred()) SWIG_fail;
21179 }
21180 {
21181 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21182 }
21183 return resultobj;
21184 fail:
21185 return NULL;
21186 }
21187
21188
21189 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21190 PyObject *resultobj = 0;
21191 wxDC *arg1 = (wxDC *) 0 ;
21192 int result;
21193 void *argp1 = 0 ;
21194 int res1 = 0 ;
21195 PyObject *swig_obj[1] ;
21196
21197 if (!args) SWIG_fail;
21198 swig_obj[0] = args;
21199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21200 if (!SWIG_IsOK(res1)) {
21201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
21202 }
21203 arg1 = reinterpret_cast< wxDC * >(argp1);
21204 {
21205 PyThreadState* __tstate = wxPyBeginAllowThreads();
21206 result = (int)((wxDC const *)arg1)->GetDepth();
21207 wxPyEndAllowThreads(__tstate);
21208 if (PyErr_Occurred()) SWIG_fail;
21209 }
21210 resultobj = SWIG_From_int(static_cast< int >(result));
21211 return resultobj;
21212 fail:
21213 return NULL;
21214 }
21215
21216
21217 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21218 PyObject *resultobj = 0;
21219 wxDC *arg1 = (wxDC *) 0 ;
21220 wxSize result;
21221 void *argp1 = 0 ;
21222 int res1 = 0 ;
21223 PyObject *swig_obj[1] ;
21224
21225 if (!args) SWIG_fail;
21226 swig_obj[0] = args;
21227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21228 if (!SWIG_IsOK(res1)) {
21229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
21230 }
21231 arg1 = reinterpret_cast< wxDC * >(argp1);
21232 {
21233 PyThreadState* __tstate = wxPyBeginAllowThreads();
21234 result = ((wxDC const *)arg1)->GetPPI();
21235 wxPyEndAllowThreads(__tstate);
21236 if (PyErr_Occurred()) SWIG_fail;
21237 }
21238 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21239 return resultobj;
21240 fail:
21241 return NULL;
21242 }
21243
21244
21245 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21246 PyObject *resultobj = 0;
21247 wxDC *arg1 = (wxDC *) 0 ;
21248 bool result;
21249 void *argp1 = 0 ;
21250 int res1 = 0 ;
21251 PyObject *swig_obj[1] ;
21252
21253 if (!args) SWIG_fail;
21254 swig_obj[0] = args;
21255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21256 if (!SWIG_IsOK(res1)) {
21257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
21258 }
21259 arg1 = reinterpret_cast< wxDC * >(argp1);
21260 {
21261 PyThreadState* __tstate = wxPyBeginAllowThreads();
21262 result = (bool)((wxDC const *)arg1)->Ok();
21263 wxPyEndAllowThreads(__tstate);
21264 if (PyErr_Occurred()) SWIG_fail;
21265 }
21266 {
21267 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21268 }
21269 return resultobj;
21270 fail:
21271 return NULL;
21272 }
21273
21274
21275 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21276 PyObject *resultobj = 0;
21277 wxDC *arg1 = (wxDC *) 0 ;
21278 int result;
21279 void *argp1 = 0 ;
21280 int res1 = 0 ;
21281 PyObject *swig_obj[1] ;
21282
21283 if (!args) SWIG_fail;
21284 swig_obj[0] = args;
21285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21286 if (!SWIG_IsOK(res1)) {
21287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21288 }
21289 arg1 = reinterpret_cast< wxDC * >(argp1);
21290 {
21291 PyThreadState* __tstate = wxPyBeginAllowThreads();
21292 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
21293 wxPyEndAllowThreads(__tstate);
21294 if (PyErr_Occurred()) SWIG_fail;
21295 }
21296 resultobj = SWIG_From_int(static_cast< int >(result));
21297 return resultobj;
21298 fail:
21299 return NULL;
21300 }
21301
21302
21303 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21304 PyObject *resultobj = 0;
21305 wxDC *arg1 = (wxDC *) 0 ;
21306 wxBrush *result = 0 ;
21307 void *argp1 = 0 ;
21308 int res1 = 0 ;
21309 PyObject *swig_obj[1] ;
21310
21311 if (!args) SWIG_fail;
21312 swig_obj[0] = args;
21313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21314 if (!SWIG_IsOK(res1)) {
21315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21316 }
21317 arg1 = reinterpret_cast< wxDC * >(argp1);
21318 {
21319 PyThreadState* __tstate = wxPyBeginAllowThreads();
21320 {
21321 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
21322 result = (wxBrush *) &_result_ref;
21323 }
21324 wxPyEndAllowThreads(__tstate);
21325 if (PyErr_Occurred()) SWIG_fail;
21326 }
21327 {
21328 wxBrush* resultptr = new wxBrush(*result);
21329 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21330 }
21331 return resultobj;
21332 fail:
21333 return NULL;
21334 }
21335
21336
21337 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21338 PyObject *resultobj = 0;
21339 wxDC *arg1 = (wxDC *) 0 ;
21340 wxBrush *result = 0 ;
21341 void *argp1 = 0 ;
21342 int res1 = 0 ;
21343 PyObject *swig_obj[1] ;
21344
21345 if (!args) SWIG_fail;
21346 swig_obj[0] = args;
21347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21348 if (!SWIG_IsOK(res1)) {
21349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
21350 }
21351 arg1 = reinterpret_cast< wxDC * >(argp1);
21352 {
21353 PyThreadState* __tstate = wxPyBeginAllowThreads();
21354 {
21355 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
21356 result = (wxBrush *) &_result_ref;
21357 }
21358 wxPyEndAllowThreads(__tstate);
21359 if (PyErr_Occurred()) SWIG_fail;
21360 }
21361 {
21362 wxBrush* resultptr = new wxBrush(*result);
21363 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
21364 }
21365 return resultobj;
21366 fail:
21367 return NULL;
21368 }
21369
21370
21371 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21372 PyObject *resultobj = 0;
21373 wxDC *arg1 = (wxDC *) 0 ;
21374 wxFont *result = 0 ;
21375 void *argp1 = 0 ;
21376 int res1 = 0 ;
21377 PyObject *swig_obj[1] ;
21378
21379 if (!args) SWIG_fail;
21380 swig_obj[0] = args;
21381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21382 if (!SWIG_IsOK(res1)) {
21383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
21384 }
21385 arg1 = reinterpret_cast< wxDC * >(argp1);
21386 {
21387 PyThreadState* __tstate = wxPyBeginAllowThreads();
21388 {
21389 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
21390 result = (wxFont *) &_result_ref;
21391 }
21392 wxPyEndAllowThreads(__tstate);
21393 if (PyErr_Occurred()) SWIG_fail;
21394 }
21395 {
21396 wxFont* resultptr = new wxFont(*result);
21397 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
21398 }
21399 return resultobj;
21400 fail:
21401 return NULL;
21402 }
21403
21404
21405 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21406 PyObject *resultobj = 0;
21407 wxDC *arg1 = (wxDC *) 0 ;
21408 wxPen *result = 0 ;
21409 void *argp1 = 0 ;
21410 int res1 = 0 ;
21411 PyObject *swig_obj[1] ;
21412
21413 if (!args) SWIG_fail;
21414 swig_obj[0] = args;
21415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21416 if (!SWIG_IsOK(res1)) {
21417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
21418 }
21419 arg1 = reinterpret_cast< wxDC * >(argp1);
21420 {
21421 PyThreadState* __tstate = wxPyBeginAllowThreads();
21422 {
21423 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
21424 result = (wxPen *) &_result_ref;
21425 }
21426 wxPyEndAllowThreads(__tstate);
21427 if (PyErr_Occurred()) SWIG_fail;
21428 }
21429 {
21430 wxPen* resultptr = new wxPen(*result);
21431 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
21432 }
21433 return resultobj;
21434 fail:
21435 return NULL;
21436 }
21437
21438
21439 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21440 PyObject *resultobj = 0;
21441 wxDC *arg1 = (wxDC *) 0 ;
21442 wxColour *result = 0 ;
21443 void *argp1 = 0 ;
21444 int res1 = 0 ;
21445 PyObject *swig_obj[1] ;
21446
21447 if (!args) SWIG_fail;
21448 swig_obj[0] = args;
21449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21450 if (!SWIG_IsOK(res1)) {
21451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
21452 }
21453 arg1 = reinterpret_cast< wxDC * >(argp1);
21454 {
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 {
21457 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
21458 result = (wxColour *) &_result_ref;
21459 }
21460 wxPyEndAllowThreads(__tstate);
21461 if (PyErr_Occurred()) SWIG_fail;
21462 }
21463 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21464 return resultobj;
21465 fail:
21466 return NULL;
21467 }
21468
21469
21470 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21471 PyObject *resultobj = 0;
21472 wxDC *arg1 = (wxDC *) 0 ;
21473 wxColour *result = 0 ;
21474 void *argp1 = 0 ;
21475 int res1 = 0 ;
21476 PyObject *swig_obj[1] ;
21477
21478 if (!args) SWIG_fail;
21479 swig_obj[0] = args;
21480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21481 if (!SWIG_IsOK(res1)) {
21482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
21483 }
21484 arg1 = reinterpret_cast< wxDC * >(argp1);
21485 {
21486 PyThreadState* __tstate = wxPyBeginAllowThreads();
21487 {
21488 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
21489 result = (wxColour *) &_result_ref;
21490 }
21491 wxPyEndAllowThreads(__tstate);
21492 if (PyErr_Occurred()) SWIG_fail;
21493 }
21494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
21495 return resultobj;
21496 fail:
21497 return NULL;
21498 }
21499
21500
21501 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21502 PyObject *resultobj = 0;
21503 wxDC *arg1 = (wxDC *) 0 ;
21504 wxColour *arg2 = 0 ;
21505 void *argp1 = 0 ;
21506 int res1 = 0 ;
21507 wxColour temp2 ;
21508 PyObject * obj0 = 0 ;
21509 PyObject * obj1 = 0 ;
21510 char * kwnames[] = {
21511 (char *) "self",(char *) "colour", NULL
21512 };
21513
21514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
21515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21516 if (!SWIG_IsOK(res1)) {
21517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
21518 }
21519 arg1 = reinterpret_cast< wxDC * >(argp1);
21520 {
21521 arg2 = &temp2;
21522 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21523 }
21524 {
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
21526 (arg1)->SetTextForeground((wxColour const &)*arg2);
21527 wxPyEndAllowThreads(__tstate);
21528 if (PyErr_Occurred()) SWIG_fail;
21529 }
21530 resultobj = SWIG_Py_Void();
21531 return resultobj;
21532 fail:
21533 return NULL;
21534 }
21535
21536
21537 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21538 PyObject *resultobj = 0;
21539 wxDC *arg1 = (wxDC *) 0 ;
21540 wxColour *arg2 = 0 ;
21541 void *argp1 = 0 ;
21542 int res1 = 0 ;
21543 wxColour temp2 ;
21544 PyObject * obj0 = 0 ;
21545 PyObject * obj1 = 0 ;
21546 char * kwnames[] = {
21547 (char *) "self",(char *) "colour", NULL
21548 };
21549
21550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
21551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21552 if (!SWIG_IsOK(res1)) {
21553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
21554 }
21555 arg1 = reinterpret_cast< wxDC * >(argp1);
21556 {
21557 arg2 = &temp2;
21558 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
21559 }
21560 {
21561 PyThreadState* __tstate = wxPyBeginAllowThreads();
21562 (arg1)->SetTextBackground((wxColour const &)*arg2);
21563 wxPyEndAllowThreads(__tstate);
21564 if (PyErr_Occurred()) SWIG_fail;
21565 }
21566 resultobj = SWIG_Py_Void();
21567 return resultobj;
21568 fail:
21569 return NULL;
21570 }
21571
21572
21573 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21574 PyObject *resultobj = 0;
21575 wxDC *arg1 = (wxDC *) 0 ;
21576 int result;
21577 void *argp1 = 0 ;
21578 int res1 = 0 ;
21579 PyObject *swig_obj[1] ;
21580
21581 if (!args) SWIG_fail;
21582 swig_obj[0] = args;
21583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21584 if (!SWIG_IsOK(res1)) {
21585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
21586 }
21587 arg1 = reinterpret_cast< wxDC * >(argp1);
21588 {
21589 PyThreadState* __tstate = wxPyBeginAllowThreads();
21590 result = (int)((wxDC const *)arg1)->GetMapMode();
21591 wxPyEndAllowThreads(__tstate);
21592 if (PyErr_Occurred()) SWIG_fail;
21593 }
21594 resultobj = SWIG_From_int(static_cast< int >(result));
21595 return resultobj;
21596 fail:
21597 return NULL;
21598 }
21599
21600
21601 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21602 PyObject *resultobj = 0;
21603 wxDC *arg1 = (wxDC *) 0 ;
21604 int arg2 ;
21605 void *argp1 = 0 ;
21606 int res1 = 0 ;
21607 int val2 ;
21608 int ecode2 = 0 ;
21609 PyObject * obj0 = 0 ;
21610 PyObject * obj1 = 0 ;
21611 char * kwnames[] = {
21612 (char *) "self",(char *) "mode", NULL
21613 };
21614
21615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
21616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21617 if (!SWIG_IsOK(res1)) {
21618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
21619 }
21620 arg1 = reinterpret_cast< wxDC * >(argp1);
21621 ecode2 = SWIG_AsVal_int(obj1, &val2);
21622 if (!SWIG_IsOK(ecode2)) {
21623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
21624 }
21625 arg2 = static_cast< int >(val2);
21626 {
21627 PyThreadState* __tstate = wxPyBeginAllowThreads();
21628 (arg1)->SetMapMode(arg2);
21629 wxPyEndAllowThreads(__tstate);
21630 if (PyErr_Occurred()) SWIG_fail;
21631 }
21632 resultobj = SWIG_Py_Void();
21633 return resultobj;
21634 fail:
21635 return NULL;
21636 }
21637
21638
21639 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21640 PyObject *resultobj = 0;
21641 wxDC *arg1 = (wxDC *) 0 ;
21642 double *arg2 = (double *) 0 ;
21643 double *arg3 = (double *) 0 ;
21644 void *argp1 = 0 ;
21645 int res1 = 0 ;
21646 double temp2 ;
21647 int res2 = SWIG_TMPOBJ ;
21648 double temp3 ;
21649 int res3 = SWIG_TMPOBJ ;
21650 PyObject *swig_obj[1] ;
21651
21652 arg2 = &temp2;
21653 arg3 = &temp3;
21654 if (!args) SWIG_fail;
21655 swig_obj[0] = args;
21656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21657 if (!SWIG_IsOK(res1)) {
21658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
21659 }
21660 arg1 = reinterpret_cast< wxDC * >(argp1);
21661 {
21662 PyThreadState* __tstate = wxPyBeginAllowThreads();
21663 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
21664 wxPyEndAllowThreads(__tstate);
21665 if (PyErr_Occurred()) SWIG_fail;
21666 }
21667 resultobj = SWIG_Py_Void();
21668 if (SWIG_IsTmpObj(res2)) {
21669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21670 } else {
21671 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21672 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21673 }
21674 if (SWIG_IsTmpObj(res3)) {
21675 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21676 } else {
21677 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21678 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21679 }
21680 return resultobj;
21681 fail:
21682 return NULL;
21683 }
21684
21685
21686 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21687 PyObject *resultobj = 0;
21688 wxDC *arg1 = (wxDC *) 0 ;
21689 double arg2 ;
21690 double arg3 ;
21691 void *argp1 = 0 ;
21692 int res1 = 0 ;
21693 double val2 ;
21694 int ecode2 = 0 ;
21695 double val3 ;
21696 int ecode3 = 0 ;
21697 PyObject * obj0 = 0 ;
21698 PyObject * obj1 = 0 ;
21699 PyObject * obj2 = 0 ;
21700 char * kwnames[] = {
21701 (char *) "self",(char *) "x",(char *) "y", NULL
21702 };
21703
21704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21706 if (!SWIG_IsOK(res1)) {
21707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
21708 }
21709 arg1 = reinterpret_cast< wxDC * >(argp1);
21710 ecode2 = SWIG_AsVal_double(obj1, &val2);
21711 if (!SWIG_IsOK(ecode2)) {
21712 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
21713 }
21714 arg2 = static_cast< double >(val2);
21715 ecode3 = SWIG_AsVal_double(obj2, &val3);
21716 if (!SWIG_IsOK(ecode3)) {
21717 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
21718 }
21719 arg3 = static_cast< double >(val3);
21720 {
21721 PyThreadState* __tstate = wxPyBeginAllowThreads();
21722 (arg1)->SetUserScale(arg2,arg3);
21723 wxPyEndAllowThreads(__tstate);
21724 if (PyErr_Occurred()) SWIG_fail;
21725 }
21726 resultobj = SWIG_Py_Void();
21727 return resultobj;
21728 fail:
21729 return NULL;
21730 }
21731
21732
21733 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21734 PyObject *resultobj = 0;
21735 wxDC *arg1 = (wxDC *) 0 ;
21736 double *arg2 = (double *) 0 ;
21737 double *arg3 = (double *) 0 ;
21738 void *argp1 = 0 ;
21739 int res1 = 0 ;
21740 double temp2 ;
21741 int res2 = SWIG_TMPOBJ ;
21742 double temp3 ;
21743 int res3 = SWIG_TMPOBJ ;
21744 PyObject *swig_obj[1] ;
21745
21746 arg2 = &temp2;
21747 arg3 = &temp3;
21748 if (!args) SWIG_fail;
21749 swig_obj[0] = args;
21750 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21751 if (!SWIG_IsOK(res1)) {
21752 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21753 }
21754 arg1 = reinterpret_cast< wxDC * >(argp1);
21755 {
21756 PyThreadState* __tstate = wxPyBeginAllowThreads();
21757 (arg1)->GetLogicalScale(arg2,arg3);
21758 wxPyEndAllowThreads(__tstate);
21759 if (PyErr_Occurred()) SWIG_fail;
21760 }
21761 resultobj = SWIG_Py_Void();
21762 if (SWIG_IsTmpObj(res2)) {
21763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
21764 } else {
21765 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21766 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
21767 }
21768 if (SWIG_IsTmpObj(res3)) {
21769 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
21770 } else {
21771 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21772 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
21773 }
21774 return resultobj;
21775 fail:
21776 return NULL;
21777 }
21778
21779
21780 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21781 PyObject *resultobj = 0;
21782 wxDC *arg1 = (wxDC *) 0 ;
21783 double arg2 ;
21784 double arg3 ;
21785 void *argp1 = 0 ;
21786 int res1 = 0 ;
21787 double val2 ;
21788 int ecode2 = 0 ;
21789 double val3 ;
21790 int ecode3 = 0 ;
21791 PyObject * obj0 = 0 ;
21792 PyObject * obj1 = 0 ;
21793 PyObject * obj2 = 0 ;
21794 char * kwnames[] = {
21795 (char *) "self",(char *) "x",(char *) "y", NULL
21796 };
21797
21798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21800 if (!SWIG_IsOK(res1)) {
21801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
21802 }
21803 arg1 = reinterpret_cast< wxDC * >(argp1);
21804 ecode2 = SWIG_AsVal_double(obj1, &val2);
21805 if (!SWIG_IsOK(ecode2)) {
21806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
21807 }
21808 arg2 = static_cast< double >(val2);
21809 ecode3 = SWIG_AsVal_double(obj2, &val3);
21810 if (!SWIG_IsOK(ecode3)) {
21811 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
21812 }
21813 arg3 = static_cast< double >(val3);
21814 {
21815 PyThreadState* __tstate = wxPyBeginAllowThreads();
21816 (arg1)->SetLogicalScale(arg2,arg3);
21817 wxPyEndAllowThreads(__tstate);
21818 if (PyErr_Occurred()) SWIG_fail;
21819 }
21820 resultobj = SWIG_Py_Void();
21821 return resultobj;
21822 fail:
21823 return NULL;
21824 }
21825
21826
21827 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21828 PyObject *resultobj = 0;
21829 wxDC *arg1 = (wxDC *) 0 ;
21830 wxPoint result;
21831 void *argp1 = 0 ;
21832 int res1 = 0 ;
21833 PyObject *swig_obj[1] ;
21834
21835 if (!args) SWIG_fail;
21836 swig_obj[0] = args;
21837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21838 if (!SWIG_IsOK(res1)) {
21839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
21840 }
21841 arg1 = reinterpret_cast< wxDC * >(argp1);
21842 {
21843 PyThreadState* __tstate = wxPyBeginAllowThreads();
21844 result = ((wxDC const *)arg1)->GetLogicalOrigin();
21845 wxPyEndAllowThreads(__tstate);
21846 if (PyErr_Occurred()) SWIG_fail;
21847 }
21848 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
21849 return resultobj;
21850 fail:
21851 return NULL;
21852 }
21853
21854
21855 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21856 PyObject *resultobj = 0;
21857 wxDC *arg1 = (wxDC *) 0 ;
21858 int *arg2 = (int *) 0 ;
21859 int *arg3 = (int *) 0 ;
21860 void *argp1 = 0 ;
21861 int res1 = 0 ;
21862 int temp2 ;
21863 int res2 = SWIG_TMPOBJ ;
21864 int temp3 ;
21865 int res3 = SWIG_TMPOBJ ;
21866 PyObject *swig_obj[1] ;
21867
21868 arg2 = &temp2;
21869 arg3 = &temp3;
21870 if (!args) SWIG_fail;
21871 swig_obj[0] = args;
21872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21873 if (!SWIG_IsOK(res1)) {
21874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21875 }
21876 arg1 = reinterpret_cast< wxDC * >(argp1);
21877 {
21878 PyThreadState* __tstate = wxPyBeginAllowThreads();
21879 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
21880 wxPyEndAllowThreads(__tstate);
21881 if (PyErr_Occurred()) SWIG_fail;
21882 }
21883 resultobj = SWIG_Py_Void();
21884 if (SWIG_IsTmpObj(res2)) {
21885 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21886 } else {
21887 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21888 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21889 }
21890 if (SWIG_IsTmpObj(res3)) {
21891 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21892 } else {
21893 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21895 }
21896 return resultobj;
21897 fail:
21898 return NULL;
21899 }
21900
21901
21902 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21903 PyObject *resultobj = 0;
21904 wxDC *arg1 = (wxDC *) 0 ;
21905 int arg2 ;
21906 int arg3 ;
21907 void *argp1 = 0 ;
21908 int res1 = 0 ;
21909 int val2 ;
21910 int ecode2 = 0 ;
21911 int val3 ;
21912 int ecode3 = 0 ;
21913 PyObject * obj0 = 0 ;
21914 PyObject * obj1 = 0 ;
21915 PyObject * obj2 = 0 ;
21916 char * kwnames[] = {
21917 (char *) "self",(char *) "x",(char *) "y", NULL
21918 };
21919
21920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21922 if (!SWIG_IsOK(res1)) {
21923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
21924 }
21925 arg1 = reinterpret_cast< wxDC * >(argp1);
21926 ecode2 = SWIG_AsVal_int(obj1, &val2);
21927 if (!SWIG_IsOK(ecode2)) {
21928 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
21929 }
21930 arg2 = static_cast< int >(val2);
21931 ecode3 = SWIG_AsVal_int(obj2, &val3);
21932 if (!SWIG_IsOK(ecode3)) {
21933 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
21934 }
21935 arg3 = static_cast< int >(val3);
21936 {
21937 PyThreadState* __tstate = wxPyBeginAllowThreads();
21938 (arg1)->SetLogicalOrigin(arg2,arg3);
21939 wxPyEndAllowThreads(__tstate);
21940 if (PyErr_Occurred()) SWIG_fail;
21941 }
21942 resultobj = SWIG_Py_Void();
21943 return resultobj;
21944 fail:
21945 return NULL;
21946 }
21947
21948
21949 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21950 PyObject *resultobj = 0;
21951 wxDC *arg1 = (wxDC *) 0 ;
21952 wxPoint *arg2 = 0 ;
21953 void *argp1 = 0 ;
21954 int res1 = 0 ;
21955 wxPoint temp2 ;
21956 PyObject * obj0 = 0 ;
21957 PyObject * obj1 = 0 ;
21958 char * kwnames[] = {
21959 (char *) "self",(char *) "point", NULL
21960 };
21961
21962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
21963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21964 if (!SWIG_IsOK(res1)) {
21965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
21966 }
21967 arg1 = reinterpret_cast< wxDC * >(argp1);
21968 {
21969 arg2 = &temp2;
21970 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
21971 }
21972 {
21973 PyThreadState* __tstate = wxPyBeginAllowThreads();
21974 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
21975 wxPyEndAllowThreads(__tstate);
21976 if (PyErr_Occurred()) SWIG_fail;
21977 }
21978 resultobj = SWIG_Py_Void();
21979 return resultobj;
21980 fail:
21981 return NULL;
21982 }
21983
21984
21985 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21986 PyObject *resultobj = 0;
21987 wxDC *arg1 = (wxDC *) 0 ;
21988 wxPoint result;
21989 void *argp1 = 0 ;
21990 int res1 = 0 ;
21991 PyObject *swig_obj[1] ;
21992
21993 if (!args) SWIG_fail;
21994 swig_obj[0] = args;
21995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21996 if (!SWIG_IsOK(res1)) {
21997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
21998 }
21999 arg1 = reinterpret_cast< wxDC * >(argp1);
22000 {
22001 PyThreadState* __tstate = wxPyBeginAllowThreads();
22002 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22003 wxPyEndAllowThreads(__tstate);
22004 if (PyErr_Occurred()) SWIG_fail;
22005 }
22006 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22007 return resultobj;
22008 fail:
22009 return NULL;
22010 }
22011
22012
22013 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22014 PyObject *resultobj = 0;
22015 wxDC *arg1 = (wxDC *) 0 ;
22016 int *arg2 = (int *) 0 ;
22017 int *arg3 = (int *) 0 ;
22018 void *argp1 = 0 ;
22019 int res1 = 0 ;
22020 int temp2 ;
22021 int res2 = SWIG_TMPOBJ ;
22022 int temp3 ;
22023 int res3 = SWIG_TMPOBJ ;
22024 PyObject *swig_obj[1] ;
22025
22026 arg2 = &temp2;
22027 arg3 = &temp3;
22028 if (!args) SWIG_fail;
22029 swig_obj[0] = args;
22030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22031 if (!SWIG_IsOK(res1)) {
22032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22033 }
22034 arg1 = reinterpret_cast< wxDC * >(argp1);
22035 {
22036 PyThreadState* __tstate = wxPyBeginAllowThreads();
22037 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22038 wxPyEndAllowThreads(__tstate);
22039 if (PyErr_Occurred()) SWIG_fail;
22040 }
22041 resultobj = SWIG_Py_Void();
22042 if (SWIG_IsTmpObj(res2)) {
22043 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22044 } else {
22045 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22046 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22047 }
22048 if (SWIG_IsTmpObj(res3)) {
22049 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22050 } else {
22051 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22052 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22053 }
22054 return resultobj;
22055 fail:
22056 return NULL;
22057 }
22058
22059
22060 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22061 PyObject *resultobj = 0;
22062 wxDC *arg1 = (wxDC *) 0 ;
22063 int arg2 ;
22064 int arg3 ;
22065 void *argp1 = 0 ;
22066 int res1 = 0 ;
22067 int val2 ;
22068 int ecode2 = 0 ;
22069 int val3 ;
22070 int ecode3 = 0 ;
22071 PyObject * obj0 = 0 ;
22072 PyObject * obj1 = 0 ;
22073 PyObject * obj2 = 0 ;
22074 char * kwnames[] = {
22075 (char *) "self",(char *) "x",(char *) "y", NULL
22076 };
22077
22078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22080 if (!SWIG_IsOK(res1)) {
22081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22082 }
22083 arg1 = reinterpret_cast< wxDC * >(argp1);
22084 ecode2 = SWIG_AsVal_int(obj1, &val2);
22085 if (!SWIG_IsOK(ecode2)) {
22086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22087 }
22088 arg2 = static_cast< int >(val2);
22089 ecode3 = SWIG_AsVal_int(obj2, &val3);
22090 if (!SWIG_IsOK(ecode3)) {
22091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22092 }
22093 arg3 = static_cast< int >(val3);
22094 {
22095 PyThreadState* __tstate = wxPyBeginAllowThreads();
22096 (arg1)->SetDeviceOrigin(arg2,arg3);
22097 wxPyEndAllowThreads(__tstate);
22098 if (PyErr_Occurred()) SWIG_fail;
22099 }
22100 resultobj = SWIG_Py_Void();
22101 return resultobj;
22102 fail:
22103 return NULL;
22104 }
22105
22106
22107 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22108 PyObject *resultobj = 0;
22109 wxDC *arg1 = (wxDC *) 0 ;
22110 wxPoint *arg2 = 0 ;
22111 void *argp1 = 0 ;
22112 int res1 = 0 ;
22113 wxPoint temp2 ;
22114 PyObject * obj0 = 0 ;
22115 PyObject * obj1 = 0 ;
22116 char * kwnames[] = {
22117 (char *) "self",(char *) "point", NULL
22118 };
22119
22120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22122 if (!SWIG_IsOK(res1)) {
22123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22124 }
22125 arg1 = reinterpret_cast< wxDC * >(argp1);
22126 {
22127 arg2 = &temp2;
22128 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22129 }
22130 {
22131 PyThreadState* __tstate = wxPyBeginAllowThreads();
22132 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
22133 wxPyEndAllowThreads(__tstate);
22134 if (PyErr_Occurred()) SWIG_fail;
22135 }
22136 resultobj = SWIG_Py_Void();
22137 return resultobj;
22138 fail:
22139 return NULL;
22140 }
22141
22142
22143 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22144 PyObject *resultobj = 0;
22145 wxDC *arg1 = (wxDC *) 0 ;
22146 bool arg2 ;
22147 bool arg3 ;
22148 void *argp1 = 0 ;
22149 int res1 = 0 ;
22150 bool val2 ;
22151 int ecode2 = 0 ;
22152 bool val3 ;
22153 int ecode3 = 0 ;
22154 PyObject * obj0 = 0 ;
22155 PyObject * obj1 = 0 ;
22156 PyObject * obj2 = 0 ;
22157 char * kwnames[] = {
22158 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
22159 };
22160
22161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22163 if (!SWIG_IsOK(res1)) {
22164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
22165 }
22166 arg1 = reinterpret_cast< wxDC * >(argp1);
22167 ecode2 = SWIG_AsVal_bool(obj1, &val2);
22168 if (!SWIG_IsOK(ecode2)) {
22169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
22170 }
22171 arg2 = static_cast< bool >(val2);
22172 ecode3 = SWIG_AsVal_bool(obj2, &val3);
22173 if (!SWIG_IsOK(ecode3)) {
22174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
22175 }
22176 arg3 = static_cast< bool >(val3);
22177 {
22178 PyThreadState* __tstate = wxPyBeginAllowThreads();
22179 (arg1)->SetAxisOrientation(arg2,arg3);
22180 wxPyEndAllowThreads(__tstate);
22181 if (PyErr_Occurred()) SWIG_fail;
22182 }
22183 resultobj = SWIG_Py_Void();
22184 return resultobj;
22185 fail:
22186 return NULL;
22187 }
22188
22189
22190 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22191 PyObject *resultobj = 0;
22192 wxDC *arg1 = (wxDC *) 0 ;
22193 int result;
22194 void *argp1 = 0 ;
22195 int res1 = 0 ;
22196 PyObject *swig_obj[1] ;
22197
22198 if (!args) SWIG_fail;
22199 swig_obj[0] = args;
22200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22201 if (!SWIG_IsOK(res1)) {
22202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
22203 }
22204 arg1 = reinterpret_cast< wxDC * >(argp1);
22205 {
22206 PyThreadState* __tstate = wxPyBeginAllowThreads();
22207 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
22208 wxPyEndAllowThreads(__tstate);
22209 if (PyErr_Occurred()) SWIG_fail;
22210 }
22211 resultobj = SWIG_From_int(static_cast< int >(result));
22212 return resultobj;
22213 fail:
22214 return NULL;
22215 }
22216
22217
22218 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22219 PyObject *resultobj = 0;
22220 wxDC *arg1 = (wxDC *) 0 ;
22221 int arg2 ;
22222 void *argp1 = 0 ;
22223 int res1 = 0 ;
22224 int val2 ;
22225 int ecode2 = 0 ;
22226 PyObject * obj0 = 0 ;
22227 PyObject * obj1 = 0 ;
22228 char * kwnames[] = {
22229 (char *) "self",(char *) "function", NULL
22230 };
22231
22232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
22233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22234 if (!SWIG_IsOK(res1)) {
22235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
22236 }
22237 arg1 = reinterpret_cast< wxDC * >(argp1);
22238 ecode2 = SWIG_AsVal_int(obj1, &val2);
22239 if (!SWIG_IsOK(ecode2)) {
22240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
22241 }
22242 arg2 = static_cast< int >(val2);
22243 {
22244 PyThreadState* __tstate = wxPyBeginAllowThreads();
22245 (arg1)->SetLogicalFunction(arg2);
22246 wxPyEndAllowThreads(__tstate);
22247 if (PyErr_Occurred()) SWIG_fail;
22248 }
22249 resultobj = SWIG_Py_Void();
22250 return resultobj;
22251 fail:
22252 return NULL;
22253 }
22254
22255
22256 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22257 PyObject *resultobj = 0;
22258 wxDC *arg1 = (wxDC *) 0 ;
22259 void *argp1 = 0 ;
22260 int res1 = 0 ;
22261 PyObject *swig_obj[1] ;
22262
22263 if (!args) SWIG_fail;
22264 swig_obj[0] = args;
22265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22266 if (!SWIG_IsOK(res1)) {
22267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22268 }
22269 arg1 = reinterpret_cast< wxDC * >(argp1);
22270 {
22271 PyThreadState* __tstate = wxPyBeginAllowThreads();
22272 (arg1)->ComputeScaleAndOrigin();
22273 wxPyEndAllowThreads(__tstate);
22274 if (PyErr_Occurred()) SWIG_fail;
22275 }
22276 resultobj = SWIG_Py_Void();
22277 return resultobj;
22278 fail:
22279 return NULL;
22280 }
22281
22282
22283 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22284 PyObject *resultobj = 0;
22285 wxDC *arg1 = (wxDC *) 0 ;
22286 int arg2 ;
22287 int arg3 ;
22288 void *argp1 = 0 ;
22289 int res1 = 0 ;
22290 int val2 ;
22291 int ecode2 = 0 ;
22292 int val3 ;
22293 int ecode3 = 0 ;
22294 PyObject * obj0 = 0 ;
22295 PyObject * obj1 = 0 ;
22296 PyObject * obj2 = 0 ;
22297 char * kwnames[] = {
22298 (char *) "self",(char *) "x",(char *) "y", NULL
22299 };
22300
22301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22303 if (!SWIG_IsOK(res1)) {
22304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22305 }
22306 arg1 = reinterpret_cast< wxDC * >(argp1);
22307 ecode2 = SWIG_AsVal_int(obj1, &val2);
22308 if (!SWIG_IsOK(ecode2)) {
22309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
22310 }
22311 arg2 = static_cast< int >(val2);
22312 ecode3 = SWIG_AsVal_int(obj2, &val3);
22313 if (!SWIG_IsOK(ecode3)) {
22314 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
22315 }
22316 arg3 = static_cast< int >(val3);
22317 {
22318 PyThreadState* __tstate = wxPyBeginAllowThreads();
22319 (arg1)->CalcBoundingBox(arg2,arg3);
22320 wxPyEndAllowThreads(__tstate);
22321 if (PyErr_Occurred()) SWIG_fail;
22322 }
22323 resultobj = SWIG_Py_Void();
22324 return resultobj;
22325 fail:
22326 return NULL;
22327 }
22328
22329
22330 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22331 PyObject *resultobj = 0;
22332 wxDC *arg1 = (wxDC *) 0 ;
22333 wxPoint *arg2 = 0 ;
22334 void *argp1 = 0 ;
22335 int res1 = 0 ;
22336 wxPoint temp2 ;
22337 PyObject * obj0 = 0 ;
22338 PyObject * obj1 = 0 ;
22339 char * kwnames[] = {
22340 (char *) "self",(char *) "point", NULL
22341 };
22342
22343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22345 if (!SWIG_IsOK(res1)) {
22346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22347 }
22348 arg1 = reinterpret_cast< wxDC * >(argp1);
22349 {
22350 arg2 = &temp2;
22351 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22352 }
22353 {
22354 PyThreadState* __tstate = wxPyBeginAllowThreads();
22355 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
22356 wxPyEndAllowThreads(__tstate);
22357 if (PyErr_Occurred()) SWIG_fail;
22358 }
22359 resultobj = SWIG_Py_Void();
22360 return resultobj;
22361 fail:
22362 return NULL;
22363 }
22364
22365
22366 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22367 PyObject *resultobj = 0;
22368 wxDC *arg1 = (wxDC *) 0 ;
22369 void *argp1 = 0 ;
22370 int res1 = 0 ;
22371 PyObject *swig_obj[1] ;
22372
22373 if (!args) SWIG_fail;
22374 swig_obj[0] = args;
22375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22376 if (!SWIG_IsOK(res1)) {
22377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22378 }
22379 arg1 = reinterpret_cast< wxDC * >(argp1);
22380 {
22381 PyThreadState* __tstate = wxPyBeginAllowThreads();
22382 (arg1)->ResetBoundingBox();
22383 wxPyEndAllowThreads(__tstate);
22384 if (PyErr_Occurred()) SWIG_fail;
22385 }
22386 resultobj = SWIG_Py_Void();
22387 return resultobj;
22388 fail:
22389 return NULL;
22390 }
22391
22392
22393 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22394 PyObject *resultobj = 0;
22395 wxDC *arg1 = (wxDC *) 0 ;
22396 int result;
22397 void *argp1 = 0 ;
22398 int res1 = 0 ;
22399 PyObject *swig_obj[1] ;
22400
22401 if (!args) SWIG_fail;
22402 swig_obj[0] = args;
22403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22404 if (!SWIG_IsOK(res1)) {
22405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
22406 }
22407 arg1 = reinterpret_cast< wxDC * >(argp1);
22408 {
22409 PyThreadState* __tstate = wxPyBeginAllowThreads();
22410 result = (int)((wxDC const *)arg1)->MinX();
22411 wxPyEndAllowThreads(__tstate);
22412 if (PyErr_Occurred()) SWIG_fail;
22413 }
22414 resultobj = SWIG_From_int(static_cast< int >(result));
22415 return resultobj;
22416 fail:
22417 return NULL;
22418 }
22419
22420
22421 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22422 PyObject *resultobj = 0;
22423 wxDC *arg1 = (wxDC *) 0 ;
22424 int result;
22425 void *argp1 = 0 ;
22426 int res1 = 0 ;
22427 PyObject *swig_obj[1] ;
22428
22429 if (!args) SWIG_fail;
22430 swig_obj[0] = args;
22431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22432 if (!SWIG_IsOK(res1)) {
22433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
22434 }
22435 arg1 = reinterpret_cast< wxDC * >(argp1);
22436 {
22437 PyThreadState* __tstate = wxPyBeginAllowThreads();
22438 result = (int)((wxDC const *)arg1)->MaxX();
22439 wxPyEndAllowThreads(__tstate);
22440 if (PyErr_Occurred()) SWIG_fail;
22441 }
22442 resultobj = SWIG_From_int(static_cast< int >(result));
22443 return resultobj;
22444 fail:
22445 return NULL;
22446 }
22447
22448
22449 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22450 PyObject *resultobj = 0;
22451 wxDC *arg1 = (wxDC *) 0 ;
22452 int result;
22453 void *argp1 = 0 ;
22454 int res1 = 0 ;
22455 PyObject *swig_obj[1] ;
22456
22457 if (!args) SWIG_fail;
22458 swig_obj[0] = args;
22459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22460 if (!SWIG_IsOK(res1)) {
22461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
22462 }
22463 arg1 = reinterpret_cast< wxDC * >(argp1);
22464 {
22465 PyThreadState* __tstate = wxPyBeginAllowThreads();
22466 result = (int)((wxDC const *)arg1)->MinY();
22467 wxPyEndAllowThreads(__tstate);
22468 if (PyErr_Occurred()) SWIG_fail;
22469 }
22470 resultobj = SWIG_From_int(static_cast< int >(result));
22471 return resultobj;
22472 fail:
22473 return NULL;
22474 }
22475
22476
22477 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22478 PyObject *resultobj = 0;
22479 wxDC *arg1 = (wxDC *) 0 ;
22480 int result;
22481 void *argp1 = 0 ;
22482 int res1 = 0 ;
22483 PyObject *swig_obj[1] ;
22484
22485 if (!args) SWIG_fail;
22486 swig_obj[0] = args;
22487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22488 if (!SWIG_IsOK(res1)) {
22489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
22490 }
22491 arg1 = reinterpret_cast< wxDC * >(argp1);
22492 {
22493 PyThreadState* __tstate = wxPyBeginAllowThreads();
22494 result = (int)((wxDC const *)arg1)->MaxY();
22495 wxPyEndAllowThreads(__tstate);
22496 if (PyErr_Occurred()) SWIG_fail;
22497 }
22498 resultobj = SWIG_From_int(static_cast< int >(result));
22499 return resultobj;
22500 fail:
22501 return NULL;
22502 }
22503
22504
22505 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22506 PyObject *resultobj = 0;
22507 wxDC *arg1 = (wxDC *) 0 ;
22508 int *arg2 = (int *) 0 ;
22509 int *arg3 = (int *) 0 ;
22510 int *arg4 = (int *) 0 ;
22511 int *arg5 = (int *) 0 ;
22512 void *argp1 = 0 ;
22513 int res1 = 0 ;
22514 int temp2 ;
22515 int res2 = SWIG_TMPOBJ ;
22516 int temp3 ;
22517 int res3 = SWIG_TMPOBJ ;
22518 int temp4 ;
22519 int res4 = SWIG_TMPOBJ ;
22520 int temp5 ;
22521 int res5 = SWIG_TMPOBJ ;
22522 PyObject *swig_obj[1] ;
22523
22524 arg2 = &temp2;
22525 arg3 = &temp3;
22526 arg4 = &temp4;
22527 arg5 = &temp5;
22528 if (!args) SWIG_fail;
22529 swig_obj[0] = args;
22530 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22531 if (!SWIG_IsOK(res1)) {
22532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
22533 }
22534 arg1 = reinterpret_cast< wxDC * >(argp1);
22535 {
22536 PyThreadState* __tstate = wxPyBeginAllowThreads();
22537 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
22538 wxPyEndAllowThreads(__tstate);
22539 if (PyErr_Occurred()) SWIG_fail;
22540 }
22541 resultobj = SWIG_Py_Void();
22542 if (SWIG_IsTmpObj(res2)) {
22543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22544 } else {
22545 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22547 }
22548 if (SWIG_IsTmpObj(res3)) {
22549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22550 } else {
22551 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22552 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22553 }
22554 if (SWIG_IsTmpObj(res4)) {
22555 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22556 } else {
22557 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22558 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22559 }
22560 if (SWIG_IsTmpObj(res5)) {
22561 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
22562 } else {
22563 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22564 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
22565 }
22566 return resultobj;
22567 fail:
22568 return NULL;
22569 }
22570
22571
22572 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22573 PyObject *resultobj = 0;
22574 wxDC *arg1 = (wxDC *) 0 ;
22575 PyObject *arg2 = (PyObject *) 0 ;
22576 PyObject *arg3 = (PyObject *) 0 ;
22577 PyObject *arg4 = (PyObject *) 0 ;
22578 PyObject *result = 0 ;
22579 void *argp1 = 0 ;
22580 int res1 = 0 ;
22581 PyObject * obj0 = 0 ;
22582 PyObject * obj1 = 0 ;
22583 PyObject * obj2 = 0 ;
22584 PyObject * obj3 = 0 ;
22585 char * kwnames[] = {
22586 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22587 };
22588
22589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22591 if (!SWIG_IsOK(res1)) {
22592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
22593 }
22594 arg1 = reinterpret_cast< wxDC * >(argp1);
22595 arg2 = obj1;
22596 arg3 = obj2;
22597 arg4 = obj3;
22598 {
22599 PyThreadState* __tstate = wxPyBeginAllowThreads();
22600 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
22601 wxPyEndAllowThreads(__tstate);
22602 if (PyErr_Occurred()) SWIG_fail;
22603 }
22604 resultobj = result;
22605 return resultobj;
22606 fail:
22607 return NULL;
22608 }
22609
22610
22611 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22612 PyObject *resultobj = 0;
22613 wxDC *arg1 = (wxDC *) 0 ;
22614 PyObject *arg2 = (PyObject *) 0 ;
22615 PyObject *arg3 = (PyObject *) 0 ;
22616 PyObject *arg4 = (PyObject *) 0 ;
22617 PyObject *result = 0 ;
22618 void *argp1 = 0 ;
22619 int res1 = 0 ;
22620 PyObject * obj0 = 0 ;
22621 PyObject * obj1 = 0 ;
22622 PyObject * obj2 = 0 ;
22623 PyObject * obj3 = 0 ;
22624 char * kwnames[] = {
22625 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22626 };
22627
22628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22630 if (!SWIG_IsOK(res1)) {
22631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
22632 }
22633 arg1 = reinterpret_cast< wxDC * >(argp1);
22634 arg2 = obj1;
22635 arg3 = obj2;
22636 arg4 = obj3;
22637 {
22638 PyThreadState* __tstate = wxPyBeginAllowThreads();
22639 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
22640 wxPyEndAllowThreads(__tstate);
22641 if (PyErr_Occurred()) SWIG_fail;
22642 }
22643 resultobj = result;
22644 return resultobj;
22645 fail:
22646 return NULL;
22647 }
22648
22649
22650 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22651 PyObject *resultobj = 0;
22652 wxDC *arg1 = (wxDC *) 0 ;
22653 PyObject *arg2 = (PyObject *) 0 ;
22654 PyObject *arg3 = (PyObject *) 0 ;
22655 PyObject *arg4 = (PyObject *) 0 ;
22656 PyObject *result = 0 ;
22657 void *argp1 = 0 ;
22658 int res1 = 0 ;
22659 PyObject * obj0 = 0 ;
22660 PyObject * obj1 = 0 ;
22661 PyObject * obj2 = 0 ;
22662 PyObject * obj3 = 0 ;
22663 char * kwnames[] = {
22664 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22665 };
22666
22667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22669 if (!SWIG_IsOK(res1)) {
22670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
22671 }
22672 arg1 = reinterpret_cast< wxDC * >(argp1);
22673 arg2 = obj1;
22674 arg3 = obj2;
22675 arg4 = obj3;
22676 {
22677 PyThreadState* __tstate = wxPyBeginAllowThreads();
22678 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
22679 wxPyEndAllowThreads(__tstate);
22680 if (PyErr_Occurred()) SWIG_fail;
22681 }
22682 resultobj = result;
22683 return resultobj;
22684 fail:
22685 return NULL;
22686 }
22687
22688
22689 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22690 PyObject *resultobj = 0;
22691 wxDC *arg1 = (wxDC *) 0 ;
22692 PyObject *arg2 = (PyObject *) 0 ;
22693 PyObject *arg3 = (PyObject *) 0 ;
22694 PyObject *arg4 = (PyObject *) 0 ;
22695 PyObject *result = 0 ;
22696 void *argp1 = 0 ;
22697 int res1 = 0 ;
22698 PyObject * obj0 = 0 ;
22699 PyObject * obj1 = 0 ;
22700 PyObject * obj2 = 0 ;
22701 PyObject * obj3 = 0 ;
22702 char * kwnames[] = {
22703 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22704 };
22705
22706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22708 if (!SWIG_IsOK(res1)) {
22709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
22710 }
22711 arg1 = reinterpret_cast< wxDC * >(argp1);
22712 arg2 = obj1;
22713 arg3 = obj2;
22714 arg4 = obj3;
22715 {
22716 PyThreadState* __tstate = wxPyBeginAllowThreads();
22717 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
22718 wxPyEndAllowThreads(__tstate);
22719 if (PyErr_Occurred()) SWIG_fail;
22720 }
22721 resultobj = result;
22722 return resultobj;
22723 fail:
22724 return NULL;
22725 }
22726
22727
22728 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22729 PyObject *resultobj = 0;
22730 wxDC *arg1 = (wxDC *) 0 ;
22731 PyObject *arg2 = (PyObject *) 0 ;
22732 PyObject *arg3 = (PyObject *) 0 ;
22733 PyObject *arg4 = (PyObject *) 0 ;
22734 PyObject *result = 0 ;
22735 void *argp1 = 0 ;
22736 int res1 = 0 ;
22737 PyObject * obj0 = 0 ;
22738 PyObject * obj1 = 0 ;
22739 PyObject * obj2 = 0 ;
22740 PyObject * obj3 = 0 ;
22741 char * kwnames[] = {
22742 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
22743 };
22744
22745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22747 if (!SWIG_IsOK(res1)) {
22748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
22749 }
22750 arg1 = reinterpret_cast< wxDC * >(argp1);
22751 arg2 = obj1;
22752 arg3 = obj2;
22753 arg4 = obj3;
22754 {
22755 PyThreadState* __tstate = wxPyBeginAllowThreads();
22756 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
22757 wxPyEndAllowThreads(__tstate);
22758 if (PyErr_Occurred()) SWIG_fail;
22759 }
22760 resultobj = result;
22761 return resultobj;
22762 fail:
22763 return NULL;
22764 }
22765
22766
22767 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22768 PyObject *resultobj = 0;
22769 wxDC *arg1 = (wxDC *) 0 ;
22770 PyObject *arg2 = (PyObject *) 0 ;
22771 PyObject *arg3 = (PyObject *) 0 ;
22772 PyObject *arg4 = (PyObject *) 0 ;
22773 PyObject *arg5 = (PyObject *) 0 ;
22774 PyObject *result = 0 ;
22775 void *argp1 = 0 ;
22776 int res1 = 0 ;
22777 PyObject * obj0 = 0 ;
22778 PyObject * obj1 = 0 ;
22779 PyObject * obj2 = 0 ;
22780 PyObject * obj3 = 0 ;
22781 PyObject * obj4 = 0 ;
22782 char * kwnames[] = {
22783 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
22784 };
22785
22786 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22787 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22788 if (!SWIG_IsOK(res1)) {
22789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
22790 }
22791 arg1 = reinterpret_cast< wxDC * >(argp1);
22792 arg2 = obj1;
22793 arg3 = obj2;
22794 arg4 = obj3;
22795 arg5 = obj4;
22796 {
22797 PyThreadState* __tstate = wxPyBeginAllowThreads();
22798 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
22799 wxPyEndAllowThreads(__tstate);
22800 if (PyErr_Occurred()) SWIG_fail;
22801 }
22802 resultobj = result;
22803 return resultobj;
22804 fail:
22805 return NULL;
22806 }
22807
22808
22809 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22810 PyObject *obj;
22811 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22812 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
22813 return SWIG_Py_Void();
22814 }
22815
22816 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22817 PyObject *resultobj = 0;
22818 wxMemoryDC *result = 0 ;
22819
22820 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
22821 {
22822 if (!wxPyCheckForApp()) SWIG_fail;
22823 PyThreadState* __tstate = wxPyBeginAllowThreads();
22824 result = (wxMemoryDC *)new wxMemoryDC();
22825 wxPyEndAllowThreads(__tstate);
22826 if (PyErr_Occurred()) SWIG_fail;
22827 }
22828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
22829 return resultobj;
22830 fail:
22831 return NULL;
22832 }
22833
22834
22835 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22836 PyObject *resultobj = 0;
22837 wxDC *arg1 = (wxDC *) 0 ;
22838 wxMemoryDC *result = 0 ;
22839 void *argp1 = 0 ;
22840 int res1 = 0 ;
22841 PyObject * obj0 = 0 ;
22842 char * kwnames[] = {
22843 (char *) "oldDC", NULL
22844 };
22845
22846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
22847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22848 if (!SWIG_IsOK(res1)) {
22849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
22850 }
22851 arg1 = reinterpret_cast< wxDC * >(argp1);
22852 {
22853 if (!wxPyCheckForApp()) SWIG_fail;
22854 PyThreadState* __tstate = wxPyBeginAllowThreads();
22855 result = (wxMemoryDC *)new wxMemoryDC(arg1);
22856 wxPyEndAllowThreads(__tstate);
22857 if (PyErr_Occurred()) SWIG_fail;
22858 }
22859 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
22860 return resultobj;
22861 fail:
22862 return NULL;
22863 }
22864
22865
22866 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22867 PyObject *resultobj = 0;
22868 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
22869 wxBitmap *arg2 = 0 ;
22870 void *argp1 = 0 ;
22871 int res1 = 0 ;
22872 void *argp2 = 0 ;
22873 int res2 = 0 ;
22874 PyObject * obj0 = 0 ;
22875 PyObject * obj1 = 0 ;
22876 char * kwnames[] = {
22877 (char *) "self",(char *) "bitmap", NULL
22878 };
22879
22880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
22881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
22882 if (!SWIG_IsOK(res1)) {
22883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
22884 }
22885 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
22886 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22887 if (!SWIG_IsOK(res2)) {
22888 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22889 }
22890 if (!argp2) {
22891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22892 }
22893 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22894 {
22895 PyThreadState* __tstate = wxPyBeginAllowThreads();
22896 (arg1)->SelectObject((wxBitmap const &)*arg2);
22897 wxPyEndAllowThreads(__tstate);
22898 if (PyErr_Occurred()) SWIG_fail;
22899 }
22900 resultobj = SWIG_Py_Void();
22901 return resultobj;
22902 fail:
22903 return NULL;
22904 }
22905
22906
22907 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22908 PyObject *obj;
22909 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22910 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
22911 return SWIG_Py_Void();
22912 }
22913
22914 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22915 return SWIG_Python_InitShadowInstance(args);
22916 }
22917
22918 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22919 PyObject *resultobj = 0;
22920 wxDC *arg1 = (wxDC *) 0 ;
22921 wxBitmap const &arg2_defvalue = wxNullBitmap ;
22922 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
22923 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
22924 wxBufferedDC *result = 0 ;
22925 void *argp1 = 0 ;
22926 int res1 = 0 ;
22927 void *argp2 = 0 ;
22928 int res2 = 0 ;
22929 int val3 ;
22930 int ecode3 = 0 ;
22931
22932 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
22933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22934 if (!SWIG_IsOK(res1)) {
22935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
22936 }
22937 arg1 = reinterpret_cast< wxDC * >(argp1);
22938 if (swig_obj[1]) {
22939 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22940 if (!SWIG_IsOK(res2)) {
22941 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22942 }
22943 if (!argp2) {
22944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22945 }
22946 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22947 }
22948 if (swig_obj[2]) {
22949 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
22950 if (!SWIG_IsOK(ecode3)) {
22951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
22952 }
22953 arg3 = static_cast< int >(val3);
22954 }
22955 {
22956 if (!wxPyCheckForApp()) SWIG_fail;
22957 PyThreadState* __tstate = wxPyBeginAllowThreads();
22958 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
22959 wxPyEndAllowThreads(__tstate);
22960 if (PyErr_Occurred()) SWIG_fail;
22961 }
22962 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
22963 return resultobj;
22964 fail:
22965 return NULL;
22966 }
22967
22968
22969 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
22970 PyObject *resultobj = 0;
22971 wxDC *arg1 = (wxDC *) 0 ;
22972 wxSize *arg2 = 0 ;
22973 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
22974 wxBufferedDC *result = 0 ;
22975 void *argp1 = 0 ;
22976 int res1 = 0 ;
22977 wxSize temp2 ;
22978 int val3 ;
22979 int ecode3 = 0 ;
22980
22981 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
22982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22983 if (!SWIG_IsOK(res1)) {
22984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
22985 }
22986 arg1 = reinterpret_cast< wxDC * >(argp1);
22987 {
22988 arg2 = &temp2;
22989 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
22990 }
22991 if (swig_obj[2]) {
22992 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
22993 if (!SWIG_IsOK(ecode3)) {
22994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
22995 }
22996 arg3 = static_cast< int >(val3);
22997 }
22998 {
22999 if (!wxPyCheckForApp()) SWIG_fail;
23000 PyThreadState* __tstate = wxPyBeginAllowThreads();
23001 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23002 wxPyEndAllowThreads(__tstate);
23003 if (PyErr_Occurred()) SWIG_fail;
23004 }
23005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23006 return resultobj;
23007 fail:
23008 return NULL;
23009 }
23010
23011
23012 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
23013 int argc;
23014 PyObject *argv[4];
23015
23016 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
23017 --argc;
23018 if ((argc >= 1) && (argc <= 3)) {
23019 int _v = 0;
23020 if (argc > 1) {
23021 {
23022 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
23023 _v = SWIG_CheckState(res);
23024 }
23025 if (!_v) goto check_1;
23026 }
23027 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
23028 }
23029 check_1:
23030
23031 if ((argc >= 2) && (argc <= 3)) {
23032 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
23033 }
23034
23035 fail:
23036 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
23037 return NULL;
23038 }
23039
23040
23041 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23042 PyObject *resultobj = 0;
23043 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23044 void *argp1 = 0 ;
23045 int res1 = 0 ;
23046 PyObject *swig_obj[1] ;
23047
23048 if (!args) SWIG_fail;
23049 swig_obj[0] = args;
23050 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
23051 if (!SWIG_IsOK(res1)) {
23052 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23053 }
23054 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23055 {
23056 PyThreadState* __tstate = wxPyBeginAllowThreads();
23057 delete arg1;
23058
23059 wxPyEndAllowThreads(__tstate);
23060 if (PyErr_Occurred()) SWIG_fail;
23061 }
23062 resultobj = SWIG_Py_Void();
23063 return resultobj;
23064 fail:
23065 return NULL;
23066 }
23067
23068
23069 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23070 PyObject *resultobj = 0;
23071 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
23072 void *argp1 = 0 ;
23073 int res1 = 0 ;
23074 PyObject *swig_obj[1] ;
23075
23076 if (!args) SWIG_fail;
23077 swig_obj[0] = args;
23078 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
23079 if (!SWIG_IsOK(res1)) {
23080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
23081 }
23082 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
23083 {
23084 PyThreadState* __tstate = wxPyBeginAllowThreads();
23085 (arg1)->UnMask();
23086 wxPyEndAllowThreads(__tstate);
23087 if (PyErr_Occurred()) SWIG_fail;
23088 }
23089 resultobj = SWIG_Py_Void();
23090 return resultobj;
23091 fail:
23092 return NULL;
23093 }
23094
23095
23096 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23097 PyObject *obj;
23098 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23099 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
23100 return SWIG_Py_Void();
23101 }
23102
23103 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23104 return SWIG_Python_InitShadowInstance(args);
23105 }
23106
23107 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23108 PyObject *resultobj = 0;
23109 wxWindow *arg1 = (wxWindow *) 0 ;
23110 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23111 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23112 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23113 wxBufferedPaintDC *result = 0 ;
23114 void *argp1 = 0 ;
23115 int res1 = 0 ;
23116 void *argp2 = 0 ;
23117 int res2 = 0 ;
23118 int val3 ;
23119 int ecode3 = 0 ;
23120 PyObject * obj0 = 0 ;
23121 PyObject * obj1 = 0 ;
23122 PyObject * obj2 = 0 ;
23123 char * kwnames[] = {
23124 (char *) "window",(char *) "buffer",(char *) "style", NULL
23125 };
23126
23127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23129 if (!SWIG_IsOK(res1)) {
23130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23131 }
23132 arg1 = reinterpret_cast< wxWindow * >(argp1);
23133 if (obj1) {
23134 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23135 if (!SWIG_IsOK(res2)) {
23136 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23137 }
23138 if (!argp2) {
23139 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23140 }
23141 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23142 }
23143 if (obj2) {
23144 ecode3 = SWIG_AsVal_int(obj2, &val3);
23145 if (!SWIG_IsOK(ecode3)) {
23146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
23147 }
23148 arg3 = static_cast< int >(val3);
23149 }
23150 {
23151 if (!wxPyCheckForApp()) SWIG_fail;
23152 PyThreadState* __tstate = wxPyBeginAllowThreads();
23153 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
23154 wxPyEndAllowThreads(__tstate);
23155 if (PyErr_Occurred()) SWIG_fail;
23156 }
23157 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
23158 return resultobj;
23159 fail:
23160 return NULL;
23161 }
23162
23163
23164 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23165 PyObject *obj;
23166 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23167 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
23168 return SWIG_Py_Void();
23169 }
23170
23171 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23172 return SWIG_Python_InitShadowInstance(args);
23173 }
23174
23175 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23176 PyObject *resultobj = 0;
23177 wxScreenDC *result = 0 ;
23178
23179 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23180 {
23181 if (!wxPyCheckForApp()) SWIG_fail;
23182 PyThreadState* __tstate = wxPyBeginAllowThreads();
23183 result = (wxScreenDC *)new wxScreenDC();
23184 wxPyEndAllowThreads(__tstate);
23185 if (PyErr_Occurred()) SWIG_fail;
23186 }
23187 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23188 return resultobj;
23189 fail:
23190 return NULL;
23191 }
23192
23193
23194 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23195 PyObject *resultobj = 0;
23196 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23197 wxWindow *arg2 = (wxWindow *) 0 ;
23198 bool result;
23199 void *argp1 = 0 ;
23200 int res1 = 0 ;
23201 void *argp2 = 0 ;
23202 int res2 = 0 ;
23203 PyObject * obj0 = 0 ;
23204 PyObject * obj1 = 0 ;
23205 char * kwnames[] = {
23206 (char *) "self",(char *) "window", NULL
23207 };
23208
23209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23211 if (!SWIG_IsOK(res1)) {
23212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23213 }
23214 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23215 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23216 if (!SWIG_IsOK(res2)) {
23217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23218 }
23219 arg2 = reinterpret_cast< wxWindow * >(argp2);
23220 {
23221 PyThreadState* __tstate = wxPyBeginAllowThreads();
23222 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23223 wxPyEndAllowThreads(__tstate);
23224 if (PyErr_Occurred()) SWIG_fail;
23225 }
23226 {
23227 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23228 }
23229 return resultobj;
23230 fail:
23231 return NULL;
23232 }
23233
23234
23235 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23236 PyObject *resultobj = 0;
23237 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23238 wxRect *arg2 = (wxRect *) NULL ;
23239 bool result;
23240 void *argp1 = 0 ;
23241 int res1 = 0 ;
23242 void *argp2 = 0 ;
23243 int res2 = 0 ;
23244 PyObject * obj0 = 0 ;
23245 PyObject * obj1 = 0 ;
23246 char * kwnames[] = {
23247 (char *) "self",(char *) "rect", NULL
23248 };
23249
23250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23252 if (!SWIG_IsOK(res1)) {
23253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23254 }
23255 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23256 if (obj1) {
23257 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23258 if (!SWIG_IsOK(res2)) {
23259 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
23260 }
23261 arg2 = reinterpret_cast< wxRect * >(argp2);
23262 }
23263 {
23264 PyThreadState* __tstate = wxPyBeginAllowThreads();
23265 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23266 wxPyEndAllowThreads(__tstate);
23267 if (PyErr_Occurred()) SWIG_fail;
23268 }
23269 {
23270 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23271 }
23272 return resultobj;
23273 fail:
23274 return NULL;
23275 }
23276
23277
23278 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23279 PyObject *resultobj = 0;
23280 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23281 bool result;
23282 void *argp1 = 0 ;
23283 int res1 = 0 ;
23284 PyObject *swig_obj[1] ;
23285
23286 if (!args) SWIG_fail;
23287 swig_obj[0] = args;
23288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23289 if (!SWIG_IsOK(res1)) {
23290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23291 }
23292 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 result = (bool)(arg1)->EndDrawingOnTop();
23296 wxPyEndAllowThreads(__tstate);
23297 if (PyErr_Occurred()) SWIG_fail;
23298 }
23299 {
23300 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23301 }
23302 return resultobj;
23303 fail:
23304 return NULL;
23305 }
23306
23307
23308 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23309 PyObject *obj;
23310 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23311 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
23312 return SWIG_Py_Void();
23313 }
23314
23315 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23316 return SWIG_Python_InitShadowInstance(args);
23317 }
23318
23319 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23320 PyObject *resultobj = 0;
23321 wxWindow *arg1 = (wxWindow *) 0 ;
23322 wxClientDC *result = 0 ;
23323 void *argp1 = 0 ;
23324 int res1 = 0 ;
23325 PyObject * obj0 = 0 ;
23326 char * kwnames[] = {
23327 (char *) "win", NULL
23328 };
23329
23330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
23331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23332 if (!SWIG_IsOK(res1)) {
23333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23334 }
23335 arg1 = reinterpret_cast< wxWindow * >(argp1);
23336 {
23337 if (!wxPyCheckForApp()) SWIG_fail;
23338 PyThreadState* __tstate = wxPyBeginAllowThreads();
23339 result = (wxClientDC *)new wxClientDC(arg1);
23340 wxPyEndAllowThreads(__tstate);
23341 if (PyErr_Occurred()) SWIG_fail;
23342 }
23343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
23344 return resultobj;
23345 fail:
23346 return NULL;
23347 }
23348
23349
23350 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23351 PyObject *obj;
23352 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23353 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
23354 return SWIG_Py_Void();
23355 }
23356
23357 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23358 return SWIG_Python_InitShadowInstance(args);
23359 }
23360
23361 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23362 PyObject *resultobj = 0;
23363 wxWindow *arg1 = (wxWindow *) 0 ;
23364 wxPaintDC *result = 0 ;
23365 void *argp1 = 0 ;
23366 int res1 = 0 ;
23367 PyObject * obj0 = 0 ;
23368 char * kwnames[] = {
23369 (char *) "win", NULL
23370 };
23371
23372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
23373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23374 if (!SWIG_IsOK(res1)) {
23375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23376 }
23377 arg1 = reinterpret_cast< wxWindow * >(argp1);
23378 {
23379 if (!wxPyCheckForApp()) SWIG_fail;
23380 PyThreadState* __tstate = wxPyBeginAllowThreads();
23381 result = (wxPaintDC *)new wxPaintDC(arg1);
23382 wxPyEndAllowThreads(__tstate);
23383 if (PyErr_Occurred()) SWIG_fail;
23384 }
23385 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
23386 return resultobj;
23387 fail:
23388 return NULL;
23389 }
23390
23391
23392 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23393 PyObject *obj;
23394 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23395 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
23396 return SWIG_Py_Void();
23397 }
23398
23399 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23400 return SWIG_Python_InitShadowInstance(args);
23401 }
23402
23403 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23404 PyObject *resultobj = 0;
23405 wxWindow *arg1 = (wxWindow *) 0 ;
23406 wxWindowDC *result = 0 ;
23407 void *argp1 = 0 ;
23408 int res1 = 0 ;
23409 PyObject * obj0 = 0 ;
23410 char * kwnames[] = {
23411 (char *) "win", NULL
23412 };
23413
23414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
23415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
23416 if (!SWIG_IsOK(res1)) {
23417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
23418 }
23419 arg1 = reinterpret_cast< wxWindow * >(argp1);
23420 {
23421 if (!wxPyCheckForApp()) SWIG_fail;
23422 PyThreadState* __tstate = wxPyBeginAllowThreads();
23423 result = (wxWindowDC *)new wxWindowDC(arg1);
23424 wxPyEndAllowThreads(__tstate);
23425 if (PyErr_Occurred()) SWIG_fail;
23426 }
23427 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
23428 return resultobj;
23429 fail:
23430 return NULL;
23431 }
23432
23433
23434 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23435 PyObject *obj;
23436 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23437 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
23438 return SWIG_Py_Void();
23439 }
23440
23441 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23442 return SWIG_Python_InitShadowInstance(args);
23443 }
23444
23445 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23446 PyObject *resultobj = 0;
23447 wxDC *arg1 = 0 ;
23448 bool arg2 ;
23449 wxMirrorDC *result = 0 ;
23450 void *argp1 = 0 ;
23451 int res1 = 0 ;
23452 bool val2 ;
23453 int ecode2 = 0 ;
23454 PyObject * obj0 = 0 ;
23455 PyObject * obj1 = 0 ;
23456 char * kwnames[] = {
23457 (char *) "dc",(char *) "mirror", NULL
23458 };
23459
23460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
23461 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
23462 if (!SWIG_IsOK(res1)) {
23463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23464 }
23465 if (!argp1) {
23466 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
23467 }
23468 arg1 = reinterpret_cast< wxDC * >(argp1);
23469 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23470 if (!SWIG_IsOK(ecode2)) {
23471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
23472 }
23473 arg2 = static_cast< bool >(val2);
23474 {
23475 if (!wxPyCheckForApp()) SWIG_fail;
23476 PyThreadState* __tstate = wxPyBeginAllowThreads();
23477 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
23478 wxPyEndAllowThreads(__tstate);
23479 if (PyErr_Occurred()) SWIG_fail;
23480 }
23481 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
23482 return resultobj;
23483 fail:
23484 return NULL;
23485 }
23486
23487
23488 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23489 PyObject *obj;
23490 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23491 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
23492 return SWIG_Py_Void();
23493 }
23494
23495 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23496 return SWIG_Python_InitShadowInstance(args);
23497 }
23498
23499 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23500 PyObject *resultobj = 0;
23501 wxPrintData *arg1 = 0 ;
23502 wxPostScriptDC *result = 0 ;
23503 void *argp1 = 0 ;
23504 int res1 = 0 ;
23505 PyObject * obj0 = 0 ;
23506 char * kwnames[] = {
23507 (char *) "printData", NULL
23508 };
23509
23510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
23511 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23512 if (!SWIG_IsOK(res1)) {
23513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23514 }
23515 if (!argp1) {
23516 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23517 }
23518 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23519 {
23520 if (!wxPyCheckForApp()) SWIG_fail;
23521 PyThreadState* __tstate = wxPyBeginAllowThreads();
23522 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
23523 wxPyEndAllowThreads(__tstate);
23524 if (PyErr_Occurred()) SWIG_fail;
23525 }
23526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
23527 return resultobj;
23528 fail:
23529 return NULL;
23530 }
23531
23532
23533 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23534 PyObject *resultobj = 0;
23535 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23536 wxPrintData *result = 0 ;
23537 void *argp1 = 0 ;
23538 int res1 = 0 ;
23539 PyObject *swig_obj[1] ;
23540
23541 if (!args) SWIG_fail;
23542 swig_obj[0] = args;
23543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23544 if (!SWIG_IsOK(res1)) {
23545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23546 }
23547 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23548 {
23549 PyThreadState* __tstate = wxPyBeginAllowThreads();
23550 {
23551 wxPrintData &_result_ref = (arg1)->GetPrintData();
23552 result = (wxPrintData *) &_result_ref;
23553 }
23554 wxPyEndAllowThreads(__tstate);
23555 if (PyErr_Occurred()) SWIG_fail;
23556 }
23557 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
23558 return resultobj;
23559 fail:
23560 return NULL;
23561 }
23562
23563
23564 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23565 PyObject *resultobj = 0;
23566 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
23567 wxPrintData *arg2 = 0 ;
23568 void *argp1 = 0 ;
23569 int res1 = 0 ;
23570 void *argp2 = 0 ;
23571 int res2 = 0 ;
23572 PyObject * obj0 = 0 ;
23573 PyObject * obj1 = 0 ;
23574 char * kwnames[] = {
23575 (char *) "self",(char *) "data", NULL
23576 };
23577
23578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
23579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
23580 if (!SWIG_IsOK(res1)) {
23581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
23582 }
23583 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
23584 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
23585 if (!SWIG_IsOK(res2)) {
23586 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23587 }
23588 if (!argp2) {
23589 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
23590 }
23591 arg2 = reinterpret_cast< wxPrintData * >(argp2);
23592 {
23593 PyThreadState* __tstate = wxPyBeginAllowThreads();
23594 (arg1)->SetPrintData((wxPrintData const &)*arg2);
23595 wxPyEndAllowThreads(__tstate);
23596 if (PyErr_Occurred()) SWIG_fail;
23597 }
23598 resultobj = SWIG_Py_Void();
23599 return resultobj;
23600 fail:
23601 return NULL;
23602 }
23603
23604
23605 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23606 PyObject *resultobj = 0;
23607 int arg1 ;
23608 int val1 ;
23609 int ecode1 = 0 ;
23610 PyObject * obj0 = 0 ;
23611 char * kwnames[] = {
23612 (char *) "ppi", NULL
23613 };
23614
23615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
23616 ecode1 = SWIG_AsVal_int(obj0, &val1);
23617 if (!SWIG_IsOK(ecode1)) {
23618 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
23619 }
23620 arg1 = static_cast< int >(val1);
23621 {
23622 PyThreadState* __tstate = wxPyBeginAllowThreads();
23623 wxPostScriptDC::SetResolution(arg1);
23624 wxPyEndAllowThreads(__tstate);
23625 if (PyErr_Occurred()) SWIG_fail;
23626 }
23627 resultobj = SWIG_Py_Void();
23628 return resultobj;
23629 fail:
23630 return NULL;
23631 }
23632
23633
23634 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23635 PyObject *resultobj = 0;
23636 int result;
23637
23638 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
23639 {
23640 PyThreadState* __tstate = wxPyBeginAllowThreads();
23641 result = (int)wxPostScriptDC::GetResolution();
23642 wxPyEndAllowThreads(__tstate);
23643 if (PyErr_Occurred()) SWIG_fail;
23644 }
23645 resultobj = SWIG_From_int(static_cast< int >(result));
23646 return resultobj;
23647 fail:
23648 return NULL;
23649 }
23650
23651
23652 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23653 PyObject *obj;
23654 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23655 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
23656 return SWIG_Py_Void();
23657 }
23658
23659 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23660 return SWIG_Python_InitShadowInstance(args);
23661 }
23662
23663 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23664 PyObject *resultobj = 0;
23665 wxString const &arg1_defvalue = wxPyEmptyString ;
23666 wxString *arg1 = (wxString *) &arg1_defvalue ;
23667 wxMetaFile *result = 0 ;
23668 bool temp1 = false ;
23669 PyObject * obj0 = 0 ;
23670 char * kwnames[] = {
23671 (char *) "filename", NULL
23672 };
23673
23674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
23675 if (obj0) {
23676 {
23677 arg1 = wxString_in_helper(obj0);
23678 if (arg1 == NULL) SWIG_fail;
23679 temp1 = true;
23680 }
23681 }
23682 {
23683 if (!wxPyCheckForApp()) SWIG_fail;
23684 PyThreadState* __tstate = wxPyBeginAllowThreads();
23685 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
23686 wxPyEndAllowThreads(__tstate);
23687 if (PyErr_Occurred()) SWIG_fail;
23688 }
23689 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
23690 {
23691 if (temp1)
23692 delete arg1;
23693 }
23694 return resultobj;
23695 fail:
23696 {
23697 if (temp1)
23698 delete arg1;
23699 }
23700 return NULL;
23701 }
23702
23703
23704 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23705 PyObject *obj;
23706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23707 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
23708 return SWIG_Py_Void();
23709 }
23710
23711 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23712 return SWIG_Python_InitShadowInstance(args);
23713 }
23714
23715 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23716 PyObject *resultobj = 0;
23717 wxString const &arg1_defvalue = wxPyEmptyString ;
23718 wxString *arg1 = (wxString *) &arg1_defvalue ;
23719 int arg2 = (int) 0 ;
23720 int arg3 = (int) 0 ;
23721 wxString const &arg4_defvalue = wxPyEmptyString ;
23722 wxString *arg4 = (wxString *) &arg4_defvalue ;
23723 wxMetaFileDC *result = 0 ;
23724 bool temp1 = false ;
23725 int val2 ;
23726 int ecode2 = 0 ;
23727 int val3 ;
23728 int ecode3 = 0 ;
23729 bool temp4 = false ;
23730 PyObject * obj0 = 0 ;
23731 PyObject * obj1 = 0 ;
23732 PyObject * obj2 = 0 ;
23733 PyObject * obj3 = 0 ;
23734 char * kwnames[] = {
23735 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
23736 };
23737
23738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23739 if (obj0) {
23740 {
23741 arg1 = wxString_in_helper(obj0);
23742 if (arg1 == NULL) SWIG_fail;
23743 temp1 = true;
23744 }
23745 }
23746 if (obj1) {
23747 ecode2 = SWIG_AsVal_int(obj1, &val2);
23748 if (!SWIG_IsOK(ecode2)) {
23749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
23750 }
23751 arg2 = static_cast< int >(val2);
23752 }
23753 if (obj2) {
23754 ecode3 = SWIG_AsVal_int(obj2, &val3);
23755 if (!SWIG_IsOK(ecode3)) {
23756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
23757 }
23758 arg3 = static_cast< int >(val3);
23759 }
23760 if (obj3) {
23761 {
23762 arg4 = wxString_in_helper(obj3);
23763 if (arg4 == NULL) SWIG_fail;
23764 temp4 = true;
23765 }
23766 }
23767 {
23768 if (!wxPyCheckForApp()) SWIG_fail;
23769 PyThreadState* __tstate = wxPyBeginAllowThreads();
23770 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
23771 wxPyEndAllowThreads(__tstate);
23772 if (PyErr_Occurred()) SWIG_fail;
23773 }
23774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
23775 {
23776 if (temp1)
23777 delete arg1;
23778 }
23779 {
23780 if (temp4)
23781 delete arg4;
23782 }
23783 return resultobj;
23784 fail:
23785 {
23786 if (temp1)
23787 delete arg1;
23788 }
23789 {
23790 if (temp4)
23791 delete arg4;
23792 }
23793 return NULL;
23794 }
23795
23796
23797 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23798 PyObject *obj;
23799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23800 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
23801 return SWIG_Py_Void();
23802 }
23803
23804 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23805 return SWIG_Python_InitShadowInstance(args);
23806 }
23807
23808 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23809 PyObject *resultobj = 0;
23810 wxPrintData *arg1 = 0 ;
23811 wxPrinterDC *result = 0 ;
23812 void *argp1 = 0 ;
23813 int res1 = 0 ;
23814 PyObject * obj0 = 0 ;
23815 char * kwnames[] = {
23816 (char *) "printData", NULL
23817 };
23818
23819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
23820 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
23821 if (!SWIG_IsOK(res1)) {
23822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23823 }
23824 if (!argp1) {
23825 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
23826 }
23827 arg1 = reinterpret_cast< wxPrintData * >(argp1);
23828 {
23829 if (!wxPyCheckForApp()) SWIG_fail;
23830 PyThreadState* __tstate = wxPyBeginAllowThreads();
23831 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
23832 wxPyEndAllowThreads(__tstate);
23833 if (PyErr_Occurred()) SWIG_fail;
23834 }
23835 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
23836 return resultobj;
23837 fail:
23838 return NULL;
23839 }
23840
23841
23842 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23843 PyObject *obj;
23844 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23845 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
23846 return SWIG_Py_Void();
23847 }
23848
23849 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23850 return SWIG_Python_InitShadowInstance(args);
23851 }
23852
23853 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23854 PyObject *resultobj = 0;
23855 int arg1 ;
23856 int arg2 ;
23857 int arg3 = (int) true ;
23858 int arg4 = (int) 1 ;
23859 wxImageList *result = 0 ;
23860 int val1 ;
23861 int ecode1 = 0 ;
23862 int val2 ;
23863 int ecode2 = 0 ;
23864 int val3 ;
23865 int ecode3 = 0 ;
23866 int val4 ;
23867 int ecode4 = 0 ;
23868 PyObject * obj0 = 0 ;
23869 PyObject * obj1 = 0 ;
23870 PyObject * obj2 = 0 ;
23871 PyObject * obj3 = 0 ;
23872 char * kwnames[] = {
23873 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
23874 };
23875
23876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23877 ecode1 = SWIG_AsVal_int(obj0, &val1);
23878 if (!SWIG_IsOK(ecode1)) {
23879 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
23880 }
23881 arg1 = static_cast< int >(val1);
23882 ecode2 = SWIG_AsVal_int(obj1, &val2);
23883 if (!SWIG_IsOK(ecode2)) {
23884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
23885 }
23886 arg2 = static_cast< int >(val2);
23887 if (obj2) {
23888 ecode3 = SWIG_AsVal_int(obj2, &val3);
23889 if (!SWIG_IsOK(ecode3)) {
23890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
23891 }
23892 arg3 = static_cast< int >(val3);
23893 }
23894 if (obj3) {
23895 ecode4 = SWIG_AsVal_int(obj3, &val4);
23896 if (!SWIG_IsOK(ecode4)) {
23897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
23898 }
23899 arg4 = static_cast< int >(val4);
23900 }
23901 {
23902 if (!wxPyCheckForApp()) SWIG_fail;
23903 PyThreadState* __tstate = wxPyBeginAllowThreads();
23904 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
23905 wxPyEndAllowThreads(__tstate);
23906 if (PyErr_Occurred()) SWIG_fail;
23907 }
23908 {
23909 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
23910 }
23911 return resultobj;
23912 fail:
23913 return NULL;
23914 }
23915
23916
23917 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23918 PyObject *resultobj = 0;
23919 wxImageList *arg1 = (wxImageList *) 0 ;
23920 void *argp1 = 0 ;
23921 int res1 = 0 ;
23922 PyObject *swig_obj[1] ;
23923
23924 if (!args) SWIG_fail;
23925 swig_obj[0] = args;
23926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
23927 if (!SWIG_IsOK(res1)) {
23928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
23929 }
23930 arg1 = reinterpret_cast< wxImageList * >(argp1);
23931 {
23932 PyThreadState* __tstate = wxPyBeginAllowThreads();
23933 delete arg1;
23934
23935 wxPyEndAllowThreads(__tstate);
23936 if (PyErr_Occurred()) SWIG_fail;
23937 }
23938 resultobj = SWIG_Py_Void();
23939 return resultobj;
23940 fail:
23941 return NULL;
23942 }
23943
23944
23945 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23946 PyObject *resultobj = 0;
23947 wxImageList *arg1 = (wxImageList *) 0 ;
23948 wxBitmap *arg2 = 0 ;
23949 wxBitmap const &arg3_defvalue = wxNullBitmap ;
23950 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
23951 int result;
23952 void *argp1 = 0 ;
23953 int res1 = 0 ;
23954 void *argp2 = 0 ;
23955 int res2 = 0 ;
23956 void *argp3 = 0 ;
23957 int res3 = 0 ;
23958 PyObject * obj0 = 0 ;
23959 PyObject * obj1 = 0 ;
23960 PyObject * obj2 = 0 ;
23961 char * kwnames[] = {
23962 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
23963 };
23964
23965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
23967 if (!SWIG_IsOK(res1)) {
23968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
23969 }
23970 arg1 = reinterpret_cast< wxImageList * >(argp1);
23971 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23972 if (!SWIG_IsOK(res2)) {
23973 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23974 }
23975 if (!argp2) {
23976 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23977 }
23978 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23979 if (obj2) {
23980 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
23981 if (!SWIG_IsOK(res3)) {
23982 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
23983 }
23984 if (!argp3) {
23985 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
23986 }
23987 arg3 = reinterpret_cast< wxBitmap * >(argp3);
23988 }
23989 {
23990 PyThreadState* __tstate = wxPyBeginAllowThreads();
23991 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
23992 wxPyEndAllowThreads(__tstate);
23993 if (PyErr_Occurred()) SWIG_fail;
23994 }
23995 resultobj = SWIG_From_int(static_cast< int >(result));
23996 return resultobj;
23997 fail:
23998 return NULL;
23999 }
24000
24001
24002 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24003 PyObject *resultobj = 0;
24004 wxImageList *arg1 = (wxImageList *) 0 ;
24005 wxBitmap *arg2 = 0 ;
24006 wxColour *arg3 = 0 ;
24007 int result;
24008 void *argp1 = 0 ;
24009 int res1 = 0 ;
24010 void *argp2 = 0 ;
24011 int res2 = 0 ;
24012 wxColour temp3 ;
24013 PyObject * obj0 = 0 ;
24014 PyObject * obj1 = 0 ;
24015 PyObject * obj2 = 0 ;
24016 char * kwnames[] = {
24017 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
24018 };
24019
24020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24022 if (!SWIG_IsOK(res1)) {
24023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
24024 }
24025 arg1 = reinterpret_cast< wxImageList * >(argp1);
24026 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24027 if (!SWIG_IsOK(res2)) {
24028 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24029 }
24030 if (!argp2) {
24031 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24032 }
24033 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24034 {
24035 arg3 = &temp3;
24036 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24037 }
24038 {
24039 PyThreadState* __tstate = wxPyBeginAllowThreads();
24040 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
24041 wxPyEndAllowThreads(__tstate);
24042 if (PyErr_Occurred()) SWIG_fail;
24043 }
24044 resultobj = SWIG_From_int(static_cast< int >(result));
24045 return resultobj;
24046 fail:
24047 return NULL;
24048 }
24049
24050
24051 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24052 PyObject *resultobj = 0;
24053 wxImageList *arg1 = (wxImageList *) 0 ;
24054 wxIcon *arg2 = 0 ;
24055 int result;
24056 void *argp1 = 0 ;
24057 int res1 = 0 ;
24058 void *argp2 = 0 ;
24059 int res2 = 0 ;
24060 PyObject * obj0 = 0 ;
24061 PyObject * obj1 = 0 ;
24062 char * kwnames[] = {
24063 (char *) "self",(char *) "icon", NULL
24064 };
24065
24066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24068 if (!SWIG_IsOK(res1)) {
24069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
24070 }
24071 arg1 = reinterpret_cast< wxImageList * >(argp1);
24072 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
24073 if (!SWIG_IsOK(res2)) {
24074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24075 }
24076 if (!argp2) {
24077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
24078 }
24079 arg2 = reinterpret_cast< wxIcon * >(argp2);
24080 {
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 result = (int)(arg1)->Add((wxIcon const &)*arg2);
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 resultobj = SWIG_From_int(static_cast< int >(result));
24087 return resultobj;
24088 fail:
24089 return NULL;
24090 }
24091
24092
24093 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24094 PyObject *resultobj = 0;
24095 wxImageList *arg1 = (wxImageList *) 0 ;
24096 int arg2 ;
24097 SwigValueWrapper<wxBitmap > result;
24098 void *argp1 = 0 ;
24099 int res1 = 0 ;
24100 int val2 ;
24101 int ecode2 = 0 ;
24102 PyObject * obj0 = 0 ;
24103 PyObject * obj1 = 0 ;
24104 char * kwnames[] = {
24105 (char *) "self",(char *) "index", NULL
24106 };
24107
24108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
24109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24110 if (!SWIG_IsOK(res1)) {
24111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
24112 }
24113 arg1 = reinterpret_cast< wxImageList * >(argp1);
24114 ecode2 = SWIG_AsVal_int(obj1, &val2);
24115 if (!SWIG_IsOK(ecode2)) {
24116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
24117 }
24118 arg2 = static_cast< int >(val2);
24119 {
24120 PyThreadState* __tstate = wxPyBeginAllowThreads();
24121 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
24122 wxPyEndAllowThreads(__tstate);
24123 if (PyErr_Occurred()) SWIG_fail;
24124 }
24125 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
24126 return resultobj;
24127 fail:
24128 return NULL;
24129 }
24130
24131
24132 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24133 PyObject *resultobj = 0;
24134 wxImageList *arg1 = (wxImageList *) 0 ;
24135 int arg2 ;
24136 wxIcon result;
24137 void *argp1 = 0 ;
24138 int res1 = 0 ;
24139 int val2 ;
24140 int ecode2 = 0 ;
24141 PyObject * obj0 = 0 ;
24142 PyObject * obj1 = 0 ;
24143 char * kwnames[] = {
24144 (char *) "self",(char *) "index", NULL
24145 };
24146
24147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
24148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24149 if (!SWIG_IsOK(res1)) {
24150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
24151 }
24152 arg1 = reinterpret_cast< wxImageList * >(argp1);
24153 ecode2 = SWIG_AsVal_int(obj1, &val2);
24154 if (!SWIG_IsOK(ecode2)) {
24155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
24156 }
24157 arg2 = static_cast< int >(val2);
24158 {
24159 PyThreadState* __tstate = wxPyBeginAllowThreads();
24160 result = ((wxImageList const *)arg1)->GetIcon(arg2);
24161 wxPyEndAllowThreads(__tstate);
24162 if (PyErr_Occurred()) SWIG_fail;
24163 }
24164 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
24165 return resultobj;
24166 fail:
24167 return NULL;
24168 }
24169
24170
24171 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24172 PyObject *resultobj = 0;
24173 wxImageList *arg1 = (wxImageList *) 0 ;
24174 int arg2 ;
24175 wxBitmap *arg3 = 0 ;
24176 wxBitmap const &arg4_defvalue = wxNullBitmap ;
24177 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
24178 bool result;
24179 void *argp1 = 0 ;
24180 int res1 = 0 ;
24181 int val2 ;
24182 int ecode2 = 0 ;
24183 void *argp3 = 0 ;
24184 int res3 = 0 ;
24185 void *argp4 = 0 ;
24186 int res4 = 0 ;
24187 PyObject * obj0 = 0 ;
24188 PyObject * obj1 = 0 ;
24189 PyObject * obj2 = 0 ;
24190 PyObject * obj3 = 0 ;
24191 char * kwnames[] = {
24192 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
24193 };
24194
24195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24197 if (!SWIG_IsOK(res1)) {
24198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
24199 }
24200 arg1 = reinterpret_cast< wxImageList * >(argp1);
24201 ecode2 = SWIG_AsVal_int(obj1, &val2);
24202 if (!SWIG_IsOK(ecode2)) {
24203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
24204 }
24205 arg2 = static_cast< int >(val2);
24206 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
24207 if (!SWIG_IsOK(res3)) {
24208 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24209 }
24210 if (!argp3) {
24211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
24212 }
24213 arg3 = reinterpret_cast< wxBitmap * >(argp3);
24214 if (obj3) {
24215 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
24216 if (!SWIG_IsOK(res4)) {
24217 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24218 }
24219 if (!argp4) {
24220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
24221 }
24222 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24223 }
24224 {
24225 PyThreadState* __tstate = wxPyBeginAllowThreads();
24226 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
24227 wxPyEndAllowThreads(__tstate);
24228 if (PyErr_Occurred()) SWIG_fail;
24229 }
24230 {
24231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24232 }
24233 return resultobj;
24234 fail:
24235 return NULL;
24236 }
24237
24238
24239 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24240 PyObject *resultobj = 0;
24241 wxImageList *arg1 = (wxImageList *) 0 ;
24242 int arg2 ;
24243 wxDC *arg3 = 0 ;
24244 int arg4 ;
24245 int arg5 ;
24246 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
24247 bool arg7 = (bool) (bool)false ;
24248 bool result;
24249 void *argp1 = 0 ;
24250 int res1 = 0 ;
24251 int val2 ;
24252 int ecode2 = 0 ;
24253 void *argp3 = 0 ;
24254 int res3 = 0 ;
24255 int val4 ;
24256 int ecode4 = 0 ;
24257 int val5 ;
24258 int ecode5 = 0 ;
24259 int val6 ;
24260 int ecode6 = 0 ;
24261 bool val7 ;
24262 int ecode7 = 0 ;
24263 PyObject * obj0 = 0 ;
24264 PyObject * obj1 = 0 ;
24265 PyObject * obj2 = 0 ;
24266 PyObject * obj3 = 0 ;
24267 PyObject * obj4 = 0 ;
24268 PyObject * obj5 = 0 ;
24269 PyObject * obj6 = 0 ;
24270 char * kwnames[] = {
24271 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
24272 };
24273
24274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24276 if (!SWIG_IsOK(res1)) {
24277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
24278 }
24279 arg1 = reinterpret_cast< wxImageList * >(argp1);
24280 ecode2 = SWIG_AsVal_int(obj1, &val2);
24281 if (!SWIG_IsOK(ecode2)) {
24282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
24283 }
24284 arg2 = static_cast< int >(val2);
24285 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24286 if (!SWIG_IsOK(res3)) {
24287 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24288 }
24289 if (!argp3) {
24290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
24291 }
24292 arg3 = reinterpret_cast< wxDC * >(argp3);
24293 ecode4 = SWIG_AsVal_int(obj3, &val4);
24294 if (!SWIG_IsOK(ecode4)) {
24295 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
24296 }
24297 arg4 = static_cast< int >(val4);
24298 ecode5 = SWIG_AsVal_int(obj4, &val5);
24299 if (!SWIG_IsOK(ecode5)) {
24300 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
24301 }
24302 arg5 = static_cast< int >(val5);
24303 if (obj5) {
24304 ecode6 = SWIG_AsVal_int(obj5, &val6);
24305 if (!SWIG_IsOK(ecode6)) {
24306 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
24307 }
24308 arg6 = static_cast< int >(val6);
24309 }
24310 if (obj6) {
24311 ecode7 = SWIG_AsVal_bool(obj6, &val7);
24312 if (!SWIG_IsOK(ecode7)) {
24313 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
24314 }
24315 arg7 = static_cast< bool >(val7);
24316 }
24317 {
24318 PyThreadState* __tstate = wxPyBeginAllowThreads();
24319 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
24320 wxPyEndAllowThreads(__tstate);
24321 if (PyErr_Occurred()) SWIG_fail;
24322 }
24323 {
24324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24325 }
24326 return resultobj;
24327 fail:
24328 return NULL;
24329 }
24330
24331
24332 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24333 PyObject *resultobj = 0;
24334 wxImageList *arg1 = (wxImageList *) 0 ;
24335 int result;
24336 void *argp1 = 0 ;
24337 int res1 = 0 ;
24338 PyObject *swig_obj[1] ;
24339
24340 if (!args) SWIG_fail;
24341 swig_obj[0] = args;
24342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24343 if (!SWIG_IsOK(res1)) {
24344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
24345 }
24346 arg1 = reinterpret_cast< wxImageList * >(argp1);
24347 {
24348 PyThreadState* __tstate = wxPyBeginAllowThreads();
24349 result = (int)(arg1)->GetImageCount();
24350 wxPyEndAllowThreads(__tstate);
24351 if (PyErr_Occurred()) SWIG_fail;
24352 }
24353 resultobj = SWIG_From_int(static_cast< int >(result));
24354 return resultobj;
24355 fail:
24356 return NULL;
24357 }
24358
24359
24360 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24361 PyObject *resultobj = 0;
24362 wxImageList *arg1 = (wxImageList *) 0 ;
24363 int arg2 ;
24364 bool result;
24365 void *argp1 = 0 ;
24366 int res1 = 0 ;
24367 int val2 ;
24368 int ecode2 = 0 ;
24369 PyObject * obj0 = 0 ;
24370 PyObject * obj1 = 0 ;
24371 char * kwnames[] = {
24372 (char *) "self",(char *) "index", NULL
24373 };
24374
24375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
24376 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24377 if (!SWIG_IsOK(res1)) {
24378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
24379 }
24380 arg1 = reinterpret_cast< wxImageList * >(argp1);
24381 ecode2 = SWIG_AsVal_int(obj1, &val2);
24382 if (!SWIG_IsOK(ecode2)) {
24383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
24384 }
24385 arg2 = static_cast< int >(val2);
24386 {
24387 PyThreadState* __tstate = wxPyBeginAllowThreads();
24388 result = (bool)(arg1)->Remove(arg2);
24389 wxPyEndAllowThreads(__tstate);
24390 if (PyErr_Occurred()) SWIG_fail;
24391 }
24392 {
24393 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24394 }
24395 return resultobj;
24396 fail:
24397 return NULL;
24398 }
24399
24400
24401 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24402 PyObject *resultobj = 0;
24403 wxImageList *arg1 = (wxImageList *) 0 ;
24404 bool result;
24405 void *argp1 = 0 ;
24406 int res1 = 0 ;
24407 PyObject *swig_obj[1] ;
24408
24409 if (!args) SWIG_fail;
24410 swig_obj[0] = args;
24411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24412 if (!SWIG_IsOK(res1)) {
24413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
24414 }
24415 arg1 = reinterpret_cast< wxImageList * >(argp1);
24416 {
24417 PyThreadState* __tstate = wxPyBeginAllowThreads();
24418 result = (bool)(arg1)->RemoveAll();
24419 wxPyEndAllowThreads(__tstate);
24420 if (PyErr_Occurred()) SWIG_fail;
24421 }
24422 {
24423 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24424 }
24425 return resultobj;
24426 fail:
24427 return NULL;
24428 }
24429
24430
24431 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24432 PyObject *resultobj = 0;
24433 wxImageList *arg1 = (wxImageList *) 0 ;
24434 int arg2 ;
24435 int *arg3 = 0 ;
24436 int *arg4 = 0 ;
24437 void *argp1 = 0 ;
24438 int res1 = 0 ;
24439 int val2 ;
24440 int ecode2 = 0 ;
24441 int temp3 ;
24442 int res3 = SWIG_TMPOBJ ;
24443 int temp4 ;
24444 int res4 = SWIG_TMPOBJ ;
24445 PyObject * obj0 = 0 ;
24446 PyObject * obj1 = 0 ;
24447 char * kwnames[] = {
24448 (char *) "self",(char *) "index", NULL
24449 };
24450
24451 arg3 = &temp3;
24452 arg4 = &temp4;
24453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
24454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
24455 if (!SWIG_IsOK(res1)) {
24456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
24457 }
24458 arg1 = reinterpret_cast< wxImageList * >(argp1);
24459 ecode2 = SWIG_AsVal_int(obj1, &val2);
24460 if (!SWIG_IsOK(ecode2)) {
24461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
24462 }
24463 arg2 = static_cast< int >(val2);
24464 {
24465 PyThreadState* __tstate = wxPyBeginAllowThreads();
24466 (arg1)->GetSize(arg2,*arg3,*arg4);
24467 wxPyEndAllowThreads(__tstate);
24468 if (PyErr_Occurred()) SWIG_fail;
24469 }
24470 resultobj = SWIG_Py_Void();
24471 if (SWIG_IsTmpObj(res3)) {
24472 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
24473 } else {
24474 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24475 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
24476 }
24477 if (SWIG_IsTmpObj(res4)) {
24478 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
24479 } else {
24480 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
24481 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
24482 }
24483 return resultobj;
24484 fail:
24485 return NULL;
24486 }
24487
24488
24489 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24490 PyObject *obj;
24491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24492 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
24493 return SWIG_Py_Void();
24494 }
24495
24496 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24497 return SWIG_Python_InitShadowInstance(args);
24498 }
24499
24500 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24501 PyObject *resultobj = 0;
24502 wxStockGDI *result = 0 ;
24503
24504 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
24505 {
24506 PyThreadState* __tstate = wxPyBeginAllowThreads();
24507 result = (wxStockGDI *)new wxStockGDI();
24508 wxPyEndAllowThreads(__tstate);
24509 if (PyErr_Occurred()) SWIG_fail;
24510 }
24511 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
24512 return resultobj;
24513 fail:
24514 return NULL;
24515 }
24516
24517
24518 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24519 PyObject *resultobj = 0;
24520 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24521 void *argp1 = 0 ;
24522 int res1 = 0 ;
24523 PyObject *swig_obj[1] ;
24524
24525 if (!args) SWIG_fail;
24526 swig_obj[0] = args;
24527 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
24528 if (!SWIG_IsOK(res1)) {
24529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24530 }
24531 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24532 {
24533 PyThreadState* __tstate = wxPyBeginAllowThreads();
24534 delete arg1;
24535
24536 wxPyEndAllowThreads(__tstate);
24537 if (PyErr_Occurred()) SWIG_fail;
24538 }
24539 resultobj = SWIG_Py_Void();
24540 return resultobj;
24541 fail:
24542 return NULL;
24543 }
24544
24545
24546 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24547 PyObject *resultobj = 0;
24548
24549 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
24550 {
24551 PyThreadState* __tstate = wxPyBeginAllowThreads();
24552 wxStockGDI::DeleteAll();
24553 wxPyEndAllowThreads(__tstate);
24554 if (PyErr_Occurred()) SWIG_fail;
24555 }
24556 resultobj = SWIG_Py_Void();
24557 return resultobj;
24558 fail:
24559 return NULL;
24560 }
24561
24562
24563 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24564 PyObject *resultobj = 0;
24565 wxStockGDI *result = 0 ;
24566
24567 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
24568 {
24569 PyThreadState* __tstate = wxPyBeginAllowThreads();
24570 {
24571 wxStockGDI &_result_ref = wxStockGDI::instance();
24572 result = (wxStockGDI *) &_result_ref;
24573 }
24574 wxPyEndAllowThreads(__tstate);
24575 if (PyErr_Occurred()) SWIG_fail;
24576 }
24577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
24578 return resultobj;
24579 fail:
24580 return NULL;
24581 }
24582
24583
24584 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24585 PyObject *resultobj = 0;
24586 wxStockGDI::Item arg1 ;
24587 wxBrush *result = 0 ;
24588 int val1 ;
24589 int ecode1 = 0 ;
24590 PyObject * obj0 = 0 ;
24591 char * kwnames[] = {
24592 (char *) "item", NULL
24593 };
24594
24595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
24596 ecode1 = SWIG_AsVal_int(obj0, &val1);
24597 if (!SWIG_IsOK(ecode1)) {
24598 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24599 }
24600 arg1 = static_cast< wxStockGDI::Item >(val1);
24601 {
24602 PyThreadState* __tstate = wxPyBeginAllowThreads();
24603 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
24604 wxPyEndAllowThreads(__tstate);
24605 if (PyErr_Occurred()) SWIG_fail;
24606 }
24607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
24608 return resultobj;
24609 fail:
24610 return NULL;
24611 }
24612
24613
24614 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24615 PyObject *resultobj = 0;
24616 wxStockGDI::Item arg1 ;
24617 wxColour *result = 0 ;
24618 int val1 ;
24619 int ecode1 = 0 ;
24620 PyObject * obj0 = 0 ;
24621 char * kwnames[] = {
24622 (char *) "item", NULL
24623 };
24624
24625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
24626 ecode1 = SWIG_AsVal_int(obj0, &val1);
24627 if (!SWIG_IsOK(ecode1)) {
24628 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24629 }
24630 arg1 = static_cast< wxStockGDI::Item >(val1);
24631 {
24632 PyThreadState* __tstate = wxPyBeginAllowThreads();
24633 result = (wxColour *)wxStockGDI::GetColour(arg1);
24634 wxPyEndAllowThreads(__tstate);
24635 if (PyErr_Occurred()) SWIG_fail;
24636 }
24637 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
24638 return resultobj;
24639 fail:
24640 return NULL;
24641 }
24642
24643
24644 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24645 PyObject *resultobj = 0;
24646 wxStockGDI::Item arg1 ;
24647 wxCursor *result = 0 ;
24648 int val1 ;
24649 int ecode1 = 0 ;
24650 PyObject * obj0 = 0 ;
24651 char * kwnames[] = {
24652 (char *) "item", NULL
24653 };
24654
24655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
24656 ecode1 = SWIG_AsVal_int(obj0, &val1);
24657 if (!SWIG_IsOK(ecode1)) {
24658 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24659 }
24660 arg1 = static_cast< wxStockGDI::Item >(val1);
24661 {
24662 PyThreadState* __tstate = wxPyBeginAllowThreads();
24663 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
24664 wxPyEndAllowThreads(__tstate);
24665 if (PyErr_Occurred()) SWIG_fail;
24666 }
24667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
24668 return resultobj;
24669 fail:
24670 return NULL;
24671 }
24672
24673
24674 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24675 PyObject *resultobj = 0;
24676 wxStockGDI::Item arg1 ;
24677 wxPen *result = 0 ;
24678 int val1 ;
24679 int ecode1 = 0 ;
24680 PyObject * obj0 = 0 ;
24681 char * kwnames[] = {
24682 (char *) "item", NULL
24683 };
24684
24685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
24686 ecode1 = SWIG_AsVal_int(obj0, &val1);
24687 if (!SWIG_IsOK(ecode1)) {
24688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
24689 }
24690 arg1 = static_cast< wxStockGDI::Item >(val1);
24691 {
24692 PyThreadState* __tstate = wxPyBeginAllowThreads();
24693 result = (wxPen *)wxStockGDI::GetPen(arg1);
24694 wxPyEndAllowThreads(__tstate);
24695 if (PyErr_Occurred()) SWIG_fail;
24696 }
24697 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
24698 return resultobj;
24699 fail:
24700 return NULL;
24701 }
24702
24703
24704 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24705 PyObject *resultobj = 0;
24706 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
24707 wxStockGDI::Item arg2 ;
24708 wxFont *result = 0 ;
24709 void *argp1 = 0 ;
24710 int res1 = 0 ;
24711 int val2 ;
24712 int ecode2 = 0 ;
24713 PyObject * obj0 = 0 ;
24714 PyObject * obj1 = 0 ;
24715 char * kwnames[] = {
24716 (char *) "self",(char *) "item", NULL
24717 };
24718
24719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
24720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
24721 if (!SWIG_IsOK(res1)) {
24722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
24723 }
24724 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
24725 ecode2 = SWIG_AsVal_int(obj1, &val2);
24726 if (!SWIG_IsOK(ecode2)) {
24727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
24728 }
24729 arg2 = static_cast< wxStockGDI::Item >(val2);
24730 {
24731 PyThreadState* __tstate = wxPyBeginAllowThreads();
24732 result = (wxFont *)(arg1)->GetFont(arg2);
24733 wxPyEndAllowThreads(__tstate);
24734 if (PyErr_Occurred()) SWIG_fail;
24735 }
24736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
24737 return resultobj;
24738 fail:
24739 return NULL;
24740 }
24741
24742
24743 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24744 PyObject *obj;
24745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24746 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
24747 return SWIG_Py_Void();
24748 }
24749
24750 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24751 return SWIG_Python_InitShadowInstance(args);
24752 }
24753
24754 SWIGINTERN int NullBitmap_set(PyObject *) {
24755 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
24756 return 1;
24757 }
24758
24759
24760 SWIGINTERN PyObject *NullBitmap_get(void) {
24761 PyObject *pyobj = 0;
24762
24763 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
24764 return pyobj;
24765 }
24766
24767
24768 SWIGINTERN int NullIcon_set(PyObject *) {
24769 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
24770 return 1;
24771 }
24772
24773
24774 SWIGINTERN PyObject *NullIcon_get(void) {
24775 PyObject *pyobj = 0;
24776
24777 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
24778 return pyobj;
24779 }
24780
24781
24782 SWIGINTERN int NullCursor_set(PyObject *) {
24783 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
24784 return 1;
24785 }
24786
24787
24788 SWIGINTERN PyObject *NullCursor_get(void) {
24789 PyObject *pyobj = 0;
24790
24791 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
24792 return pyobj;
24793 }
24794
24795
24796 SWIGINTERN int NullPen_set(PyObject *) {
24797 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
24798 return 1;
24799 }
24800
24801
24802 SWIGINTERN PyObject *NullPen_get(void) {
24803 PyObject *pyobj = 0;
24804
24805 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
24806 return pyobj;
24807 }
24808
24809
24810 SWIGINTERN int NullBrush_set(PyObject *) {
24811 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
24812 return 1;
24813 }
24814
24815
24816 SWIGINTERN PyObject *NullBrush_get(void) {
24817 PyObject *pyobj = 0;
24818
24819 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
24820 return pyobj;
24821 }
24822
24823
24824 SWIGINTERN int NullPalette_set(PyObject *) {
24825 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
24826 return 1;
24827 }
24828
24829
24830 SWIGINTERN PyObject *NullPalette_get(void) {
24831 PyObject *pyobj = 0;
24832
24833 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
24834 return pyobj;
24835 }
24836
24837
24838 SWIGINTERN int NullFont_set(PyObject *) {
24839 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
24840 return 1;
24841 }
24842
24843
24844 SWIGINTERN PyObject *NullFont_get(void) {
24845 PyObject *pyobj = 0;
24846
24847 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
24848 return pyobj;
24849 }
24850
24851
24852 SWIGINTERN int NullColour_set(PyObject *) {
24853 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
24854 return 1;
24855 }
24856
24857
24858 SWIGINTERN PyObject *NullColour_get(void) {
24859 PyObject *pyobj = 0;
24860
24861 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
24862 return pyobj;
24863 }
24864
24865
24866 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24867 PyObject *resultobj = 0;
24868 wxGDIObjListBase *result = 0 ;
24869
24870 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
24871 {
24872 PyThreadState* __tstate = wxPyBeginAllowThreads();
24873 result = (wxGDIObjListBase *)new wxGDIObjListBase();
24874 wxPyEndAllowThreads(__tstate);
24875 if (PyErr_Occurred()) SWIG_fail;
24876 }
24877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
24878 return resultobj;
24879 fail:
24880 return NULL;
24881 }
24882
24883
24884 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24885 PyObject *resultobj = 0;
24886 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
24887 void *argp1 = 0 ;
24888 int res1 = 0 ;
24889 PyObject *swig_obj[1] ;
24890
24891 if (!args) SWIG_fail;
24892 swig_obj[0] = args;
24893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
24894 if (!SWIG_IsOK(res1)) {
24895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
24896 }
24897 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
24898 {
24899 PyThreadState* __tstate = wxPyBeginAllowThreads();
24900 delete arg1;
24901
24902 wxPyEndAllowThreads(__tstate);
24903 if (PyErr_Occurred()) SWIG_fail;
24904 }
24905 resultobj = SWIG_Py_Void();
24906 return resultobj;
24907 fail:
24908 return NULL;
24909 }
24910
24911
24912 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24913 PyObject *obj;
24914 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24915 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
24916 return SWIG_Py_Void();
24917 }
24918
24919 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24920 return SWIG_Python_InitShadowInstance(args);
24921 }
24922
24923 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24924 PyObject *resultobj = 0;
24925 wxPenList *arg1 = (wxPenList *) 0 ;
24926 wxColour *arg2 = 0 ;
24927 int arg3 ;
24928 int arg4 ;
24929 wxPen *result = 0 ;
24930 void *argp1 = 0 ;
24931 int res1 = 0 ;
24932 wxColour temp2 ;
24933 int val3 ;
24934 int ecode3 = 0 ;
24935 int val4 ;
24936 int ecode4 = 0 ;
24937 PyObject * obj0 = 0 ;
24938 PyObject * obj1 = 0 ;
24939 PyObject * obj2 = 0 ;
24940 PyObject * obj3 = 0 ;
24941 char * kwnames[] = {
24942 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
24943 };
24944
24945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
24947 if (!SWIG_IsOK(res1)) {
24948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
24949 }
24950 arg1 = reinterpret_cast< wxPenList * >(argp1);
24951 {
24952 arg2 = &temp2;
24953 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24954 }
24955 ecode3 = SWIG_AsVal_int(obj2, &val3);
24956 if (!SWIG_IsOK(ecode3)) {
24957 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
24958 }
24959 arg3 = static_cast< int >(val3);
24960 ecode4 = SWIG_AsVal_int(obj3, &val4);
24961 if (!SWIG_IsOK(ecode4)) {
24962 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
24963 }
24964 arg4 = static_cast< int >(val4);
24965 {
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
24967 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
24968 wxPyEndAllowThreads(__tstate);
24969 if (PyErr_Occurred()) SWIG_fail;
24970 }
24971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
24972 return resultobj;
24973 fail:
24974 return NULL;
24975 }
24976
24977
24978 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24979 PyObject *resultobj = 0;
24980 wxPenList *arg1 = (wxPenList *) 0 ;
24981 wxPen *arg2 = (wxPen *) 0 ;
24982 void *argp1 = 0 ;
24983 int res1 = 0 ;
24984 void *argp2 = 0 ;
24985 int res2 = 0 ;
24986 PyObject * obj0 = 0 ;
24987 PyObject * obj1 = 0 ;
24988 char * kwnames[] = {
24989 (char *) "self",(char *) "pen", NULL
24990 };
24991
24992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
24993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
24994 if (!SWIG_IsOK(res1)) {
24995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
24996 }
24997 arg1 = reinterpret_cast< wxPenList * >(argp1);
24998 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
24999 if (!SWIG_IsOK(res2)) {
25000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
25001 }
25002 arg2 = reinterpret_cast< wxPen * >(argp2);
25003 {
25004 PyThreadState* __tstate = wxPyBeginAllowThreads();
25005 (arg1)->AddPen(arg2);
25006 wxPyEndAllowThreads(__tstate);
25007 if (PyErr_Occurred()) SWIG_fail;
25008 }
25009 resultobj = SWIG_Py_Void();
25010 return resultobj;
25011 fail:
25012 return NULL;
25013 }
25014
25015
25016 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25017 PyObject *resultobj = 0;
25018 wxPenList *arg1 = (wxPenList *) 0 ;
25019 wxPen *arg2 = (wxPen *) 0 ;
25020 void *argp1 = 0 ;
25021 int res1 = 0 ;
25022 void *argp2 = 0 ;
25023 int res2 = 0 ;
25024 PyObject * obj0 = 0 ;
25025 PyObject * obj1 = 0 ;
25026 char * kwnames[] = {
25027 (char *) "self",(char *) "pen", NULL
25028 };
25029
25030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
25031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
25032 if (!SWIG_IsOK(res1)) {
25033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
25034 }
25035 arg1 = reinterpret_cast< wxPenList * >(argp1);
25036 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
25037 if (!SWIG_IsOK(res2)) {
25038 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
25039 }
25040 arg2 = reinterpret_cast< wxPen * >(argp2);
25041 {
25042 PyThreadState* __tstate = wxPyBeginAllowThreads();
25043 (arg1)->RemovePen(arg2);
25044 wxPyEndAllowThreads(__tstate);
25045 if (PyErr_Occurred()) SWIG_fail;
25046 }
25047 resultobj = SWIG_Py_Void();
25048 return resultobj;
25049 fail:
25050 return NULL;
25051 }
25052
25053
25054 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25055 PyObject *obj;
25056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25057 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
25058 return SWIG_Py_Void();
25059 }
25060
25061 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25062 PyObject *resultobj = 0;
25063 wxBrushList *arg1 = (wxBrushList *) 0 ;
25064 wxColour *arg2 = 0 ;
25065 int arg3 = (int) wxSOLID ;
25066 wxBrush *result = 0 ;
25067 void *argp1 = 0 ;
25068 int res1 = 0 ;
25069 wxColour temp2 ;
25070 int val3 ;
25071 int ecode3 = 0 ;
25072 PyObject * obj0 = 0 ;
25073 PyObject * obj1 = 0 ;
25074 PyObject * obj2 = 0 ;
25075 char * kwnames[] = {
25076 (char *) "self",(char *) "colour",(char *) "style", NULL
25077 };
25078
25079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25081 if (!SWIG_IsOK(res1)) {
25082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25083 }
25084 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25085 {
25086 arg2 = &temp2;
25087 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25088 }
25089 if (obj2) {
25090 ecode3 = SWIG_AsVal_int(obj2, &val3);
25091 if (!SWIG_IsOK(ecode3)) {
25092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
25093 }
25094 arg3 = static_cast< int >(val3);
25095 }
25096 {
25097 PyThreadState* __tstate = wxPyBeginAllowThreads();
25098 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
25099 wxPyEndAllowThreads(__tstate);
25100 if (PyErr_Occurred()) SWIG_fail;
25101 }
25102 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
25103 return resultobj;
25104 fail:
25105 return NULL;
25106 }
25107
25108
25109 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25110 PyObject *resultobj = 0;
25111 wxBrushList *arg1 = (wxBrushList *) 0 ;
25112 wxBrush *arg2 = (wxBrush *) 0 ;
25113 void *argp1 = 0 ;
25114 int res1 = 0 ;
25115 void *argp2 = 0 ;
25116 int res2 = 0 ;
25117 PyObject * obj0 = 0 ;
25118 PyObject * obj1 = 0 ;
25119 char * kwnames[] = {
25120 (char *) "self",(char *) "brush", NULL
25121 };
25122
25123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25125 if (!SWIG_IsOK(res1)) {
25126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25127 }
25128 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25129 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25130 if (!SWIG_IsOK(res2)) {
25131 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25132 }
25133 arg2 = reinterpret_cast< wxBrush * >(argp2);
25134 {
25135 PyThreadState* __tstate = wxPyBeginAllowThreads();
25136 (arg1)->AddBrush(arg2);
25137 wxPyEndAllowThreads(__tstate);
25138 if (PyErr_Occurred()) SWIG_fail;
25139 }
25140 resultobj = SWIG_Py_Void();
25141 return resultobj;
25142 fail:
25143 return NULL;
25144 }
25145
25146
25147 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25148 PyObject *resultobj = 0;
25149 wxBrushList *arg1 = (wxBrushList *) 0 ;
25150 wxBrush *arg2 = (wxBrush *) 0 ;
25151 void *argp1 = 0 ;
25152 int res1 = 0 ;
25153 void *argp2 = 0 ;
25154 int res2 = 0 ;
25155 PyObject * obj0 = 0 ;
25156 PyObject * obj1 = 0 ;
25157 char * kwnames[] = {
25158 (char *) "self",(char *) "brush", NULL
25159 };
25160
25161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
25162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
25163 if (!SWIG_IsOK(res1)) {
25164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
25165 }
25166 arg1 = reinterpret_cast< wxBrushList * >(argp1);
25167 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
25168 if (!SWIG_IsOK(res2)) {
25169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
25170 }
25171 arg2 = reinterpret_cast< wxBrush * >(argp2);
25172 {
25173 PyThreadState* __tstate = wxPyBeginAllowThreads();
25174 (arg1)->RemoveBrush(arg2);
25175 wxPyEndAllowThreads(__tstate);
25176 if (PyErr_Occurred()) SWIG_fail;
25177 }
25178 resultobj = SWIG_Py_Void();
25179 return resultobj;
25180 fail:
25181 return NULL;
25182 }
25183
25184
25185 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25186 PyObject *obj;
25187 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25188 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
25189 return SWIG_Py_Void();
25190 }
25191
25192 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25193 PyObject *resultobj = 0;
25194 wxFontList *arg1 = (wxFontList *) 0 ;
25195 int arg2 ;
25196 int arg3 ;
25197 int arg4 ;
25198 int arg5 ;
25199 bool arg6 = (bool) false ;
25200 wxString const &arg7_defvalue = wxPyEmptyString ;
25201 wxString *arg7 = (wxString *) &arg7_defvalue ;
25202 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
25203 wxFont *result = 0 ;
25204 void *argp1 = 0 ;
25205 int res1 = 0 ;
25206 int val2 ;
25207 int ecode2 = 0 ;
25208 int val3 ;
25209 int ecode3 = 0 ;
25210 int val4 ;
25211 int ecode4 = 0 ;
25212 int val5 ;
25213 int ecode5 = 0 ;
25214 bool val6 ;
25215 int ecode6 = 0 ;
25216 bool temp7 = false ;
25217 int val8 ;
25218 int ecode8 = 0 ;
25219 PyObject * obj0 = 0 ;
25220 PyObject * obj1 = 0 ;
25221 PyObject * obj2 = 0 ;
25222 PyObject * obj3 = 0 ;
25223 PyObject * obj4 = 0 ;
25224 PyObject * obj5 = 0 ;
25225 PyObject * obj6 = 0 ;
25226 PyObject * obj7 = 0 ;
25227 char * kwnames[] = {
25228 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
25229 };
25230
25231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
25232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25233 if (!SWIG_IsOK(res1)) {
25234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25235 }
25236 arg1 = reinterpret_cast< wxFontList * >(argp1);
25237 ecode2 = SWIG_AsVal_int(obj1, &val2);
25238 if (!SWIG_IsOK(ecode2)) {
25239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
25240 }
25241 arg2 = static_cast< int >(val2);
25242 ecode3 = SWIG_AsVal_int(obj2, &val3);
25243 if (!SWIG_IsOK(ecode3)) {
25244 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
25245 }
25246 arg3 = static_cast< int >(val3);
25247 ecode4 = SWIG_AsVal_int(obj3, &val4);
25248 if (!SWIG_IsOK(ecode4)) {
25249 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
25250 }
25251 arg4 = static_cast< int >(val4);
25252 ecode5 = SWIG_AsVal_int(obj4, &val5);
25253 if (!SWIG_IsOK(ecode5)) {
25254 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
25255 }
25256 arg5 = static_cast< int >(val5);
25257 if (obj5) {
25258 ecode6 = SWIG_AsVal_bool(obj5, &val6);
25259 if (!SWIG_IsOK(ecode6)) {
25260 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
25261 }
25262 arg6 = static_cast< bool >(val6);
25263 }
25264 if (obj6) {
25265 {
25266 arg7 = wxString_in_helper(obj6);
25267 if (arg7 == NULL) SWIG_fail;
25268 temp7 = true;
25269 }
25270 }
25271 if (obj7) {
25272 ecode8 = SWIG_AsVal_int(obj7, &val8);
25273 if (!SWIG_IsOK(ecode8)) {
25274 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
25275 }
25276 arg8 = static_cast< wxFontEncoding >(val8);
25277 }
25278 {
25279 PyThreadState* __tstate = wxPyBeginAllowThreads();
25280 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
25281 wxPyEndAllowThreads(__tstate);
25282 if (PyErr_Occurred()) SWIG_fail;
25283 }
25284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
25285 {
25286 if (temp7)
25287 delete arg7;
25288 }
25289 return resultobj;
25290 fail:
25291 {
25292 if (temp7)
25293 delete arg7;
25294 }
25295 return NULL;
25296 }
25297
25298
25299 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25300 PyObject *resultobj = 0;
25301 wxFontList *arg1 = (wxFontList *) 0 ;
25302 wxFont *arg2 = (wxFont *) 0 ;
25303 void *argp1 = 0 ;
25304 int res1 = 0 ;
25305 void *argp2 = 0 ;
25306 int res2 = 0 ;
25307 PyObject * obj0 = 0 ;
25308 PyObject * obj1 = 0 ;
25309 char * kwnames[] = {
25310 (char *) "self",(char *) "font", NULL
25311 };
25312
25313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
25314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25315 if (!SWIG_IsOK(res1)) {
25316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25317 }
25318 arg1 = reinterpret_cast< wxFontList * >(argp1);
25319 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25320 if (!SWIG_IsOK(res2)) {
25321 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
25322 }
25323 arg2 = reinterpret_cast< wxFont * >(argp2);
25324 {
25325 PyThreadState* __tstate = wxPyBeginAllowThreads();
25326 (arg1)->AddFont(arg2);
25327 wxPyEndAllowThreads(__tstate);
25328 if (PyErr_Occurred()) SWIG_fail;
25329 }
25330 resultobj = SWIG_Py_Void();
25331 return resultobj;
25332 fail:
25333 return NULL;
25334 }
25335
25336
25337 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25338 PyObject *resultobj = 0;
25339 wxFontList *arg1 = (wxFontList *) 0 ;
25340 wxFont *arg2 = (wxFont *) 0 ;
25341 void *argp1 = 0 ;
25342 int res1 = 0 ;
25343 void *argp2 = 0 ;
25344 int res2 = 0 ;
25345 PyObject * obj0 = 0 ;
25346 PyObject * obj1 = 0 ;
25347 char * kwnames[] = {
25348 (char *) "self",(char *) "font", NULL
25349 };
25350
25351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
25352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
25353 if (!SWIG_IsOK(res1)) {
25354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
25355 }
25356 arg1 = reinterpret_cast< wxFontList * >(argp1);
25357 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
25358 if (!SWIG_IsOK(res2)) {
25359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
25360 }
25361 arg2 = reinterpret_cast< wxFont * >(argp2);
25362 {
25363 PyThreadState* __tstate = wxPyBeginAllowThreads();
25364 (arg1)->RemoveFont(arg2);
25365 wxPyEndAllowThreads(__tstate);
25366 if (PyErr_Occurred()) SWIG_fail;
25367 }
25368 resultobj = SWIG_Py_Void();
25369 return resultobj;
25370 fail:
25371 return NULL;
25372 }
25373
25374
25375 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25376 PyObject *obj;
25377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25378 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
25379 return SWIG_Py_Void();
25380 }
25381
25382 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25383 PyObject *resultobj = 0;
25384 wxColourDatabase *result = 0 ;
25385
25386 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
25387 {
25388 if (!wxPyCheckForApp()) SWIG_fail;
25389 PyThreadState* __tstate = wxPyBeginAllowThreads();
25390 result = (wxColourDatabase *)new wxColourDatabase();
25391 wxPyEndAllowThreads(__tstate);
25392 if (PyErr_Occurred()) SWIG_fail;
25393 }
25394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
25395 return resultobj;
25396 fail:
25397 return NULL;
25398 }
25399
25400
25401 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25402 PyObject *resultobj = 0;
25403 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25404 void *argp1 = 0 ;
25405 int res1 = 0 ;
25406 PyObject *swig_obj[1] ;
25407
25408 if (!args) SWIG_fail;
25409 swig_obj[0] = args;
25410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
25411 if (!SWIG_IsOK(res1)) {
25412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25413 }
25414 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25415 {
25416 PyThreadState* __tstate = wxPyBeginAllowThreads();
25417 delete arg1;
25418
25419 wxPyEndAllowThreads(__tstate);
25420 if (PyErr_Occurred()) SWIG_fail;
25421 }
25422 resultobj = SWIG_Py_Void();
25423 return resultobj;
25424 fail:
25425 return NULL;
25426 }
25427
25428
25429 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25430 PyObject *resultobj = 0;
25431 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25432 wxString *arg2 = 0 ;
25433 wxColour result;
25434 void *argp1 = 0 ;
25435 int res1 = 0 ;
25436 bool temp2 = false ;
25437 PyObject * obj0 = 0 ;
25438 PyObject * obj1 = 0 ;
25439 char * kwnames[] = {
25440 (char *) "self",(char *) "name", NULL
25441 };
25442
25443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
25444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25445 if (!SWIG_IsOK(res1)) {
25446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25447 }
25448 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25449 {
25450 arg2 = wxString_in_helper(obj1);
25451 if (arg2 == NULL) SWIG_fail;
25452 temp2 = true;
25453 }
25454 {
25455 PyThreadState* __tstate = wxPyBeginAllowThreads();
25456 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
25457 wxPyEndAllowThreads(__tstate);
25458 if (PyErr_Occurred()) SWIG_fail;
25459 }
25460 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25461 {
25462 if (temp2)
25463 delete arg2;
25464 }
25465 return resultobj;
25466 fail:
25467 {
25468 if (temp2)
25469 delete arg2;
25470 }
25471 return NULL;
25472 }
25473
25474
25475 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25476 PyObject *resultobj = 0;
25477 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25478 wxColour *arg2 = 0 ;
25479 wxString result;
25480 void *argp1 = 0 ;
25481 int res1 = 0 ;
25482 wxColour temp2 ;
25483 PyObject * obj0 = 0 ;
25484 PyObject * obj1 = 0 ;
25485 char * kwnames[] = {
25486 (char *) "self",(char *) "colour", NULL
25487 };
25488
25489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
25490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25491 if (!SWIG_IsOK(res1)) {
25492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
25493 }
25494 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25495 {
25496 arg2 = &temp2;
25497 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25498 }
25499 {
25500 PyThreadState* __tstate = wxPyBeginAllowThreads();
25501 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
25502 wxPyEndAllowThreads(__tstate);
25503 if (PyErr_Occurred()) SWIG_fail;
25504 }
25505 {
25506 #if wxUSE_UNICODE
25507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
25508 #else
25509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
25510 #endif
25511 }
25512 return resultobj;
25513 fail:
25514 return NULL;
25515 }
25516
25517
25518 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25519 PyObject *resultobj = 0;
25520 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25521 wxString *arg2 = 0 ;
25522 wxColour *arg3 = 0 ;
25523 void *argp1 = 0 ;
25524 int res1 = 0 ;
25525 bool temp2 = false ;
25526 wxColour temp3 ;
25527 PyObject * obj0 = 0 ;
25528 PyObject * obj1 = 0 ;
25529 PyObject * obj2 = 0 ;
25530 char * kwnames[] = {
25531 (char *) "self",(char *) "name",(char *) "colour", NULL
25532 };
25533
25534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25536 if (!SWIG_IsOK(res1)) {
25537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25538 }
25539 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25540 {
25541 arg2 = wxString_in_helper(obj1);
25542 if (arg2 == NULL) SWIG_fail;
25543 temp2 = true;
25544 }
25545 {
25546 arg3 = &temp3;
25547 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
25548 }
25549 {
25550 PyThreadState* __tstate = wxPyBeginAllowThreads();
25551 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
25552 wxPyEndAllowThreads(__tstate);
25553 if (PyErr_Occurred()) SWIG_fail;
25554 }
25555 resultobj = SWIG_Py_Void();
25556 {
25557 if (temp2)
25558 delete arg2;
25559 }
25560 return resultobj;
25561 fail:
25562 {
25563 if (temp2)
25564 delete arg2;
25565 }
25566 return NULL;
25567 }
25568
25569
25570 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25571 PyObject *resultobj = 0;
25572 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
25573 wxString *arg2 = 0 ;
25574 int arg3 ;
25575 int arg4 ;
25576 int arg5 ;
25577 void *argp1 = 0 ;
25578 int res1 = 0 ;
25579 bool temp2 = false ;
25580 int val3 ;
25581 int ecode3 = 0 ;
25582 int val4 ;
25583 int ecode4 = 0 ;
25584 int val5 ;
25585 int ecode5 = 0 ;
25586 PyObject * obj0 = 0 ;
25587 PyObject * obj1 = 0 ;
25588 PyObject * obj2 = 0 ;
25589 PyObject * obj3 = 0 ;
25590 PyObject * obj4 = 0 ;
25591 char * kwnames[] = {
25592 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
25593 };
25594
25595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25597 if (!SWIG_IsOK(res1)) {
25598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
25599 }
25600 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
25601 {
25602 arg2 = wxString_in_helper(obj1);
25603 if (arg2 == NULL) SWIG_fail;
25604 temp2 = true;
25605 }
25606 ecode3 = SWIG_AsVal_int(obj2, &val3);
25607 if (!SWIG_IsOK(ecode3)) {
25608 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
25609 }
25610 arg3 = static_cast< int >(val3);
25611 ecode4 = SWIG_AsVal_int(obj3, &val4);
25612 if (!SWIG_IsOK(ecode4)) {
25613 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
25614 }
25615 arg4 = static_cast< int >(val4);
25616 ecode5 = SWIG_AsVal_int(obj4, &val5);
25617 if (!SWIG_IsOK(ecode5)) {
25618 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
25619 }
25620 arg5 = static_cast< int >(val5);
25621 {
25622 PyThreadState* __tstate = wxPyBeginAllowThreads();
25623 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
25624 wxPyEndAllowThreads(__tstate);
25625 if (PyErr_Occurred()) SWIG_fail;
25626 }
25627 resultobj = SWIG_Py_Void();
25628 {
25629 if (temp2)
25630 delete arg2;
25631 }
25632 return resultobj;
25633 fail:
25634 {
25635 if (temp2)
25636 delete arg2;
25637 }
25638 return NULL;
25639 }
25640
25641
25642 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25643 PyObject *obj;
25644 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25645 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
25646 return SWIG_Py_Void();
25647 }
25648
25649 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25650 return SWIG_Python_InitShadowInstance(args);
25651 }
25652
25653 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25654 PyObject *resultobj = 0;
25655 wxFontList *result = 0 ;
25656
25657 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
25658 {
25659 PyThreadState* __tstate = wxPyBeginAllowThreads();
25660 result = (wxFontList *)_wxPyInitTheFontList();
25661 wxPyEndAllowThreads(__tstate);
25662 if (PyErr_Occurred()) SWIG_fail;
25663 }
25664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
25665 return resultobj;
25666 fail:
25667 return NULL;
25668 }
25669
25670
25671 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25672 PyObject *resultobj = 0;
25673 wxPenList *result = 0 ;
25674
25675 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
25676 {
25677 PyThreadState* __tstate = wxPyBeginAllowThreads();
25678 result = (wxPenList *)_wxPyInitThePenList();
25679 wxPyEndAllowThreads(__tstate);
25680 if (PyErr_Occurred()) SWIG_fail;
25681 }
25682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
25683 return resultobj;
25684 fail:
25685 return NULL;
25686 }
25687
25688
25689 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25690 PyObject *resultobj = 0;
25691 wxBrushList *result = 0 ;
25692
25693 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
25694 {
25695 PyThreadState* __tstate = wxPyBeginAllowThreads();
25696 result = (wxBrushList *)_wxPyInitTheBrushList();
25697 wxPyEndAllowThreads(__tstate);
25698 if (PyErr_Occurred()) SWIG_fail;
25699 }
25700 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
25701 return resultobj;
25702 fail:
25703 return NULL;
25704 }
25705
25706
25707 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25708 PyObject *resultobj = 0;
25709 wxColourDatabase *result = 0 ;
25710
25711 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
25712 {
25713 PyThreadState* __tstate = wxPyBeginAllowThreads();
25714 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
25715 wxPyEndAllowThreads(__tstate);
25716 if (PyErr_Occurred()) SWIG_fail;
25717 }
25718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
25719 return resultobj;
25720 fail:
25721 return NULL;
25722 }
25723
25724
25725 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25726 PyObject *resultobj = 0;
25727 wxEffects *result = 0 ;
25728
25729 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
25730 {
25731 PyThreadState* __tstate = wxPyBeginAllowThreads();
25732 result = (wxEffects *)new wxEffects();
25733 wxPyEndAllowThreads(__tstate);
25734 if (PyErr_Occurred()) SWIG_fail;
25735 }
25736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
25737 return resultobj;
25738 fail:
25739 return NULL;
25740 }
25741
25742
25743 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25744 PyObject *resultobj = 0;
25745 wxEffects *arg1 = (wxEffects *) 0 ;
25746 wxColour result;
25747 void *argp1 = 0 ;
25748 int res1 = 0 ;
25749 PyObject *swig_obj[1] ;
25750
25751 if (!args) SWIG_fail;
25752 swig_obj[0] = args;
25753 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25754 if (!SWIG_IsOK(res1)) {
25755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
25756 }
25757 arg1 = reinterpret_cast< wxEffects * >(argp1);
25758 {
25759 PyThreadState* __tstate = wxPyBeginAllowThreads();
25760 result = ((wxEffects const *)arg1)->GetHighlightColour();
25761 wxPyEndAllowThreads(__tstate);
25762 if (PyErr_Occurred()) SWIG_fail;
25763 }
25764 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25765 return resultobj;
25766 fail:
25767 return NULL;
25768 }
25769
25770
25771 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25772 PyObject *resultobj = 0;
25773 wxEffects *arg1 = (wxEffects *) 0 ;
25774 wxColour result;
25775 void *argp1 = 0 ;
25776 int res1 = 0 ;
25777 PyObject *swig_obj[1] ;
25778
25779 if (!args) SWIG_fail;
25780 swig_obj[0] = args;
25781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25782 if (!SWIG_IsOK(res1)) {
25783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25784 }
25785 arg1 = reinterpret_cast< wxEffects * >(argp1);
25786 {
25787 PyThreadState* __tstate = wxPyBeginAllowThreads();
25788 result = ((wxEffects const *)arg1)->GetLightShadow();
25789 wxPyEndAllowThreads(__tstate);
25790 if (PyErr_Occurred()) SWIG_fail;
25791 }
25792 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25793 return resultobj;
25794 fail:
25795 return NULL;
25796 }
25797
25798
25799 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25800 PyObject *resultobj = 0;
25801 wxEffects *arg1 = (wxEffects *) 0 ;
25802 wxColour result;
25803 void *argp1 = 0 ;
25804 int res1 = 0 ;
25805 PyObject *swig_obj[1] ;
25806
25807 if (!args) SWIG_fail;
25808 swig_obj[0] = args;
25809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25810 if (!SWIG_IsOK(res1)) {
25811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
25812 }
25813 arg1 = reinterpret_cast< wxEffects * >(argp1);
25814 {
25815 PyThreadState* __tstate = wxPyBeginAllowThreads();
25816 result = ((wxEffects const *)arg1)->GetFaceColour();
25817 wxPyEndAllowThreads(__tstate);
25818 if (PyErr_Occurred()) SWIG_fail;
25819 }
25820 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25821 return resultobj;
25822 fail:
25823 return NULL;
25824 }
25825
25826
25827 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25828 PyObject *resultobj = 0;
25829 wxEffects *arg1 = (wxEffects *) 0 ;
25830 wxColour result;
25831 void *argp1 = 0 ;
25832 int res1 = 0 ;
25833 PyObject *swig_obj[1] ;
25834
25835 if (!args) SWIG_fail;
25836 swig_obj[0] = args;
25837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25838 if (!SWIG_IsOK(res1)) {
25839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25840 }
25841 arg1 = reinterpret_cast< wxEffects * >(argp1);
25842 {
25843 PyThreadState* __tstate = wxPyBeginAllowThreads();
25844 result = ((wxEffects const *)arg1)->GetMediumShadow();
25845 wxPyEndAllowThreads(__tstate);
25846 if (PyErr_Occurred()) SWIG_fail;
25847 }
25848 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25849 return resultobj;
25850 fail:
25851 return NULL;
25852 }
25853
25854
25855 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25856 PyObject *resultobj = 0;
25857 wxEffects *arg1 = (wxEffects *) 0 ;
25858 wxColour result;
25859 void *argp1 = 0 ;
25860 int res1 = 0 ;
25861 PyObject *swig_obj[1] ;
25862
25863 if (!args) SWIG_fail;
25864 swig_obj[0] = args;
25865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25866 if (!SWIG_IsOK(res1)) {
25867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
25868 }
25869 arg1 = reinterpret_cast< wxEffects * >(argp1);
25870 {
25871 PyThreadState* __tstate = wxPyBeginAllowThreads();
25872 result = ((wxEffects const *)arg1)->GetDarkShadow();
25873 wxPyEndAllowThreads(__tstate);
25874 if (PyErr_Occurred()) SWIG_fail;
25875 }
25876 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
25877 return resultobj;
25878 fail:
25879 return NULL;
25880 }
25881
25882
25883 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25884 PyObject *resultobj = 0;
25885 wxEffects *arg1 = (wxEffects *) 0 ;
25886 wxColour *arg2 = 0 ;
25887 void *argp1 = 0 ;
25888 int res1 = 0 ;
25889 wxColour temp2 ;
25890 PyObject * obj0 = 0 ;
25891 PyObject * obj1 = 0 ;
25892 char * kwnames[] = {
25893 (char *) "self",(char *) "c", NULL
25894 };
25895
25896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
25897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25898 if (!SWIG_IsOK(res1)) {
25899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
25900 }
25901 arg1 = reinterpret_cast< wxEffects * >(argp1);
25902 {
25903 arg2 = &temp2;
25904 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25905 }
25906 {
25907 PyThreadState* __tstate = wxPyBeginAllowThreads();
25908 (arg1)->SetHighlightColour((wxColour const &)*arg2);
25909 wxPyEndAllowThreads(__tstate);
25910 if (PyErr_Occurred()) SWIG_fail;
25911 }
25912 resultobj = SWIG_Py_Void();
25913 return resultobj;
25914 fail:
25915 return NULL;
25916 }
25917
25918
25919 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25920 PyObject *resultobj = 0;
25921 wxEffects *arg1 = (wxEffects *) 0 ;
25922 wxColour *arg2 = 0 ;
25923 void *argp1 = 0 ;
25924 int res1 = 0 ;
25925 wxColour temp2 ;
25926 PyObject * obj0 = 0 ;
25927 PyObject * obj1 = 0 ;
25928 char * kwnames[] = {
25929 (char *) "self",(char *) "c", NULL
25930 };
25931
25932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
25933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25934 if (!SWIG_IsOK(res1)) {
25935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
25936 }
25937 arg1 = reinterpret_cast< wxEffects * >(argp1);
25938 {
25939 arg2 = &temp2;
25940 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25941 }
25942 {
25943 PyThreadState* __tstate = wxPyBeginAllowThreads();
25944 (arg1)->SetLightShadow((wxColour const &)*arg2);
25945 wxPyEndAllowThreads(__tstate);
25946 if (PyErr_Occurred()) SWIG_fail;
25947 }
25948 resultobj = SWIG_Py_Void();
25949 return resultobj;
25950 fail:
25951 return NULL;
25952 }
25953
25954
25955 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25956 PyObject *resultobj = 0;
25957 wxEffects *arg1 = (wxEffects *) 0 ;
25958 wxColour *arg2 = 0 ;
25959 void *argp1 = 0 ;
25960 int res1 = 0 ;
25961 wxColour temp2 ;
25962 PyObject * obj0 = 0 ;
25963 PyObject * obj1 = 0 ;
25964 char * kwnames[] = {
25965 (char *) "self",(char *) "c", NULL
25966 };
25967
25968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
25969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
25970 if (!SWIG_IsOK(res1)) {
25971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
25972 }
25973 arg1 = reinterpret_cast< wxEffects * >(argp1);
25974 {
25975 arg2 = &temp2;
25976 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
25977 }
25978 {
25979 PyThreadState* __tstate = wxPyBeginAllowThreads();
25980 (arg1)->SetFaceColour((wxColour const &)*arg2);
25981 wxPyEndAllowThreads(__tstate);
25982 if (PyErr_Occurred()) SWIG_fail;
25983 }
25984 resultobj = SWIG_Py_Void();
25985 return resultobj;
25986 fail:
25987 return NULL;
25988 }
25989
25990
25991 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25992 PyObject *resultobj = 0;
25993 wxEffects *arg1 = (wxEffects *) 0 ;
25994 wxColour *arg2 = 0 ;
25995 void *argp1 = 0 ;
25996 int res1 = 0 ;
25997 wxColour temp2 ;
25998 PyObject * obj0 = 0 ;
25999 PyObject * obj1 = 0 ;
26000 char * kwnames[] = {
26001 (char *) "self",(char *) "c", NULL
26002 };
26003
26004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26006 if (!SWIG_IsOK(res1)) {
26007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26008 }
26009 arg1 = reinterpret_cast< wxEffects * >(argp1);
26010 {
26011 arg2 = &temp2;
26012 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26013 }
26014 {
26015 PyThreadState* __tstate = wxPyBeginAllowThreads();
26016 (arg1)->SetMediumShadow((wxColour const &)*arg2);
26017 wxPyEndAllowThreads(__tstate);
26018 if (PyErr_Occurred()) SWIG_fail;
26019 }
26020 resultobj = SWIG_Py_Void();
26021 return resultobj;
26022 fail:
26023 return NULL;
26024 }
26025
26026
26027 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26028 PyObject *resultobj = 0;
26029 wxEffects *arg1 = (wxEffects *) 0 ;
26030 wxColour *arg2 = 0 ;
26031 void *argp1 = 0 ;
26032 int res1 = 0 ;
26033 wxColour temp2 ;
26034 PyObject * obj0 = 0 ;
26035 PyObject * obj1 = 0 ;
26036 char * kwnames[] = {
26037 (char *) "self",(char *) "c", NULL
26038 };
26039
26040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
26041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26042 if (!SWIG_IsOK(res1)) {
26043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
26044 }
26045 arg1 = reinterpret_cast< wxEffects * >(argp1);
26046 {
26047 arg2 = &temp2;
26048 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26049 }
26050 {
26051 PyThreadState* __tstate = wxPyBeginAllowThreads();
26052 (arg1)->SetDarkShadow((wxColour const &)*arg2);
26053 wxPyEndAllowThreads(__tstate);
26054 if (PyErr_Occurred()) SWIG_fail;
26055 }
26056 resultobj = SWIG_Py_Void();
26057 return resultobj;
26058 fail:
26059 return NULL;
26060 }
26061
26062
26063 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26064 PyObject *resultobj = 0;
26065 wxEffects *arg1 = (wxEffects *) 0 ;
26066 wxColour *arg2 = 0 ;
26067 wxColour *arg3 = 0 ;
26068 wxColour *arg4 = 0 ;
26069 wxColour *arg5 = 0 ;
26070 wxColour *arg6 = 0 ;
26071 void *argp1 = 0 ;
26072 int res1 = 0 ;
26073 wxColour temp2 ;
26074 wxColour temp3 ;
26075 wxColour temp4 ;
26076 wxColour temp5 ;
26077 wxColour temp6 ;
26078 PyObject * obj0 = 0 ;
26079 PyObject * obj1 = 0 ;
26080 PyObject * obj2 = 0 ;
26081 PyObject * obj3 = 0 ;
26082 PyObject * obj4 = 0 ;
26083 PyObject * obj5 = 0 ;
26084 char * kwnames[] = {
26085 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
26086 };
26087
26088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26090 if (!SWIG_IsOK(res1)) {
26091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
26092 }
26093 arg1 = reinterpret_cast< wxEffects * >(argp1);
26094 {
26095 arg2 = &temp2;
26096 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26097 }
26098 {
26099 arg3 = &temp3;
26100 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26101 }
26102 {
26103 arg4 = &temp4;
26104 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
26105 }
26106 {
26107 arg5 = &temp5;
26108 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
26109 }
26110 {
26111 arg6 = &temp6;
26112 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26113 }
26114 {
26115 PyThreadState* __tstate = wxPyBeginAllowThreads();
26116 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
26117 wxPyEndAllowThreads(__tstate);
26118 if (PyErr_Occurred()) SWIG_fail;
26119 }
26120 resultobj = SWIG_Py_Void();
26121 return resultobj;
26122 fail:
26123 return NULL;
26124 }
26125
26126
26127 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26128 PyObject *resultobj = 0;
26129 wxEffects *arg1 = (wxEffects *) 0 ;
26130 wxDC *arg2 = 0 ;
26131 wxRect *arg3 = 0 ;
26132 int arg4 = (int) 1 ;
26133 void *argp1 = 0 ;
26134 int res1 = 0 ;
26135 void *argp2 = 0 ;
26136 int res2 = 0 ;
26137 wxRect temp3 ;
26138 int val4 ;
26139 int ecode4 = 0 ;
26140 PyObject * obj0 = 0 ;
26141 PyObject * obj1 = 0 ;
26142 PyObject * obj2 = 0 ;
26143 PyObject * obj3 = 0 ;
26144 char * kwnames[] = {
26145 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
26146 };
26147
26148 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26149 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26150 if (!SWIG_IsOK(res1)) {
26151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
26152 }
26153 arg1 = reinterpret_cast< wxEffects * >(argp1);
26154 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
26155 if (!SWIG_IsOK(res2)) {
26156 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26157 }
26158 if (!argp2) {
26159 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
26160 }
26161 arg2 = reinterpret_cast< wxDC * >(argp2);
26162 {
26163 arg3 = &temp3;
26164 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26165 }
26166 if (obj3) {
26167 ecode4 = SWIG_AsVal_int(obj3, &val4);
26168 if (!SWIG_IsOK(ecode4)) {
26169 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
26170 }
26171 arg4 = static_cast< int >(val4);
26172 }
26173 {
26174 PyThreadState* __tstate = wxPyBeginAllowThreads();
26175 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
26176 wxPyEndAllowThreads(__tstate);
26177 if (PyErr_Occurred()) SWIG_fail;
26178 }
26179 resultobj = SWIG_Py_Void();
26180 return resultobj;
26181 fail:
26182 return NULL;
26183 }
26184
26185
26186 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26187 PyObject *resultobj = 0;
26188 wxEffects *arg1 = (wxEffects *) 0 ;
26189 wxRect *arg2 = 0 ;
26190 wxDC *arg3 = 0 ;
26191 wxBitmap *arg4 = 0 ;
26192 bool result;
26193 void *argp1 = 0 ;
26194 int res1 = 0 ;
26195 wxRect temp2 ;
26196 void *argp3 = 0 ;
26197 int res3 = 0 ;
26198 void *argp4 = 0 ;
26199 int res4 = 0 ;
26200 PyObject * obj0 = 0 ;
26201 PyObject * obj1 = 0 ;
26202 PyObject * obj2 = 0 ;
26203 PyObject * obj3 = 0 ;
26204 char * kwnames[] = {
26205 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
26206 };
26207
26208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
26210 if (!SWIG_IsOK(res1)) {
26211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
26212 }
26213 arg1 = reinterpret_cast< wxEffects * >(argp1);
26214 {
26215 arg2 = &temp2;
26216 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26217 }
26218 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26219 if (!SWIG_IsOK(res3)) {
26220 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26221 }
26222 if (!argp3) {
26223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
26224 }
26225 arg3 = reinterpret_cast< wxDC * >(argp3);
26226 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
26227 if (!SWIG_IsOK(res4)) {
26228 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26229 }
26230 if (!argp4) {
26231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
26232 }
26233 arg4 = reinterpret_cast< wxBitmap * >(argp4);
26234 {
26235 PyThreadState* __tstate = wxPyBeginAllowThreads();
26236 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
26237 wxPyEndAllowThreads(__tstate);
26238 if (PyErr_Occurred()) SWIG_fail;
26239 }
26240 {
26241 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26242 }
26243 return resultobj;
26244 fail:
26245 return NULL;
26246 }
26247
26248
26249 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26250 PyObject *obj;
26251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26252 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
26253 return SWIG_Py_Void();
26254 }
26255
26256 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26257 return SWIG_Python_InitShadowInstance(args);
26258 }
26259
26260 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26261 PyObject *resultobj = 0;
26262 int arg1 ;
26263 int arg2 ;
26264 bool arg3 ;
26265 wxSplitterRenderParams *result = 0 ;
26266 int val1 ;
26267 int ecode1 = 0 ;
26268 int val2 ;
26269 int ecode2 = 0 ;
26270 bool val3 ;
26271 int ecode3 = 0 ;
26272 PyObject * obj0 = 0 ;
26273 PyObject * obj1 = 0 ;
26274 PyObject * obj2 = 0 ;
26275 char * kwnames[] = {
26276 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
26277 };
26278
26279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26280 ecode1 = SWIG_AsVal_int(obj0, &val1);
26281 if (!SWIG_IsOK(ecode1)) {
26282 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
26283 }
26284 arg1 = static_cast< int >(val1);
26285 ecode2 = SWIG_AsVal_int(obj1, &val2);
26286 if (!SWIG_IsOK(ecode2)) {
26287 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
26288 }
26289 arg2 = static_cast< int >(val2);
26290 ecode3 = SWIG_AsVal_bool(obj2, &val3);
26291 if (!SWIG_IsOK(ecode3)) {
26292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
26293 }
26294 arg3 = static_cast< bool >(val3);
26295 {
26296 PyThreadState* __tstate = wxPyBeginAllowThreads();
26297 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
26298 wxPyEndAllowThreads(__tstate);
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26309 PyObject *resultobj = 0;
26310 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26311 void *argp1 = 0 ;
26312 int res1 = 0 ;
26313 PyObject *swig_obj[1] ;
26314
26315 if (!args) SWIG_fail;
26316 swig_obj[0] = args;
26317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
26318 if (!SWIG_IsOK(res1)) {
26319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26320 }
26321 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26322 {
26323 PyThreadState* __tstate = wxPyBeginAllowThreads();
26324 delete arg1;
26325
26326 wxPyEndAllowThreads(__tstate);
26327 if (PyErr_Occurred()) SWIG_fail;
26328 }
26329 resultobj = SWIG_Py_Void();
26330 return resultobj;
26331 fail:
26332 return NULL;
26333 }
26334
26335
26336 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26337 PyObject *resultobj = 0;
26338 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26339 int result;
26340 void *argp1 = 0 ;
26341 int res1 = 0 ;
26342 PyObject *swig_obj[1] ;
26343
26344 if (!args) SWIG_fail;
26345 swig_obj[0] = args;
26346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26347 if (!SWIG_IsOK(res1)) {
26348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26349 }
26350 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26351 result = (int)(int) ((arg1)->widthSash);
26352 resultobj = SWIG_From_int(static_cast< int >(result));
26353 return resultobj;
26354 fail:
26355 return NULL;
26356 }
26357
26358
26359 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26360 PyObject *resultobj = 0;
26361 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26362 int result;
26363 void *argp1 = 0 ;
26364 int res1 = 0 ;
26365 PyObject *swig_obj[1] ;
26366
26367 if (!args) SWIG_fail;
26368 swig_obj[0] = args;
26369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26370 if (!SWIG_IsOK(res1)) {
26371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26372 }
26373 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26374 result = (int)(int) ((arg1)->border);
26375 resultobj = SWIG_From_int(static_cast< int >(result));
26376 return resultobj;
26377 fail:
26378 return NULL;
26379 }
26380
26381
26382 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26383 PyObject *resultobj = 0;
26384 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
26385 bool result;
26386 void *argp1 = 0 ;
26387 int res1 = 0 ;
26388 PyObject *swig_obj[1] ;
26389
26390 if (!args) SWIG_fail;
26391 swig_obj[0] = args;
26392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
26393 if (!SWIG_IsOK(res1)) {
26394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
26395 }
26396 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
26397 result = (bool)(bool) ((arg1)->isHotSensitive);
26398 resultobj = SWIG_From_bool(static_cast< bool >(result));
26399 return resultobj;
26400 fail:
26401 return NULL;
26402 }
26403
26404
26405 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26406 PyObject *obj;
26407 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26408 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
26409 return SWIG_Py_Void();
26410 }
26411
26412 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26413 return SWIG_Python_InitShadowInstance(args);
26414 }
26415
26416 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26417 PyObject *resultobj = 0;
26418 int arg1 ;
26419 int arg2 ;
26420 wxRendererVersion *result = 0 ;
26421 int val1 ;
26422 int ecode1 = 0 ;
26423 int val2 ;
26424 int ecode2 = 0 ;
26425 PyObject * obj0 = 0 ;
26426 PyObject * obj1 = 0 ;
26427 char * kwnames[] = {
26428 (char *) "version_",(char *) "age_", NULL
26429 };
26430
26431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
26432 ecode1 = SWIG_AsVal_int(obj0, &val1);
26433 if (!SWIG_IsOK(ecode1)) {
26434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
26435 }
26436 arg1 = static_cast< int >(val1);
26437 ecode2 = SWIG_AsVal_int(obj1, &val2);
26438 if (!SWIG_IsOK(ecode2)) {
26439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
26440 }
26441 arg2 = static_cast< int >(val2);
26442 {
26443 PyThreadState* __tstate = wxPyBeginAllowThreads();
26444 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
26445 wxPyEndAllowThreads(__tstate);
26446 if (PyErr_Occurred()) SWIG_fail;
26447 }
26448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
26449 return resultobj;
26450 fail:
26451 return NULL;
26452 }
26453
26454
26455 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26456 PyObject *resultobj = 0;
26457 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26458 void *argp1 = 0 ;
26459 int res1 = 0 ;
26460 PyObject *swig_obj[1] ;
26461
26462 if (!args) SWIG_fail;
26463 swig_obj[0] = args;
26464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
26465 if (!SWIG_IsOK(res1)) {
26466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26467 }
26468 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26469 {
26470 PyThreadState* __tstate = wxPyBeginAllowThreads();
26471 delete arg1;
26472
26473 wxPyEndAllowThreads(__tstate);
26474 if (PyErr_Occurred()) SWIG_fail;
26475 }
26476 resultobj = SWIG_Py_Void();
26477 return resultobj;
26478 fail:
26479 return NULL;
26480 }
26481
26482
26483 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26484 PyObject *resultobj = 0;
26485 wxRendererVersion *arg1 = 0 ;
26486 bool result;
26487 void *argp1 = 0 ;
26488 int res1 = 0 ;
26489 PyObject * obj0 = 0 ;
26490 char * kwnames[] = {
26491 (char *) "ver", NULL
26492 };
26493
26494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
26495 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
26496 if (!SWIG_IsOK(res1)) {
26497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
26498 }
26499 if (!argp1) {
26500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
26501 }
26502 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26503 {
26504 PyThreadState* __tstate = wxPyBeginAllowThreads();
26505 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
26506 wxPyEndAllowThreads(__tstate);
26507 if (PyErr_Occurred()) SWIG_fail;
26508 }
26509 {
26510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
26511 }
26512 return resultobj;
26513 fail:
26514 return NULL;
26515 }
26516
26517
26518 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26519 PyObject *resultobj = 0;
26520 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26521 int result;
26522 void *argp1 = 0 ;
26523 int res1 = 0 ;
26524 PyObject *swig_obj[1] ;
26525
26526 if (!args) SWIG_fail;
26527 swig_obj[0] = args;
26528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
26529 if (!SWIG_IsOK(res1)) {
26530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26531 }
26532 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26533 result = (int)(int) ((arg1)->version);
26534 resultobj = SWIG_From_int(static_cast< int >(result));
26535 return resultobj;
26536 fail:
26537 return NULL;
26538 }
26539
26540
26541 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26542 PyObject *resultobj = 0;
26543 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
26544 int result;
26545 void *argp1 = 0 ;
26546 int res1 = 0 ;
26547 PyObject *swig_obj[1] ;
26548
26549 if (!args) SWIG_fail;
26550 swig_obj[0] = args;
26551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
26552 if (!SWIG_IsOK(res1)) {
26553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
26554 }
26555 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
26556 result = (int)(int) ((arg1)->age);
26557 resultobj = SWIG_From_int(static_cast< int >(result));
26558 return resultobj;
26559 fail:
26560 return NULL;
26561 }
26562
26563
26564 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26565 PyObject *obj;
26566 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
26567 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
26568 return SWIG_Py_Void();
26569 }
26570
26571 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26572 return SWIG_Python_InitShadowInstance(args);
26573 }
26574
26575 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26576 PyObject *resultobj = 0;
26577 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26578 wxWindow *arg2 = (wxWindow *) 0 ;
26579 wxDC *arg3 = 0 ;
26580 wxRect *arg4 = 0 ;
26581 int arg5 = (int) 0 ;
26582 void *argp1 = 0 ;
26583 int res1 = 0 ;
26584 void *argp2 = 0 ;
26585 int res2 = 0 ;
26586 void *argp3 = 0 ;
26587 int res3 = 0 ;
26588 wxRect temp4 ;
26589 int val5 ;
26590 int ecode5 = 0 ;
26591 PyObject * obj0 = 0 ;
26592 PyObject * obj1 = 0 ;
26593 PyObject * obj2 = 0 ;
26594 PyObject * obj3 = 0 ;
26595 PyObject * obj4 = 0 ;
26596 char * kwnames[] = {
26597 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26598 };
26599
26600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26602 if (!SWIG_IsOK(res1)) {
26603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26604 }
26605 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26606 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26607 if (!SWIG_IsOK(res2)) {
26608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
26609 }
26610 arg2 = reinterpret_cast< wxWindow * >(argp2);
26611 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26612 if (!SWIG_IsOK(res3)) {
26613 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
26614 }
26615 if (!argp3) {
26616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
26617 }
26618 arg3 = reinterpret_cast< wxDC * >(argp3);
26619 {
26620 arg4 = &temp4;
26621 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26622 }
26623 if (obj4) {
26624 ecode5 = SWIG_AsVal_int(obj4, &val5);
26625 if (!SWIG_IsOK(ecode5)) {
26626 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
26627 }
26628 arg5 = static_cast< int >(val5);
26629 }
26630 {
26631 PyThreadState* __tstate = wxPyBeginAllowThreads();
26632 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
26633 wxPyEndAllowThreads(__tstate);
26634 if (PyErr_Occurred()) SWIG_fail;
26635 }
26636 resultobj = SWIG_Py_Void();
26637 return resultobj;
26638 fail:
26639 return NULL;
26640 }
26641
26642
26643 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26644 PyObject *resultobj = 0;
26645 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26646 wxWindow *arg2 = (wxWindow *) 0 ;
26647 wxDC *arg3 = 0 ;
26648 wxRect *arg4 = 0 ;
26649 int arg5 = (int) 0 ;
26650 void *argp1 = 0 ;
26651 int res1 = 0 ;
26652 void *argp2 = 0 ;
26653 int res2 = 0 ;
26654 void *argp3 = 0 ;
26655 int res3 = 0 ;
26656 wxRect temp4 ;
26657 int val5 ;
26658 int ecode5 = 0 ;
26659 PyObject * obj0 = 0 ;
26660 PyObject * obj1 = 0 ;
26661 PyObject * obj2 = 0 ;
26662 PyObject * obj3 = 0 ;
26663 PyObject * obj4 = 0 ;
26664 char * kwnames[] = {
26665 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26666 };
26667
26668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26670 if (!SWIG_IsOK(res1)) {
26671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26672 }
26673 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26674 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26675 if (!SWIG_IsOK(res2)) {
26676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
26677 }
26678 arg2 = reinterpret_cast< wxWindow * >(argp2);
26679 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26680 if (!SWIG_IsOK(res3)) {
26681 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
26682 }
26683 if (!argp3) {
26684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
26685 }
26686 arg3 = reinterpret_cast< wxDC * >(argp3);
26687 {
26688 arg4 = &temp4;
26689 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26690 }
26691 if (obj4) {
26692 ecode5 = SWIG_AsVal_int(obj4, &val5);
26693 if (!SWIG_IsOK(ecode5)) {
26694 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
26695 }
26696 arg5 = static_cast< int >(val5);
26697 }
26698 {
26699 PyThreadState* __tstate = wxPyBeginAllowThreads();
26700 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
26701 wxPyEndAllowThreads(__tstate);
26702 if (PyErr_Occurred()) SWIG_fail;
26703 }
26704 resultobj = SWIG_Py_Void();
26705 return resultobj;
26706 fail:
26707 return NULL;
26708 }
26709
26710
26711 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26712 PyObject *resultobj = 0;
26713 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26714 wxWindow *arg2 = (wxWindow *) 0 ;
26715 wxDC *arg3 = 0 ;
26716 wxRect *arg4 = 0 ;
26717 int arg5 = (int) 0 ;
26718 void *argp1 = 0 ;
26719 int res1 = 0 ;
26720 void *argp2 = 0 ;
26721 int res2 = 0 ;
26722 void *argp3 = 0 ;
26723 int res3 = 0 ;
26724 wxRect temp4 ;
26725 int val5 ;
26726 int ecode5 = 0 ;
26727 PyObject * obj0 = 0 ;
26728 PyObject * obj1 = 0 ;
26729 PyObject * obj2 = 0 ;
26730 PyObject * obj3 = 0 ;
26731 PyObject * obj4 = 0 ;
26732 char * kwnames[] = {
26733 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26734 };
26735
26736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26738 if (!SWIG_IsOK(res1)) {
26739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26740 }
26741 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26742 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26743 if (!SWIG_IsOK(res2)) {
26744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
26745 }
26746 arg2 = reinterpret_cast< wxWindow * >(argp2);
26747 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26748 if (!SWIG_IsOK(res3)) {
26749 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
26750 }
26751 if (!argp3) {
26752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
26753 }
26754 arg3 = reinterpret_cast< wxDC * >(argp3);
26755 {
26756 arg4 = &temp4;
26757 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26758 }
26759 if (obj4) {
26760 ecode5 = SWIG_AsVal_int(obj4, &val5);
26761 if (!SWIG_IsOK(ecode5)) {
26762 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
26763 }
26764 arg5 = static_cast< int >(val5);
26765 }
26766 {
26767 PyThreadState* __tstate = wxPyBeginAllowThreads();
26768 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
26769 wxPyEndAllowThreads(__tstate);
26770 if (PyErr_Occurred()) SWIG_fail;
26771 }
26772 resultobj = SWIG_Py_Void();
26773 return resultobj;
26774 fail:
26775 return NULL;
26776 }
26777
26778
26779 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26780 PyObject *resultobj = 0;
26781 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26782 wxWindow *arg2 = (wxWindow *) 0 ;
26783 wxDC *arg3 = 0 ;
26784 wxSize *arg4 = 0 ;
26785 int arg5 ;
26786 wxOrientation arg6 ;
26787 int arg7 = (int) 0 ;
26788 void *argp1 = 0 ;
26789 int res1 = 0 ;
26790 void *argp2 = 0 ;
26791 int res2 = 0 ;
26792 void *argp3 = 0 ;
26793 int res3 = 0 ;
26794 wxSize temp4 ;
26795 int val5 ;
26796 int ecode5 = 0 ;
26797 int val6 ;
26798 int ecode6 = 0 ;
26799 int val7 ;
26800 int ecode7 = 0 ;
26801 PyObject * obj0 = 0 ;
26802 PyObject * obj1 = 0 ;
26803 PyObject * obj2 = 0 ;
26804 PyObject * obj3 = 0 ;
26805 PyObject * obj4 = 0 ;
26806 PyObject * obj5 = 0 ;
26807 PyObject * obj6 = 0 ;
26808 char * kwnames[] = {
26809 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
26810 };
26811
26812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26814 if (!SWIG_IsOK(res1)) {
26815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26816 }
26817 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26819 if (!SWIG_IsOK(res2)) {
26820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
26821 }
26822 arg2 = reinterpret_cast< wxWindow * >(argp2);
26823 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26824 if (!SWIG_IsOK(res3)) {
26825 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
26826 }
26827 if (!argp3) {
26828 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
26829 }
26830 arg3 = reinterpret_cast< wxDC * >(argp3);
26831 {
26832 arg4 = &temp4;
26833 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
26834 }
26835 ecode5 = SWIG_AsVal_int(obj4, &val5);
26836 if (!SWIG_IsOK(ecode5)) {
26837 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
26838 }
26839 arg5 = static_cast< int >(val5);
26840 ecode6 = SWIG_AsVal_int(obj5, &val6);
26841 if (!SWIG_IsOK(ecode6)) {
26842 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
26843 }
26844 arg6 = static_cast< wxOrientation >(val6);
26845 if (obj6) {
26846 ecode7 = SWIG_AsVal_int(obj6, &val7);
26847 if (!SWIG_IsOK(ecode7)) {
26848 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
26849 }
26850 arg7 = static_cast< int >(val7);
26851 }
26852 {
26853 PyThreadState* __tstate = wxPyBeginAllowThreads();
26854 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
26855 wxPyEndAllowThreads(__tstate);
26856 if (PyErr_Occurred()) SWIG_fail;
26857 }
26858 resultobj = SWIG_Py_Void();
26859 return resultobj;
26860 fail:
26861 return NULL;
26862 }
26863
26864
26865 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26866 PyObject *resultobj = 0;
26867 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26868 wxWindow *arg2 = (wxWindow *) 0 ;
26869 wxDC *arg3 = 0 ;
26870 wxRect *arg4 = 0 ;
26871 int arg5 = (int) 0 ;
26872 void *argp1 = 0 ;
26873 int res1 = 0 ;
26874 void *argp2 = 0 ;
26875 int res2 = 0 ;
26876 void *argp3 = 0 ;
26877 int res3 = 0 ;
26878 wxRect temp4 ;
26879 int val5 ;
26880 int ecode5 = 0 ;
26881 PyObject * obj0 = 0 ;
26882 PyObject * obj1 = 0 ;
26883 PyObject * obj2 = 0 ;
26884 PyObject * obj3 = 0 ;
26885 PyObject * obj4 = 0 ;
26886 char * kwnames[] = {
26887 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26888 };
26889
26890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26892 if (!SWIG_IsOK(res1)) {
26893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26894 }
26895 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26896 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26897 if (!SWIG_IsOK(res2)) {
26898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
26899 }
26900 arg2 = reinterpret_cast< wxWindow * >(argp2);
26901 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26902 if (!SWIG_IsOK(res3)) {
26903 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
26904 }
26905 if (!argp3) {
26906 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
26907 }
26908 arg3 = reinterpret_cast< wxDC * >(argp3);
26909 {
26910 arg4 = &temp4;
26911 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26912 }
26913 if (obj4) {
26914 ecode5 = SWIG_AsVal_int(obj4, &val5);
26915 if (!SWIG_IsOK(ecode5)) {
26916 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
26917 }
26918 arg5 = static_cast< int >(val5);
26919 }
26920 {
26921 PyThreadState* __tstate = wxPyBeginAllowThreads();
26922 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
26923 wxPyEndAllowThreads(__tstate);
26924 if (PyErr_Occurred()) SWIG_fail;
26925 }
26926 resultobj = SWIG_Py_Void();
26927 return resultobj;
26928 fail:
26929 return NULL;
26930 }
26931
26932
26933 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26934 PyObject *resultobj = 0;
26935 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
26936 wxWindow *arg2 = (wxWindow *) 0 ;
26937 wxDC *arg3 = 0 ;
26938 wxRect *arg4 = 0 ;
26939 int arg5 = (int) 0 ;
26940 void *argp1 = 0 ;
26941 int res1 = 0 ;
26942 void *argp2 = 0 ;
26943 int res2 = 0 ;
26944 void *argp3 = 0 ;
26945 int res3 = 0 ;
26946 wxRect temp4 ;
26947 int val5 ;
26948 int ecode5 = 0 ;
26949 PyObject * obj0 = 0 ;
26950 PyObject * obj1 = 0 ;
26951 PyObject * obj2 = 0 ;
26952 PyObject * obj3 = 0 ;
26953 PyObject * obj4 = 0 ;
26954 char * kwnames[] = {
26955 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
26956 };
26957
26958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
26960 if (!SWIG_IsOK(res1)) {
26961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
26962 }
26963 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
26964 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
26965 if (!SWIG_IsOK(res2)) {
26966 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
26967 }
26968 arg2 = reinterpret_cast< wxWindow * >(argp2);
26969 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
26970 if (!SWIG_IsOK(res3)) {
26971 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
26972 }
26973 if (!argp3) {
26974 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
26975 }
26976 arg3 = reinterpret_cast< wxDC * >(argp3);
26977 {
26978 arg4 = &temp4;
26979 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
26980 }
26981 if (obj4) {
26982 ecode5 = SWIG_AsVal_int(obj4, &val5);
26983 if (!SWIG_IsOK(ecode5)) {
26984 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
26985 }
26986 arg5 = static_cast< int >(val5);
26987 }
26988 {
26989 PyThreadState* __tstate = wxPyBeginAllowThreads();
26990 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
26991 wxPyEndAllowThreads(__tstate);
26992 if (PyErr_Occurred()) SWIG_fail;
26993 }
26994 resultobj = SWIG_Py_Void();
26995 return resultobj;
26996 fail:
26997 return NULL;
26998 }
26999
27000
27001 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27002 PyObject *resultobj = 0;
27003 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27004 wxWindow *arg2 = (wxWindow *) 0 ;
27005 wxDC *arg3 = 0 ;
27006 wxRect *arg4 = 0 ;
27007 int arg5 = (int) 0 ;
27008 void *argp1 = 0 ;
27009 int res1 = 0 ;
27010 void *argp2 = 0 ;
27011 int res2 = 0 ;
27012 void *argp3 = 0 ;
27013 int res3 = 0 ;
27014 wxRect temp4 ;
27015 int val5 ;
27016 int ecode5 = 0 ;
27017 PyObject * obj0 = 0 ;
27018 PyObject * obj1 = 0 ;
27019 PyObject * obj2 = 0 ;
27020 PyObject * obj3 = 0 ;
27021 PyObject * obj4 = 0 ;
27022 char * kwnames[] = {
27023 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27024 };
27025
27026 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27027 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27028 if (!SWIG_IsOK(res1)) {
27029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27030 }
27031 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27032 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27033 if (!SWIG_IsOK(res2)) {
27034 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
27035 }
27036 arg2 = reinterpret_cast< wxWindow * >(argp2);
27037 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27038 if (!SWIG_IsOK(res3)) {
27039 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27040 }
27041 if (!argp3) {
27042 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
27043 }
27044 arg3 = reinterpret_cast< wxDC * >(argp3);
27045 {
27046 arg4 = &temp4;
27047 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27048 }
27049 if (obj4) {
27050 ecode5 = SWIG_AsVal_int(obj4, &val5);
27051 if (!SWIG_IsOK(ecode5)) {
27052 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
27053 }
27054 arg5 = static_cast< int >(val5);
27055 }
27056 {
27057 PyThreadState* __tstate = wxPyBeginAllowThreads();
27058 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
27059 wxPyEndAllowThreads(__tstate);
27060 if (PyErr_Occurred()) SWIG_fail;
27061 }
27062 resultobj = SWIG_Py_Void();
27063 return resultobj;
27064 fail:
27065 return NULL;
27066 }
27067
27068
27069 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27070 PyObject *resultobj = 0;
27071 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27072 wxWindow *arg2 = (wxWindow *) 0 ;
27073 wxDC *arg3 = 0 ;
27074 wxRect *arg4 = 0 ;
27075 int arg5 = (int) 0 ;
27076 void *argp1 = 0 ;
27077 int res1 = 0 ;
27078 void *argp2 = 0 ;
27079 int res2 = 0 ;
27080 void *argp3 = 0 ;
27081 int res3 = 0 ;
27082 wxRect temp4 ;
27083 int val5 ;
27084 int ecode5 = 0 ;
27085 PyObject * obj0 = 0 ;
27086 PyObject * obj1 = 0 ;
27087 PyObject * obj2 = 0 ;
27088 PyObject * obj3 = 0 ;
27089 PyObject * obj4 = 0 ;
27090 char * kwnames[] = {
27091 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27092 };
27093
27094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27096 if (!SWIG_IsOK(res1)) {
27097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27098 }
27099 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27100 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27101 if (!SWIG_IsOK(res2)) {
27102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
27103 }
27104 arg2 = reinterpret_cast< wxWindow * >(argp2);
27105 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27106 if (!SWIG_IsOK(res3)) {
27107 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27108 }
27109 if (!argp3) {
27110 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
27111 }
27112 arg3 = reinterpret_cast< wxDC * >(argp3);
27113 {
27114 arg4 = &temp4;
27115 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27116 }
27117 if (obj4) {
27118 ecode5 = SWIG_AsVal_int(obj4, &val5);
27119 if (!SWIG_IsOK(ecode5)) {
27120 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
27121 }
27122 arg5 = static_cast< int >(val5);
27123 }
27124 {
27125 PyThreadState* __tstate = wxPyBeginAllowThreads();
27126 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
27127 wxPyEndAllowThreads(__tstate);
27128 if (PyErr_Occurred()) SWIG_fail;
27129 }
27130 resultobj = SWIG_Py_Void();
27131 return resultobj;
27132 fail:
27133 return NULL;
27134 }
27135
27136
27137 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27138 PyObject *resultobj = 0;
27139 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27140 wxWindow *arg2 = (wxWindow *) 0 ;
27141 wxDC *arg3 = 0 ;
27142 wxRect *arg4 = 0 ;
27143 int arg5 = (int) 0 ;
27144 void *argp1 = 0 ;
27145 int res1 = 0 ;
27146 void *argp2 = 0 ;
27147 int res2 = 0 ;
27148 void *argp3 = 0 ;
27149 int res3 = 0 ;
27150 wxRect temp4 ;
27151 int val5 ;
27152 int ecode5 = 0 ;
27153 PyObject * obj0 = 0 ;
27154 PyObject * obj1 = 0 ;
27155 PyObject * obj2 = 0 ;
27156 PyObject * obj3 = 0 ;
27157 PyObject * obj4 = 0 ;
27158 char * kwnames[] = {
27159 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
27160 };
27161
27162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27164 if (!SWIG_IsOK(res1)) {
27165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27166 }
27167 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27168 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27169 if (!SWIG_IsOK(res2)) {
27170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
27171 }
27172 arg2 = reinterpret_cast< wxWindow * >(argp2);
27173 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
27174 if (!SWIG_IsOK(res3)) {
27175 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
27176 }
27177 if (!argp3) {
27178 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
27179 }
27180 arg3 = reinterpret_cast< wxDC * >(argp3);
27181 {
27182 arg4 = &temp4;
27183 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
27184 }
27185 if (obj4) {
27186 ecode5 = SWIG_AsVal_int(obj4, &val5);
27187 if (!SWIG_IsOK(ecode5)) {
27188 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
27189 }
27190 arg5 = static_cast< int >(val5);
27191 }
27192 {
27193 PyThreadState* __tstate = wxPyBeginAllowThreads();
27194 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
27195 wxPyEndAllowThreads(__tstate);
27196 if (PyErr_Occurred()) SWIG_fail;
27197 }
27198 resultobj = SWIG_Py_Void();
27199 return resultobj;
27200 fail:
27201 return NULL;
27202 }
27203
27204
27205 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27206 PyObject *resultobj = 0;
27207 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27208 wxWindow *arg2 = (wxWindow *) 0 ;
27209 SwigValueWrapper<wxSplitterRenderParams > result;
27210 void *argp1 = 0 ;
27211 int res1 = 0 ;
27212 void *argp2 = 0 ;
27213 int res2 = 0 ;
27214 PyObject * obj0 = 0 ;
27215 PyObject * obj1 = 0 ;
27216 char * kwnames[] = {
27217 (char *) "self",(char *) "win", NULL
27218 };
27219
27220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
27221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27222 if (!SWIG_IsOK(res1)) {
27223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27224 }
27225 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27226 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
27227 if (!SWIG_IsOK(res2)) {
27228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
27229 }
27230 arg2 = reinterpret_cast< wxWindow * >(argp2);
27231 {
27232 PyThreadState* __tstate = wxPyBeginAllowThreads();
27233 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
27234 wxPyEndAllowThreads(__tstate);
27235 if (PyErr_Occurred()) SWIG_fail;
27236 }
27237 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
27238 return resultobj;
27239 fail:
27240 return NULL;
27241 }
27242
27243
27244 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27245 PyObject *resultobj = 0;
27246 wxRendererNative *result = 0 ;
27247
27248 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
27249 {
27250 if (!wxPyCheckForApp()) SWIG_fail;
27251 PyThreadState* __tstate = wxPyBeginAllowThreads();
27252 {
27253 wxRendererNative &_result_ref = wxRendererNative::Get();
27254 result = (wxRendererNative *) &_result_ref;
27255 }
27256 wxPyEndAllowThreads(__tstate);
27257 if (PyErr_Occurred()) SWIG_fail;
27258 }
27259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27260 return resultobj;
27261 fail:
27262 return NULL;
27263 }
27264
27265
27266 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27267 PyObject *resultobj = 0;
27268 wxRendererNative *result = 0 ;
27269
27270 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
27271 {
27272 if (!wxPyCheckForApp()) SWIG_fail;
27273 PyThreadState* __tstate = wxPyBeginAllowThreads();
27274 {
27275 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
27276 result = (wxRendererNative *) &_result_ref;
27277 }
27278 wxPyEndAllowThreads(__tstate);
27279 if (PyErr_Occurred()) SWIG_fail;
27280 }
27281 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27282 return resultobj;
27283 fail:
27284 return NULL;
27285 }
27286
27287
27288 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27289 PyObject *resultobj = 0;
27290 wxRendererNative *result = 0 ;
27291
27292 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
27293 {
27294 if (!wxPyCheckForApp()) SWIG_fail;
27295 PyThreadState* __tstate = wxPyBeginAllowThreads();
27296 {
27297 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
27298 result = (wxRendererNative *) &_result_ref;
27299 }
27300 wxPyEndAllowThreads(__tstate);
27301 if (PyErr_Occurred()) SWIG_fail;
27302 }
27303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27304 return resultobj;
27305 fail:
27306 return NULL;
27307 }
27308
27309
27310 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27311 PyObject *resultobj = 0;
27312 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27313 wxRendererNative *result = 0 ;
27314 void *argp1 = 0 ;
27315 int res1 = 0 ;
27316 PyObject * obj0 = 0 ;
27317 char * kwnames[] = {
27318 (char *) "renderer", NULL
27319 };
27320
27321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
27322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27323 if (!SWIG_IsOK(res1)) {
27324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
27325 }
27326 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27327 {
27328 if (!wxPyCheckForApp()) SWIG_fail;
27329 PyThreadState* __tstate = wxPyBeginAllowThreads();
27330 result = (wxRendererNative *)wxRendererNative::Set(arg1);
27331 wxPyEndAllowThreads(__tstate);
27332 if (PyErr_Occurred()) SWIG_fail;
27333 }
27334 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
27335 return resultobj;
27336 fail:
27337 return NULL;
27338 }
27339
27340
27341 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27342 PyObject *resultobj = 0;
27343 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
27344 SwigValueWrapper<wxRendererVersion > result;
27345 void *argp1 = 0 ;
27346 int res1 = 0 ;
27347 PyObject *swig_obj[1] ;
27348
27349 if (!args) SWIG_fail;
27350 swig_obj[0] = args;
27351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
27352 if (!SWIG_IsOK(res1)) {
27353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
27354 }
27355 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
27356 {
27357 PyThreadState* __tstate = wxPyBeginAllowThreads();
27358 result = ((wxRendererNative const *)arg1)->GetVersion();
27359 wxPyEndAllowThreads(__tstate);
27360 if (PyErr_Occurred()) SWIG_fail;
27361 }
27362 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
27363 return resultobj;
27364 fail:
27365 return NULL;
27366 }
27367
27368
27369 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27370 PyObject *obj;
27371 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27372 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
27373 return SWIG_Py_Void();
27374 }
27375
27376 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27377 PyObject *resultobj = 0;
27378 wxPseudoDC *result = 0 ;
27379
27380 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
27381 {
27382 PyThreadState* __tstate = wxPyBeginAllowThreads();
27383 result = (wxPseudoDC *)new wxPseudoDC();
27384 wxPyEndAllowThreads(__tstate);
27385 if (PyErr_Occurred()) SWIG_fail;
27386 }
27387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
27388 return resultobj;
27389 fail:
27390 return NULL;
27391 }
27392
27393
27394 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27395 PyObject *resultobj = 0;
27396 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27397 void *argp1 = 0 ;
27398 int res1 = 0 ;
27399 PyObject *swig_obj[1] ;
27400
27401 if (!args) SWIG_fail;
27402 swig_obj[0] = args;
27403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27404 if (!SWIG_IsOK(res1)) {
27405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27406 }
27407 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27408 {
27409 PyThreadState* __tstate = wxPyBeginAllowThreads();
27410 (arg1)->BeginDrawing();
27411 wxPyEndAllowThreads(__tstate);
27412 if (PyErr_Occurred()) SWIG_fail;
27413 }
27414 resultobj = SWIG_Py_Void();
27415 return resultobj;
27416 fail:
27417 return NULL;
27418 }
27419
27420
27421 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27422 PyObject *resultobj = 0;
27423 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27424 void *argp1 = 0 ;
27425 int res1 = 0 ;
27426 PyObject *swig_obj[1] ;
27427
27428 if (!args) SWIG_fail;
27429 swig_obj[0] = args;
27430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27431 if (!SWIG_IsOK(res1)) {
27432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27433 }
27434 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27435 {
27436 PyThreadState* __tstate = wxPyBeginAllowThreads();
27437 (arg1)->EndDrawing();
27438 wxPyEndAllowThreads(__tstate);
27439 if (PyErr_Occurred()) SWIG_fail;
27440 }
27441 resultobj = SWIG_Py_Void();
27442 return resultobj;
27443 fail:
27444 return NULL;
27445 }
27446
27447
27448 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27449 PyObject *resultobj = 0;
27450 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27451 void *argp1 = 0 ;
27452 int res1 = 0 ;
27453 PyObject *swig_obj[1] ;
27454
27455 if (!args) SWIG_fail;
27456 swig_obj[0] = args;
27457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
27458 if (!SWIG_IsOK(res1)) {
27459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27460 }
27461 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27462 {
27463 PyThreadState* __tstate = wxPyBeginAllowThreads();
27464 delete arg1;
27465
27466 wxPyEndAllowThreads(__tstate);
27467 if (PyErr_Occurred()) SWIG_fail;
27468 }
27469 resultobj = SWIG_Py_Void();
27470 return resultobj;
27471 fail:
27472 return NULL;
27473 }
27474
27475
27476 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27477 PyObject *resultobj = 0;
27478 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27479 void *argp1 = 0 ;
27480 int res1 = 0 ;
27481 PyObject *swig_obj[1] ;
27482
27483 if (!args) SWIG_fail;
27484 swig_obj[0] = args;
27485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27486 if (!SWIG_IsOK(res1)) {
27487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27488 }
27489 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27490 {
27491 PyThreadState* __tstate = wxPyBeginAllowThreads();
27492 (arg1)->RemoveAll();
27493 wxPyEndAllowThreads(__tstate);
27494 if (PyErr_Occurred()) SWIG_fail;
27495 }
27496 resultobj = SWIG_Py_Void();
27497 return resultobj;
27498 fail:
27499 return NULL;
27500 }
27501
27502
27503 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27504 PyObject *resultobj = 0;
27505 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27506 int result;
27507 void *argp1 = 0 ;
27508 int res1 = 0 ;
27509 PyObject *swig_obj[1] ;
27510
27511 if (!args) SWIG_fail;
27512 swig_obj[0] = args;
27513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27514 if (!SWIG_IsOK(res1)) {
27515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27516 }
27517 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27518 {
27519 PyThreadState* __tstate = wxPyBeginAllowThreads();
27520 result = (int)(arg1)->GetLen();
27521 wxPyEndAllowThreads(__tstate);
27522 if (PyErr_Occurred()) SWIG_fail;
27523 }
27524 resultobj = SWIG_From_int(static_cast< int >(result));
27525 return resultobj;
27526 fail:
27527 return NULL;
27528 }
27529
27530
27531 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27532 PyObject *resultobj = 0;
27533 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27534 int arg2 ;
27535 void *argp1 = 0 ;
27536 int res1 = 0 ;
27537 int val2 ;
27538 int ecode2 = 0 ;
27539 PyObject * obj0 = 0 ;
27540 PyObject * obj1 = 0 ;
27541 char * kwnames[] = {
27542 (char *) "self",(char *) "id", NULL
27543 };
27544
27545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
27546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27547 if (!SWIG_IsOK(res1)) {
27548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27549 }
27550 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27551 ecode2 = SWIG_AsVal_int(obj1, &val2);
27552 if (!SWIG_IsOK(ecode2)) {
27553 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
27554 }
27555 arg2 = static_cast< int >(val2);
27556 {
27557 PyThreadState* __tstate = wxPyBeginAllowThreads();
27558 (arg1)->SetId(arg2);
27559 wxPyEndAllowThreads(__tstate);
27560 if (PyErr_Occurred()) SWIG_fail;
27561 }
27562 resultobj = SWIG_Py_Void();
27563 return resultobj;
27564 fail:
27565 return NULL;
27566 }
27567
27568
27569 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27570 PyObject *resultobj = 0;
27571 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27572 int arg2 ;
27573 void *argp1 = 0 ;
27574 int res1 = 0 ;
27575 int val2 ;
27576 int ecode2 = 0 ;
27577 PyObject * obj0 = 0 ;
27578 PyObject * obj1 = 0 ;
27579 char * kwnames[] = {
27580 (char *) "self",(char *) "id", NULL
27581 };
27582
27583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
27584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27585 if (!SWIG_IsOK(res1)) {
27586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27587 }
27588 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27589 ecode2 = SWIG_AsVal_int(obj1, &val2);
27590 if (!SWIG_IsOK(ecode2)) {
27591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
27592 }
27593 arg2 = static_cast< int >(val2);
27594 {
27595 PyThreadState* __tstate = wxPyBeginAllowThreads();
27596 (arg1)->ClearId(arg2);
27597 wxPyEndAllowThreads(__tstate);
27598 if (PyErr_Occurred()) SWIG_fail;
27599 }
27600 resultobj = SWIG_Py_Void();
27601 return resultobj;
27602 fail:
27603 return NULL;
27604 }
27605
27606
27607 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27608 PyObject *resultobj = 0;
27609 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27610 int arg2 ;
27611 void *argp1 = 0 ;
27612 int res1 = 0 ;
27613 int val2 ;
27614 int ecode2 = 0 ;
27615 PyObject * obj0 = 0 ;
27616 PyObject * obj1 = 0 ;
27617 char * kwnames[] = {
27618 (char *) "self",(char *) "id", NULL
27619 };
27620
27621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
27622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27623 if (!SWIG_IsOK(res1)) {
27624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27625 }
27626 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27627 ecode2 = SWIG_AsVal_int(obj1, &val2);
27628 if (!SWIG_IsOK(ecode2)) {
27629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
27630 }
27631 arg2 = static_cast< int >(val2);
27632 {
27633 PyThreadState* __tstate = wxPyBeginAllowThreads();
27634 (arg1)->RemoveId(arg2);
27635 wxPyEndAllowThreads(__tstate);
27636 if (PyErr_Occurred()) SWIG_fail;
27637 }
27638 resultobj = SWIG_Py_Void();
27639 return resultobj;
27640 fail:
27641 return NULL;
27642 }
27643
27644
27645 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27646 PyObject *resultobj = 0;
27647 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27648 int arg2 ;
27649 int arg3 ;
27650 int arg4 ;
27651 void *argp1 = 0 ;
27652 int res1 = 0 ;
27653 int val2 ;
27654 int ecode2 = 0 ;
27655 int val3 ;
27656 int ecode3 = 0 ;
27657 int val4 ;
27658 int ecode4 = 0 ;
27659 PyObject * obj0 = 0 ;
27660 PyObject * obj1 = 0 ;
27661 PyObject * obj2 = 0 ;
27662 PyObject * obj3 = 0 ;
27663 char * kwnames[] = {
27664 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
27665 };
27666
27667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27669 if (!SWIG_IsOK(res1)) {
27670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27671 }
27672 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27673 ecode2 = SWIG_AsVal_int(obj1, &val2);
27674 if (!SWIG_IsOK(ecode2)) {
27675 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
27676 }
27677 arg2 = static_cast< int >(val2);
27678 ecode3 = SWIG_AsVal_int(obj2, &val3);
27679 if (!SWIG_IsOK(ecode3)) {
27680 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
27681 }
27682 arg3 = static_cast< int >(val3);
27683 ecode4 = SWIG_AsVal_int(obj3, &val4);
27684 if (!SWIG_IsOK(ecode4)) {
27685 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
27686 }
27687 arg4 = static_cast< int >(val4);
27688 {
27689 PyThreadState* __tstate = wxPyBeginAllowThreads();
27690 (arg1)->TranslateId(arg2,arg3,arg4);
27691 wxPyEndAllowThreads(__tstate);
27692 if (PyErr_Occurred()) SWIG_fail;
27693 }
27694 resultobj = SWIG_Py_Void();
27695 return resultobj;
27696 fail:
27697 return NULL;
27698 }
27699
27700
27701 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27702 PyObject *resultobj = 0;
27703 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27704 int arg2 ;
27705 wxDC *arg3 = (wxDC *) 0 ;
27706 void *argp1 = 0 ;
27707 int res1 = 0 ;
27708 int val2 ;
27709 int ecode2 = 0 ;
27710 void *argp3 = 0 ;
27711 int res3 = 0 ;
27712 PyObject * obj0 = 0 ;
27713 PyObject * obj1 = 0 ;
27714 PyObject * obj2 = 0 ;
27715 char * kwnames[] = {
27716 (char *) "self",(char *) "id",(char *) "dc", NULL
27717 };
27718
27719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27721 if (!SWIG_IsOK(res1)) {
27722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27723 }
27724 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27725 ecode2 = SWIG_AsVal_int(obj1, &val2);
27726 if (!SWIG_IsOK(ecode2)) {
27727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
27728 }
27729 arg2 = static_cast< int >(val2);
27730 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
27731 if (!SWIG_IsOK(res3)) {
27732 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
27733 }
27734 arg3 = reinterpret_cast< wxDC * >(argp3);
27735 {
27736 PyThreadState* __tstate = wxPyBeginAllowThreads();
27737 (arg1)->DrawIdToDC(arg2,arg3);
27738 wxPyEndAllowThreads(__tstate);
27739 if (PyErr_Occurred()) SWIG_fail;
27740 }
27741 resultobj = SWIG_Py_Void();
27742 return resultobj;
27743 fail:
27744 return NULL;
27745 }
27746
27747
27748 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27749 PyObject *resultobj = 0;
27750 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27751 int arg2 ;
27752 wxRect *arg3 = 0 ;
27753 void *argp1 = 0 ;
27754 int res1 = 0 ;
27755 int val2 ;
27756 int ecode2 = 0 ;
27757 wxRect temp3 ;
27758 PyObject * obj0 = 0 ;
27759 PyObject * obj1 = 0 ;
27760 PyObject * obj2 = 0 ;
27761 char * kwnames[] = {
27762 (char *) "self",(char *) "id",(char *) "rect", NULL
27763 };
27764
27765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27767 if (!SWIG_IsOK(res1)) {
27768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27769 }
27770 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27771 ecode2 = SWIG_AsVal_int(obj1, &val2);
27772 if (!SWIG_IsOK(ecode2)) {
27773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
27774 }
27775 arg2 = static_cast< int >(val2);
27776 {
27777 arg3 = &temp3;
27778 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27779 }
27780 {
27781 PyThreadState* __tstate = wxPyBeginAllowThreads();
27782 (arg1)->SetIdBounds(arg2,*arg3);
27783 wxPyEndAllowThreads(__tstate);
27784 if (PyErr_Occurred()) SWIG_fail;
27785 }
27786 resultobj = SWIG_Py_Void();
27787 return resultobj;
27788 fail:
27789 return NULL;
27790 }
27791
27792
27793 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27794 PyObject *resultobj = 0;
27795 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27796 int arg2 ;
27797 wxRect result;
27798 void *argp1 = 0 ;
27799 int res1 = 0 ;
27800 int val2 ;
27801 int ecode2 = 0 ;
27802 PyObject * obj0 = 0 ;
27803 PyObject * obj1 = 0 ;
27804 char * kwnames[] = {
27805 (char *) "self",(char *) "id", NULL
27806 };
27807
27808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
27809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27810 if (!SWIG_IsOK(res1)) {
27811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27812 }
27813 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27814 ecode2 = SWIG_AsVal_int(obj1, &val2);
27815 if (!SWIG_IsOK(ecode2)) {
27816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
27817 }
27818 arg2 = static_cast< int >(val2);
27819 {
27820 PyThreadState* __tstate = wxPyBeginAllowThreads();
27821 result = wxPseudoDC_GetIdBounds(arg1,arg2);
27822 wxPyEndAllowThreads(__tstate);
27823 if (PyErr_Occurred()) SWIG_fail;
27824 }
27825 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
27826 return resultobj;
27827 fail:
27828 return NULL;
27829 }
27830
27831
27832 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27833 PyObject *resultobj = 0;
27834 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27835 wxDC *arg2 = (wxDC *) 0 ;
27836 wxRect *arg3 = 0 ;
27837 void *argp1 = 0 ;
27838 int res1 = 0 ;
27839 void *argp2 = 0 ;
27840 int res2 = 0 ;
27841 wxRect temp3 ;
27842 PyObject * obj0 = 0 ;
27843 PyObject * obj1 = 0 ;
27844 PyObject * obj2 = 0 ;
27845 char * kwnames[] = {
27846 (char *) "self",(char *) "dc",(char *) "rect", NULL
27847 };
27848
27849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27851 if (!SWIG_IsOK(res1)) {
27852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27853 }
27854 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27855 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
27856 if (!SWIG_IsOK(res2)) {
27857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
27858 }
27859 arg2 = reinterpret_cast< wxDC * >(argp2);
27860 {
27861 arg3 = &temp3;
27862 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
27863 }
27864 {
27865 PyThreadState* __tstate = wxPyBeginAllowThreads();
27866 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
27867 wxPyEndAllowThreads(__tstate);
27868 if (PyErr_Occurred()) SWIG_fail;
27869 }
27870 resultobj = SWIG_Py_Void();
27871 return resultobj;
27872 fail:
27873 return NULL;
27874 }
27875
27876
27877 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27878 PyObject *resultobj = 0;
27879 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27880 wxDC *arg2 = (wxDC *) 0 ;
27881 wxRegion *arg3 = 0 ;
27882 void *argp1 = 0 ;
27883 int res1 = 0 ;
27884 void *argp2 = 0 ;
27885 int res2 = 0 ;
27886 void *argp3 = 0 ;
27887 int res3 = 0 ;
27888 PyObject * obj0 = 0 ;
27889 PyObject * obj1 = 0 ;
27890 PyObject * obj2 = 0 ;
27891 char * kwnames[] = {
27892 (char *) "self",(char *) "dc",(char *) "region", NULL
27893 };
27894
27895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27897 if (!SWIG_IsOK(res1)) {
27898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27899 }
27900 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27901 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
27902 if (!SWIG_IsOK(res2)) {
27903 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
27904 }
27905 arg2 = reinterpret_cast< wxDC * >(argp2);
27906 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
27907 if (!SWIG_IsOK(res3)) {
27908 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
27909 }
27910 if (!argp3) {
27911 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
27912 }
27913 arg3 = reinterpret_cast< wxRegion * >(argp3);
27914 {
27915 PyThreadState* __tstate = wxPyBeginAllowThreads();
27916 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
27917 wxPyEndAllowThreads(__tstate);
27918 if (PyErr_Occurred()) SWIG_fail;
27919 }
27920 resultobj = SWIG_Py_Void();
27921 return resultobj;
27922 fail:
27923 return NULL;
27924 }
27925
27926
27927 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27928 PyObject *resultobj = 0;
27929 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27930 wxDC *arg2 = (wxDC *) 0 ;
27931 void *argp1 = 0 ;
27932 int res1 = 0 ;
27933 void *argp2 = 0 ;
27934 int res2 = 0 ;
27935 PyObject * obj0 = 0 ;
27936 PyObject * obj1 = 0 ;
27937 char * kwnames[] = {
27938 (char *) "self",(char *) "dc", NULL
27939 };
27940
27941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
27942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27943 if (!SWIG_IsOK(res1)) {
27944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27945 }
27946 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27947 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
27948 if (!SWIG_IsOK(res2)) {
27949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
27950 }
27951 arg2 = reinterpret_cast< wxDC * >(argp2);
27952 {
27953 PyThreadState* __tstate = wxPyBeginAllowThreads();
27954 (arg1)->DrawToDC(arg2);
27955 wxPyEndAllowThreads(__tstate);
27956 if (PyErr_Occurred()) SWIG_fail;
27957 }
27958 resultobj = SWIG_Py_Void();
27959 return resultobj;
27960 fail:
27961 return NULL;
27962 }
27963
27964
27965 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27966 PyObject *resultobj = 0;
27967 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27968 int arg2 ;
27969 int arg3 ;
27970 wxColour *arg4 = 0 ;
27971 int arg5 = (int) wxFLOOD_SURFACE ;
27972 void *argp1 = 0 ;
27973 int res1 = 0 ;
27974 int val2 ;
27975 int ecode2 = 0 ;
27976 int val3 ;
27977 int ecode3 = 0 ;
27978 wxColour temp4 ;
27979 int val5 ;
27980 int ecode5 = 0 ;
27981 PyObject * obj0 = 0 ;
27982 PyObject * obj1 = 0 ;
27983 PyObject * obj2 = 0 ;
27984 PyObject * obj3 = 0 ;
27985 PyObject * obj4 = 0 ;
27986 char * kwnames[] = {
27987 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
27988 };
27989
27990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27992 if (!SWIG_IsOK(res1)) {
27993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27994 }
27995 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27996 ecode2 = SWIG_AsVal_int(obj1, &val2);
27997 if (!SWIG_IsOK(ecode2)) {
27998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
27999 }
28000 arg2 = static_cast< int >(val2);
28001 ecode3 = SWIG_AsVal_int(obj2, &val3);
28002 if (!SWIG_IsOK(ecode3)) {
28003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
28004 }
28005 arg3 = static_cast< int >(val3);
28006 {
28007 arg4 = &temp4;
28008 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
28009 }
28010 if (obj4) {
28011 ecode5 = SWIG_AsVal_int(obj4, &val5);
28012 if (!SWIG_IsOK(ecode5)) {
28013 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
28014 }
28015 arg5 = static_cast< int >(val5);
28016 }
28017 {
28018 PyThreadState* __tstate = wxPyBeginAllowThreads();
28019 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
28020 wxPyEndAllowThreads(__tstate);
28021 if (PyErr_Occurred()) SWIG_fail;
28022 }
28023 resultobj = SWIG_Py_Void();
28024 return resultobj;
28025 fail:
28026 return NULL;
28027 }
28028
28029
28030 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28031 PyObject *resultobj = 0;
28032 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28033 wxPoint *arg2 = 0 ;
28034 wxColour *arg3 = 0 ;
28035 int arg4 = (int) wxFLOOD_SURFACE ;
28036 void *argp1 = 0 ;
28037 int res1 = 0 ;
28038 wxPoint temp2 ;
28039 wxColour temp3 ;
28040 int val4 ;
28041 int ecode4 = 0 ;
28042 PyObject * obj0 = 0 ;
28043 PyObject * obj1 = 0 ;
28044 PyObject * obj2 = 0 ;
28045 PyObject * obj3 = 0 ;
28046 char * kwnames[] = {
28047 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
28048 };
28049
28050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28052 if (!SWIG_IsOK(res1)) {
28053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28054 }
28055 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28056 {
28057 arg2 = &temp2;
28058 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28059 }
28060 {
28061 arg3 = &temp3;
28062 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28063 }
28064 if (obj3) {
28065 ecode4 = SWIG_AsVal_int(obj3, &val4);
28066 if (!SWIG_IsOK(ecode4)) {
28067 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
28068 }
28069 arg4 = static_cast< int >(val4);
28070 }
28071 {
28072 PyThreadState* __tstate = wxPyBeginAllowThreads();
28073 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
28074 wxPyEndAllowThreads(__tstate);
28075 if (PyErr_Occurred()) SWIG_fail;
28076 }
28077 resultobj = SWIG_Py_Void();
28078 return resultobj;
28079 fail:
28080 return NULL;
28081 }
28082
28083
28084 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28085 PyObject *resultobj = 0;
28086 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28087 int arg2 ;
28088 int arg3 ;
28089 int arg4 ;
28090 int arg5 ;
28091 void *argp1 = 0 ;
28092 int res1 = 0 ;
28093 int val2 ;
28094 int ecode2 = 0 ;
28095 int val3 ;
28096 int ecode3 = 0 ;
28097 int val4 ;
28098 int ecode4 = 0 ;
28099 int val5 ;
28100 int ecode5 = 0 ;
28101 PyObject * obj0 = 0 ;
28102 PyObject * obj1 = 0 ;
28103 PyObject * obj2 = 0 ;
28104 PyObject * obj3 = 0 ;
28105 PyObject * obj4 = 0 ;
28106 char * kwnames[] = {
28107 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
28108 };
28109
28110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28112 if (!SWIG_IsOK(res1)) {
28113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28114 }
28115 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28116 ecode2 = SWIG_AsVal_int(obj1, &val2);
28117 if (!SWIG_IsOK(ecode2)) {
28118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
28119 }
28120 arg2 = static_cast< int >(val2);
28121 ecode3 = SWIG_AsVal_int(obj2, &val3);
28122 if (!SWIG_IsOK(ecode3)) {
28123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
28124 }
28125 arg3 = static_cast< int >(val3);
28126 ecode4 = SWIG_AsVal_int(obj3, &val4);
28127 if (!SWIG_IsOK(ecode4)) {
28128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
28129 }
28130 arg4 = static_cast< int >(val4);
28131 ecode5 = SWIG_AsVal_int(obj4, &val5);
28132 if (!SWIG_IsOK(ecode5)) {
28133 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
28134 }
28135 arg5 = static_cast< int >(val5);
28136 {
28137 PyThreadState* __tstate = wxPyBeginAllowThreads();
28138 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
28139 wxPyEndAllowThreads(__tstate);
28140 if (PyErr_Occurred()) SWIG_fail;
28141 }
28142 resultobj = SWIG_Py_Void();
28143 return resultobj;
28144 fail:
28145 return NULL;
28146 }
28147
28148
28149 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28150 PyObject *resultobj = 0;
28151 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28152 wxPoint *arg2 = 0 ;
28153 wxPoint *arg3 = 0 ;
28154 void *argp1 = 0 ;
28155 int res1 = 0 ;
28156 wxPoint temp2 ;
28157 wxPoint temp3 ;
28158 PyObject * obj0 = 0 ;
28159 PyObject * obj1 = 0 ;
28160 PyObject * obj2 = 0 ;
28161 char * kwnames[] = {
28162 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
28163 };
28164
28165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28167 if (!SWIG_IsOK(res1)) {
28168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28169 }
28170 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28171 {
28172 arg2 = &temp2;
28173 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28174 }
28175 {
28176 arg3 = &temp3;
28177 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28178 }
28179 {
28180 PyThreadState* __tstate = wxPyBeginAllowThreads();
28181 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
28182 wxPyEndAllowThreads(__tstate);
28183 if (PyErr_Occurred()) SWIG_fail;
28184 }
28185 resultobj = SWIG_Py_Void();
28186 return resultobj;
28187 fail:
28188 return NULL;
28189 }
28190
28191
28192 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28193 PyObject *resultobj = 0;
28194 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28195 int arg2 ;
28196 int arg3 ;
28197 void *argp1 = 0 ;
28198 int res1 = 0 ;
28199 int val2 ;
28200 int ecode2 = 0 ;
28201 int val3 ;
28202 int ecode3 = 0 ;
28203 PyObject * obj0 = 0 ;
28204 PyObject * obj1 = 0 ;
28205 PyObject * obj2 = 0 ;
28206 char * kwnames[] = {
28207 (char *) "self",(char *) "x",(char *) "y", NULL
28208 };
28209
28210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28212 if (!SWIG_IsOK(res1)) {
28213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28214 }
28215 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28216 ecode2 = SWIG_AsVal_int(obj1, &val2);
28217 if (!SWIG_IsOK(ecode2)) {
28218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
28219 }
28220 arg2 = static_cast< int >(val2);
28221 ecode3 = SWIG_AsVal_int(obj2, &val3);
28222 if (!SWIG_IsOK(ecode3)) {
28223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
28224 }
28225 arg3 = static_cast< int >(val3);
28226 {
28227 PyThreadState* __tstate = wxPyBeginAllowThreads();
28228 (arg1)->CrossHair(arg2,arg3);
28229 wxPyEndAllowThreads(__tstate);
28230 if (PyErr_Occurred()) SWIG_fail;
28231 }
28232 resultobj = SWIG_Py_Void();
28233 return resultobj;
28234 fail:
28235 return NULL;
28236 }
28237
28238
28239 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28240 PyObject *resultobj = 0;
28241 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28242 wxPoint *arg2 = 0 ;
28243 void *argp1 = 0 ;
28244 int res1 = 0 ;
28245 wxPoint temp2 ;
28246 PyObject * obj0 = 0 ;
28247 PyObject * obj1 = 0 ;
28248 char * kwnames[] = {
28249 (char *) "self",(char *) "pt", NULL
28250 };
28251
28252 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
28253 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28254 if (!SWIG_IsOK(res1)) {
28255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28256 }
28257 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28258 {
28259 arg2 = &temp2;
28260 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28261 }
28262 {
28263 PyThreadState* __tstate = wxPyBeginAllowThreads();
28264 (arg1)->CrossHair((wxPoint const &)*arg2);
28265 wxPyEndAllowThreads(__tstate);
28266 if (PyErr_Occurred()) SWIG_fail;
28267 }
28268 resultobj = SWIG_Py_Void();
28269 return resultobj;
28270 fail:
28271 return NULL;
28272 }
28273
28274
28275 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28276 PyObject *resultobj = 0;
28277 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28278 int arg2 ;
28279 int arg3 ;
28280 int arg4 ;
28281 int arg5 ;
28282 int arg6 ;
28283 int arg7 ;
28284 void *argp1 = 0 ;
28285 int res1 = 0 ;
28286 int val2 ;
28287 int ecode2 = 0 ;
28288 int val3 ;
28289 int ecode3 = 0 ;
28290 int val4 ;
28291 int ecode4 = 0 ;
28292 int val5 ;
28293 int ecode5 = 0 ;
28294 int val6 ;
28295 int ecode6 = 0 ;
28296 int val7 ;
28297 int ecode7 = 0 ;
28298 PyObject * obj0 = 0 ;
28299 PyObject * obj1 = 0 ;
28300 PyObject * obj2 = 0 ;
28301 PyObject * obj3 = 0 ;
28302 PyObject * obj4 = 0 ;
28303 PyObject * obj5 = 0 ;
28304 PyObject * obj6 = 0 ;
28305 char * kwnames[] = {
28306 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
28307 };
28308
28309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28311 if (!SWIG_IsOK(res1)) {
28312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28313 }
28314 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28315 ecode2 = SWIG_AsVal_int(obj1, &val2);
28316 if (!SWIG_IsOK(ecode2)) {
28317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
28318 }
28319 arg2 = static_cast< int >(val2);
28320 ecode3 = SWIG_AsVal_int(obj2, &val3);
28321 if (!SWIG_IsOK(ecode3)) {
28322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
28323 }
28324 arg3 = static_cast< int >(val3);
28325 ecode4 = SWIG_AsVal_int(obj3, &val4);
28326 if (!SWIG_IsOK(ecode4)) {
28327 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
28328 }
28329 arg4 = static_cast< int >(val4);
28330 ecode5 = SWIG_AsVal_int(obj4, &val5);
28331 if (!SWIG_IsOK(ecode5)) {
28332 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
28333 }
28334 arg5 = static_cast< int >(val5);
28335 ecode6 = SWIG_AsVal_int(obj5, &val6);
28336 if (!SWIG_IsOK(ecode6)) {
28337 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
28338 }
28339 arg6 = static_cast< int >(val6);
28340 ecode7 = SWIG_AsVal_int(obj6, &val7);
28341 if (!SWIG_IsOK(ecode7)) {
28342 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
28343 }
28344 arg7 = static_cast< int >(val7);
28345 {
28346 PyThreadState* __tstate = wxPyBeginAllowThreads();
28347 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
28348 wxPyEndAllowThreads(__tstate);
28349 if (PyErr_Occurred()) SWIG_fail;
28350 }
28351 resultobj = SWIG_Py_Void();
28352 return resultobj;
28353 fail:
28354 return NULL;
28355 }
28356
28357
28358 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28359 PyObject *resultobj = 0;
28360 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28361 wxPoint *arg2 = 0 ;
28362 wxPoint *arg3 = 0 ;
28363 wxPoint *arg4 = 0 ;
28364 void *argp1 = 0 ;
28365 int res1 = 0 ;
28366 wxPoint temp2 ;
28367 wxPoint temp3 ;
28368 wxPoint temp4 ;
28369 PyObject * obj0 = 0 ;
28370 PyObject * obj1 = 0 ;
28371 PyObject * obj2 = 0 ;
28372 PyObject * obj3 = 0 ;
28373 char * kwnames[] = {
28374 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
28375 };
28376
28377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28379 if (!SWIG_IsOK(res1)) {
28380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28381 }
28382 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28383 {
28384 arg2 = &temp2;
28385 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28386 }
28387 {
28388 arg3 = &temp3;
28389 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28390 }
28391 {
28392 arg4 = &temp4;
28393 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
28394 }
28395 {
28396 PyThreadState* __tstate = wxPyBeginAllowThreads();
28397 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
28398 wxPyEndAllowThreads(__tstate);
28399 if (PyErr_Occurred()) SWIG_fail;
28400 }
28401 resultobj = SWIG_Py_Void();
28402 return resultobj;
28403 fail:
28404 return NULL;
28405 }
28406
28407
28408 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28409 PyObject *resultobj = 0;
28410 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28411 int arg2 ;
28412 int arg3 ;
28413 int arg4 ;
28414 int arg5 ;
28415 void *argp1 = 0 ;
28416 int res1 = 0 ;
28417 int val2 ;
28418 int ecode2 = 0 ;
28419 int val3 ;
28420 int ecode3 = 0 ;
28421 int val4 ;
28422 int ecode4 = 0 ;
28423 int val5 ;
28424 int ecode5 = 0 ;
28425 PyObject * obj0 = 0 ;
28426 PyObject * obj1 = 0 ;
28427 PyObject * obj2 = 0 ;
28428 PyObject * obj3 = 0 ;
28429 PyObject * obj4 = 0 ;
28430 char * kwnames[] = {
28431 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28432 };
28433
28434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28436 if (!SWIG_IsOK(res1)) {
28437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28438 }
28439 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28440 ecode2 = SWIG_AsVal_int(obj1, &val2);
28441 if (!SWIG_IsOK(ecode2)) {
28442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
28443 }
28444 arg2 = static_cast< int >(val2);
28445 ecode3 = SWIG_AsVal_int(obj2, &val3);
28446 if (!SWIG_IsOK(ecode3)) {
28447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
28448 }
28449 arg3 = static_cast< int >(val3);
28450 ecode4 = SWIG_AsVal_int(obj3, &val4);
28451 if (!SWIG_IsOK(ecode4)) {
28452 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
28453 }
28454 arg4 = static_cast< int >(val4);
28455 ecode5 = SWIG_AsVal_int(obj4, &val5);
28456 if (!SWIG_IsOK(ecode5)) {
28457 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
28458 }
28459 arg5 = static_cast< int >(val5);
28460 {
28461 PyThreadState* __tstate = wxPyBeginAllowThreads();
28462 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
28463 wxPyEndAllowThreads(__tstate);
28464 if (PyErr_Occurred()) SWIG_fail;
28465 }
28466 resultobj = SWIG_Py_Void();
28467 return resultobj;
28468 fail:
28469 return NULL;
28470 }
28471
28472
28473 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28474 PyObject *resultobj = 0;
28475 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28476 wxRect *arg2 = 0 ;
28477 void *argp1 = 0 ;
28478 int res1 = 0 ;
28479 wxRect temp2 ;
28480 PyObject * obj0 = 0 ;
28481 PyObject * obj1 = 0 ;
28482 char * kwnames[] = {
28483 (char *) "self",(char *) "rect", NULL
28484 };
28485
28486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
28487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28488 if (!SWIG_IsOK(res1)) {
28489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28490 }
28491 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28492 {
28493 arg2 = &temp2;
28494 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
28495 }
28496 {
28497 PyThreadState* __tstate = wxPyBeginAllowThreads();
28498 (arg1)->DrawCheckMark((wxRect const &)*arg2);
28499 wxPyEndAllowThreads(__tstate);
28500 if (PyErr_Occurred()) SWIG_fail;
28501 }
28502 resultobj = SWIG_Py_Void();
28503 return resultobj;
28504 fail:
28505 return NULL;
28506 }
28507
28508
28509 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28510 PyObject *resultobj = 0;
28511 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28512 int arg2 ;
28513 int arg3 ;
28514 int arg4 ;
28515 int arg5 ;
28516 double arg6 ;
28517 double arg7 ;
28518 void *argp1 = 0 ;
28519 int res1 = 0 ;
28520 int val2 ;
28521 int ecode2 = 0 ;
28522 int val3 ;
28523 int ecode3 = 0 ;
28524 int val4 ;
28525 int ecode4 = 0 ;
28526 int val5 ;
28527 int ecode5 = 0 ;
28528 double val6 ;
28529 int ecode6 = 0 ;
28530 double val7 ;
28531 int ecode7 = 0 ;
28532 PyObject * obj0 = 0 ;
28533 PyObject * obj1 = 0 ;
28534 PyObject * obj2 = 0 ;
28535 PyObject * obj3 = 0 ;
28536 PyObject * obj4 = 0 ;
28537 PyObject * obj5 = 0 ;
28538 PyObject * obj6 = 0 ;
28539 char * kwnames[] = {
28540 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
28541 };
28542
28543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28544 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28545 if (!SWIG_IsOK(res1)) {
28546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28547 }
28548 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28549 ecode2 = SWIG_AsVal_int(obj1, &val2);
28550 if (!SWIG_IsOK(ecode2)) {
28551 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
28552 }
28553 arg2 = static_cast< int >(val2);
28554 ecode3 = SWIG_AsVal_int(obj2, &val3);
28555 if (!SWIG_IsOK(ecode3)) {
28556 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
28557 }
28558 arg3 = static_cast< int >(val3);
28559 ecode4 = SWIG_AsVal_int(obj3, &val4);
28560 if (!SWIG_IsOK(ecode4)) {
28561 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
28562 }
28563 arg4 = static_cast< int >(val4);
28564 ecode5 = SWIG_AsVal_int(obj4, &val5);
28565 if (!SWIG_IsOK(ecode5)) {
28566 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
28567 }
28568 arg5 = static_cast< int >(val5);
28569 ecode6 = SWIG_AsVal_double(obj5, &val6);
28570 if (!SWIG_IsOK(ecode6)) {
28571 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
28572 }
28573 arg6 = static_cast< double >(val6);
28574 ecode7 = SWIG_AsVal_double(obj6, &val7);
28575 if (!SWIG_IsOK(ecode7)) {
28576 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
28577 }
28578 arg7 = static_cast< double >(val7);
28579 {
28580 PyThreadState* __tstate = wxPyBeginAllowThreads();
28581 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
28582 wxPyEndAllowThreads(__tstate);
28583 if (PyErr_Occurred()) SWIG_fail;
28584 }
28585 resultobj = SWIG_Py_Void();
28586 return resultobj;
28587 fail:
28588 return NULL;
28589 }
28590
28591
28592 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28593 PyObject *resultobj = 0;
28594 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28595 wxPoint *arg2 = 0 ;
28596 wxSize *arg3 = 0 ;
28597 double arg4 ;
28598 double arg5 ;
28599 void *argp1 = 0 ;
28600 int res1 = 0 ;
28601 wxPoint temp2 ;
28602 wxSize temp3 ;
28603 double val4 ;
28604 int ecode4 = 0 ;
28605 double val5 ;
28606 int ecode5 = 0 ;
28607 PyObject * obj0 = 0 ;
28608 PyObject * obj1 = 0 ;
28609 PyObject * obj2 = 0 ;
28610 PyObject * obj3 = 0 ;
28611 PyObject * obj4 = 0 ;
28612 char * kwnames[] = {
28613 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
28614 };
28615
28616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28618 if (!SWIG_IsOK(res1)) {
28619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28620 }
28621 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28622 {
28623 arg2 = &temp2;
28624 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28625 }
28626 {
28627 arg3 = &temp3;
28628 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
28629 }
28630 ecode4 = SWIG_AsVal_double(obj3, &val4);
28631 if (!SWIG_IsOK(ecode4)) {
28632 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
28633 }
28634 arg4 = static_cast< double >(val4);
28635 ecode5 = SWIG_AsVal_double(obj4, &val5);
28636 if (!SWIG_IsOK(ecode5)) {
28637 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
28638 }
28639 arg5 = static_cast< double >(val5);
28640 {
28641 PyThreadState* __tstate = wxPyBeginAllowThreads();
28642 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
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_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28654 PyObject *resultobj = 0;
28655 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28656 int arg2 ;
28657 int arg3 ;
28658 void *argp1 = 0 ;
28659 int res1 = 0 ;
28660 int val2 ;
28661 int ecode2 = 0 ;
28662 int val3 ;
28663 int ecode3 = 0 ;
28664 PyObject * obj0 = 0 ;
28665 PyObject * obj1 = 0 ;
28666 PyObject * obj2 = 0 ;
28667 char * kwnames[] = {
28668 (char *) "self",(char *) "x",(char *) "y", NULL
28669 };
28670
28671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28673 if (!SWIG_IsOK(res1)) {
28674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28675 }
28676 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28677 ecode2 = SWIG_AsVal_int(obj1, &val2);
28678 if (!SWIG_IsOK(ecode2)) {
28679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
28680 }
28681 arg2 = static_cast< int >(val2);
28682 ecode3 = SWIG_AsVal_int(obj2, &val3);
28683 if (!SWIG_IsOK(ecode3)) {
28684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
28685 }
28686 arg3 = static_cast< int >(val3);
28687 {
28688 PyThreadState* __tstate = wxPyBeginAllowThreads();
28689 (arg1)->DrawPoint(arg2,arg3);
28690 wxPyEndAllowThreads(__tstate);
28691 if (PyErr_Occurred()) SWIG_fail;
28692 }
28693 resultobj = SWIG_Py_Void();
28694 return resultobj;
28695 fail:
28696 return NULL;
28697 }
28698
28699
28700 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28701 PyObject *resultobj = 0;
28702 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28703 wxPoint *arg2 = 0 ;
28704 void *argp1 = 0 ;
28705 int res1 = 0 ;
28706 wxPoint temp2 ;
28707 PyObject * obj0 = 0 ;
28708 PyObject * obj1 = 0 ;
28709 char * kwnames[] = {
28710 (char *) "self",(char *) "pt", NULL
28711 };
28712
28713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
28714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28715 if (!SWIG_IsOK(res1)) {
28716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28717 }
28718 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28719 {
28720 arg2 = &temp2;
28721 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28722 }
28723 {
28724 PyThreadState* __tstate = wxPyBeginAllowThreads();
28725 (arg1)->DrawPoint((wxPoint const &)*arg2);
28726 wxPyEndAllowThreads(__tstate);
28727 if (PyErr_Occurred()) SWIG_fail;
28728 }
28729 resultobj = SWIG_Py_Void();
28730 return resultobj;
28731 fail:
28732 return NULL;
28733 }
28734
28735
28736 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28737 PyObject *resultobj = 0;
28738 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28739 int arg2 ;
28740 int arg3 ;
28741 int arg4 ;
28742 int arg5 ;
28743 void *argp1 = 0 ;
28744 int res1 = 0 ;
28745 int val2 ;
28746 int ecode2 = 0 ;
28747 int val3 ;
28748 int ecode3 = 0 ;
28749 int val4 ;
28750 int ecode4 = 0 ;
28751 int val5 ;
28752 int ecode5 = 0 ;
28753 PyObject * obj0 = 0 ;
28754 PyObject * obj1 = 0 ;
28755 PyObject * obj2 = 0 ;
28756 PyObject * obj3 = 0 ;
28757 PyObject * obj4 = 0 ;
28758 char * kwnames[] = {
28759 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
28760 };
28761
28762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28764 if (!SWIG_IsOK(res1)) {
28765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28766 }
28767 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28768 ecode2 = SWIG_AsVal_int(obj1, &val2);
28769 if (!SWIG_IsOK(ecode2)) {
28770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
28771 }
28772 arg2 = static_cast< int >(val2);
28773 ecode3 = SWIG_AsVal_int(obj2, &val3);
28774 if (!SWIG_IsOK(ecode3)) {
28775 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
28776 }
28777 arg3 = static_cast< int >(val3);
28778 ecode4 = SWIG_AsVal_int(obj3, &val4);
28779 if (!SWIG_IsOK(ecode4)) {
28780 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
28781 }
28782 arg4 = static_cast< int >(val4);
28783 ecode5 = SWIG_AsVal_int(obj4, &val5);
28784 if (!SWIG_IsOK(ecode5)) {
28785 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
28786 }
28787 arg5 = static_cast< int >(val5);
28788 {
28789 PyThreadState* __tstate = wxPyBeginAllowThreads();
28790 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
28791 wxPyEndAllowThreads(__tstate);
28792 if (PyErr_Occurred()) SWIG_fail;
28793 }
28794 resultobj = SWIG_Py_Void();
28795 return resultobj;
28796 fail:
28797 return NULL;
28798 }
28799
28800
28801 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28802 PyObject *resultobj = 0;
28803 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28804 wxRect *arg2 = 0 ;
28805 void *argp1 = 0 ;
28806 int res1 = 0 ;
28807 wxRect temp2 ;
28808 PyObject * obj0 = 0 ;
28809 PyObject * obj1 = 0 ;
28810 char * kwnames[] = {
28811 (char *) "self",(char *) "rect", NULL
28812 };
28813
28814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
28815 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28816 if (!SWIG_IsOK(res1)) {
28817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28818 }
28819 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28820 {
28821 arg2 = &temp2;
28822 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
28823 }
28824 {
28825 PyThreadState* __tstate = wxPyBeginAllowThreads();
28826 (arg1)->DrawRectangle((wxRect const &)*arg2);
28827 wxPyEndAllowThreads(__tstate);
28828 if (PyErr_Occurred()) SWIG_fail;
28829 }
28830 resultobj = SWIG_Py_Void();
28831 return resultobj;
28832 fail:
28833 return NULL;
28834 }
28835
28836
28837 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28838 PyObject *resultobj = 0;
28839 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28840 wxPoint *arg2 = 0 ;
28841 wxSize *arg3 = 0 ;
28842 void *argp1 = 0 ;
28843 int res1 = 0 ;
28844 wxPoint temp2 ;
28845 wxSize temp3 ;
28846 PyObject * obj0 = 0 ;
28847 PyObject * obj1 = 0 ;
28848 PyObject * obj2 = 0 ;
28849 char * kwnames[] = {
28850 (char *) "self",(char *) "pt",(char *) "sz", NULL
28851 };
28852
28853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28855 if (!SWIG_IsOK(res1)) {
28856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28857 }
28858 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28859 {
28860 arg2 = &temp2;
28861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
28862 }
28863 {
28864 arg3 = &temp3;
28865 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
28866 }
28867 {
28868 PyThreadState* __tstate = wxPyBeginAllowThreads();
28869 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
28870 wxPyEndAllowThreads(__tstate);
28871 if (PyErr_Occurred()) SWIG_fail;
28872 }
28873 resultobj = SWIG_Py_Void();
28874 return resultobj;
28875 fail:
28876 return NULL;
28877 }
28878
28879
28880 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28881 PyObject *resultobj = 0;
28882 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28883 int arg2 ;
28884 int arg3 ;
28885 int arg4 ;
28886 int arg5 ;
28887 double arg6 ;
28888 void *argp1 = 0 ;
28889 int res1 = 0 ;
28890 int val2 ;
28891 int ecode2 = 0 ;
28892 int val3 ;
28893 int ecode3 = 0 ;
28894 int val4 ;
28895 int ecode4 = 0 ;
28896 int val5 ;
28897 int ecode5 = 0 ;
28898 double val6 ;
28899 int ecode6 = 0 ;
28900 PyObject * obj0 = 0 ;
28901 PyObject * obj1 = 0 ;
28902 PyObject * obj2 = 0 ;
28903 PyObject * obj3 = 0 ;
28904 PyObject * obj4 = 0 ;
28905 PyObject * obj5 = 0 ;
28906 char * kwnames[] = {
28907 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
28908 };
28909
28910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28912 if (!SWIG_IsOK(res1)) {
28913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28914 }
28915 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28916 ecode2 = SWIG_AsVal_int(obj1, &val2);
28917 if (!SWIG_IsOK(ecode2)) {
28918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
28919 }
28920 arg2 = static_cast< int >(val2);
28921 ecode3 = SWIG_AsVal_int(obj2, &val3);
28922 if (!SWIG_IsOK(ecode3)) {
28923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
28924 }
28925 arg3 = static_cast< int >(val3);
28926 ecode4 = SWIG_AsVal_int(obj3, &val4);
28927 if (!SWIG_IsOK(ecode4)) {
28928 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
28929 }
28930 arg4 = static_cast< int >(val4);
28931 ecode5 = SWIG_AsVal_int(obj4, &val5);
28932 if (!SWIG_IsOK(ecode5)) {
28933 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
28934 }
28935 arg5 = static_cast< int >(val5);
28936 ecode6 = SWIG_AsVal_double(obj5, &val6);
28937 if (!SWIG_IsOK(ecode6)) {
28938 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
28939 }
28940 arg6 = static_cast< double >(val6);
28941 {
28942 PyThreadState* __tstate = wxPyBeginAllowThreads();
28943 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
28944 wxPyEndAllowThreads(__tstate);
28945 if (PyErr_Occurred()) SWIG_fail;
28946 }
28947 resultobj = SWIG_Py_Void();
28948 return resultobj;
28949 fail:
28950 return NULL;
28951 }
28952
28953
28954 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28955 PyObject *resultobj = 0;
28956 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28957 wxRect *arg2 = 0 ;
28958 double arg3 ;
28959 void *argp1 = 0 ;
28960 int res1 = 0 ;
28961 wxRect temp2 ;
28962 double val3 ;
28963 int ecode3 = 0 ;
28964 PyObject * obj0 = 0 ;
28965 PyObject * obj1 = 0 ;
28966 PyObject * obj2 = 0 ;
28967 char * kwnames[] = {
28968 (char *) "self",(char *) "r",(char *) "radius", NULL
28969 };
28970
28971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28973 if (!SWIG_IsOK(res1)) {
28974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28975 }
28976 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28977 {
28978 arg2 = &temp2;
28979 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
28980 }
28981 ecode3 = SWIG_AsVal_double(obj2, &val3);
28982 if (!SWIG_IsOK(ecode3)) {
28983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
28984 }
28985 arg3 = static_cast< double >(val3);
28986 {
28987 PyThreadState* __tstate = wxPyBeginAllowThreads();
28988 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
28989 wxPyEndAllowThreads(__tstate);
28990 if (PyErr_Occurred()) SWIG_fail;
28991 }
28992 resultobj = SWIG_Py_Void();
28993 return resultobj;
28994 fail:
28995 return NULL;
28996 }
28997
28998
28999 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29000 PyObject *resultobj = 0;
29001 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29002 wxPoint *arg2 = 0 ;
29003 wxSize *arg3 = 0 ;
29004 double arg4 ;
29005 void *argp1 = 0 ;
29006 int res1 = 0 ;
29007 wxPoint temp2 ;
29008 wxSize temp3 ;
29009 double val4 ;
29010 int ecode4 = 0 ;
29011 PyObject * obj0 = 0 ;
29012 PyObject * obj1 = 0 ;
29013 PyObject * obj2 = 0 ;
29014 PyObject * obj3 = 0 ;
29015 char * kwnames[] = {
29016 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
29017 };
29018
29019 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29020 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29021 if (!SWIG_IsOK(res1)) {
29022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29023 }
29024 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29025 {
29026 arg2 = &temp2;
29027 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29028 }
29029 {
29030 arg3 = &temp3;
29031 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29032 }
29033 ecode4 = SWIG_AsVal_double(obj3, &val4);
29034 if (!SWIG_IsOK(ecode4)) {
29035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
29036 }
29037 arg4 = static_cast< double >(val4);
29038 {
29039 PyThreadState* __tstate = wxPyBeginAllowThreads();
29040 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
29041 wxPyEndAllowThreads(__tstate);
29042 if (PyErr_Occurred()) SWIG_fail;
29043 }
29044 resultobj = SWIG_Py_Void();
29045 return resultobj;
29046 fail:
29047 return NULL;
29048 }
29049
29050
29051 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29052 PyObject *resultobj = 0;
29053 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29054 int arg2 ;
29055 int arg3 ;
29056 int arg4 ;
29057 void *argp1 = 0 ;
29058 int res1 = 0 ;
29059 int val2 ;
29060 int ecode2 = 0 ;
29061 int val3 ;
29062 int ecode3 = 0 ;
29063 int val4 ;
29064 int ecode4 = 0 ;
29065 PyObject * obj0 = 0 ;
29066 PyObject * obj1 = 0 ;
29067 PyObject * obj2 = 0 ;
29068 PyObject * obj3 = 0 ;
29069 char * kwnames[] = {
29070 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
29071 };
29072
29073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29075 if (!SWIG_IsOK(res1)) {
29076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29077 }
29078 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29079 ecode2 = SWIG_AsVal_int(obj1, &val2);
29080 if (!SWIG_IsOK(ecode2)) {
29081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
29082 }
29083 arg2 = static_cast< int >(val2);
29084 ecode3 = SWIG_AsVal_int(obj2, &val3);
29085 if (!SWIG_IsOK(ecode3)) {
29086 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
29087 }
29088 arg3 = static_cast< int >(val3);
29089 ecode4 = SWIG_AsVal_int(obj3, &val4);
29090 if (!SWIG_IsOK(ecode4)) {
29091 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
29092 }
29093 arg4 = static_cast< int >(val4);
29094 {
29095 PyThreadState* __tstate = wxPyBeginAllowThreads();
29096 (arg1)->DrawCircle(arg2,arg3,arg4);
29097 wxPyEndAllowThreads(__tstate);
29098 if (PyErr_Occurred()) SWIG_fail;
29099 }
29100 resultobj = SWIG_Py_Void();
29101 return resultobj;
29102 fail:
29103 return NULL;
29104 }
29105
29106
29107 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29108 PyObject *resultobj = 0;
29109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29110 wxPoint *arg2 = 0 ;
29111 int arg3 ;
29112 void *argp1 = 0 ;
29113 int res1 = 0 ;
29114 wxPoint temp2 ;
29115 int val3 ;
29116 int ecode3 = 0 ;
29117 PyObject * obj0 = 0 ;
29118 PyObject * obj1 = 0 ;
29119 PyObject * obj2 = 0 ;
29120 char * kwnames[] = {
29121 (char *) "self",(char *) "pt",(char *) "radius", NULL
29122 };
29123
29124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29126 if (!SWIG_IsOK(res1)) {
29127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29128 }
29129 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29130 {
29131 arg2 = &temp2;
29132 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29133 }
29134 ecode3 = SWIG_AsVal_int(obj2, &val3);
29135 if (!SWIG_IsOK(ecode3)) {
29136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
29137 }
29138 arg3 = static_cast< int >(val3);
29139 {
29140 PyThreadState* __tstate = wxPyBeginAllowThreads();
29141 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
29142 wxPyEndAllowThreads(__tstate);
29143 if (PyErr_Occurred()) SWIG_fail;
29144 }
29145 resultobj = SWIG_Py_Void();
29146 return resultobj;
29147 fail:
29148 return NULL;
29149 }
29150
29151
29152 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29153 PyObject *resultobj = 0;
29154 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29155 int arg2 ;
29156 int arg3 ;
29157 int arg4 ;
29158 int arg5 ;
29159 void *argp1 = 0 ;
29160 int res1 = 0 ;
29161 int val2 ;
29162 int ecode2 = 0 ;
29163 int val3 ;
29164 int ecode3 = 0 ;
29165 int val4 ;
29166 int ecode4 = 0 ;
29167 int val5 ;
29168 int ecode5 = 0 ;
29169 PyObject * obj0 = 0 ;
29170 PyObject * obj1 = 0 ;
29171 PyObject * obj2 = 0 ;
29172 PyObject * obj3 = 0 ;
29173 PyObject * obj4 = 0 ;
29174 char * kwnames[] = {
29175 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
29176 };
29177
29178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29180 if (!SWIG_IsOK(res1)) {
29181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29182 }
29183 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29184 ecode2 = SWIG_AsVal_int(obj1, &val2);
29185 if (!SWIG_IsOK(ecode2)) {
29186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
29187 }
29188 arg2 = static_cast< int >(val2);
29189 ecode3 = SWIG_AsVal_int(obj2, &val3);
29190 if (!SWIG_IsOK(ecode3)) {
29191 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
29192 }
29193 arg3 = static_cast< int >(val3);
29194 ecode4 = SWIG_AsVal_int(obj3, &val4);
29195 if (!SWIG_IsOK(ecode4)) {
29196 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
29197 }
29198 arg4 = static_cast< int >(val4);
29199 ecode5 = SWIG_AsVal_int(obj4, &val5);
29200 if (!SWIG_IsOK(ecode5)) {
29201 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
29202 }
29203 arg5 = static_cast< int >(val5);
29204 {
29205 PyThreadState* __tstate = wxPyBeginAllowThreads();
29206 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
29207 wxPyEndAllowThreads(__tstate);
29208 if (PyErr_Occurred()) SWIG_fail;
29209 }
29210 resultobj = SWIG_Py_Void();
29211 return resultobj;
29212 fail:
29213 return NULL;
29214 }
29215
29216
29217 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29218 PyObject *resultobj = 0;
29219 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29220 wxRect *arg2 = 0 ;
29221 void *argp1 = 0 ;
29222 int res1 = 0 ;
29223 wxRect temp2 ;
29224 PyObject * obj0 = 0 ;
29225 PyObject * obj1 = 0 ;
29226 char * kwnames[] = {
29227 (char *) "self",(char *) "rect", NULL
29228 };
29229
29230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
29231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29232 if (!SWIG_IsOK(res1)) {
29233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29234 }
29235 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29236 {
29237 arg2 = &temp2;
29238 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
29239 }
29240 {
29241 PyThreadState* __tstate = wxPyBeginAllowThreads();
29242 (arg1)->DrawEllipse((wxRect const &)*arg2);
29243 wxPyEndAllowThreads(__tstate);
29244 if (PyErr_Occurred()) SWIG_fail;
29245 }
29246 resultobj = SWIG_Py_Void();
29247 return resultobj;
29248 fail:
29249 return NULL;
29250 }
29251
29252
29253 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29254 PyObject *resultobj = 0;
29255 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29256 wxPoint *arg2 = 0 ;
29257 wxSize *arg3 = 0 ;
29258 void *argp1 = 0 ;
29259 int res1 = 0 ;
29260 wxPoint temp2 ;
29261 wxSize temp3 ;
29262 PyObject * obj0 = 0 ;
29263 PyObject * obj1 = 0 ;
29264 PyObject * obj2 = 0 ;
29265 char * kwnames[] = {
29266 (char *) "self",(char *) "pt",(char *) "sz", NULL
29267 };
29268
29269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29271 if (!SWIG_IsOK(res1)) {
29272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29273 }
29274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29275 {
29276 arg2 = &temp2;
29277 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
29278 }
29279 {
29280 arg3 = &temp3;
29281 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
29282 }
29283 {
29284 PyThreadState* __tstate = wxPyBeginAllowThreads();
29285 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
29286 wxPyEndAllowThreads(__tstate);
29287 if (PyErr_Occurred()) SWIG_fail;
29288 }
29289 resultobj = SWIG_Py_Void();
29290 return resultobj;
29291 fail:
29292 return NULL;
29293 }
29294
29295
29296 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29297 PyObject *resultobj = 0;
29298 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29299 wxIcon *arg2 = 0 ;
29300 int arg3 ;
29301 int arg4 ;
29302 void *argp1 = 0 ;
29303 int res1 = 0 ;
29304 void *argp2 = 0 ;
29305 int res2 = 0 ;
29306 int val3 ;
29307 int ecode3 = 0 ;
29308 int val4 ;
29309 int ecode4 = 0 ;
29310 PyObject * obj0 = 0 ;
29311 PyObject * obj1 = 0 ;
29312 PyObject * obj2 = 0 ;
29313 PyObject * obj3 = 0 ;
29314 char * kwnames[] = {
29315 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
29316 };
29317
29318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29320 if (!SWIG_IsOK(res1)) {
29321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29322 }
29323 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29325 if (!SWIG_IsOK(res2)) {
29326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29327 }
29328 if (!argp2) {
29329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
29330 }
29331 arg2 = reinterpret_cast< wxIcon * >(argp2);
29332 ecode3 = SWIG_AsVal_int(obj2, &val3);
29333 if (!SWIG_IsOK(ecode3)) {
29334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
29335 }
29336 arg3 = static_cast< int >(val3);
29337 ecode4 = SWIG_AsVal_int(obj3, &val4);
29338 if (!SWIG_IsOK(ecode4)) {
29339 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
29340 }
29341 arg4 = static_cast< int >(val4);
29342 {
29343 PyThreadState* __tstate = wxPyBeginAllowThreads();
29344 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
29345 wxPyEndAllowThreads(__tstate);
29346 if (PyErr_Occurred()) SWIG_fail;
29347 }
29348 resultobj = SWIG_Py_Void();
29349 return resultobj;
29350 fail:
29351 return NULL;
29352 }
29353
29354
29355 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29356 PyObject *resultobj = 0;
29357 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29358 wxIcon *arg2 = 0 ;
29359 wxPoint *arg3 = 0 ;
29360 void *argp1 = 0 ;
29361 int res1 = 0 ;
29362 void *argp2 = 0 ;
29363 int res2 = 0 ;
29364 wxPoint temp3 ;
29365 PyObject * obj0 = 0 ;
29366 PyObject * obj1 = 0 ;
29367 PyObject * obj2 = 0 ;
29368 char * kwnames[] = {
29369 (char *) "self",(char *) "icon",(char *) "pt", NULL
29370 };
29371
29372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29374 if (!SWIG_IsOK(res1)) {
29375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29376 }
29377 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29378 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
29379 if (!SWIG_IsOK(res2)) {
29380 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
29381 }
29382 if (!argp2) {
29383 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
29384 }
29385 arg2 = reinterpret_cast< wxIcon * >(argp2);
29386 {
29387 arg3 = &temp3;
29388 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29389 }
29390 {
29391 PyThreadState* __tstate = wxPyBeginAllowThreads();
29392 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
29393 wxPyEndAllowThreads(__tstate);
29394 if (PyErr_Occurred()) SWIG_fail;
29395 }
29396 resultobj = SWIG_Py_Void();
29397 return resultobj;
29398 fail:
29399 return NULL;
29400 }
29401
29402
29403 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29404 PyObject *resultobj = 0;
29405 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29406 wxBitmap *arg2 = 0 ;
29407 int arg3 ;
29408 int arg4 ;
29409 bool arg5 = (bool) false ;
29410 void *argp1 = 0 ;
29411 int res1 = 0 ;
29412 void *argp2 = 0 ;
29413 int res2 = 0 ;
29414 int val3 ;
29415 int ecode3 = 0 ;
29416 int val4 ;
29417 int ecode4 = 0 ;
29418 bool val5 ;
29419 int ecode5 = 0 ;
29420 PyObject * obj0 = 0 ;
29421 PyObject * obj1 = 0 ;
29422 PyObject * obj2 = 0 ;
29423 PyObject * obj3 = 0 ;
29424 PyObject * obj4 = 0 ;
29425 char * kwnames[] = {
29426 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
29427 };
29428
29429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29431 if (!SWIG_IsOK(res1)) {
29432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29433 }
29434 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29435 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29436 if (!SWIG_IsOK(res2)) {
29437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29438 }
29439 if (!argp2) {
29440 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29441 }
29442 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29443 ecode3 = SWIG_AsVal_int(obj2, &val3);
29444 if (!SWIG_IsOK(ecode3)) {
29445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
29446 }
29447 arg3 = static_cast< int >(val3);
29448 ecode4 = SWIG_AsVal_int(obj3, &val4);
29449 if (!SWIG_IsOK(ecode4)) {
29450 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
29451 }
29452 arg4 = static_cast< int >(val4);
29453 if (obj4) {
29454 ecode5 = SWIG_AsVal_bool(obj4, &val5);
29455 if (!SWIG_IsOK(ecode5)) {
29456 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
29457 }
29458 arg5 = static_cast< bool >(val5);
29459 }
29460 {
29461 PyThreadState* __tstate = wxPyBeginAllowThreads();
29462 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
29463 wxPyEndAllowThreads(__tstate);
29464 if (PyErr_Occurred()) SWIG_fail;
29465 }
29466 resultobj = SWIG_Py_Void();
29467 return resultobj;
29468 fail:
29469 return NULL;
29470 }
29471
29472
29473 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29474 PyObject *resultobj = 0;
29475 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29476 wxBitmap *arg2 = 0 ;
29477 wxPoint *arg3 = 0 ;
29478 bool arg4 = (bool) false ;
29479 void *argp1 = 0 ;
29480 int res1 = 0 ;
29481 void *argp2 = 0 ;
29482 int res2 = 0 ;
29483 wxPoint temp3 ;
29484 bool val4 ;
29485 int ecode4 = 0 ;
29486 PyObject * obj0 = 0 ;
29487 PyObject * obj1 = 0 ;
29488 PyObject * obj2 = 0 ;
29489 PyObject * obj3 = 0 ;
29490 char * kwnames[] = {
29491 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
29492 };
29493
29494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29496 if (!SWIG_IsOK(res1)) {
29497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29498 }
29499 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29500 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
29501 if (!SWIG_IsOK(res2)) {
29502 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29503 }
29504 if (!argp2) {
29505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
29506 }
29507 arg2 = reinterpret_cast< wxBitmap * >(argp2);
29508 {
29509 arg3 = &temp3;
29510 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29511 }
29512 if (obj3) {
29513 ecode4 = SWIG_AsVal_bool(obj3, &val4);
29514 if (!SWIG_IsOK(ecode4)) {
29515 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
29516 }
29517 arg4 = static_cast< bool >(val4);
29518 }
29519 {
29520 PyThreadState* __tstate = wxPyBeginAllowThreads();
29521 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
29522 wxPyEndAllowThreads(__tstate);
29523 if (PyErr_Occurred()) SWIG_fail;
29524 }
29525 resultobj = SWIG_Py_Void();
29526 return resultobj;
29527 fail:
29528 return NULL;
29529 }
29530
29531
29532 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29533 PyObject *resultobj = 0;
29534 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29535 wxString *arg2 = 0 ;
29536 int arg3 ;
29537 int arg4 ;
29538 void *argp1 = 0 ;
29539 int res1 = 0 ;
29540 bool temp2 = false ;
29541 int val3 ;
29542 int ecode3 = 0 ;
29543 int val4 ;
29544 int ecode4 = 0 ;
29545 PyObject * obj0 = 0 ;
29546 PyObject * obj1 = 0 ;
29547 PyObject * obj2 = 0 ;
29548 PyObject * obj3 = 0 ;
29549 char * kwnames[] = {
29550 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
29551 };
29552
29553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29555 if (!SWIG_IsOK(res1)) {
29556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29557 }
29558 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29559 {
29560 arg2 = wxString_in_helper(obj1);
29561 if (arg2 == NULL) SWIG_fail;
29562 temp2 = true;
29563 }
29564 ecode3 = SWIG_AsVal_int(obj2, &val3);
29565 if (!SWIG_IsOK(ecode3)) {
29566 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
29567 }
29568 arg3 = static_cast< int >(val3);
29569 ecode4 = SWIG_AsVal_int(obj3, &val4);
29570 if (!SWIG_IsOK(ecode4)) {
29571 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
29572 }
29573 arg4 = static_cast< int >(val4);
29574 {
29575 PyThreadState* __tstate = wxPyBeginAllowThreads();
29576 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
29577 wxPyEndAllowThreads(__tstate);
29578 if (PyErr_Occurred()) SWIG_fail;
29579 }
29580 resultobj = SWIG_Py_Void();
29581 {
29582 if (temp2)
29583 delete arg2;
29584 }
29585 return resultobj;
29586 fail:
29587 {
29588 if (temp2)
29589 delete arg2;
29590 }
29591 return NULL;
29592 }
29593
29594
29595 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29596 PyObject *resultobj = 0;
29597 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29598 wxString *arg2 = 0 ;
29599 wxPoint *arg3 = 0 ;
29600 void *argp1 = 0 ;
29601 int res1 = 0 ;
29602 bool temp2 = false ;
29603 wxPoint temp3 ;
29604 PyObject * obj0 = 0 ;
29605 PyObject * obj1 = 0 ;
29606 PyObject * obj2 = 0 ;
29607 char * kwnames[] = {
29608 (char *) "self",(char *) "text",(char *) "pt", NULL
29609 };
29610
29611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29613 if (!SWIG_IsOK(res1)) {
29614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29615 }
29616 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29617 {
29618 arg2 = wxString_in_helper(obj1);
29619 if (arg2 == NULL) SWIG_fail;
29620 temp2 = true;
29621 }
29622 {
29623 arg3 = &temp3;
29624 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29625 }
29626 {
29627 PyThreadState* __tstate = wxPyBeginAllowThreads();
29628 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
29629 wxPyEndAllowThreads(__tstate);
29630 if (PyErr_Occurred()) SWIG_fail;
29631 }
29632 resultobj = SWIG_Py_Void();
29633 {
29634 if (temp2)
29635 delete arg2;
29636 }
29637 return resultobj;
29638 fail:
29639 {
29640 if (temp2)
29641 delete arg2;
29642 }
29643 return NULL;
29644 }
29645
29646
29647 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29648 PyObject *resultobj = 0;
29649 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29650 wxString *arg2 = 0 ;
29651 int arg3 ;
29652 int arg4 ;
29653 double arg5 ;
29654 void *argp1 = 0 ;
29655 int res1 = 0 ;
29656 bool temp2 = false ;
29657 int val3 ;
29658 int ecode3 = 0 ;
29659 int val4 ;
29660 int ecode4 = 0 ;
29661 double val5 ;
29662 int ecode5 = 0 ;
29663 PyObject * obj0 = 0 ;
29664 PyObject * obj1 = 0 ;
29665 PyObject * obj2 = 0 ;
29666 PyObject * obj3 = 0 ;
29667 PyObject * obj4 = 0 ;
29668 char * kwnames[] = {
29669 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
29670 };
29671
29672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29674 if (!SWIG_IsOK(res1)) {
29675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29676 }
29677 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29678 {
29679 arg2 = wxString_in_helper(obj1);
29680 if (arg2 == NULL) SWIG_fail;
29681 temp2 = true;
29682 }
29683 ecode3 = SWIG_AsVal_int(obj2, &val3);
29684 if (!SWIG_IsOK(ecode3)) {
29685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
29686 }
29687 arg3 = static_cast< int >(val3);
29688 ecode4 = SWIG_AsVal_int(obj3, &val4);
29689 if (!SWIG_IsOK(ecode4)) {
29690 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
29691 }
29692 arg4 = static_cast< int >(val4);
29693 ecode5 = SWIG_AsVal_double(obj4, &val5);
29694 if (!SWIG_IsOK(ecode5)) {
29695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
29696 }
29697 arg5 = static_cast< double >(val5);
29698 {
29699 PyThreadState* __tstate = wxPyBeginAllowThreads();
29700 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
29701 wxPyEndAllowThreads(__tstate);
29702 if (PyErr_Occurred()) SWIG_fail;
29703 }
29704 resultobj = SWIG_Py_Void();
29705 {
29706 if (temp2)
29707 delete arg2;
29708 }
29709 return resultobj;
29710 fail:
29711 {
29712 if (temp2)
29713 delete arg2;
29714 }
29715 return NULL;
29716 }
29717
29718
29719 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29720 PyObject *resultobj = 0;
29721 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29722 wxString *arg2 = 0 ;
29723 wxPoint *arg3 = 0 ;
29724 double arg4 ;
29725 void *argp1 = 0 ;
29726 int res1 = 0 ;
29727 bool temp2 = false ;
29728 wxPoint temp3 ;
29729 double val4 ;
29730 int ecode4 = 0 ;
29731 PyObject * obj0 = 0 ;
29732 PyObject * obj1 = 0 ;
29733 PyObject * obj2 = 0 ;
29734 PyObject * obj3 = 0 ;
29735 char * kwnames[] = {
29736 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
29737 };
29738
29739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29741 if (!SWIG_IsOK(res1)) {
29742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29743 }
29744 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29745 {
29746 arg2 = wxString_in_helper(obj1);
29747 if (arg2 == NULL) SWIG_fail;
29748 temp2 = true;
29749 }
29750 {
29751 arg3 = &temp3;
29752 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
29753 }
29754 ecode4 = SWIG_AsVal_double(obj3, &val4);
29755 if (!SWIG_IsOK(ecode4)) {
29756 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
29757 }
29758 arg4 = static_cast< double >(val4);
29759 {
29760 PyThreadState* __tstate = wxPyBeginAllowThreads();
29761 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
29762 wxPyEndAllowThreads(__tstate);
29763 if (PyErr_Occurred()) SWIG_fail;
29764 }
29765 resultobj = SWIG_Py_Void();
29766 {
29767 if (temp2)
29768 delete arg2;
29769 }
29770 return resultobj;
29771 fail:
29772 {
29773 if (temp2)
29774 delete arg2;
29775 }
29776 return NULL;
29777 }
29778
29779
29780 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29781 PyObject *resultobj = 0;
29782 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29783 int arg2 ;
29784 wxPoint *arg3 = (wxPoint *) 0 ;
29785 int arg4 = (int) 0 ;
29786 int arg5 = (int) 0 ;
29787 void *argp1 = 0 ;
29788 int res1 = 0 ;
29789 int val4 ;
29790 int ecode4 = 0 ;
29791 int val5 ;
29792 int ecode5 = 0 ;
29793 PyObject * obj0 = 0 ;
29794 PyObject * obj1 = 0 ;
29795 PyObject * obj2 = 0 ;
29796 PyObject * obj3 = 0 ;
29797 char * kwnames[] = {
29798 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
29799 };
29800
29801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29803 if (!SWIG_IsOK(res1)) {
29804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29805 }
29806 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29807 {
29808 arg3 = wxPoint_LIST_helper(obj1, &arg2);
29809 if (arg3 == NULL) SWIG_fail;
29810 }
29811 if (obj2) {
29812 ecode4 = SWIG_AsVal_int(obj2, &val4);
29813 if (!SWIG_IsOK(ecode4)) {
29814 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
29815 }
29816 arg4 = static_cast< int >(val4);
29817 }
29818 if (obj3) {
29819 ecode5 = SWIG_AsVal_int(obj3, &val5);
29820 if (!SWIG_IsOK(ecode5)) {
29821 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
29822 }
29823 arg5 = static_cast< int >(val5);
29824 }
29825 {
29826 PyThreadState* __tstate = wxPyBeginAllowThreads();
29827 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
29828 wxPyEndAllowThreads(__tstate);
29829 if (PyErr_Occurred()) SWIG_fail;
29830 }
29831 resultobj = SWIG_Py_Void();
29832 {
29833 if (arg3) delete [] arg3;
29834 }
29835 return resultobj;
29836 fail:
29837 {
29838 if (arg3) delete [] arg3;
29839 }
29840 return NULL;
29841 }
29842
29843
29844 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29845 PyObject *resultobj = 0;
29846 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29847 int arg2 ;
29848 wxPoint *arg3 = (wxPoint *) 0 ;
29849 int arg4 = (int) 0 ;
29850 int arg5 = (int) 0 ;
29851 int arg6 = (int) wxODDEVEN_RULE ;
29852 void *argp1 = 0 ;
29853 int res1 = 0 ;
29854 int val4 ;
29855 int ecode4 = 0 ;
29856 int val5 ;
29857 int ecode5 = 0 ;
29858 int val6 ;
29859 int ecode6 = 0 ;
29860 PyObject * obj0 = 0 ;
29861 PyObject * obj1 = 0 ;
29862 PyObject * obj2 = 0 ;
29863 PyObject * obj3 = 0 ;
29864 PyObject * obj4 = 0 ;
29865 char * kwnames[] = {
29866 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
29867 };
29868
29869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29871 if (!SWIG_IsOK(res1)) {
29872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29873 }
29874 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29875 {
29876 arg3 = wxPoint_LIST_helper(obj1, &arg2);
29877 if (arg3 == NULL) SWIG_fail;
29878 }
29879 if (obj2) {
29880 ecode4 = SWIG_AsVal_int(obj2, &val4);
29881 if (!SWIG_IsOK(ecode4)) {
29882 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
29883 }
29884 arg4 = static_cast< int >(val4);
29885 }
29886 if (obj3) {
29887 ecode5 = SWIG_AsVal_int(obj3, &val5);
29888 if (!SWIG_IsOK(ecode5)) {
29889 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
29890 }
29891 arg5 = static_cast< int >(val5);
29892 }
29893 if (obj4) {
29894 ecode6 = SWIG_AsVal_int(obj4, &val6);
29895 if (!SWIG_IsOK(ecode6)) {
29896 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
29897 }
29898 arg6 = static_cast< int >(val6);
29899 }
29900 {
29901 PyThreadState* __tstate = wxPyBeginAllowThreads();
29902 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
29903 wxPyEndAllowThreads(__tstate);
29904 if (PyErr_Occurred()) SWIG_fail;
29905 }
29906 resultobj = SWIG_Py_Void();
29907 {
29908 if (arg3) delete [] arg3;
29909 }
29910 return resultobj;
29911 fail:
29912 {
29913 if (arg3) delete [] arg3;
29914 }
29915 return NULL;
29916 }
29917
29918
29919 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29920 PyObject *resultobj = 0;
29921 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29922 wxString *arg2 = 0 ;
29923 wxRect *arg3 = 0 ;
29924 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
29925 int arg5 = (int) -1 ;
29926 void *argp1 = 0 ;
29927 int res1 = 0 ;
29928 bool temp2 = false ;
29929 wxRect temp3 ;
29930 int val4 ;
29931 int ecode4 = 0 ;
29932 int val5 ;
29933 int ecode5 = 0 ;
29934 PyObject * obj0 = 0 ;
29935 PyObject * obj1 = 0 ;
29936 PyObject * obj2 = 0 ;
29937 PyObject * obj3 = 0 ;
29938 PyObject * obj4 = 0 ;
29939 char * kwnames[] = {
29940 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
29941 };
29942
29943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
29945 if (!SWIG_IsOK(res1)) {
29946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
29947 }
29948 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
29949 {
29950 arg2 = wxString_in_helper(obj1);
29951 if (arg2 == NULL) SWIG_fail;
29952 temp2 = true;
29953 }
29954 {
29955 arg3 = &temp3;
29956 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29957 }
29958 if (obj3) {
29959 ecode4 = SWIG_AsVal_int(obj3, &val4);
29960 if (!SWIG_IsOK(ecode4)) {
29961 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
29962 }
29963 arg4 = static_cast< int >(val4);
29964 }
29965 if (obj4) {
29966 ecode5 = SWIG_AsVal_int(obj4, &val5);
29967 if (!SWIG_IsOK(ecode5)) {
29968 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
29969 }
29970 arg5 = static_cast< int >(val5);
29971 }
29972 {
29973 PyThreadState* __tstate = wxPyBeginAllowThreads();
29974 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
29975 wxPyEndAllowThreads(__tstate);
29976 if (PyErr_Occurred()) SWIG_fail;
29977 }
29978 resultobj = SWIG_Py_Void();
29979 {
29980 if (temp2)
29981 delete arg2;
29982 }
29983 return resultobj;
29984 fail:
29985 {
29986 if (temp2)
29987 delete arg2;
29988 }
29989 return NULL;
29990 }
29991
29992
29993 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29994 PyObject *resultobj = 0;
29995 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
29996 wxString *arg2 = 0 ;
29997 wxBitmap *arg3 = 0 ;
29998 wxRect *arg4 = 0 ;
29999 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
30000 int arg6 = (int) -1 ;
30001 void *argp1 = 0 ;
30002 int res1 = 0 ;
30003 bool temp2 = false ;
30004 void *argp3 = 0 ;
30005 int res3 = 0 ;
30006 wxRect temp4 ;
30007 int val5 ;
30008 int ecode5 = 0 ;
30009 int val6 ;
30010 int ecode6 = 0 ;
30011 PyObject * obj0 = 0 ;
30012 PyObject * obj1 = 0 ;
30013 PyObject * obj2 = 0 ;
30014 PyObject * obj3 = 0 ;
30015 PyObject * obj4 = 0 ;
30016 PyObject * obj5 = 0 ;
30017 char * kwnames[] = {
30018 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
30019 };
30020
30021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30023 if (!SWIG_IsOK(res1)) {
30024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30025 }
30026 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30027 {
30028 arg2 = wxString_in_helper(obj1);
30029 if (arg2 == NULL) SWIG_fail;
30030 temp2 = true;
30031 }
30032 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
30033 if (!SWIG_IsOK(res3)) {
30034 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30035 }
30036 if (!argp3) {
30037 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
30038 }
30039 arg3 = reinterpret_cast< wxBitmap * >(argp3);
30040 {
30041 arg4 = &temp4;
30042 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30043 }
30044 if (obj4) {
30045 ecode5 = SWIG_AsVal_int(obj4, &val5);
30046 if (!SWIG_IsOK(ecode5)) {
30047 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
30048 }
30049 arg5 = static_cast< int >(val5);
30050 }
30051 if (obj5) {
30052 ecode6 = SWIG_AsVal_int(obj5, &val6);
30053 if (!SWIG_IsOK(ecode6)) {
30054 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
30055 }
30056 arg6 = static_cast< int >(val6);
30057 }
30058 {
30059 PyThreadState* __tstate = wxPyBeginAllowThreads();
30060 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
30061 wxPyEndAllowThreads(__tstate);
30062 if (PyErr_Occurred()) SWIG_fail;
30063 }
30064 resultobj = SWIG_Py_Void();
30065 {
30066 if (temp2)
30067 delete arg2;
30068 }
30069 return resultobj;
30070 fail:
30071 {
30072 if (temp2)
30073 delete arg2;
30074 }
30075 return NULL;
30076 }
30077
30078
30079 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30080 PyObject *resultobj = 0;
30081 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30082 int arg2 ;
30083 wxPoint *arg3 = (wxPoint *) 0 ;
30084 void *argp1 = 0 ;
30085 int res1 = 0 ;
30086 PyObject * obj0 = 0 ;
30087 PyObject * obj1 = 0 ;
30088 char * kwnames[] = {
30089 (char *) "self",(char *) "points", NULL
30090 };
30091
30092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
30093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30094 if (!SWIG_IsOK(res1)) {
30095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30096 }
30097 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30098 {
30099 arg3 = wxPoint_LIST_helper(obj1, &arg2);
30100 if (arg3 == NULL) SWIG_fail;
30101 }
30102 {
30103 PyThreadState* __tstate = wxPyBeginAllowThreads();
30104 (arg1)->DrawSpline(arg2,arg3);
30105 wxPyEndAllowThreads(__tstate);
30106 if (PyErr_Occurred()) SWIG_fail;
30107 }
30108 resultobj = SWIG_Py_Void();
30109 {
30110 if (arg3) delete [] arg3;
30111 }
30112 return resultobj;
30113 fail:
30114 {
30115 if (arg3) delete [] arg3;
30116 }
30117 return NULL;
30118 }
30119
30120
30121 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30122 PyObject *resultobj = 0;
30123 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30124 void *argp1 = 0 ;
30125 int res1 = 0 ;
30126 PyObject *swig_obj[1] ;
30127
30128 if (!args) SWIG_fail;
30129 swig_obj[0] = args;
30130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30131 if (!SWIG_IsOK(res1)) {
30132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30133 }
30134 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30135 {
30136 PyThreadState* __tstate = wxPyBeginAllowThreads();
30137 (arg1)->Clear();
30138 wxPyEndAllowThreads(__tstate);
30139 if (PyErr_Occurred()) SWIG_fail;
30140 }
30141 resultobj = SWIG_Py_Void();
30142 return resultobj;
30143 fail:
30144 return NULL;
30145 }
30146
30147
30148 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30149 PyObject *resultobj = 0;
30150 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30151 wxFont *arg2 = 0 ;
30152 void *argp1 = 0 ;
30153 int res1 = 0 ;
30154 void *argp2 = 0 ;
30155 int res2 = 0 ;
30156 PyObject * obj0 = 0 ;
30157 PyObject * obj1 = 0 ;
30158 char * kwnames[] = {
30159 (char *) "self",(char *) "font", NULL
30160 };
30161
30162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
30163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30164 if (!SWIG_IsOK(res1)) {
30165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30166 }
30167 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30168 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
30169 if (!SWIG_IsOK(res2)) {
30170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30171 }
30172 if (!argp2) {
30173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
30174 }
30175 arg2 = reinterpret_cast< wxFont * >(argp2);
30176 {
30177 PyThreadState* __tstate = wxPyBeginAllowThreads();
30178 (arg1)->SetFont((wxFont const &)*arg2);
30179 wxPyEndAllowThreads(__tstate);
30180 if (PyErr_Occurred()) SWIG_fail;
30181 }
30182 resultobj = SWIG_Py_Void();
30183 return resultobj;
30184 fail:
30185 return NULL;
30186 }
30187
30188
30189 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30190 PyObject *resultobj = 0;
30191 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30192 wxPen *arg2 = 0 ;
30193 void *argp1 = 0 ;
30194 int res1 = 0 ;
30195 void *argp2 = 0 ;
30196 int res2 = 0 ;
30197 PyObject * obj0 = 0 ;
30198 PyObject * obj1 = 0 ;
30199 char * kwnames[] = {
30200 (char *) "self",(char *) "pen", NULL
30201 };
30202
30203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
30204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30205 if (!SWIG_IsOK(res1)) {
30206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30207 }
30208 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30209 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
30210 if (!SWIG_IsOK(res2)) {
30211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
30212 }
30213 if (!argp2) {
30214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
30215 }
30216 arg2 = reinterpret_cast< wxPen * >(argp2);
30217 {
30218 PyThreadState* __tstate = wxPyBeginAllowThreads();
30219 (arg1)->SetPen((wxPen const &)*arg2);
30220 wxPyEndAllowThreads(__tstate);
30221 if (PyErr_Occurred()) SWIG_fail;
30222 }
30223 resultobj = SWIG_Py_Void();
30224 return resultobj;
30225 fail:
30226 return NULL;
30227 }
30228
30229
30230 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30231 PyObject *resultobj = 0;
30232 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30233 wxBrush *arg2 = 0 ;
30234 void *argp1 = 0 ;
30235 int res1 = 0 ;
30236 void *argp2 = 0 ;
30237 int res2 = 0 ;
30238 PyObject * obj0 = 0 ;
30239 PyObject * obj1 = 0 ;
30240 char * kwnames[] = {
30241 (char *) "self",(char *) "brush", NULL
30242 };
30243
30244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
30245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30246 if (!SWIG_IsOK(res1)) {
30247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30248 }
30249 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30250 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30251 if (!SWIG_IsOK(res2)) {
30252 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30253 }
30254 if (!argp2) {
30255 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
30256 }
30257 arg2 = reinterpret_cast< wxBrush * >(argp2);
30258 {
30259 PyThreadState* __tstate = wxPyBeginAllowThreads();
30260 (arg1)->SetBrush((wxBrush const &)*arg2);
30261 wxPyEndAllowThreads(__tstate);
30262 if (PyErr_Occurred()) SWIG_fail;
30263 }
30264 resultobj = SWIG_Py_Void();
30265 return resultobj;
30266 fail:
30267 return NULL;
30268 }
30269
30270
30271 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30272 PyObject *resultobj = 0;
30273 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30274 wxBrush *arg2 = 0 ;
30275 void *argp1 = 0 ;
30276 int res1 = 0 ;
30277 void *argp2 = 0 ;
30278 int res2 = 0 ;
30279 PyObject * obj0 = 0 ;
30280 PyObject * obj1 = 0 ;
30281 char * kwnames[] = {
30282 (char *) "self",(char *) "brush", NULL
30283 };
30284
30285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
30286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30287 if (!SWIG_IsOK(res1)) {
30288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30289 }
30290 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30291 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
30292 if (!SWIG_IsOK(res2)) {
30293 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
30294 }
30295 if (!argp2) {
30296 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
30297 }
30298 arg2 = reinterpret_cast< wxBrush * >(argp2);
30299 {
30300 PyThreadState* __tstate = wxPyBeginAllowThreads();
30301 (arg1)->SetBackground((wxBrush const &)*arg2);
30302 wxPyEndAllowThreads(__tstate);
30303 if (PyErr_Occurred()) SWIG_fail;
30304 }
30305 resultobj = SWIG_Py_Void();
30306 return resultobj;
30307 fail:
30308 return NULL;
30309 }
30310
30311
30312 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30313 PyObject *resultobj = 0;
30314 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30315 int arg2 ;
30316 void *argp1 = 0 ;
30317 int res1 = 0 ;
30318 int val2 ;
30319 int ecode2 = 0 ;
30320 PyObject * obj0 = 0 ;
30321 PyObject * obj1 = 0 ;
30322 char * kwnames[] = {
30323 (char *) "self",(char *) "mode", NULL
30324 };
30325
30326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
30327 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30328 if (!SWIG_IsOK(res1)) {
30329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30330 }
30331 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30332 ecode2 = SWIG_AsVal_int(obj1, &val2);
30333 if (!SWIG_IsOK(ecode2)) {
30334 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
30335 }
30336 arg2 = static_cast< int >(val2);
30337 {
30338 PyThreadState* __tstate = wxPyBeginAllowThreads();
30339 (arg1)->SetBackgroundMode(arg2);
30340 wxPyEndAllowThreads(__tstate);
30341 if (PyErr_Occurred()) SWIG_fail;
30342 }
30343 resultobj = SWIG_Py_Void();
30344 return resultobj;
30345 fail:
30346 return NULL;
30347 }
30348
30349
30350 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30351 PyObject *resultobj = 0;
30352 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30353 wxPalette *arg2 = 0 ;
30354 void *argp1 = 0 ;
30355 int res1 = 0 ;
30356 void *argp2 = 0 ;
30357 int res2 = 0 ;
30358 PyObject * obj0 = 0 ;
30359 PyObject * obj1 = 0 ;
30360 char * kwnames[] = {
30361 (char *) "self",(char *) "palette", NULL
30362 };
30363
30364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
30365 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30366 if (!SWIG_IsOK(res1)) {
30367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30368 }
30369 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30370 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
30371 if (!SWIG_IsOK(res2)) {
30372 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
30373 }
30374 if (!argp2) {
30375 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
30376 }
30377 arg2 = reinterpret_cast< wxPalette * >(argp2);
30378 {
30379 PyThreadState* __tstate = wxPyBeginAllowThreads();
30380 (arg1)->SetPalette((wxPalette const &)*arg2);
30381 wxPyEndAllowThreads(__tstate);
30382 if (PyErr_Occurred()) SWIG_fail;
30383 }
30384 resultobj = SWIG_Py_Void();
30385 return resultobj;
30386 fail:
30387 return NULL;
30388 }
30389
30390
30391 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30392 PyObject *resultobj = 0;
30393 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30394 wxColour *arg2 = 0 ;
30395 void *argp1 = 0 ;
30396 int res1 = 0 ;
30397 wxColour temp2 ;
30398 PyObject * obj0 = 0 ;
30399 PyObject * obj1 = 0 ;
30400 char * kwnames[] = {
30401 (char *) "self",(char *) "colour", NULL
30402 };
30403
30404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
30405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30406 if (!SWIG_IsOK(res1)) {
30407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30408 }
30409 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30410 {
30411 arg2 = &temp2;
30412 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30413 }
30414 {
30415 PyThreadState* __tstate = wxPyBeginAllowThreads();
30416 (arg1)->SetTextForeground((wxColour const &)*arg2);
30417 wxPyEndAllowThreads(__tstate);
30418 if (PyErr_Occurred()) SWIG_fail;
30419 }
30420 resultobj = SWIG_Py_Void();
30421 return resultobj;
30422 fail:
30423 return NULL;
30424 }
30425
30426
30427 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30428 PyObject *resultobj = 0;
30429 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30430 wxColour *arg2 = 0 ;
30431 void *argp1 = 0 ;
30432 int res1 = 0 ;
30433 wxColour temp2 ;
30434 PyObject * obj0 = 0 ;
30435 PyObject * obj1 = 0 ;
30436 char * kwnames[] = {
30437 (char *) "self",(char *) "colour", NULL
30438 };
30439
30440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
30441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30442 if (!SWIG_IsOK(res1)) {
30443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30444 }
30445 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30446 {
30447 arg2 = &temp2;
30448 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30449 }
30450 {
30451 PyThreadState* __tstate = wxPyBeginAllowThreads();
30452 (arg1)->SetTextBackground((wxColour const &)*arg2);
30453 wxPyEndAllowThreads(__tstate);
30454 if (PyErr_Occurred()) SWIG_fail;
30455 }
30456 resultobj = SWIG_Py_Void();
30457 return resultobj;
30458 fail:
30459 return NULL;
30460 }
30461
30462
30463 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30464 PyObject *resultobj = 0;
30465 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
30466 int arg2 ;
30467 void *argp1 = 0 ;
30468 int res1 = 0 ;
30469 int val2 ;
30470 int ecode2 = 0 ;
30471 PyObject * obj0 = 0 ;
30472 PyObject * obj1 = 0 ;
30473 char * kwnames[] = {
30474 (char *) "self",(char *) "function", NULL
30475 };
30476
30477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
30478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
30479 if (!SWIG_IsOK(res1)) {
30480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
30481 }
30482 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
30483 ecode2 = SWIG_AsVal_int(obj1, &val2);
30484 if (!SWIG_IsOK(ecode2)) {
30485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
30486 }
30487 arg2 = static_cast< int >(val2);
30488 {
30489 PyThreadState* __tstate = wxPyBeginAllowThreads();
30490 (arg1)->SetLogicalFunction(arg2);
30491 wxPyEndAllowThreads(__tstate);
30492 if (PyErr_Occurred()) SWIG_fail;
30493 }
30494 resultobj = SWIG_Py_Void();
30495 return resultobj;
30496 fail:
30497 return NULL;
30498 }
30499
30500
30501 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30502 PyObject *obj;
30503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30504 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
30505 return SWIG_Py_Void();
30506 }
30507
30508 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30509 return SWIG_Python_InitShadowInstance(args);
30510 }
30511
30512 static PyMethodDef SwigMethods[] = {
30513 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
30514 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
30515 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
30516 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
30517 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
30518 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
30519 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
30520 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30521 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
30522 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
30523 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
30524 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
30525 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
30526 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
30527 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30528 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30529 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
30530 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
30531 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
30532 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30533 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30534 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
30535 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
30536 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
30537 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
30538 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
30539 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
30540 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
30541 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
30542 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
30543 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
30544 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
30545 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
30546 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
30547 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
30548 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
30549 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
30550 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
30551 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
30552 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
30553 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
30554 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
30555 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
30556 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
30557 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30558 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30559 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
30560 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
30561 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
30562 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
30563 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30564 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30565 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
30566 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
30567 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
30568 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30569 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
30570 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
30571 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30572 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
30573 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
30574 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
30575 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
30576 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
30577 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
30578 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
30579 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
30580 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30581 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
30582 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30583 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30584 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
30585 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
30586 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
30587 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
30588 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
30589 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
30590 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
30591 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
30592 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
30593 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
30594 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
30595 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
30596 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30597 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
30598 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
30599 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
30600 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30601 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
30602 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30603 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
30604 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
30605 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30606 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30607 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
30608 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
30609 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
30610 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
30611 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
30612 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
30613 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
30614 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
30615 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
30616 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
30617 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
30618 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
30619 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
30620 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
30621 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
30622 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
30623 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
30624 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
30625 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
30626 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
30627 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
30628 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
30629 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
30630 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30631 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
30632 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
30633 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
30634 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30635 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
30636 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
30637 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
30638 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
30639 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
30640 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
30641 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
30642 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
30643 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
30644 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
30645 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
30646 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
30647 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
30648 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
30649 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
30650 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30651 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
30652 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
30653 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
30654 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30655 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
30656 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
30657 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
30658 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
30659 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
30660 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
30661 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
30662 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
30663 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
30664 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
30665 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
30666 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30667 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
30668 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
30669 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
30670 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
30671 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
30672 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
30673 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
30674 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
30675 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
30676 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30677 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
30678 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
30679 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
30680 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
30681 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
30682 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
30683 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
30684 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
30685 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
30686 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
30687 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
30688 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
30689 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
30690 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30691 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
30692 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30693 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
30694 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30695 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
30696 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
30697 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
30698 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
30699 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
30700 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
30701 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
30702 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
30703 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
30704 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
30705 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30706 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
30707 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
30708 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
30709 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
30710 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
30711 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
30712 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30713 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
30714 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
30715 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
30716 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
30717 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
30718 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30719 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
30720 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
30721 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
30722 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30723 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
30724 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
30725 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30726 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
30727 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
30728 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30729 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
30730 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30731 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
30732 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
30733 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
30734 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
30735 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
30736 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
30737 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
30738 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
30739 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
30740 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
30741 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
30742 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
30743 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
30744 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
30745 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
30746 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
30747 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
30748 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
30749 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
30750 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
30751 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
30752 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
30753 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
30754 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
30755 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
30756 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
30757 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
30758 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
30759 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
30760 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30761 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30762 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
30763 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
30764 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
30765 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
30766 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30767 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
30768 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
30769 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
30770 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
30771 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
30772 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
30773 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
30774 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
30775 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
30776 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
30777 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
30778 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
30779 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
30780 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
30781 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
30782 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
30783 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
30784 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30785 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30786 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
30787 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
30788 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
30789 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
30790 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30791 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
30792 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30793 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
30794 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
30795 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
30796 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
30797 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
30798 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30799 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
30800 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
30801 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
30802 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
30803 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
30804 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
30805 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
30806 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30807 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
30808 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
30809 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
30810 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
30811 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
30812 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
30813 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
30814 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
30815 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
30816 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
30817 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
30818 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
30819 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
30820 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
30821 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
30822 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
30823 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
30824 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
30825 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
30826 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
30827 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30828 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
30829 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
30830 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
30831 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
30832 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
30833 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
30834 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30835 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30836 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
30837 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
30838 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
30839 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
30840 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
30841 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
30842 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
30843 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
30844 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
30845 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
30846 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
30847 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
30848 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
30849 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30850 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
30851 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
30852 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
30853 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
30854 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
30855 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
30856 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
30857 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
30858 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
30859 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
30860 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
30861 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
30862 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
30863 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
30864 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
30865 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
30866 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
30867 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
30868 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
30869 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
30870 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
30871 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
30872 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
30873 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
30874 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
30875 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
30876 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
30877 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
30878 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
30879 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30880 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
30881 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30882 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
30883 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
30884 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
30885 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
30886 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
30887 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
30888 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
30889 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
30890 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
30891 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
30892 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
30893 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
30894 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
30895 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
30896 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
30897 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
30898 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
30899 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
30900 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
30901 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
30902 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
30903 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
30904 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
30905 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
30906 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
30907 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30908 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
30909 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
30910 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
30911 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30912 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
30913 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
30914 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
30915 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30916 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
30917 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30918 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
30919 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
30920 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
30921 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30922 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30923 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30924 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
30925 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
30926 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30927 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
30928 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
30929 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30930 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
30931 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
30932 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
30933 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
30934 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30935 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
30936 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30937 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
30938 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30939 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
30940 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30941 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
30942 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
30943 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
30944 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30945 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30946 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
30947 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
30948 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
30949 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
30950 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
30951 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
30952 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
30953 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
30954 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
30955 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
30956 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
30957 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
30958 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
30959 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
30960 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
30961 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
30962 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
30963 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
30964 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
30965 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
30966 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
30967 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
30968 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
30969 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
30970 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
30971 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
30972 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
30973 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
30974 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
30975 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
30976 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
30977 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
30978 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
30979 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
30980 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
30981 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
30982 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
30983 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
30984 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
30985 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
30986 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
30987 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
30988 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
30989 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
30990 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
30991 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
30992 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
30993 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
30994 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
30995 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
30996 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
30997 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
30998 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
30999 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31000 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
31001 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
31002 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
31003 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
31004 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
31005 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
31006 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
31007 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
31008 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31009 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31010 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
31011 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
31012 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
31013 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31014 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
31015 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
31016 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31017 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
31018 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
31019 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31020 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
31021 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
31022 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
31023 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
31024 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
31025 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
31026 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
31027 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
31028 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
31029 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
31030 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
31031 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
31032 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
31033 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
31034 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
31035 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
31036 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
31037 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
31038 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
31039 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
31040 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
31041 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
31042 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
31043 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31044 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
31045 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
31046 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
31047 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
31048 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
31049 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
31050 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
31051 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
31052 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
31053 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
31054 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
31055 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
31056 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
31057 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
31058 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
31059 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
31060 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
31061 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
31062 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
31063 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
31064 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
31065 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
31066 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
31067 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
31068 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
31069 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
31070 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
31071 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
31072 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
31073 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
31074 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
31075 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
31076 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
31077 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
31078 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
31079 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
31080 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
31081 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
31082 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
31083 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
31084 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31085 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31086 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31087 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
31088 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
31089 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
31090 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
31091 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
31092 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
31093 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
31094 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
31095 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
31096 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
31097 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
31098 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
31099 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31100 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
31101 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
31102 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31103 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31104 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
31105 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
31106 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
31107 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
31108 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
31109 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
31110 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
31111 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
31112 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
31113 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
31114 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31115 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31116 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31117 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
31118 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
31119 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
31120 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
31121 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
31122 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
31123 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
31124 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
31125 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
31126 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
31127 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
31128 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
31129 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
31130 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
31131 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
31132 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
31133 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
31134 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
31135 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
31136 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
31137 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
31138 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
31139 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
31140 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
31141 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31142 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
31143 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31144 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
31145 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31146 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
31147 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31148 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
31149 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
31150 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
31151 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
31152 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
31153 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
31154 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
31155 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
31156 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
31157 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
31158 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
31159 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
31160 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
31161 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
31162 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
31163 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
31164 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
31165 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
31166 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
31167 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
31168 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
31169 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
31170 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
31171 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
31172 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
31173 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
31174 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
31175 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
31176 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
31177 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
31178 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
31179 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
31180 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
31181 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
31182 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
31183 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
31184 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
31185 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
31186 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
31187 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
31188 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
31189 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
31190 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
31191 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
31192 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
31193 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
31194 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
31195 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
31196 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
31197 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31198 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
31199 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31200 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
31201 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31202 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
31203 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31204 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
31205 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
31206 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
31207 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31208 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31209 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31210 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31211 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31212 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31213 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
31214 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
31215 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31216 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
31217 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
31218 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
31219 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
31220 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
31221 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
31222 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31223 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
31224 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31225 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
31226 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31227 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
31228 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
31229 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
31230 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
31231 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31232 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
31233 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
31234 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
31235 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
31236 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
31237 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
31238 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31239 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
31240 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
31241 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
31242 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
31243 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
31244 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
31245 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
31246 { NULL, NULL, 0, NULL }
31247 };
31248
31249
31250 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
31251
31252 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
31253 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
31254 }
31255 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
31256 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
31257 }
31258 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
31259 return (void *)((wxLocale *) ((wxPyLocale *) x));
31260 }
31261 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
31262 return (void *)((wxGDIObject *) ((wxIcon *) x));
31263 }
31264 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
31265 return (void *)((wxGDIObject *) ((wxPalette *) x));
31266 }
31267 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
31268 return (void *)((wxGDIObject *) ((wxPen *) x));
31269 }
31270 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
31271 return (void *)((wxGDIObject *) ((wxFont *) x));
31272 }
31273 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
31274 return (void *)((wxGDIObject *) ((wxCursor *) x));
31275 }
31276 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
31277 return (void *)((wxGDIObject *) ((wxBitmap *) x));
31278 }
31279 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
31280 return (void *)((wxGDIObject *) ((wxRegion *) x));
31281 }
31282 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
31283 return (void *)((wxGDIObject *) ((wxBrush *) x));
31284 }
31285 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
31286 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
31287 }
31288 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
31289 return (void *)((wxDC *) ((wxScreenDC *) x));
31290 }
31291 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
31292 return (void *)((wxDC *) ((wxMirrorDC *) x));
31293 }
31294 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
31295 return (void *)((wxDC *) ((wxMemoryDC *) x));
31296 }
31297 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
31298 return (void *)((wxDC *) ((wxWindowDC *) x));
31299 }
31300 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
31301 return (void *)((wxDC *) ((wxMetaFileDC *) x));
31302 }
31303 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
31304 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
31305 }
31306 static void *_p_wxClientDCTo_p_wxDC(void *x) {
31307 return (void *)((wxDC *) ((wxClientDC *) x));
31308 }
31309 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
31310 return (void *)((wxDC *) ((wxPaintDC *) x));
31311 }
31312 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
31313 return (void *)((wxDC *) ((wxPostScriptDC *) x));
31314 }
31315 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
31316 return (void *)((wxDC *) ((wxPrinterDC *) x));
31317 }
31318 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
31319 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
31320 }
31321 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
31322 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
31323 }
31324 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
31325 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
31326 }
31327 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
31328 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
31329 }
31330 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
31331 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
31332 }
31333 static void *_p_wxPenTo_p_wxObject(void *x) {
31334 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
31335 }
31336 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
31337 return (void *)((wxObject *) ((wxRegionIterator *) x));
31338 }
31339 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
31340 return (void *)((wxObject *) ((wxSizerItem *) x));
31341 }
31342 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
31343 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
31344 }
31345 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
31346 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
31347 }
31348 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
31349 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
31350 }
31351 static void *_p_wxIconTo_p_wxObject(void *x) {
31352 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
31353 }
31354 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
31355 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
31356 }
31357 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
31358 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
31359 }
31360 static void *_p_wxSizerTo_p_wxObject(void *x) {
31361 return (void *)((wxObject *) ((wxSizer *) x));
31362 }
31363 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
31364 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
31365 }
31366 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
31367 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
31368 }
31369 static void *_p_wxEventTo_p_wxObject(void *x) {
31370 return (void *)((wxObject *) ((wxEvent *) x));
31371 }
31372 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
31373 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
31374 }
31375 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
31376 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
31377 }
31378 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
31379 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
31380 }
31381 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
31382 return (void *)((wxObject *) ((wxPseudoDC *) x));
31383 }
31384 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
31385 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
31386 }
31387 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
31388 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
31389 }
31390 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
31391 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
31392 }
31393 static void *_p_wxDCTo_p_wxObject(void *x) {
31394 return (void *)((wxObject *) ((wxDC *) x));
31395 }
31396 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
31397 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
31398 }
31399 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
31400 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
31401 }
31402 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
31403 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
31404 }
31405 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
31406 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
31407 }
31408 static void *_p_wxControlTo_p_wxObject(void *x) {
31409 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
31410 }
31411 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
31412 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
31413 }
31414 static void *_p_wxClientDCTo_p_wxObject(void *x) {
31415 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
31416 }
31417 static void *_p_wxFSFileTo_p_wxObject(void *x) {
31418 return (void *)((wxObject *) ((wxFSFile *) x));
31419 }
31420 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
31421 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
31422 }
31423 static void *_p_wxRegionTo_p_wxObject(void *x) {
31424 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
31425 }
31426 static void *_p_wxPySizerTo_p_wxObject(void *x) {
31427 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
31428 }
31429 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
31430 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
31431 }
31432 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
31433 return (void *)((wxObject *) ((wxGDIObject *) x));
31434 }
31435 static void *_p_wxEffectsTo_p_wxObject(void *x) {
31436 return (void *)((wxObject *) ((wxEffects *) x));
31437 }
31438 static void *_p_wxPyEventTo_p_wxObject(void *x) {
31439 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
31440 }
31441 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
31442 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
31443 }
31444 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
31445 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
31446 }
31447 static void *_p_wxShowEventTo_p_wxObject(void *x) {
31448 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
31449 }
31450 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
31451 return (void *)((wxObject *) ((wxMenuItem *) x));
31452 }
31453 static void *_p_wxDateEventTo_p_wxObject(void *x) {
31454 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
31455 }
31456 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
31457 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
31458 }
31459 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
31460 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
31461 }
31462 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
31463 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
31464 }
31465 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
31466 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
31467 }
31468 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
31469 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
31470 }
31471 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
31472 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
31473 }
31474 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
31475 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
31476 }
31477 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
31478 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
31479 }
31480 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
31481 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
31482 }
31483 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
31484 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
31485 }
31486 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
31487 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
31488 }
31489 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
31490 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
31491 }
31492 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
31493 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
31494 }
31495 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
31496 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
31497 }
31498 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
31499 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
31500 }
31501 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
31502 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
31503 }
31504 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
31505 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
31506 }
31507 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
31508 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
31509 }
31510 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
31511 return (void *)((wxObject *) ((wxImageHandler *) x));
31512 }
31513 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
31514 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
31515 }
31516 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
31517 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
31518 }
31519 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
31520 return (void *)((wxObject *) ((wxEvtHandler *) x));
31521 }
31522 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
31523 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
31524 }
31525 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
31526 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
31527 }
31528 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
31529 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
31530 }
31531 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
31532 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
31533 }
31534 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
31535 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
31536 }
31537 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
31538 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
31539 }
31540 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
31541 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
31542 }
31543 static void *_p_wxImageTo_p_wxObject(void *x) {
31544 return (void *)((wxObject *) ((wxImage *) x));
31545 }
31546 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
31547 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
31548 }
31549 static void *_p_wxPaletteTo_p_wxObject(void *x) {
31550 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
31551 }
31552 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
31553 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
31554 }
31555 static void *_p_wxImageListTo_p_wxObject(void *x) {
31556 return (void *)((wxObject *) ((wxImageList *) x));
31557 }
31558 static void *_p_wxCursorTo_p_wxObject(void *x) {
31559 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
31560 }
31561 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
31562 return (void *)((wxObject *) ((wxEncodingConverter *) x));
31563 }
31564 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
31565 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
31566 }
31567 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
31568 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
31569 }
31570 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
31571 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
31572 }
31573 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
31574 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
31575 }
31576 static void *_p_wxWindowTo_p_wxObject(void *x) {
31577 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
31578 }
31579 static void *_p_wxMenuTo_p_wxObject(void *x) {
31580 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
31581 }
31582 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
31583 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
31584 }
31585 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
31586 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
31587 }
31588 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
31589 return (void *)((wxObject *) ((wxFileSystem *) x));
31590 }
31591 static void *_p_wxBitmapTo_p_wxObject(void *x) {
31592 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
31593 }
31594 static void *_p_wxMaskTo_p_wxObject(void *x) {
31595 return (void *)((wxObject *) ((wxMask *) x));
31596 }
31597 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
31598 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
31599 }
31600 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
31601 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
31602 }
31603 static void *_p_wxPyAppTo_p_wxObject(void *x) {
31604 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
31605 }
31606 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
31607 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
31608 }
31609 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
31610 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
31611 }
31612 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
31613 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
31614 }
31615 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
31616 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
31617 }
31618 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
31619 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
31620 }
31621 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
31622 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
31623 }
31624 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
31625 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
31626 }
31627 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
31628 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
31629 }
31630 static void *_p_wxFontTo_p_wxObject(void *x) {
31631 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
31632 }
31633 static void *_p_wxBrushTo_p_wxObject(void *x) {
31634 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
31635 }
31636 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
31637 return (void *)((wxObject *) ((wxMetaFile *) x));
31638 }
31639 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
31640 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
31641 }
31642 static void *_p_wxColourTo_p_wxObject(void *x) {
31643 return (void *)((wxObject *) ((wxColour *) x));
31644 }
31645 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
31646 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
31647 }
31648 static void *_p_wxValidatorTo_p_wxObject(void *x) {
31649 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
31650 }
31651 static void *_p_wxControlTo_p_wxWindow(void *x) {
31652 return (void *)((wxWindow *) ((wxControl *) x));
31653 }
31654 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
31655 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
31656 }
31657 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
31658 return (void *)((wxWindow *) ((wxMenuBar *) x));
31659 }
31660 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
31661 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
31662 }
31663 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
31664 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
31665 }
31666 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
31667 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
31668 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
31669 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};
31670 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
31671 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
31672 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
31673 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
31674 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
31675 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
31676 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
31677 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
31678 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
31679 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
31680 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
31681 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
31682 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
31683 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
31684 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
31685 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
31686 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
31687 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
31688 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
31689 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
31690 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
31691 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
31692 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
31693 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
31694 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
31695 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
31696 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
31697 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
31698 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
31699 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
31700 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
31701 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
31702 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
31703 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
31704 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
31705 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
31706 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
31707 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
31708 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
31709 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
31710 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
31711 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
31712 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
31713 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
31714 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
31715 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
31716 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
31717 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
31718 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
31719 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
31720 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
31721 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
31722 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
31723 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
31724 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
31725 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
31726 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
31727 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
31728 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
31729 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
31730 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
31731 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
31732 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
31733 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
31734 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
31735 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
31736 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
31737 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
31738 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
31739 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
31740 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
31741 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
31742 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
31743 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
31744 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
31745 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
31746 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
31747 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
31748 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
31749 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
31750 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
31751 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
31752 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
31753 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
31754 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
31755 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
31756 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
31757 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
31758 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
31759 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
31760 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
31761 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
31762 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
31763 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
31764 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
31765 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
31766 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
31767 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
31768 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
31769 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
31770 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
31771 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
31772 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
31773 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
31774 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
31775 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
31776 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
31777 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
31778 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
31779 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
31780 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
31781 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
31782 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
31783 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
31784 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
31785 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
31786 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
31787 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
31788 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
31789 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
31790 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
31791 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
31792 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
31793 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
31794 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
31795 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
31796 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
31797 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
31798 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
31799 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
31800 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
31801 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
31802 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
31803 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
31804 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
31805 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
31806 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
31807 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
31808 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
31809 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
31810 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
31811 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
31812 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
31813 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
31814
31815 static swig_type_info *swig_type_initial[] = {
31816 &_swigt__p_buffer,
31817 &_swigt__p_char,
31818 &_swigt__p_double,
31819 &_swigt__p_form_ops_t,
31820 &_swigt__p_int,
31821 &_swigt__p_unsigned_char,
31822 &_swigt__p_unsigned_int,
31823 &_swigt__p_unsigned_long,
31824 &_swigt__p_wxANIHandler,
31825 &_swigt__p_wxAcceleratorTable,
31826 &_swigt__p_wxActivateEvent,
31827 &_swigt__p_wxAlphaPixelData,
31828 &_swigt__p_wxAlphaPixelData_Accessor,
31829 &_swigt__p_wxBMPHandler,
31830 &_swigt__p_wxBitmap,
31831 &_swigt__p_wxBoxSizer,
31832 &_swigt__p_wxBrush,
31833 &_swigt__p_wxBrushList,
31834 &_swigt__p_wxBufferedDC,
31835 &_swigt__p_wxBufferedPaintDC,
31836 &_swigt__p_wxCURHandler,
31837 &_swigt__p_wxChar,
31838 &_swigt__p_wxChildFocusEvent,
31839 &_swigt__p_wxClientDC,
31840 &_swigt__p_wxClipboardTextEvent,
31841 &_swigt__p_wxCloseEvent,
31842 &_swigt__p_wxColour,
31843 &_swigt__p_wxColourDatabase,
31844 &_swigt__p_wxCommandEvent,
31845 &_swigt__p_wxContextMenuEvent,
31846 &_swigt__p_wxControl,
31847 &_swigt__p_wxControlWithItems,
31848 &_swigt__p_wxCursor,
31849 &_swigt__p_wxDC,
31850 &_swigt__p_wxDash,
31851 &_swigt__p_wxDateEvent,
31852 &_swigt__p_wxDisplayChangedEvent,
31853 &_swigt__p_wxDropFilesEvent,
31854 &_swigt__p_wxDuplexMode,
31855 &_swigt__p_wxEffects,
31856 &_swigt__p_wxEncodingConverter,
31857 &_swigt__p_wxEraseEvent,
31858 &_swigt__p_wxEvent,
31859 &_swigt__p_wxEvtHandler,
31860 &_swigt__p_wxFSFile,
31861 &_swigt__p_wxFileSystem,
31862 &_swigt__p_wxFlexGridSizer,
31863 &_swigt__p_wxFocusEvent,
31864 &_swigt__p_wxFont,
31865 &_swigt__p_wxFontList,
31866 &_swigt__p_wxFontMapper,
31867 &_swigt__p_wxGBSizerItem,
31868 &_swigt__p_wxGDIObjListBase,
31869 &_swigt__p_wxGDIObject,
31870 &_swigt__p_wxGIFHandler,
31871 &_swigt__p_wxGridBagSizer,
31872 &_swigt__p_wxGridSizer,
31873 &_swigt__p_wxICOHandler,
31874 &_swigt__p_wxIcon,
31875 &_swigt__p_wxIconBundle,
31876 &_swigt__p_wxIconLocation,
31877 &_swigt__p_wxIconizeEvent,
31878 &_swigt__p_wxIdleEvent,
31879 &_swigt__p_wxImage,
31880 &_swigt__p_wxImageHandler,
31881 &_swigt__p_wxImageList,
31882 &_swigt__p_wxIndividualLayoutConstraint,
31883 &_swigt__p_wxInitDialogEvent,
31884 &_swigt__p_wxJPEGHandler,
31885 &_swigt__p_wxKeyEvent,
31886 &_swigt__p_wxLanguageInfo,
31887 &_swigt__p_wxLayoutConstraints,
31888 &_swigt__p_wxLocale,
31889 &_swigt__p_wxMask,
31890 &_swigt__p_wxMaximizeEvent,
31891 &_swigt__p_wxMemoryDC,
31892 &_swigt__p_wxMenu,
31893 &_swigt__p_wxMenuBar,
31894 &_swigt__p_wxMenuEvent,
31895 &_swigt__p_wxMenuItem,
31896 &_swigt__p_wxMetaFile,
31897 &_swigt__p_wxMetaFileDC,
31898 &_swigt__p_wxMirrorDC,
31899 &_swigt__p_wxMouseCaptureChangedEvent,
31900 &_swigt__p_wxMouseCaptureLostEvent,
31901 &_swigt__p_wxMouseEvent,
31902 &_swigt__p_wxMoveEvent,
31903 &_swigt__p_wxNativeEncodingInfo,
31904 &_swigt__p_wxNativeFontInfo,
31905 &_swigt__p_wxNativePixelData,
31906 &_swigt__p_wxNativePixelData_Accessor,
31907 &_swigt__p_wxNavigationKeyEvent,
31908 &_swigt__p_wxNcPaintEvent,
31909 &_swigt__p_wxNotifyEvent,
31910 &_swigt__p_wxObject,
31911 &_swigt__p_wxPCXHandler,
31912 &_swigt__p_wxPNGHandler,
31913 &_swigt__p_wxPNMHandler,
31914 &_swigt__p_wxPaintDC,
31915 &_swigt__p_wxPaintEvent,
31916 &_swigt__p_wxPalette,
31917 &_swigt__p_wxPaletteChangedEvent,
31918 &_swigt__p_wxPaperSize,
31919 &_swigt__p_wxPen,
31920 &_swigt__p_wxPenList,
31921 &_swigt__p_wxPixelDataBase,
31922 &_swigt__p_wxPoint,
31923 &_swigt__p_wxPostScriptDC,
31924 &_swigt__p_wxPrintData,
31925 &_swigt__p_wxPrinterDC,
31926 &_swigt__p_wxPseudoDC,
31927 &_swigt__p_wxPyApp,
31928 &_swigt__p_wxPyCommandEvent,
31929 &_swigt__p_wxPyEvent,
31930 &_swigt__p_wxPyFontEnumerator,
31931 &_swigt__p_wxPyImageHandler,
31932 &_swigt__p_wxPyLocale,
31933 &_swigt__p_wxPySizer,
31934 &_swigt__p_wxPyValidator,
31935 &_swigt__p_wxQueryNewPaletteEvent,
31936 &_swigt__p_wxRect,
31937 &_swigt__p_wxRegion,
31938 &_swigt__p_wxRegionIterator,
31939 &_swigt__p_wxRendererNative,
31940 &_swigt__p_wxRendererVersion,
31941 &_swigt__p_wxScreenDC,
31942 &_swigt__p_wxScrollEvent,
31943 &_swigt__p_wxScrollWinEvent,
31944 &_swigt__p_wxSetCursorEvent,
31945 &_swigt__p_wxShowEvent,
31946 &_swigt__p_wxSize,
31947 &_swigt__p_wxSizeEvent,
31948 &_swigt__p_wxSizer,
31949 &_swigt__p_wxSizerItem,
31950 &_swigt__p_wxSplitterRenderParams,
31951 &_swigt__p_wxStaticBoxSizer,
31952 &_swigt__p_wxStdDialogButtonSizer,
31953 &_swigt__p_wxStockGDI,
31954 &_swigt__p_wxString,
31955 &_swigt__p_wxSysColourChangedEvent,
31956 &_swigt__p_wxTIFFHandler,
31957 &_swigt__p_wxUpdateUIEvent,
31958 &_swigt__p_wxValidator,
31959 &_swigt__p_wxWindow,
31960 &_swigt__p_wxWindowCreateEvent,
31961 &_swigt__p_wxWindowDC,
31962 &_swigt__p_wxWindowDestroyEvent,
31963 &_swigt__p_wxXPMHandler,
31964 };
31965
31966 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
31967 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
31968 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
31969 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
31970 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
31971 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
31972 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
31973 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
31974 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
31975 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
31976 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
31977 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
31978 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
31979 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}};
31980 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
31981 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
31982 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
31983 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
31984 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
31985 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
31986 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
31987 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
31988 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
31989 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
31990 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
31991 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
31992 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
31993 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
31994 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}};
31995 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}};
31996 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
31997 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
31998 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
31999 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
32000 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
32001 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
32002 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}};
32003 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
32004 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}};
32005 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
32006 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
32007 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
32008 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
32009 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
32010 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
32011 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
32012 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
32013 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32014 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
32015 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
32016 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
32017 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32018 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
32019 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
32020 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
32021 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
32022 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
32023 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
32024 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32025 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
32026 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
32027 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
32028 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32029 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
32030 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32031 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32032 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32033 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
32034 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
32035 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
32036 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
32037 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
32038 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
32039 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
32040 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
32041 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
32042 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
32043 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
32044 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
32045 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
32046 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32047 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32048 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
32049 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
32050 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
32051 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
32052 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
32053 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
32054 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
32055 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32056 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
32057 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
32058 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
32059 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
32060 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
32061 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
32062 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
32063 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
32064 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
32065 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
32066 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
32067 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
32068 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
32069 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
32070 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32071 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
32072 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
32073 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
32074 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32075 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
32076 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
32077 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
32078 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
32079 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
32080 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32081 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
32082 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
32083 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32084 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
32085 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
32086 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
32087 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
32088 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_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_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_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_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_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}};
32089 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
32090 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
32091 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
32092 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
32093 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
32094 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}};
32095 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
32096 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
32097 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
32098 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
32099 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
32100 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
32101 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
32102 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
32103 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
32104 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
32105 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
32106 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
32107 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
32108 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
32109 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
32110 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
32111 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
32112 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}};
32113 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
32114
32115 static swig_cast_info *swig_cast_initial[] = {
32116 _swigc__p_buffer,
32117 _swigc__p_char,
32118 _swigc__p_double,
32119 _swigc__p_form_ops_t,
32120 _swigc__p_int,
32121 _swigc__p_unsigned_char,
32122 _swigc__p_unsigned_int,
32123 _swigc__p_unsigned_long,
32124 _swigc__p_wxANIHandler,
32125 _swigc__p_wxAcceleratorTable,
32126 _swigc__p_wxActivateEvent,
32127 _swigc__p_wxAlphaPixelData,
32128 _swigc__p_wxAlphaPixelData_Accessor,
32129 _swigc__p_wxBMPHandler,
32130 _swigc__p_wxBitmap,
32131 _swigc__p_wxBoxSizer,
32132 _swigc__p_wxBrush,
32133 _swigc__p_wxBrushList,
32134 _swigc__p_wxBufferedDC,
32135 _swigc__p_wxBufferedPaintDC,
32136 _swigc__p_wxCURHandler,
32137 _swigc__p_wxChar,
32138 _swigc__p_wxChildFocusEvent,
32139 _swigc__p_wxClientDC,
32140 _swigc__p_wxClipboardTextEvent,
32141 _swigc__p_wxCloseEvent,
32142 _swigc__p_wxColour,
32143 _swigc__p_wxColourDatabase,
32144 _swigc__p_wxCommandEvent,
32145 _swigc__p_wxContextMenuEvent,
32146 _swigc__p_wxControl,
32147 _swigc__p_wxControlWithItems,
32148 _swigc__p_wxCursor,
32149 _swigc__p_wxDC,
32150 _swigc__p_wxDash,
32151 _swigc__p_wxDateEvent,
32152 _swigc__p_wxDisplayChangedEvent,
32153 _swigc__p_wxDropFilesEvent,
32154 _swigc__p_wxDuplexMode,
32155 _swigc__p_wxEffects,
32156 _swigc__p_wxEncodingConverter,
32157 _swigc__p_wxEraseEvent,
32158 _swigc__p_wxEvent,
32159 _swigc__p_wxEvtHandler,
32160 _swigc__p_wxFSFile,
32161 _swigc__p_wxFileSystem,
32162 _swigc__p_wxFlexGridSizer,
32163 _swigc__p_wxFocusEvent,
32164 _swigc__p_wxFont,
32165 _swigc__p_wxFontList,
32166 _swigc__p_wxFontMapper,
32167 _swigc__p_wxGBSizerItem,
32168 _swigc__p_wxGDIObjListBase,
32169 _swigc__p_wxGDIObject,
32170 _swigc__p_wxGIFHandler,
32171 _swigc__p_wxGridBagSizer,
32172 _swigc__p_wxGridSizer,
32173 _swigc__p_wxICOHandler,
32174 _swigc__p_wxIcon,
32175 _swigc__p_wxIconBundle,
32176 _swigc__p_wxIconLocation,
32177 _swigc__p_wxIconizeEvent,
32178 _swigc__p_wxIdleEvent,
32179 _swigc__p_wxImage,
32180 _swigc__p_wxImageHandler,
32181 _swigc__p_wxImageList,
32182 _swigc__p_wxIndividualLayoutConstraint,
32183 _swigc__p_wxInitDialogEvent,
32184 _swigc__p_wxJPEGHandler,
32185 _swigc__p_wxKeyEvent,
32186 _swigc__p_wxLanguageInfo,
32187 _swigc__p_wxLayoutConstraints,
32188 _swigc__p_wxLocale,
32189 _swigc__p_wxMask,
32190 _swigc__p_wxMaximizeEvent,
32191 _swigc__p_wxMemoryDC,
32192 _swigc__p_wxMenu,
32193 _swigc__p_wxMenuBar,
32194 _swigc__p_wxMenuEvent,
32195 _swigc__p_wxMenuItem,
32196 _swigc__p_wxMetaFile,
32197 _swigc__p_wxMetaFileDC,
32198 _swigc__p_wxMirrorDC,
32199 _swigc__p_wxMouseCaptureChangedEvent,
32200 _swigc__p_wxMouseCaptureLostEvent,
32201 _swigc__p_wxMouseEvent,
32202 _swigc__p_wxMoveEvent,
32203 _swigc__p_wxNativeEncodingInfo,
32204 _swigc__p_wxNativeFontInfo,
32205 _swigc__p_wxNativePixelData,
32206 _swigc__p_wxNativePixelData_Accessor,
32207 _swigc__p_wxNavigationKeyEvent,
32208 _swigc__p_wxNcPaintEvent,
32209 _swigc__p_wxNotifyEvent,
32210 _swigc__p_wxObject,
32211 _swigc__p_wxPCXHandler,
32212 _swigc__p_wxPNGHandler,
32213 _swigc__p_wxPNMHandler,
32214 _swigc__p_wxPaintDC,
32215 _swigc__p_wxPaintEvent,
32216 _swigc__p_wxPalette,
32217 _swigc__p_wxPaletteChangedEvent,
32218 _swigc__p_wxPaperSize,
32219 _swigc__p_wxPen,
32220 _swigc__p_wxPenList,
32221 _swigc__p_wxPixelDataBase,
32222 _swigc__p_wxPoint,
32223 _swigc__p_wxPostScriptDC,
32224 _swigc__p_wxPrintData,
32225 _swigc__p_wxPrinterDC,
32226 _swigc__p_wxPseudoDC,
32227 _swigc__p_wxPyApp,
32228 _swigc__p_wxPyCommandEvent,
32229 _swigc__p_wxPyEvent,
32230 _swigc__p_wxPyFontEnumerator,
32231 _swigc__p_wxPyImageHandler,
32232 _swigc__p_wxPyLocale,
32233 _swigc__p_wxPySizer,
32234 _swigc__p_wxPyValidator,
32235 _swigc__p_wxQueryNewPaletteEvent,
32236 _swigc__p_wxRect,
32237 _swigc__p_wxRegion,
32238 _swigc__p_wxRegionIterator,
32239 _swigc__p_wxRendererNative,
32240 _swigc__p_wxRendererVersion,
32241 _swigc__p_wxScreenDC,
32242 _swigc__p_wxScrollEvent,
32243 _swigc__p_wxScrollWinEvent,
32244 _swigc__p_wxSetCursorEvent,
32245 _swigc__p_wxShowEvent,
32246 _swigc__p_wxSize,
32247 _swigc__p_wxSizeEvent,
32248 _swigc__p_wxSizer,
32249 _swigc__p_wxSizerItem,
32250 _swigc__p_wxSplitterRenderParams,
32251 _swigc__p_wxStaticBoxSizer,
32252 _swigc__p_wxStdDialogButtonSizer,
32253 _swigc__p_wxStockGDI,
32254 _swigc__p_wxString,
32255 _swigc__p_wxSysColourChangedEvent,
32256 _swigc__p_wxTIFFHandler,
32257 _swigc__p_wxUpdateUIEvent,
32258 _swigc__p_wxValidator,
32259 _swigc__p_wxWindow,
32260 _swigc__p_wxWindowCreateEvent,
32261 _swigc__p_wxWindowDC,
32262 _swigc__p_wxWindowDestroyEvent,
32263 _swigc__p_wxXPMHandler,
32264 };
32265
32266
32267 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
32268
32269 static swig_const_info swig_const_table[] = {
32270 {0, 0, 0, 0.0, 0, 0}};
32271
32272 #ifdef __cplusplus
32273 }
32274 #endif
32275 /* -----------------------------------------------------------------------------
32276 * Type initialization:
32277 * This problem is tough by the requirement that no dynamic
32278 * memory is used. Also, since swig_type_info structures store pointers to
32279 * swig_cast_info structures and swig_cast_info structures store pointers back
32280 * to swig_type_info structures, we need some lookup code at initialization.
32281 * The idea is that swig generates all the structures that are needed.
32282 * The runtime then collects these partially filled structures.
32283 * The SWIG_InitializeModule function takes these initial arrays out of
32284 * swig_module, and does all the lookup, filling in the swig_module.types
32285 * array with the correct data and linking the correct swig_cast_info
32286 * structures together.
32287 *
32288 * The generated swig_type_info structures are assigned staticly to an initial
32289 * array. We just loop though that array, and handle each type individually.
32290 * First we lookup if this type has been already loaded, and if so, use the
32291 * loaded structure instead of the generated one. Then we have to fill in the
32292 * cast linked list. The cast data is initially stored in something like a
32293 * two-dimensional array. Each row corresponds to a type (there are the same
32294 * number of rows as there are in the swig_type_initial array). Each entry in
32295 * a column is one of the swig_cast_info structures for that type.
32296 * The cast_initial array is actually an array of arrays, because each row has
32297 * a variable number of columns. So to actually build the cast linked list,
32298 * we find the array of casts associated with the type, and loop through it
32299 * adding the casts to the list. The one last trick we need to do is making
32300 * sure the type pointer in the swig_cast_info struct is correct.
32301 *
32302 * First off, we lookup the cast->type name to see if it is already loaded.
32303 * There are three cases to handle:
32304 * 1) If the cast->type has already been loaded AND the type we are adding
32305 * casting info to has not been loaded (it is in this module), THEN we
32306 * replace the cast->type pointer with the type pointer that has already
32307 * been loaded.
32308 * 2) If BOTH types (the one we are adding casting info to, and the
32309 * cast->type) are loaded, THEN the cast info has already been loaded by
32310 * the previous module so we just ignore it.
32311 * 3) Finally, if cast->type has not already been loaded, then we add that
32312 * swig_cast_info to the linked list (because the cast->type) pointer will
32313 * be correct.
32314 * ----------------------------------------------------------------------------- */
32315
32316 #ifdef __cplusplus
32317 extern "C" {
32318 #if 0
32319 } /* c-mode */
32320 #endif
32321 #endif
32322
32323 #if 0
32324 #define SWIGRUNTIME_DEBUG
32325 #endif
32326
32327 SWIGRUNTIME void
32328 SWIG_InitializeModule(void *clientdata) {
32329 size_t i;
32330 swig_module_info *module_head;
32331 static int init_run = 0;
32332
32333 clientdata = clientdata;
32334
32335 if (init_run) return;
32336 init_run = 1;
32337
32338 /* Initialize the swig_module */
32339 swig_module.type_initial = swig_type_initial;
32340 swig_module.cast_initial = swig_cast_initial;
32341
32342 /* Try and load any already created modules */
32343 module_head = SWIG_GetModule(clientdata);
32344 if (module_head) {
32345 swig_module.next = module_head->next;
32346 module_head->next = &swig_module;
32347 } else {
32348 /* This is the first module loaded */
32349 swig_module.next = &swig_module;
32350 SWIG_SetModule(clientdata, &swig_module);
32351 }
32352
32353 /* Now work on filling in swig_module.types */
32354 #ifdef SWIGRUNTIME_DEBUG
32355 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
32356 #endif
32357 for (i = 0; i < swig_module.size; ++i) {
32358 swig_type_info *type = 0;
32359 swig_type_info *ret;
32360 swig_cast_info *cast;
32361
32362 #ifdef SWIGRUNTIME_DEBUG
32363 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
32364 #endif
32365
32366 /* if there is another module already loaded */
32367 if (swig_module.next != &swig_module) {
32368 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
32369 }
32370 if (type) {
32371 /* Overwrite clientdata field */
32372 #ifdef SWIGRUNTIME_DEBUG
32373 printf("SWIG_InitializeModule: found type %s\n", type->name);
32374 #endif
32375 if (swig_module.type_initial[i]->clientdata) {
32376 type->clientdata = swig_module.type_initial[i]->clientdata;
32377 #ifdef SWIGRUNTIME_DEBUG
32378 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
32379 #endif
32380 }
32381 } else {
32382 type = swig_module.type_initial[i];
32383 }
32384
32385 /* Insert casting types */
32386 cast = swig_module.cast_initial[i];
32387 while (cast->type) {
32388 /* Don't need to add information already in the list */
32389 ret = 0;
32390 #ifdef SWIGRUNTIME_DEBUG
32391 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
32392 #endif
32393 if (swig_module.next != &swig_module) {
32394 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
32395 #ifdef SWIGRUNTIME_DEBUG
32396 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
32397 #endif
32398 }
32399 if (ret) {
32400 if (type == swig_module.type_initial[i]) {
32401 #ifdef SWIGRUNTIME_DEBUG
32402 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
32403 #endif
32404 cast->type = ret;
32405 ret = 0;
32406 } else {
32407 /* Check for casting already in the list */
32408 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
32409 #ifdef SWIGRUNTIME_DEBUG
32410 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
32411 #endif
32412 if (!ocast) ret = 0;
32413 }
32414 }
32415
32416 if (!ret) {
32417 #ifdef SWIGRUNTIME_DEBUG
32418 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
32419 #endif
32420 if (type->cast) {
32421 type->cast->prev = cast;
32422 cast->next = type->cast;
32423 }
32424 type->cast = cast;
32425 }
32426 cast++;
32427 }
32428 /* Set entry in modules->types array equal to the type */
32429 swig_module.types[i] = type;
32430 }
32431 swig_module.types[i] = 0;
32432
32433 #ifdef SWIGRUNTIME_DEBUG
32434 printf("**** SWIG_InitializeModule: Cast List ******\n");
32435 for (i = 0; i < swig_module.size; ++i) {
32436 int j = 0;
32437 swig_cast_info *cast = swig_module.cast_initial[i];
32438 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
32439 while (cast->type) {
32440 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
32441 cast++;
32442 ++j;
32443 }
32444 printf("---- Total casts: %d\n",j);
32445 }
32446 printf("**** SWIG_InitializeModule: Cast List ******\n");
32447 #endif
32448 }
32449
32450 /* This function will propagate the clientdata field of type to
32451 * any new swig_type_info structures that have been added into the list
32452 * of equivalent types. It is like calling
32453 * SWIG_TypeClientData(type, clientdata) a second time.
32454 */
32455 SWIGRUNTIME void
32456 SWIG_PropagateClientData(void) {
32457 size_t i;
32458 swig_cast_info *equiv;
32459 static int init_run = 0;
32460
32461 if (init_run) return;
32462 init_run = 1;
32463
32464 for (i = 0; i < swig_module.size; i++) {
32465 if (swig_module.types[i]->clientdata) {
32466 equiv = swig_module.types[i]->cast;
32467 while (equiv) {
32468 if (!equiv->converter) {
32469 if (equiv->type && !equiv->type->clientdata)
32470 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
32471 }
32472 equiv = equiv->next;
32473 }
32474 }
32475 }
32476 }
32477
32478 #ifdef __cplusplus
32479 #if 0
32480 {
32481 /* c-mode */
32482 #endif
32483 }
32484 #endif
32485
32486
32487
32488 #ifdef __cplusplus
32489 extern "C" {
32490 #endif
32491
32492 /* Python-specific SWIG API */
32493 #define SWIG_newvarlink() SWIG_Python_newvarlink()
32494 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
32495 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
32496
32497 /* -----------------------------------------------------------------------------
32498 * global variable support code.
32499 * ----------------------------------------------------------------------------- */
32500
32501 typedef struct swig_globalvar {
32502 char *name; /* Name of global variable */
32503 PyObject *(*get_attr)(void); /* Return the current value */
32504 int (*set_attr)(PyObject *); /* Set the value */
32505 struct swig_globalvar *next;
32506 } swig_globalvar;
32507
32508 typedef struct swig_varlinkobject {
32509 PyObject_HEAD
32510 swig_globalvar *vars;
32511 } swig_varlinkobject;
32512
32513 SWIGINTERN PyObject *
32514 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
32515 return PyString_FromString("<Swig global variables>");
32516 }
32517
32518 SWIGINTERN PyObject *
32519 swig_varlink_str(swig_varlinkobject *v) {
32520 PyObject *str = PyString_FromString("(");
32521 swig_globalvar *var;
32522 for (var = v->vars; var; var=var->next) {
32523 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
32524 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
32525 }
32526 PyString_ConcatAndDel(&str,PyString_FromString(")"));
32527 return str;
32528 }
32529
32530 SWIGINTERN int
32531 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
32532 PyObject *str = swig_varlink_str(v);
32533 fprintf(fp,"Swig global variables ");
32534 fprintf(fp,"%s\n", PyString_AsString(str));
32535 Py_DECREF(str);
32536 return 0;
32537 }
32538
32539 SWIGINTERN void
32540 swig_varlink_dealloc(swig_varlinkobject *v) {
32541 swig_globalvar *var = v->vars;
32542 while (var) {
32543 swig_globalvar *n = var->next;
32544 free(var->name);
32545 free(var);
32546 var = n;
32547 }
32548 }
32549
32550 SWIGINTERN PyObject *
32551 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
32552 PyObject *res = NULL;
32553 swig_globalvar *var = v->vars;
32554 while (var) {
32555 if (strcmp(var->name,n) == 0) {
32556 res = (*var->get_attr)();
32557 break;
32558 }
32559 var = var->next;
32560 }
32561 if (res == NULL && !PyErr_Occurred()) {
32562 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
32563 }
32564 return res;
32565 }
32566
32567 SWIGINTERN int
32568 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
32569 int res = 1;
32570 swig_globalvar *var = v->vars;
32571 while (var) {
32572 if (strcmp(var->name,n) == 0) {
32573 res = (*var->set_attr)(p);
32574 break;
32575 }
32576 var = var->next;
32577 }
32578 if (res == 1 && !PyErr_Occurred()) {
32579 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
32580 }
32581 return res;
32582 }
32583
32584 SWIGINTERN PyTypeObject*
32585 swig_varlink_type(void) {
32586 static char varlink__doc__[] = "Swig var link object";
32587 static PyTypeObject varlink_type;
32588 static int type_init = 0;
32589 if (!type_init) {
32590 const PyTypeObject tmp
32591 = {
32592 PyObject_HEAD_INIT(NULL)
32593 0, /* Number of items in variable part (ob_size) */
32594 (char *)"swigvarlink", /* Type name (tp_name) */
32595 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
32596 0, /* Itemsize (tp_itemsize) */
32597 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
32598 (printfunc) swig_varlink_print, /* Print (tp_print) */
32599 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
32600 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
32601 0, /* tp_compare */
32602 (reprfunc) swig_varlink_repr, /* tp_repr */
32603 0, /* tp_as_number */
32604 0, /* tp_as_sequence */
32605 0, /* tp_as_mapping */
32606 0, /* tp_hash */
32607 0, /* tp_call */
32608 (reprfunc)swig_varlink_str, /* tp_str */
32609 0, /* tp_getattro */
32610 0, /* tp_setattro */
32611 0, /* tp_as_buffer */
32612 0, /* tp_flags */
32613 varlink__doc__, /* tp_doc */
32614 0, /* tp_traverse */
32615 0, /* tp_clear */
32616 0, /* tp_richcompare */
32617 0, /* tp_weaklistoffset */
32618 #if PY_VERSION_HEX >= 0x02020000
32619 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
32620 #endif
32621 #if PY_VERSION_HEX >= 0x02030000
32622 0, /* tp_del */
32623 #endif
32624 #ifdef COUNT_ALLOCS
32625 0,0,0,0 /* tp_alloc -> tp_next */
32626 #endif
32627 };
32628 varlink_type = tmp;
32629 varlink_type.ob_type = &PyType_Type;
32630 type_init = 1;
32631 }
32632 return &varlink_type;
32633 }
32634
32635 /* Create a variable linking object for use later */
32636 SWIGINTERN PyObject *
32637 SWIG_Python_newvarlink(void) {
32638 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
32639 if (result) {
32640 result->vars = 0;
32641 }
32642 return ((PyObject*) result);
32643 }
32644
32645 SWIGINTERN void
32646 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
32647 swig_varlinkobject *v = (swig_varlinkobject *) p;
32648 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
32649 if (gv) {
32650 size_t size = strlen(name)+1;
32651 gv->name = (char *)malloc(size);
32652 if (gv->name) {
32653 strncpy(gv->name,name,size);
32654 gv->get_attr = get_attr;
32655 gv->set_attr = set_attr;
32656 gv->next = v->vars;
32657 }
32658 }
32659 v->vars = gv;
32660 }
32661
32662 SWIGINTERN PyObject *
32663 SWIG_globals() {
32664 static PyObject *_SWIG_globals = 0;
32665 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
32666 return _SWIG_globals;
32667 }
32668
32669 /* -----------------------------------------------------------------------------
32670 * constants/methods manipulation
32671 * ----------------------------------------------------------------------------- */
32672
32673 /* Install Constants */
32674 SWIGINTERN void
32675 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
32676 PyObject *obj = 0;
32677 size_t i;
32678 for (i = 0; constants[i].type; ++i) {
32679 switch(constants[i].type) {
32680 case SWIG_PY_POINTER:
32681 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
32682 break;
32683 case SWIG_PY_BINARY:
32684 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
32685 break;
32686 default:
32687 obj = 0;
32688 break;
32689 }
32690 if (obj) {
32691 PyDict_SetItemString(d, constants[i].name, obj);
32692 Py_DECREF(obj);
32693 }
32694 }
32695 }
32696
32697 /* -----------------------------------------------------------------------------*/
32698 /* Fix SwigMethods to carry the callback ptrs when needed */
32699 /* -----------------------------------------------------------------------------*/
32700
32701 SWIGINTERN void
32702 SWIG_Python_FixMethods(PyMethodDef *methods,
32703 swig_const_info *const_table,
32704 swig_type_info **types,
32705 swig_type_info **types_initial) {
32706 size_t i;
32707 for (i = 0; methods[i].ml_name; ++i) {
32708 const char *c = methods[i].ml_doc;
32709 if (c && (c = strstr(c, "swig_ptr: "))) {
32710 int j;
32711 swig_const_info *ci = 0;
32712 const char *name = c + 10;
32713 for (j = 0; const_table[j].type; ++j) {
32714 if (strncmp(const_table[j].name, name,
32715 strlen(const_table[j].name)) == 0) {
32716 ci = &(const_table[j]);
32717 break;
32718 }
32719 }
32720 if (ci) {
32721 size_t shift = (ci->ptype) - types;
32722 swig_type_info *ty = types_initial[shift];
32723 size_t ldoc = (c - methods[i].ml_doc);
32724 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
32725 char *ndoc = (char*)malloc(ldoc + lptr + 10);
32726 if (ndoc) {
32727 char *buff = ndoc;
32728 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
32729 if (ptr) {
32730 strncpy(buff, methods[i].ml_doc, ldoc);
32731 buff += ldoc;
32732 strncpy(buff, "swig_ptr: ", 10);
32733 buff += 10;
32734 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
32735 methods[i].ml_doc = ndoc;
32736 }
32737 }
32738 }
32739 }
32740 }
32741 }
32742
32743 #ifdef __cplusplus
32744 }
32745 #endif
32746
32747 /* -----------------------------------------------------------------------------*
32748 * Partial Init method
32749 * -----------------------------------------------------------------------------*/
32750
32751 #ifdef __cplusplus
32752 extern "C"
32753 #endif
32754 SWIGEXPORT void SWIG_init(void) {
32755 PyObject *m, *d;
32756
32757 /* Fix SwigMethods to carry the callback ptrs when needed */
32758 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
32759
32760 m = Py_InitModule((char *) SWIG_name, SwigMethods);
32761 d = PyModule_GetDict(m);
32762
32763 SWIG_InitializeModule(0);
32764 SWIG_InstallConstants(d,swig_const_table);
32765
32766
32767 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
32768 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
32769 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
32770 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
32771 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
32772 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
32773 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
32774 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
32775 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
32776 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
32777 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
32778 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
32779 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
32780 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
32781 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
32782 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
32783 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
32784 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
32785 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
32786 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
32787 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
32788 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
32789 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
32790 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
32791 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
32792 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
32793 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
32794 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
32795 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
32796 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
32797 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
32798 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
32799 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
32800 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
32801 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
32802 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
32803 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
32804 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
32805 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
32806 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
32807 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
32808 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
32809 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
32810 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
32811 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
32812 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
32813 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
32814 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
32815 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
32816 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
32817 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
32818 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
32819 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
32820 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
32821 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
32822 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
32823 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
32824 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
32825 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
32826 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
32827 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
32828 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
32829 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
32830 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
32831 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
32832 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
32833 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
32834 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
32835 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
32836 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
32837 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
32838 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
32839 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
32840 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
32841 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
32842 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
32843 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
32844 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
32845 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
32846 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
32847 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
32848 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
32849 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
32850 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
32851 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
32852 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
32853 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
32854 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
32855 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
32856 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
32857 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
32858 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
32859 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
32860 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
32861 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
32862 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
32863 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
32864 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
32865 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
32866 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
32867 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
32868 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
32869 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
32870 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
32871 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
32872 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
32873 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
32874 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
32875 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
32876 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
32877 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
32878 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
32879 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
32880 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
32881 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
32882 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
32883 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
32884 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
32885 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
32886 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
32887 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
32888 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
32889 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
32890 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
32891 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
32892 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
32893 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
32894 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
32895 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
32896 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
32897 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
32898 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
32899
32900 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
32901
32902 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
32903 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
32904 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
32905 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
32906 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
32907 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
32908 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
32909 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
32910 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
32911 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
32912 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
32913 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
32914 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
32915 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
32916 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
32917 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
32918 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
32919 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
32920 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
32921 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
32922 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
32923 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
32924 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
32925 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
32926 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
32927 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
32928 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
32929 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
32930 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
32931 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
32932 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
32933 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
32934 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
32935 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
32936 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
32937 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
32938 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
32939 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
32940 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
32941 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
32942 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
32943 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
32944 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
32945 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
32946 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
32947 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
32948 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
32949 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
32950 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
32951 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
32952 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
32953 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
32954 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
32955 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
32956 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
32957 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
32958 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
32959 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
32960 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
32961 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
32962 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
32963 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
32964 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
32965 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
32966 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
32967 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
32968 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
32969 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
32970 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
32971 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
32972 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
32973 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
32974 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
32975 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
32976 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
32977 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
32978 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
32979 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
32980 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
32981 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
32982 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
32983 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
32984 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
32985 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
32986 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
32987 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
32988 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
32989 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
32990 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
32991 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
32992 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
32993 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
32994 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
32995 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
32996 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
32997 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
32998 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
32999 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
33000 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
33001 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
33002 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
33003 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
33004 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
33005 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
33006 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
33007 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
33008 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
33009 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
33010 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
33011 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
33012 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
33013 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
33014 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
33015 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
33016 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
33017 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
33018 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
33019 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
33020 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
33021 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
33022 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
33023 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
33024 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
33025 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
33026 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
33027 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
33028 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
33029 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
33030 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
33031 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
33032 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
33033 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
33034 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
33035 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
33036 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
33037 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
33038 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
33039 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
33040 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
33041 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
33042 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
33043 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
33044 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
33045 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
33046 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
33047 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
33048 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
33049 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
33050 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
33051 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
33052 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
33053 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
33054 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
33055 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
33056 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
33057 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
33058 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
33059 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
33060 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
33061 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
33062 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
33063 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
33064 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
33065 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
33066 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
33067 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
33068 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
33069 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
33070 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
33071 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
33072 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
33073 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
33074 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
33075 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
33076 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
33077 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
33078 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
33079 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
33080 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
33081 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
33082 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
33083 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
33084 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
33085 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
33086 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
33087 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
33088 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
33089 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
33090 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
33091 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
33092 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
33093 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
33094 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
33095 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
33096 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
33097 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
33098 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
33099 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
33100 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
33101 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
33102 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
33103 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
33104 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
33105 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
33106 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
33107 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
33108 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
33109 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
33110 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
33111 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
33112 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
33113 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
33114 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
33115 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
33116 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
33117 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
33118 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
33119 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
33120 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
33121 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
33122 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
33123 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
33124 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
33125 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
33126 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
33127 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
33128 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
33129 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
33130 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
33131 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
33132 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
33133 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
33134 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
33135 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
33136 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
33137 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
33138 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
33139 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
33140 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
33141 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
33142 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
33143 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
33144 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
33145 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
33146 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
33147 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
33148 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
33149 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
33150 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
33151 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
33152 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
33153 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
33154 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
33155 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
33156 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
33157 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
33158 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
33159 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
33160 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
33161 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
33162 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
33163 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
33164 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
33165 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
33166 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
33167 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
33168 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
33169 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
33170 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
33171 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
33172 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
33173 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
33174 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
33175 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
33176 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
33177 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
33178 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
33179 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
33180 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
33181 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
33182 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
33183 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
33184 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
33185 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
33186 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
33187 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
33188 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
33189 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
33190 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
33191 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
33192 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
33193 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
33194 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
33195 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
33196 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
33197 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
33198 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
33199 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
33200 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
33201 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
33202 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
33203 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
33204 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
33205 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
33206 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
33207 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
33208 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
33209 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
33210 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
33211 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
33212 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
33213 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
33214 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
33215 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
33216
33217 // Work around a chicken/egg problem in drawlist.cpp
33218 wxPyDrawList_SetAPIPtr();
33219
33220 }
33221